SAP RV_EXPORT_CONTROL Function Module for NOTRANSL: Gesetzlichen Kontrolle: Durchführung der Ges. Kontrolle für eine









RV_EXPORT_CONTROL is a standard rv export control 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: Gesetzlichen Kontrolle: Durchführung der Ges. Kontrolle für eine 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 rv export control FM, simply by entering the name RV_EXPORT_CONTROL into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_EXPORT_CONTROL 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 'RV_EXPORT_CONTROL'"NOTRANSL: Gesetzlichen Kontrolle: Durchführung der Ges. Kontrolle für eine
EXPORTING
* SIMUL_FLG = ' ' "Indicator : Simulation Modus
* EXPORT_DATE_NEW = SY-DATUM "Export Date : New
* EXPORT_DATE_OLD = '00000000' "Export Date : Old
* DELIVERY_FLG = ' ' "Indicator : Call from Delivery
* ORDER_TYPE = ' ' "Indicator : SD Document Type
* REDETERMINATION = ' ' "Indicator : New Determination
* I_PROT_ACTIVE = ' ' "Kennzeichen : Protokoll ausgeben beim Sichern
* I_LOG_LEVEL = ' ' "Kennzeichen : Ebene des zu sichernden Protok.

IMPORTING
E_PROTOCOL = "Log flag:E_ANALY is not empty

TABLES
I_XVBAP = "SD Document: Item Data : New
E_YVBEX = "SD Document: Export Data : Old
E_XEMBK = "License Master: New
* E_ANALY = "Analysis Result from Export Control
I_YVBAP = "SD Document: Item Data : Old
I_XVBPA = "SD Document: Partner Data : New
I_YVBPA = "SD Document: Partner Data : Old
* I_XVBKD = "SD Document: Business Data : New
* I_YVBKD = "SD Document: Business Data : Old
* I_XVBEP = "Vertriebsbeleg: Einteilungen : Neu
* I_YVBEP = "Vertriebsbeleg: Einteilungen : Alt
E_XVBEX = "SD Document: Export Data : New
.




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_SAPLV52E_001 SD Legal Control: User exit for additional license checks

IMPORTING Parameters details for RV_EXPORT_CONTROL

SIMUL_FLG - Indicator : Simulation Modus

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

EXPORT_DATE_NEW - Export Date : New

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

EXPORT_DATE_OLD - Export Date : Old

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

DELIVERY_FLG - Indicator : Call from Delivery

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

ORDER_TYPE - Indicator : SD Document Type

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

REDETERMINATION - Indicator : New Determination

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

I_PROT_ACTIVE - Kennzeichen : Protokoll ausgeben beim Sichern

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

I_LOG_LEVEL - Kennzeichen : Ebene des zu sichernden Protok.

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

EXPORTING Parameters details for RV_EXPORT_CONTROL

E_PROTOCOL - Log flag:E_ANALY is not empty

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

TABLES Parameters details for RV_EXPORT_CONTROL

I_XVBAP - SD Document: Item Data : New

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

E_YVBEX - SD Document: Export Data : Old

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

E_XEMBK - License Master: New

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

E_ANALY - Analysis Result from Export Control

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

I_YVBAP - SD Document: Item Data : Old

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

I_XVBPA - SD Document: Partner Data : New

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

I_YVBPA - SD Document: Partner Data : Old

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

I_XVBKD - SD Document: Business Data : New

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

I_YVBKD - SD Document: Business Data : Old

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

I_XVBEP - Vertriebsbeleg: Einteilungen : Neu

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

I_YVBEP - Vertriebsbeleg: Einteilungen : Alt

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

E_XVBEX - SD Document: Export Data : New

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

