SAP VDBEPP_CONSTRUCT Function Module for Create Flows from Several Condition Headers









VDBEPP_CONSTRUCT is a standard vdbepp construct SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Flows from Several Condition Headers 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 vdbepp construct FM, simply by entering the name VDBEPP_CONSTRUCT into the relevant SAP transaction such as SE37 or SE38.

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



Function VDBEPP_CONSTRUCT 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 'VDBEPP_CONSTRUCT'"Create Flows from Several Condition Headers
EXPORTING
IVDARL = "Inhalt Vdarl
* I_NO_CHECK_BUDAT = ' ' "'X' keine Prüfung ob Buchungen überlappen
* I_CHECK_BUDAT = '00000000' "wenn nicht leer, Prüfung ob danach Buchu
* I_BUDATMESSAGE = ' ' "'X' bei Storno Istsatz keine Exception nur Meld.
I_PROL_NR = "Rollover Number
* I_ARC_DOC_REC = "Table Type for VDARC_DOC_REC

IMPORTING
E_DATUM_LFZ = "Laufzeitende des Datums

TABLES
IVDBEKI = "VDBEKI von Datenbank
IVDBEPI = "VDBEPI von Datenbank
IVZZKOKO = "alle Kokos, die vertragsrelevant sind
I_VZZKOPO = "VDBEKI von Datenbank
NEW_VDBEPP = "Neue VDBEPP >> wird von FB erstellt
OLD_VDBEPP = "Alte VDBEPP von Datenbank
I_VZZKOPA = "Neue KOPA

EXCEPTIONS
KEINE_AUSZAHLUNG = 1 NO_KOKO = 2 STORNO_ISTSATZ = 3 ARC_COLLISION = 4
.



IMPORTING Parameters details for VDBEPP_CONSTRUCT

IVDARL - Inhalt Vdarl

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

I_NO_CHECK_BUDAT - 'X' keine Prüfung ob Buchungen überlappen

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

I_CHECK_BUDAT - wenn nicht leer, Prüfung ob danach Buchu

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

I_BUDATMESSAGE - 'X' bei Storno Istsatz keine Exception nur Meld.

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

I_PROL_NR - Rollover Number

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

I_ARC_DOC_REC - Table Type for VDARC_DOC_REC

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

EXPORTING Parameters details for VDBEPP_CONSTRUCT

E_DATUM_LFZ - Laufzeitende des Datums

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

TABLES Parameters details for VDBEPP_CONSTRUCT

IVDBEKI - VDBEKI von Datenbank

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

IVDBEPI - VDBEPI von Datenbank

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

IVZZKOKO - alle Kokos, die vertragsrelevant sind

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

I_VZZKOPO - VDBEKI von Datenbank

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

NEW_VDBEPP - Neue VDBEPP >> wird von FB erstellt

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

OLD_VDBEPP - Alte VDBEPP von Datenbank

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

I_VZZKOPA - Neue KOPA

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

EXCEPTIONS details

KEINE_AUSZAHLUNG - keine Auszahlung vorhanden, kein Plansatz gener.

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

NO_KOKO - Kein Satz in IVZZKOKO

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

STORNO_ISTSATZ - Satz muß erst storniert werden

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

ARC_COLLISION - Plansätze kollidieren mit Archivierungszeitraum

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for VDBEPP_CONSTRUCT 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_ivdarl  TYPE VDARL, "   
lt_ivdbeki  TYPE STANDARD TABLE OF VDBEKI, "   
lv_e_datum_lfz  TYPE VDARL-DRUECK, "   
lv_keine_auszahlung  TYPE VDARL, "   
lt_ivdbepi  TYPE STANDARD TABLE OF VDBEPI, "   
lv_no_koko  TYPE VDBEPI, "   
lv_i_no_check_budat  TYPE VDBEPI, "   ' '
lt_ivzzkoko  TYPE STANDARD TABLE OF VZZKOKO, "   
lv_i_check_budat  TYPE VZZKOKO, "   '00000000'
lv_storno_istsatz  TYPE VZZKOKO, "   
lt_i_vzzkopo  TYPE STANDARD TABLE OF VVZZKOPO, "   
lv_arc_collision  TYPE VVZZKOPO, "   
lv_i_budatmessage  TYPE VVZZKOPO, "   ' '
lv_i_prol_nr  TYPE VDPOPO-RPNR, "   
lt_new_vdbepp  TYPE STANDARD TABLE OF VDBEPP, "   
lt_old_vdbepp  TYPE STANDARD TABLE OF VDBEPP, "   
lv_i_arc_doc_rec  TYPE TRTY_VDARC_DOC_REC, "   
lt_i_vzzkopa  TYPE STANDARD TABLE OF VZZKOPA. "   

  CALL FUNCTION 'VDBEPP_CONSTRUCT'  "Create Flows from Several Condition Headers
    EXPORTING
         IVDARL = lv_ivdarl
         I_NO_CHECK_BUDAT = lv_i_no_check_budat
         I_CHECK_BUDAT = lv_i_check_budat
         I_BUDATMESSAGE = lv_i_budatmessage
         I_PROL_NR = lv_i_prol_nr
         I_ARC_DOC_REC = lv_i_arc_doc_rec
    IMPORTING
         E_DATUM_LFZ = lv_e_datum_lfz
    TABLES
         IVDBEKI = lt_ivdbeki
         IVDBEPI = lt_ivdbepi
         IVZZKOKO = lt_ivzzkoko
         I_VZZKOPO = lt_i_vzzkopo
         NEW_VDBEPP = lt_new_vdbepp
         OLD_VDBEPP = lt_old_vdbepp
         I_VZZKOPA = lt_i_vzzkopa
    EXCEPTIONS
        KEINE_AUSZAHLUNG = 1
        NO_KOKO = 2
        STORNO_ISTSATZ = 3
        ARC_COLLISION = 4
. " VDBEPP_CONSTRUCT




ABAP code using 7.40 inline data declarations to call FM VDBEPP_CONSTRUCT

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 DRUECK FROM VDARL INTO @DATA(ld_e_datum_lfz).
 
 
 
 
DATA(ld_i_no_check_budat) = ' '.
 
 
DATA(ld_i_check_budat) = '00000000'.
 
 
 
 
DATA(ld_i_budatmessage) = ' '.
 
"SELECT single RPNR FROM VDPOPO INTO @DATA(ld_i_prol_nr).
 
 
 
 
 


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!