BAPI_ADV_MED_GET_ITEMS 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 BAPI_ADV_MED_GET_ITEMS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
1071
Released Date:
17.09.1997
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_ADV_MED_GET_ITEMS' "Read Product Catalog Items
EXPORTING
catalog = " bapiadmid-prodcat Product Catalog
variant = " bapiadmvid-variant Variant
* area = SPACE " bapilaya-area Layout Area
* with_prices = SPACE " bapilayhlp-xfeld Flag for Reading Prices
* with_kzkfg = SPACE " bapilayhlp-xfeld Indicator for Reading Material Configuration Indicator
IMPORTING
return = " bapireturn Return Value
TABLES
items = " bapilayit Layout Area Items
texts = " bapilaytx Texts for Layout Area Items
* prices = " bapiadmip Prices
. " BAPI_ADV_MED_GET_ITEMS
The ABAP code below is a full code listing to execute function module BAPI_ADV_MED_GET_ITEMS 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).
| ld_return | TYPE BAPIRETURN , |
| it_items | TYPE STANDARD TABLE OF BAPILAYIT,"TABLES PARAM |
| wa_items | LIKE LINE OF it_items , |
| it_texts | TYPE STANDARD TABLE OF BAPILAYTX,"TABLES PARAM |
| wa_texts | LIKE LINE OF it_texts , |
| it_prices | TYPE STANDARD TABLE OF BAPIADMIP,"TABLES PARAM |
| wa_prices | LIKE LINE OF it_prices . |
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_return | TYPE BAPIRETURN , |
| ld_catalog | TYPE BAPIADMID-PRODCAT , |
| it_items | TYPE STANDARD TABLE OF BAPILAYIT , |
| wa_items | LIKE LINE OF it_items, |
| ld_variant | TYPE BAPIADMVID-VARIANT , |
| it_texts | TYPE STANDARD TABLE OF BAPILAYTX , |
| wa_texts | LIKE LINE OF it_texts, |
| ld_area | TYPE BAPILAYA-AREA , |
| it_prices | TYPE STANDARD TABLE OF BAPIADMIP , |
| wa_prices | LIKE LINE OF it_prices, |
| ld_with_prices | TYPE BAPILAYHLP-XFELD , |
| ld_with_kzkfg | TYPE BAPILAYHLP-XFELD . |
This method returns items for an advertising medium.
EXAMPLE
...See here for full SAP fm documentation
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 BAPI_ADV_MED_GET_ITEMS or its description.
BAPI_ADV_MED_GET_ITEMS - Read Product Catalog Items BAPI_ADMGMTSO_SAVEPROXIES - IS-M: BAPI Trigger Sales Document Export BAPI_ADMGMTSO_GETLIST - IS-M: BAPI Select Sales Document BAPI_ADMGMTSO_GETDETAIL - IS-M/AM: BAPI Read Sales Document BAPI_ADMGMTSO_CREATEFROMDATA - IS-M/AM: BAPI Create Sales Document BAPI_ADMGMTSO_CHANGE - IS-M/AM: BAPI Change Sales Document