SAP Function Modules

QMIP_CATALOG_CODE_MAP_READ SAP Function module







QMIP_CATALOG_CODE_MAP_READ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name QMIP_CATALOG_CODE_MAP_READ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: QMIP_CATALOG
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM QMIP_CATALOG_CODE_MAP_READ - QMIP CATALOG CODE MAP READ





CALL FUNCTION 'QMIP_CATALOG_CODE_MAP_READ' "
* EXPORTING
*   iv_sourcecat = '002'        " qmipd_map_qpcd-sourcecat  Type of Source
*   iv_catalog_cat =            " qmipd_map_qpcd-katalogart  Catalog
*   iv_code_group =             " qmipd_map_qpcd-codegruppe  Code Group
*   iv_code =                   " qmipd_map_qpcd-code  Code
  IMPORTING
    et_map_qpcd =               " qmipt_map_qpcd  Mapping Table Between EH&S Phrase Sets and Code
    .  "  QMIP_CATALOG_CODE_MAP_READ

ABAP code example for Function Module QMIP_CATALOG_CODE_MAP_READ





The ABAP code below is a full code listing to execute function module QMIP_CATALOG_CODE_MAP_READ including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_et_map_qpcd  TYPE QMIPT_MAP_QPCD .


SELECT single SOURCECAT
FROM QMIPD_MAP_QPCD
INTO @DATA(ld_iv_sourcecat).


SELECT single KATALOGART
FROM QMIPD_MAP_QPCD
INTO @DATA(ld_iv_catalog_cat).


SELECT single CODEGRUPPE
FROM QMIPD_MAP_QPCD
INTO @DATA(ld_iv_code_group).


SELECT single CODE
FROM QMIPD_MAP_QPCD
INTO @DATA(ld_iv_code).
. CALL FUNCTION 'QMIP_CATALOG_CODE_MAP_READ' * EXPORTING * iv_sourcecat = ld_iv_sourcecat * iv_catalog_cat = ld_iv_catalog_cat * iv_code_group = ld_iv_code_group * iv_code = ld_iv_code IMPORTING et_map_qpcd = ld_et_map_qpcd . " QMIP_CATALOG_CODE_MAP_READ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_map_qpcd  TYPE QMIPT_MAP_QPCD ,
ld_iv_sourcecat  TYPE QMIPD_MAP_QPCD-SOURCECAT ,
ld_iv_catalog_cat  TYPE QMIPD_MAP_QPCD-KATALOGART ,
ld_iv_code_group  TYPE QMIPD_MAP_QPCD-CODEGRUPPE ,
ld_iv_code  TYPE QMIPD_MAP_QPCD-CODE .


SELECT single SOURCECAT
FROM QMIPD_MAP_QPCD
INTO ld_iv_sourcecat.


SELECT single KATALOGART
FROM QMIPD_MAP_QPCD
INTO ld_iv_catalog_cat.


SELECT single CODEGRUPPE
FROM QMIPD_MAP_QPCD
INTO ld_iv_code_group.


SELECT single CODE
FROM QMIPD_MAP_QPCD
INTO ld_iv_code.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name QMIP_CATALOG_CODE_MAP_READ or its description.