BAPI_ADV_MED_GET_LAYOUT 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_LAYOUT 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_LAYOUT' "Read Product Catalog Layout
EXPORTING
catalog = " bapiadmid-prodcat Product Catalog
variant = " bapiadmvid-variant Variant
* with_items = SPACE " bapilayhlp-xfeld Flag for Reading Items
* with_prices = SPACE " bapilayhlp-xfeld Flag for Reading Prices
* apply_char_filter = SPACE " bapilayhlp-xfeld Use Characteristic Filter
* apply_auth_filter = SPACE " bapilayhlp-xfeld Use Authorization Filter
* area = SPACE " bapilaya-area Layout Area Number
* read_stepwise = SPACE " bapilayhlp-xfeld Checkbox field
* with_kzkfg = SPACE " bapilayhlp-xfeld Indicator for Reading Material Configuration Indicator
IMPORTING
layout = " bapilaya-layout Layout
return = " bapireturn Return Value
TABLES
languages = " bapiadmvl Languages of Variant
currencies = " bapiadmvc Currencies of Variant
areas = " bapilaya Layout Areas
* items = " bapilayit Layout Area Items
texts = " bapilaytx Texts for Layout Areas and Items
* prices = " bapiadmip Prices
* filter_criteria = " api_val_r
* return_areas = " bapiret2 Return Values for Layout Areas
. " BAPI_ADV_MED_GET_LAYOUT
The ABAP code below is a full code listing to execute function module BAPI_ADV_MED_GET_LAYOUT 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_layout | TYPE BAPILAYA-LAYOUT , |
| ld_return | TYPE BAPIRETURN , |
| it_languages | TYPE STANDARD TABLE OF BAPIADMVL,"TABLES PARAM |
| wa_languages | LIKE LINE OF it_languages , |
| it_currencies | TYPE STANDARD TABLE OF BAPIADMVC,"TABLES PARAM |
| wa_currencies | LIKE LINE OF it_currencies , |
| it_areas | TYPE STANDARD TABLE OF BAPILAYA,"TABLES PARAM |
| wa_areas | LIKE LINE OF it_areas , |
| 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 , |
| it_filter_criteria | TYPE STANDARD TABLE OF API_VAL_R,"TABLES PARAM |
| wa_filter_criteria | LIKE LINE OF it_filter_criteria , |
| it_return_areas | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return_areas | LIKE LINE OF it_return_areas . |
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_layout | TYPE BAPILAYA-LAYOUT , |
| ld_catalog | TYPE BAPIADMID-PRODCAT , |
| it_languages | TYPE STANDARD TABLE OF BAPIADMVL , |
| wa_languages | LIKE LINE OF it_languages, |
| ld_return | TYPE BAPIRETURN , |
| ld_variant | TYPE BAPIADMVID-VARIANT , |
| it_currencies | TYPE STANDARD TABLE OF BAPIADMVC , |
| wa_currencies | LIKE LINE OF it_currencies, |
| ld_with_items | TYPE BAPILAYHLP-XFELD , |
| it_areas | TYPE STANDARD TABLE OF BAPILAYA , |
| wa_areas | LIKE LINE OF it_areas, |
| ld_with_prices | TYPE BAPILAYHLP-XFELD , |
| it_items | TYPE STANDARD TABLE OF BAPILAYIT , |
| wa_items | LIKE LINE OF it_items, |
| ld_apply_char_filter | TYPE BAPILAYHLP-XFELD , |
| it_texts | TYPE STANDARD TABLE OF BAPILAYTX , |
| wa_texts | LIKE LINE OF it_texts, |
| ld_apply_auth_filter | TYPE BAPILAYHLP-XFELD , |
| it_prices | TYPE STANDARD TABLE OF BAPIADMIP , |
| wa_prices | LIKE LINE OF it_prices, |
| ld_area | TYPE BAPILAYA-AREA , |
| it_filter_criteria | TYPE STANDARD TABLE OF API_VAL_R , |
| wa_filter_criteria | LIKE LINE OF it_filter_criteria, |
| ld_read_stepwise | TYPE BAPILAYHLP-XFELD , |
| it_return_areas | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return_areas | LIKE LINE OF it_return_areas, |
| ld_with_kzkfg | TYPE BAPILAYHLP-XFELD . |
This method can be used to read information for the layout of a product
catalog.
...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_LAYOUT or its description.
BAPI_ADV_MED_GET_LAYOUT - Read Product Catalog Layout BAPI_ADV_MED_GET_LAYOBJ_DOCS - Read Documents for a Layout Area or a Layout Area Item BAPI_ADV_MED_GET_LAYOBJ_DESCR - Read Long Text for Layout Area or Layout Area Item 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