SAP RV_EXPORT_EMBARGO_CHECK Function Module for NOTRANSL: Exportkontrolle: Embargoprüfung eines Bestimmungslandes
RV_EXPORT_EMBARGO_CHECK is a standard rv export embargo check 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: Exportkontrolle: Embargoprüfung eines Bestimmungslandes 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 embargo check FM, simply by entering the name RV_EXPORT_EMBARGO_CHECK 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_EMBARGO_CHECK 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_EMBARGO_CHECK'"NOTRANSL: Exportkontrolle: Embargoprüfung eines Bestimmungslandes.
EXPORTING
* I_EXLND = ' ' "Country Key Country of Destination
* I_KUNNR = ' ' "Customer Number
* I_GUEDA = ' ' "Export Date
* I_PROT_ACTIVE = ' ' "Kennzeichen: Protokoll ausgeben
IMPORTING
E_EMBARGO = "Result of Check
TABLES
* E_ANALY = "Results Log
EXCEPTIONS
NOT_FOUND = 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_SAPLV52E_001 SD Legal Control: User exit for additional license checks
IMPORTING Parameters details for RV_EXPORT_EMBARGO_CHECK
I_EXLND - Country Key Country of Destination
Data type: T606K-EXLNDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KUNNR - Customer Number
Data type: KNA1-KUNNRDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GUEDA - Export Date
Data type: T606K-GUEDADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROT_ACTIVE - Kennzeichen: Protokoll ausgeben
Data type: TVAK-EXDIADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RV_EXPORT_EMBARGO_CHECK
E_EMBARGO - Result of Check
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RV_EXPORT_EMBARGO_CHECK
E_ANALY - Results Log
Data type: VBEXANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Data Record not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RV_EXPORT_EMBARGO_CHECK 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_e_analy | TYPE STANDARD TABLE OF VBEXAN, " | |||
| lv_i_exlnd | TYPE T606K-EXLND, " ' ' | |||
| lv_e_embargo | TYPE SY-SUBRC, " | |||
| lv_not_found | TYPE SY, " | |||
| lv_i_kunnr | TYPE KNA1-KUNNR, " ' ' | |||
| lv_i_gueda | TYPE T606K-GUEDA, " ' ' | |||
| lv_i_prot_active | TYPE TVAK-EXDIA. " ' ' |
|   CALL FUNCTION 'RV_EXPORT_EMBARGO_CHECK' "NOTRANSL: Exportkontrolle: Embargoprüfung eines Bestimmungslandes |
| EXPORTING | ||
| I_EXLND | = lv_i_exlnd | |
| I_KUNNR | = lv_i_kunnr | |
| I_GUEDA | = lv_i_gueda | |
| I_PROT_ACTIVE | = lv_i_prot_active | |
| IMPORTING | ||
| E_EMBARGO | = lv_e_embargo | |
| TABLES | ||
| E_ANALY | = lt_e_analy | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " RV_EXPORT_EMBARGO_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM RV_EXPORT_EMBARGO_CHECK
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 EXLND FROM T606K INTO @DATA(ld_i_exlnd). | ||||
| DATA(ld_i_exlnd) | = ' '. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_embargo). | ||||
| "SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_kunnr). | ||||
| DATA(ld_i_kunnr) | = ' '. | |||
| "SELECT single GUEDA FROM T606K INTO @DATA(ld_i_gueda). | ||||
| DATA(ld_i_gueda) | = ' '. | |||
| "SELECT single EXDIA FROM TVAK INTO @DATA(ld_i_prot_active). | ||||
| DATA(ld_i_prot_active) | = ' '. | |||
Search for further information about these or an SAP related objects