SAP PEG04_UPDATE_PEGWLST Function Module for Worklist für engelieferte Objekte
PEG04_UPDATE_PEGWLST is a standard peg04 update pegwlst SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Worklist für engelieferte Objekte 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 peg04 update pegwlst FM, simply by entering the name PEG04_UPDATE_PEGWLST into the relevant SAP transaction such as SE37 or SE38.
Function Group: PEG04
Program Name: SAPLPEG04
Main Program: SAPLPEG04
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PEG04_UPDATE_PEGWLST 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 'PEG04_UPDATE_PEGWLST'"Worklist für engelieferte Objekte.
EXPORTING
* I_WERKS = "Werk
* I_GRPNR = "Dispo-PSP-Element
* I_AUFNR = "Auftragsnummer
* I_EBELN = "Belegnummer des Einkaufsbelegs
* I_EBELP = "Positionsnummer des Einkaufsbelegs
* I_DEL = "neue Eingabewerte
* I_DEL_WLST_ONLY = "neue Eingabewerte
TABLES
* IT_WLST_DEL = "Distribution: Arbeitsvorrat geänderter Objekte
EXCEPTIONS
WRONG_INPUT = 1
IMPORTING Parameters details for PEG04_UPDATE_PEGWLST
I_WERKS - Werk
Data type: WERKS_DOptional: Yes
Call by Reference: Yes
I_GRPNR - Dispo-PSP-Element
Data type: GRPSPNROptional: Yes
Call by Reference: Yes
I_AUFNR - Auftragsnummer
Data type: AUFNROptional: Yes
Call by Reference: Yes
I_EBELN - Belegnummer des Einkaufsbelegs
Data type: EBELNOptional: Yes
Call by Reference: Yes
I_EBELP - Positionsnummer des Einkaufsbelegs
Data type: EBELPOptional: Yes
Call by Reference: Yes
I_DEL - neue Eingabewerte
Data type: XFLAGOptional: Yes
Call by Reference: Yes
I_DEL_WLST_ONLY - neue Eingabewerte
Data type: XFLAGOptional: Yes
Call by Reference: Yes
TABLES Parameters details for PEG04_UPDATE_PEGWLST
IT_WLST_DEL - Distribution: Arbeitsvorrat geänderter Objekte
Data type: DIS_WLSTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_INPUT - falsche Eingabe
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PEG04_UPDATE_PEGWLST 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_i_werks | TYPE WERKS_D, " | |||
| lt_it_wlst_del | TYPE STANDARD TABLE OF DIS_WLST, " | |||
| lv_wrong_input | TYPE DIS_WLST, " | |||
| lv_i_grpnr | TYPE GRPSPNR, " | |||
| lv_i_aufnr | TYPE AUFNR, " | |||
| lv_i_ebeln | TYPE EBELN, " | |||
| lv_i_ebelp | TYPE EBELP, " | |||
| lv_i_del | TYPE XFLAG, " | |||
| lv_i_del_wlst_only | TYPE XFLAG. " |
|   CALL FUNCTION 'PEG04_UPDATE_PEGWLST' "Worklist für engelieferte Objekte |
| EXPORTING | ||
| I_WERKS | = lv_i_werks | |
| I_GRPNR | = lv_i_grpnr | |
| I_AUFNR | = lv_i_aufnr | |
| I_EBELN | = lv_i_ebeln | |
| I_EBELP | = lv_i_ebelp | |
| I_DEL | = lv_i_del | |
| I_DEL_WLST_ONLY | = lv_i_del_wlst_only | |
| TABLES | ||
| IT_WLST_DEL | = lt_it_wlst_del | |
| EXCEPTIONS | ||
| WRONG_INPUT = 1 | ||
| . " PEG04_UPDATE_PEGWLST | ||
ABAP code using 7.40 inline data declarations to call FM PEG04_UPDATE_PEGWLST
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.Search for further information about these or an SAP related objects