SAP ADV_MED_READ Function Module for NOTRANSL: Lesen Produktkatalog
ADV_MED_READ is a standard adv med read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen Produktkatalog processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for adv med read FM, simply by entering the name ADV_MED_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: WWMR
Program Name: SAPLWWMR
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ADV_MED_READ pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'ADV_MED_READ'"NOTRANSL: Lesen Produktkatalog.
EXPORTING
PI_ADV_MED = "Catalog
* PI_WITH_TEXT = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_LANGUAGE = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
CHANGING
PE_WWMI = "Layout
* PE_WWMIT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* PE_T_WWMIT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
ADV_MED_NOT_FOUND = 1
IMPORTING Parameters details for ADV_MED_READ
PI_ADV_MED - Catalog
Data type: WWMI-WMINROptional: No
Call by Reference: No ( called with pass by value option)
PI_WITH_TEXT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WDL_FLAG-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_LANGUAGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WWMIT-SPRASDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ADV_MED_READ
PE_WWMI - Layout
Data type: WWMIOptional: No
Call by Reference: No ( called with pass by value option)
PE_WWMIT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WWMITOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ADV_MED_READ
PE_T_WWMIT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: WWMITOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ADV_MED_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ADV_MED_READ Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_pe_wwmi | TYPE WWMI, " | |||
| lt_pe_t_wwmit | TYPE STANDARD TABLE OF WWMIT, " | |||
| lv_pi_adv_med | TYPE WWMI-WMINR, " | |||
| lv_adv_med_not_found | TYPE WWMI, " | |||
| lv_pe_wwmit | TYPE WWMIT, " | |||
| lv_pi_with_text | TYPE WDL_FLAG-XFELD, " SPACE | |||
| lv_pi_language | TYPE WWMIT-SPRAS. " SPACE |
|   CALL FUNCTION 'ADV_MED_READ' "NOTRANSL: Lesen Produktkatalog |
| EXPORTING | ||
| PI_ADV_MED | = lv_pi_adv_med | |
| PI_WITH_TEXT | = lv_pi_with_text | |
| PI_LANGUAGE | = lv_pi_language | |
| CHANGING | ||
| PE_WWMI | = lv_pe_wwmi | |
| PE_WWMIT | = lv_pe_wwmit | |
| TABLES | ||
| PE_T_WWMIT | = lt_pe_t_wwmit | |
| EXCEPTIONS | ||
| ADV_MED_NOT_FOUND = 1 | ||
| . " ADV_MED_READ | ||
ABAP code using 7.40 inline data declarations to call FM ADV_MED_READ
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single WMINR FROM WWMI INTO @DATA(ld_pi_adv_med). | ||||
| "SELECT single XFELD FROM WDL_FLAG INTO @DATA(ld_pi_with_text). | ||||
| DATA(ld_pi_with_text) | = ' '. | |||
| "SELECT single SPRAS FROM WWMIT INTO @DATA(ld_pi_language). | ||||
| DATA(ld_pi_language) | = ' '. | |||
Search for further information about these or an SAP related objects