SAP Function Modules

PMTO_GET_CATALOGPROFILE SAP Function module







PMTO_GET_CATALOGPROFILE 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 PMTO_GET_CATALOGPROFILE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PMTO
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM PMTO_GET_CATALOGPROFILE - PMTO GET CATALOGPROFILE





CALL FUNCTION 'PMTO_GET_CATALOGPROFILE' "
  EXPORTING
*   equipment =                 " equi-equnr
*   funcloc =                   " iloa-tplnr
    notificationtype =          " qmel-qmart
*   language = SY-LANGU         " sy-langu
  IMPORTING
    catalog_profile =           " bapi10011e
    description =               " eqkt-eqktx
    return =                    " bapireturn
  TABLES
    codes =                     " bapi10011t
    .  "  PMTO_GET_CATALOGPROFILE

ABAP code example for Function Module PMTO_GET_CATALOGPROFILE





The ABAP code below is a full code listing to execute function module PMTO_GET_CATALOGPROFILE 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_catalog_profile  TYPE BAPI10011E ,
ld_description  TYPE EQKT-EQKTX ,
ld_return  TYPE BAPIRETURN ,
it_codes  TYPE STANDARD TABLE OF BAPI10011T,"TABLES PARAM
wa_codes  LIKE LINE OF it_codes .


SELECT single EQUNR
FROM EQUI
INTO @DATA(ld_equipment).


SELECT single TPLNR
FROM ILOA
INTO @DATA(ld_funcloc).


SELECT single QMART
FROM QMEL
INTO @DATA(ld_notificationtype).

DATA(ld_language) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_codes to it_codes. . CALL FUNCTION 'PMTO_GET_CATALOGPROFILE' EXPORTING * equipment = ld_equipment * funcloc = ld_funcloc notificationtype = ld_notificationtype * language = ld_language IMPORTING catalog_profile = ld_catalog_profile description = ld_description return = ld_return TABLES codes = it_codes . " PMTO_GET_CATALOGPROFILE
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_catalog_profile  TYPE BAPI10011E ,
ld_equipment  TYPE EQUI-EQUNR ,
it_codes  TYPE STANDARD TABLE OF BAPI10011T ,
wa_codes  LIKE LINE OF it_codes,
ld_description  TYPE EQKT-EQKTX ,
ld_funcloc  TYPE ILOA-TPLNR ,
ld_return  TYPE BAPIRETURN ,
ld_notificationtype  TYPE QMEL-QMART ,
ld_language  TYPE SY-LANGU .


SELECT single EQUNR
FROM EQUI
INTO ld_equipment.


"populate fields of struture and append to itab
append wa_codes to it_codes.

SELECT single TPLNR
FROM ILOA
INTO ld_funcloc.


SELECT single QMART
FROM QMEL
INTO ld_notificationtype.

ld_language = 'Check type of data required'.

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 PMTO_GET_CATALOGPROFILE or its description.