Copy and paste ABAP code example for RV_EXPORT_CONTROL 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:
lt_i_xvbap  TYPE STANDARD TABLE OF VBAPVB, "   
lv_simul_flg  TYPE VBAPVB, "   ' '
lv_e_protocol  TYPE VBAPVB, "   
lt_e_yvbex  TYPE STANDARD TABLE OF VBEXVB, "   
lt_e_xembk  TYPE STANDARD TABLE OF EMBKVB, "   
lt_e_analy  TYPE STANDARD TABLE OF VBEXAN, "   
lt_i_yvbap  TYPE STANDARD TABLE OF VBAPVB, "   
lv_export_date_new  TYPE VBAK-VDATU, "   SY-DATUM
lt_i_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lv_export_date_old  TYPE VBAK-VDATU, "   '00000000'
lt_i_yvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lv_delivery_flg  TYPE VBPAVB, "   ' '
lt_i_xvbkd  TYPE STANDARD TABLE OF VBKDVB, "   
lv_order_type  TYPE TVAK-VBTYP, "   ' '
lt_i_yvbkd  TYPE STANDARD TABLE OF VBKDVB, "   
lv_redetermination  TYPE RVSEL-XFELD, "   ' '
lt_i_xvbep  TYPE STANDARD TABLE OF VBEPVB, "   
lv_i_prot_active  TYPE TVAK-EXDIA, "   ' '
lt_i_yvbep  TYPE STANDARD TABLE OF VBEPVB, "   
lv_i_log_level  TYPE TVAK-EXCLG, "   ' '
lt_e_xvbex  TYPE STANDARD TABLE OF VBEXVB. "   

  CALL FUNCTION 'RV_EXPORT_CONTROL'  "NOTRANSL: Gesetzlichen Kontrolle: Durchführung der Ges. Kontrolle für eine
    EXPORTING
         SIMUL_FLG = lv_simul_flg
         EXPORT_DATE_NEW = lv_export_date_new
         EXPORT_DATE_OLD = lv_export_date_old
         DELIVERY_FLG = lv_delivery_flg
         ORDER_TYPE = lv_order_type
         REDETERMINATION = lv_redetermination
         I_PROT_ACTIVE = lv_i_prot_active
         I_LOG_LEVEL = lv_i_log_level
    IMPORTING
         E_PROTOCOL = lv_e_protocol
    TABLES
         I_XVBAP = lt_i_xvbap
         E_YVBEX = lt_e_yvbex
         E_XEMBK = lt_e_xembk
         E_ANALY = lt_e_analy
         I_YVBAP = lt_i_yvbap
         I_XVBPA = lt_i_xvbpa
         I_YVBPA = lt_i_yvbpa
         I_XVBKD = lt_i_xvbkd
         I_YVBKD = lt_i_yvbkd
         I_XVBEP = lt_i_xvbep
         I_YVBEP = lt_i_yvbep
         E_XVBEX = lt_e_xvbex
. " RV_EXPORT_CONTROL




ABAP code using 7.40 inline data declarations to call FM RV_EXPORT_CONTROL

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.

 
DATA(ld_simul_flg) = ' '.
 
 
 
 
 
 
"SELECT single VDATU FROM VBAK INTO @DATA(ld_export_date_new).
DATA(ld_export_date_new) = SY-DATUM.
 
 
"SELECT single VDATU FROM VBAK INTO @DATA(ld_export_date_old).
DATA(ld_export_date_old) = '00000000'.
 
 
DATA(ld_delivery_flg) = ' '.
 
 
"SELECT single VBTYP FROM TVAK INTO @DATA(ld_order_type).
DATA(ld_order_type) = ' '.
 
 
"SELECT single XFELD FROM RVSEL INTO @DATA(ld_redetermination).
DATA(ld_redetermination) = ' '.
 
 
"SELECT single EXDIA FROM TVAK INTO @DATA(ld_i_prot_active).
DATA(ld_i_prot_active) = ' '.
 
 
"SELECT single EXCLG FROM TVAK INTO @DATA(ld_i_log_level).
DATA(ld_i_log_level) = ' '.
 
 


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!