SAP Function Modules

PRODCAT_STATUS_MESSAGE_GET SAP Function module







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

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


Pattern for FM PRODCAT_STATUS_MESSAGE_GET - PRODCAT STATUS MESSAGE GET





CALL FUNCTION 'PRODCAT_STATUS_MESSAGE_GET' "
* EXPORTING
*   catalogbasedata =           " bapipcwwmi
*   layout =                    " bapipctwgv
  IMPORTING
    pe_return =                 " bapiret2
  TABLES
    px_t_return =               " bapiret2
*   catalogname =               " bapipcwwmit
*   variants =                  " bapipcwwmv
*   variantnames =              " bapipcwwvt
*   layoutname =                " bapipctwgvt
*   areas =                     " bapipctwglv
*   areanames =                 " bapipctwglvt
*   areatexts =                 " bapipcwlmt
*   arealongtexts =             " bapipcltext
*   items =                     " bapipcwlbm
*   itemtexts =                 " bapipcwlmt
*   materialdescriptions =      " bapipcmakt
*   itemlongtexts =             " bapipcltext
*   itemprices =                " bapipccond
*   extensionin =               " bapiparex
    .  "  PRODCAT_STATUS_MESSAGE_GET

ABAP code example for Function Module PRODCAT_STATUS_MESSAGE_GET





The ABAP code below is a full code listing to execute function module PRODCAT_STATUS_MESSAGE_GET 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_pe_return  TYPE BAPIRET2 ,
it_px_t_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_px_t_return  LIKE LINE OF it_px_t_return ,
it_catalogname  TYPE STANDARD TABLE OF BAPIPCWWMIT,"TABLES PARAM
wa_catalogname  LIKE LINE OF it_catalogname ,
it_variants  TYPE STANDARD TABLE OF BAPIPCWWMV,"TABLES PARAM
wa_variants  LIKE LINE OF it_variants ,
it_variantnames  TYPE STANDARD TABLE OF BAPIPCWWVT,"TABLES PARAM
wa_variantnames  LIKE LINE OF it_variantnames ,
it_layoutname  TYPE STANDARD TABLE OF BAPIPCTWGVT,"TABLES PARAM
wa_layoutname  LIKE LINE OF it_layoutname ,
it_areas  TYPE STANDARD TABLE OF BAPIPCTWGLV,"TABLES PARAM
wa_areas  LIKE LINE OF it_areas ,
it_areanames  TYPE STANDARD TABLE OF BAPIPCTWGLVT,"TABLES PARAM
wa_areanames  LIKE LINE OF it_areanames ,
it_areatexts  TYPE STANDARD TABLE OF BAPIPCWLMT,"TABLES PARAM
wa_areatexts  LIKE LINE OF it_areatexts ,
it_arealongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT,"TABLES PARAM
wa_arealongtexts  LIKE LINE OF it_arealongtexts ,
it_items  TYPE STANDARD TABLE OF BAPIPCWLBM,"TABLES PARAM
wa_items  LIKE LINE OF it_items ,
it_itemtexts  TYPE STANDARD TABLE OF BAPIPCWLMT,"TABLES PARAM
wa_itemtexts  LIKE LINE OF it_itemtexts ,
it_materialdescriptions  TYPE STANDARD TABLE OF BAPIPCMAKT,"TABLES PARAM
wa_materialdescriptions  LIKE LINE OF it_materialdescriptions ,
it_itemlongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT,"TABLES PARAM
wa_itemlongtexts  LIKE LINE OF it_itemlongtexts ,
it_itemprices  TYPE STANDARD TABLE OF BAPIPCCOND,"TABLES PARAM
wa_itemprices  LIKE LINE OF it_itemprices ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin .

DATA(ld_catalogbasedata) = 'Check type of data required'.
DATA(ld_layout) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_px_t_return to it_px_t_return.

"populate fields of struture and append to itab
append wa_catalogname to it_catalogname.

"populate fields of struture and append to itab
append wa_variants to it_variants.

"populate fields of struture and append to itab
append wa_variantnames to it_variantnames.

"populate fields of struture and append to itab
append wa_layoutname to it_layoutname.

"populate fields of struture and append to itab
append wa_areas to it_areas.

"populate fields of struture and append to itab
append wa_areanames to it_areanames.

"populate fields of struture and append to itab
append wa_areatexts to it_areatexts.

"populate fields of struture and append to itab
append wa_arealongtexts to it_arealongtexts.

