SAP POS_MATERIAL_GET Function Module for NOTRANSL: Lesen Materialstamm für POS-Interface-Ausgang









POS_MATERIAL_GET is a standard pos material get 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 Materialstamm für POS-Interface-Ausgang 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 pos material get FM, simply by entering the name POS_MATERIAL_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: WBBR
Program Name: SAPLWBBR
Main Program: SAPLWBBR
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function POS_MATERIAL_GET 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 'POS_MATERIAL_GET'"NOTRANSL: Lesen Materialstamm für POS-Interface-Ausgang
EXPORTING
* PI_DATAB = SY-DATUM "
* MARM_EAN_CHECK = ' ' "
* PI_EXCEPTION_MODE = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* PI_FILTER_TEXT_ID = ' ' "

IMPORTING
NO_RECORD_FOUND_MARA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
NO_RECORD_FOUND_MARM = "
NO_RECORD_FOUND_MAKT = "
NO_RECORD_FOUND_MAMT = "
NO_RECORD_FOUND_MEAN = "
NO_RECORD_FOUND_MVKE = "
NO_RECORD_FOUND_MARC = "

TABLES
* P_T_CMARA = "Material master: General data
* P_T_CMARM = "Units of Measure
* P_T_CMAKT = "Material Descriptions
* P_T_CMAMT = "Material Master Texts per Unit of Measure and Text ID
* P_T_CMEAN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* P_T_CMVKE = "Material Master: Sales Data
* P_T_CMARC = "Material Master: C Segment
* PE_T_RCODE = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
NO_RECORD_FOUND_MARA = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLWBBR_001 Sort Modification for Materials in the Assortment List

IMPORTING Parameters details for POS_MATERIAL_GET

PI_DATAB -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

MARM_EAN_CHECK -

Data type: WDL_FLAG-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_EXCEPTION_MODE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: WPSTRUC-MODUS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PI_FILTER_TEXT_ID -

Data type: WDL_FLAG-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for POS_MATERIAL_GET

NO_RECORD_FOUND_MARA - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MARM -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MAKT -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MAMT -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MEAN -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MVKE -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RECORD_FOUND_MARC -

Data type: WPMARA-CHGFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for POS_MATERIAL_GET

P_T_CMARA - Material master: General data

Data type: WPMARA
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMARM - Units of Measure

Data type: WPMARM
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMAKT - Material Descriptions

Data type: WPMAKT
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMAMT - Material Master Texts per Unit of Measure and Text ID

Data type: WPMAMT
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMEAN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: WPMEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMVKE - Material Master: Sales Data

Data type: WPMVKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_T_CMARC - Material Master: C Segment

Data type: WPMARC
Optional: Yes
Call by Reference: No ( called with pass by value option)

PE_T_RCODE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: WDL_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_RECORD_FOUND_MARA - 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 POS_MATERIAL_GET 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_pi_datab  TYPE SY-DATUM, "   SY-DATUM
lt_p_t_cmara  TYPE STANDARD TABLE OF WPMARA, "   
lv_no_record_found_mara  TYPE WPMARA-CHGFLAG, "   
lv_no_record_found_mara  TYPE WPMARA, "   
lt_p_t_cmarm  TYPE STANDARD TABLE OF WPMARM, "   
lv_marm_ean_check  TYPE WDL_FLAG-XFELD, "   ' '
lv_no_record_found_marm  TYPE WPMARA-CHGFLAG, "   
lt_p_t_cmakt  TYPE STANDARD TABLE OF WPMAKT, "   
lv_pi_exception_mode  TYPE WPSTRUC-MODUS, "   ' '
lv_no_record_found_makt  TYPE WPMARA-CHGFLAG, "   
lt_p_t_cmamt  TYPE STANDARD TABLE OF WPMAMT, "   
lv_pi_filter_text_id  TYPE WDL_FLAG-XFELD, "   ' '
lv_no_record_found_mamt  TYPE WPMARA-CHGFLAG, "   
lt_p_t_cmean  TYPE STANDARD TABLE OF WPMEAN, "   
lv_no_record_found_mean  TYPE WPMARA-CHGFLAG, "   
lt_p_t_cmvke  TYPE STANDARD TABLE OF WPMVKE, "   
lv_no_record_found_mvke  TYPE WPMARA-CHGFLAG, "   
lt_p_t_cmarc  TYPE STANDARD TABLE OF WPMARC, "   
lv_no_record_found_marc  TYPE WPMARA-CHGFLAG, "   
lt_pe_t_rcode  TYPE STANDARD TABLE OF WDL_TAB. "   

  CALL FUNCTION 'POS_MATERIAL_GET'  "NOTRANSL: Lesen Materialstamm für POS-Interface-Ausgang
    EXPORTING
         PI_DATAB = lv_pi_datab
         MARM_EAN_CHECK = lv_marm_ean_check
         PI_EXCEPTION_MODE = lv_pi_exception_mode
         PI_FILTER_TEXT_ID = lv_pi_filter_text_id
    IMPORTING
         NO_RECORD_FOUND_MARA = lv_no_record_found_mara
         NO_RECORD_FOUND_MARM = lv_no_record_found_marm
         NO_RECORD_FOUND_MAKT = lv_no_record_found_makt
         NO_RECORD_FOUND_MAMT = lv_no_record_found_mamt
         NO_RECORD_FOUND_MEAN = lv_no_record_found_mean
         NO_RECORD_FOUND_MVKE = lv_no_record_found_mvke
         NO_RECORD_FOUND_MARC = lv_no_record_found_marc
    TABLES
         P_T_CMARA = lt_p_t_cmara
         P_T_CMARM = lt_p_t_cmarm
         P_T_CMAKT = lt_p_t_cmakt
         P_T_CMAMT = lt_p_t_cmamt
         P_T_CMEAN = lt_p_t_cmean
         P_T_CMVKE = lt_p_t_cmvke
         P_T_CMARC = lt_p_t_cmarc
         PE_T_RCODE = lt_pe_t_rcode
    EXCEPTIONS
        NO_RECORD_FOUND_MARA = 1
. " POS_MATERIAL_GET




ABAP code using 7.40 inline data declarations to call FM POS_MATERIAL_GET

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 DATUM FROM SY INTO @DATA(ld_pi_datab).
DATA(ld_pi_datab) = SY-DATUM.
 
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_mara).
 
 
 
"SELECT single XFELD FROM WDL_FLAG INTO @DATA(ld_marm_ean_check).
DATA(ld_marm_ean_check) = ' '.
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_marm).
 
 
"SELECT single MODUS FROM WPSTRUC INTO @DATA(ld_pi_exception_mode).
DATA(ld_pi_exception_mode) = ' '.
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_makt).
 
 
"SELECT single XFELD FROM WDL_FLAG INTO @DATA(ld_pi_filter_text_id).
DATA(ld_pi_filter_text_id) = ' '.
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_mamt).
 
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_mean).
 
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_mvke).
 
 
"SELECT single CHGFLAG FROM WPMARA INTO @DATA(ld_no_record_found_marc).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!