SAP Function Modules

EXIT_SAPLWPCA_004 SAP Function module - Function Exit for Product Catalog IDoc Inbound Message Type PCITEMS







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

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


Pattern for FM EXIT_SAPLWPCA_004 - EXIT SAPLWPCA 004





CALL FUNCTION 'EXIT_SAPLWPCA_004' "Function Exit for Product Catalog IDoc Inbound Message Type PCITEMS
  TABLES
    px_t_return =               " bapiret2      Return Parameters
*   items =                     " bapipcwlbm    Layout Area Items
*   itemsx =                    " bapipcwlbmx   Change Parameters for Layout Area Items
*   itemtexts =                 " bapipcwlmt    Layout Area Item Headings
*   itemtextsx =                " bapipcwlmtx   Change Parameters for Headings
*   materialdescriptions =      " bapipcmakt    Material Descriptions
*   materialdescriptionsx =     " bapipcmaktx   Change Parameters for Material Short Texts
*   itemlongtexts =             " bapipcltext   Layout Area Item Long Text Lines
*   itemlongtextsx =            " bapipcltextx  Change Parameters for Long Text Lines
*   itemprices =                " bapipccond    Prices of Layout Area Items
*   itempricesx =               " bapipccondx   Change Parameters for Prices
*   extensionin =               " bapiparex     Enhancement Parameters
    .  "  EXIT_SAPLWPCA_004

ABAP code example for Function Module EXIT_SAPLWPCA_004





The ABAP code below is a full code listing to execute function module EXIT_SAPLWPCA_004 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:
it_px_t_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_px_t_return  LIKE LINE OF it_px_t_return ,
it_items  TYPE STANDARD TABLE OF BAPIPCWLBM,"TABLES PARAM
wa_items  LIKE LINE OF it_items ,
it_itemsx  TYPE STANDARD TABLE OF BAPIPCWLBMX,"TABLES PARAM
wa_itemsx  LIKE LINE OF it_itemsx ,
it_itemtexts  TYPE STANDARD TABLE OF BAPIPCWLMT,"TABLES PARAM
wa_itemtexts  LIKE LINE OF it_itemtexts ,
it_itemtextsx  TYPE STANDARD TABLE OF BAPIPCWLMTX,"TABLES PARAM
wa_itemtextsx  LIKE LINE OF it_itemtextsx ,
it_materialdescriptions  TYPE STANDARD TABLE OF BAPIPCMAKT,"TABLES PARAM
wa_materialdescriptions  LIKE LINE OF it_materialdescriptions ,
it_materialdescriptionsx  TYPE STANDARD TABLE OF BAPIPCMAKTX,"TABLES PARAM
wa_materialdescriptionsx  LIKE LINE OF it_materialdescriptionsx ,
it_itemlongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT,"TABLES PARAM
wa_itemlongtexts  LIKE LINE OF it_itemlongtexts ,
it_itemlongtextsx  TYPE STANDARD TABLE OF BAPIPCLTEXTX,"TABLES PARAM
wa_itemlongtextsx  LIKE LINE OF it_itemlongtextsx ,
it_itemprices  TYPE STANDARD TABLE OF BAPIPCCOND,"TABLES PARAM
wa_itemprices  LIKE LINE OF it_itemprices ,
it_itempricesx  TYPE STANDARD TABLE OF BAPIPCCONDX,"TABLES PARAM
wa_itempricesx  LIKE LINE OF it_itempricesx ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin .


"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_items to it_items.

"populate fields of struture and append to itab
append wa_itemsx to it_itemsx.

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

"populate fields of struture and append to itab
append wa_itemtextsx to it_itemtextsx.

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

"populate fields of struture and append to itab
append wa_materialdescriptionsx to it_materialdescriptionsx.

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

"populate fields of struture and append to itab
append wa_itemlongtextsx to it_itemlongtextsx.

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

"populate fields of struture and append to itab
append wa_itempricesx to it_itempricesx.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin. . CALL FUNCTION 'EXIT_SAPLWPCA_004' TABLES px_t_return = it_px_t_return * items = it_items * itemsx = it_itemsx * itemtexts = it_itemtexts * itemtextsx = it_itemtextsx * materialdescriptions = it_materialdescriptions * materialdescriptionsx = it_materialdescriptionsx * itemlongtexts = it_itemlongtexts * itemlongtextsx = it_itemlongtextsx * itemprices = it_itemprices * itempricesx = it_itempricesx * extensionin = it_extensionin . " EXIT_SAPLWPCA_004
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:
it_px_t_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_px_t_return  LIKE LINE OF it_px_t_return,
it_items  TYPE STANDARD TABLE OF BAPIPCWLBM ,
wa_items  LIKE LINE OF it_items,
it_itemsx  TYPE STANDARD TABLE OF BAPIPCWLBMX ,
wa_itemsx  LIKE LINE OF it_itemsx,
it_itemtexts  TYPE STANDARD TABLE OF BAPIPCWLMT ,
wa_itemtexts  LIKE LINE OF it_itemtexts,
it_itemtextsx  TYPE STANDARD TABLE OF BAPIPCWLMTX ,
wa_itemtextsx  LIKE LINE OF it_itemtextsx,
it_materialdescriptions  TYPE STANDARD TABLE OF BAPIPCMAKT ,
wa_materialdescriptions  LIKE LINE OF it_materialdescriptions,
it_materialdescriptionsx  TYPE STANDARD TABLE OF BAPIPCMAKTX ,
wa_materialdescriptionsx  LIKE LINE OF it_materialdescriptionsx,
it_itemlongtexts  TYPE STANDARD TABLE OF BAPIPCLTEXT ,
wa_itemlongtexts  LIKE LINE OF it_itemlongtexts,
it_itemlongtextsx  TYPE STANDARD TABLE OF BAPIPCLTEXTX ,
wa_itemlongtextsx  LIKE LINE OF it_itemlongtextsx,
it_itemprices  TYPE STANDARD TABLE OF BAPIPCCOND ,
wa_itemprices  LIKE LINE OF it_itemprices,
it_itempricesx  TYPE STANDARD TABLE OF BAPIPCCONDX ,
wa_itempricesx  LIKE LINE OF it_itempricesx,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin.


"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_items to it_items.

"populate fields of struture and append to itab
append wa_itemsx to it_itemsx.

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

"populate fields of struture and append to itab
append wa_itemtextsx to it_itemtextsx.

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

"populate fields of struture and append to itab
append wa_materialdescriptionsx to it_materialdescriptionsx.

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

"populate fields of struture and append to itab
append wa_itemlongtextsx to it_itemlongtextsx.

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

"populate fields of struture and append to itab
append wa_itempricesx to it_itempricesx.

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

SAP Documentation for FM EXIT_SAPLWPCA_004


For a detailed description of the interface parameters, see the documentation on module ...See here for full SAP fm documentation

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