SAP EWT_DISPLAY_OPEN_GOODS_RECEIPT Function Module for NOTRANSL: Anzeigen Offener Wareneingäge









EWT_DISPLAY_OPEN_GOODS_RECEIPT is a standard ewt display open goods receipt 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: Anzeigen Offener Wareneingäge 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 ewt display open goods receipt FM, simply by entering the name EWT_DISPLAY_OPEN_GOODS_RECEIPT into the relevant SAP transaction such as SE37 or SE38.

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



Function EWT_DISPLAY_OPEN_GOODS_RECEIPT 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 'EWT_DISPLAY_OPEN_GOODS_RECEIPT'"NOTRANSL: Anzeigen Offener Wareneingäge
EXPORTING
* PI_VENDOR = "Account Number of Vendor or Creditor
* PI_MCODE = "ABAP System Field: PAI-Triggering Function Code
* PI_LFDAT = "Item delivery date
* PI_BWART_AUS = "Movement Type of Mat. Doc. That is Allowed (303)
* PI_VNDR_TYPE = "SAP Retail Store: Indicator Vendor or Plant
* PI_MATNR = "Material Number
* PI_EAN11 = "International Article Number (EAN/UPC)
PI_PLANT = "Plant
* PI_LIEFWRK = "Receiving plant/issuing plant
* PI_BUDAT = "Delivery Date
* PI_USER = "ABAP System Field: Name of Current User
* PI_EXAUFNR = "External order number

IMPORTING
PE_RETURN = "SAP Retail Store: Return Structure for Errors

TABLES
PE_T_PURCH_ORD = "SAP Retail Store Document List

EXCEPTIONS
MARERIAL_NO_EXIST = 1 NOEXIST = 2
.



IMPORTING Parameters details for EWT_DISPLAY_OPEN_GOODS_RECEIPT

PI_VENDOR - Account Number of Vendor or Creditor

Data type: LFA1-LIFNR
Optional: Yes
Call by Reference: Yes

PI_MCODE - ABAP System Field: PAI-Triggering Function Code

Data type: SY-UCOMM
Optional: Yes
Call by Reference: Yes

PI_LFDAT - Item delivery date

Data type: EKET-EINDT
Optional: Yes
Call by Reference: Yes

PI_BWART_AUS - Movement Type of Mat. Doc. That is Allowed (303)

Data type: TWIC0100-BWART_AUS
Optional: Yes
Call by Reference: Yes

PI_VNDR_TYPE - SAP Retail Store: Indicator Vendor or Plant

Data type: WSRS_VENDOR_SITE_TYPE
Optional: Yes
Call by Reference: Yes

PI_MATNR - Material Number

Data type: MARA-MATNR
Optional: Yes
Call by Reference: Yes

PI_EAN11 - International Article Number (EAN/UPC)

Data type: MARA-EAN11
Optional: Yes
Call by Reference: Yes

PI_PLANT - Plant

Data type: LIPS-WERKS
Optional: No
Call by Reference: Yes

PI_LIEFWRK - Receiving plant/issuing plant

Data type: WOSE_ITEMS-W_UMWRK
Optional: Yes
Call by Reference: Yes

PI_BUDAT - Delivery Date

Data type: LIKP-LFDAT
Optional: Yes
Call by Reference: Yes

PI_USER - ABAP System Field: Name of Current User

Data type: SY-UNAME
Optional: Yes
Call by Reference: Yes

PI_EXAUFNR - External order number

Data type: WOSA-EXAUFNR
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for EWT_DISPLAY_OPEN_GOODS_RECEIPT

PE_RETURN - SAP Retail Store: Return Structure for Errors

Data type: WSRS_RETURN
Optional: No
Call by Reference: Yes

TABLES Parameters details for EWT_DISPLAY_OPEN_GOODS_RECEIPT

PE_T_PURCH_ORD - SAP Retail Store Document List

Data type: WOSE_BKPF_SEARCHLIST
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MARERIAL_NO_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NOEXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EWT_DISPLAY_OPEN_GOODS_RECEIPT 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_return  TYPE WSRS_RETURN, "   
lv_pi_vendor  TYPE LFA1-LIFNR, "   
lt_pe_t_purch_ord  TYPE STANDARD TABLE OF WOSE_BKPF_SEARCHLIST, "   
lv_marerial_no_exist  TYPE WOSE_BKPF_SEARCHLIST, "   
lv_pi_mcode  TYPE SY-UCOMM, "   
lv_pi_lfdat  TYPE EKET-EINDT, "   
lv_pi_bwart_aus  TYPE TWIC0100-BWART_AUS, "   
lv_noexist  TYPE TWIC0100, "   
lv_pi_vndr_type  TYPE WSRS_VENDOR_SITE_TYPE, "   
lv_pi_matnr  TYPE MARA-MATNR, "   
lv_pi_ean11  TYPE MARA-EAN11, "   
lv_pi_plant  TYPE LIPS-WERKS, "   
lv_pi_liefwrk  TYPE WOSE_ITEMS-W_UMWRK, "   
lv_pi_budat  TYPE LIKP-LFDAT, "   
lv_pi_user  TYPE SY-UNAME, "   
lv_pi_exaufnr  TYPE WOSA-EXAUFNR. "   

  CALL FUNCTION 'EWT_DISPLAY_OPEN_GOODS_RECEIPT'  "NOTRANSL: Anzeigen Offener Wareneingäge
    EXPORTING
         PI_VENDOR = lv_pi_vendor
         PI_MCODE = lv_pi_mcode
         PI_LFDAT = lv_pi_lfdat
         PI_BWART_AUS = lv_pi_bwart_aus
         PI_VNDR_TYPE = lv_pi_vndr_type
         PI_MATNR = lv_pi_matnr
         PI_EAN11 = lv_pi_ean11
         PI_PLANT = lv_pi_plant
         PI_LIEFWRK = lv_pi_liefwrk
         PI_BUDAT = lv_pi_budat
         PI_USER = lv_pi_user
         PI_EXAUFNR = lv_pi_exaufnr
    IMPORTING
         PE_RETURN = lv_pe_return
    TABLES
         PE_T_PURCH_ORD = lt_pe_t_purch_ord
    EXCEPTIONS
        MARERIAL_NO_EXIST = 1
        NOEXIST = 2
. " EWT_DISPLAY_OPEN_GOODS_RECEIPT




ABAP code using 7.40 inline data declarations to call FM EWT_DISPLAY_OPEN_GOODS_RECEIPT

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 LIFNR FROM LFA1 INTO @DATA(ld_pi_vendor).
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_pi_mcode).
 
"SELECT single EINDT FROM EKET INTO @DATA(ld_pi_lfdat).
 
"SELECT single BWART_AUS FROM TWIC0100 INTO @DATA(ld_pi_bwart_aus).
 
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_pi_matnr).
 
"SELECT single EAN11 FROM MARA INTO @DATA(ld_pi_ean11).
 
"SELECT single WERKS FROM LIPS INTO @DATA(ld_pi_plant).
 
"SELECT single W_UMWRK FROM WOSE_ITEMS INTO @DATA(ld_pi_liefwrk).
 
"SELECT single LFDAT FROM LIKP INTO @DATA(ld_pi_budat).
 
"SELECT single UNAME FROM SY INTO @DATA(ld_pi_user).
 
"SELECT single EXAUFNR FROM WOSA INTO @DATA(ld_pi_exaufnr).
 


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!