"populate fields of struture and append to itab
append wa_items to it_items.

"populate fields of struture and append to itab
append wa_itemtexts to it_itemtexts.

"populate fields of struture and append to itab
append wa_materialdescriptions to it_materialdescriptions.

"populate fields of struture and append to itab
append wa_itemlongtexts to it_itemlongtexts.

"populate fields of struture and append to itab
append wa_itemprices to it_itemprices.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin. . CALL FUNCTION 'PRODCAT_STATUS_MESSAGE_GET' * EXPORTING * catalogbasedata = ld_catalogbasedata * layout = ld_layout IMPORTING pe_return = ld_pe_return TABLES px_t_return = it_px_t_return * catalogname = it_catalogname * variants = it_variants * variantnames = it_variantnames * layoutname = it_layoutname * areas = it_areas * areanames = it_areanames * areatexts = it_areatexts * arealongtexts = it_arealongtexts * items = it_items * itemtexts = it_itemtexts * materialdescriptions = it_materialdescriptions * itemlongtexts = it_itemlongtexts * itemprices = it_itemprices * extensionin = it_extensionin . " PRODCAT_STATUS_MESSAGE_GET
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_pe_return  TYPE BAPIRET2 ,
ld_catalogbasedata  TYPE BAPIPCWWMI ,
it_px_t_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_px_t_return  LIKE LINE OF it_px_t_return,
ld_layout  TYPE BAPIPCTWGV ,
it_catalogname  TYPE STANDARD TABLE OF BAPIPCWWMIT ,
wa_catalogname  LIKE LINE OF it_catalogname,
it_variants  TYPE STANDARD TABLE OF BAPIPCWWMV ,
wa_variants  LIKE LINE OF it_variants,
it_variantnames  TYPE STANDARD TABLE OF BAPIPCWWVT ,
wa_variantnames  LIKE LINE OF it_variantnames,
it_layoutname  TYPE STANDARD TABLE OF BAPIPCTWGVT ,
wa_layoutname  LIKE LINE OF it_layoutname,
it_areas  TYPE STANDARD TABLE OF BAPIPCTWGLV ,
wa_areas  LIKE LINE OF it_areas,
it_areanames  TYPE STANDARD TABLE OF BAPIPCTWGLVT ,
wa_areanames  LIKE LINE OF it_areanames,
it_areatexts  TYPE STANDARD TABLE OF BAPIPCWLMT ,
wa_areatexts  LIKE LINE OF it_areatexts,
it_arealongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT ,
wa_arealongtexts  LIKE LINE OF it_arealongtexts,
it_items  TYPE STANDARD TABLE OF BAPIPCWLBM ,
wa_items  LIKE LINE OF it_items,
it_itemtexts  TYPE STANDARD TABLE OF BAPIPCWLMT ,
wa_itemtexts  LIKE LINE OF it_itemtexts,
it_materialdescriptions  TYPE STANDARD TABLE OF BAPIPCMAKT ,
wa_materialdescriptions  LIKE LINE OF it_materialdescriptions,
it_itemlongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT ,
wa_itemlongtexts  LIKE LINE OF it_itemlongtexts,
it_itemprices  TYPE STANDARD TABLE OF BAPIPCCOND ,
wa_itemprices  LIKE LINE OF it_itemprices,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin.

ld_catalogbasedata = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_px_t_return to it_px_t_return.
ld_layout = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_catalogname to it_catalogname.

"populate fields of struture and append to itab
append wa_variants to it_variants.

"populate fields of struture and append to itab
append wa_variantnames to it_variantnames.

"populate fields of struture and append to itab
append wa_layoutname to it_layoutname.

"populate fields of struture and append to itab
append wa_areas to it_areas.

"populate fields of struture and append to itab
append wa_areanames to it_areanames.

"populate fields of struture and append to itab
append wa_areatexts to it_areatexts.

"populate fields of struture and append to itab
append wa_arealongtexts to it_arealongtexts.

"populate fields of struture and append to itab
append wa_items to it_items.

"populate fields of struture and append to itab
append wa_itemtexts to it_itemtexts.

"populate fields of struture and append to itab
append wa_materialdescriptions to it_materialdescriptions.

"populate fields of struture and append to itab
append wa_itemlongtexts to it_itemlongtexts.

"populate fields of struture and append to itab
append wa_itemprices to it_itemprices.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

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