SAP EXIT_SAPLV50G_001 Function Module for Periodic declarations: User exit data selection: Selection









EXIT_SAPLV50G_001 is a standard exit saplv50g 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Periodic declarations: User exit data selection: Selection 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 exit saplv50g 001 FM, simply by entering the name EXIT_SAPLV50G_001 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLV50G_001 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 'EXIT_SAPLV50G_001'"Periodic declarations: User exit data selection: Selection
EXPORTING
I_COUNTRY = "Country of declaration
I_REPORTING_TYPE = "Declaration type (I, E, K, S, C)
I_DIRECTION = "Goods direction: 1 - import, 2 - export
I_REPORTING_YEAR = "Year of declaration
I_REPORTING_MONTH = "Month of declaration
* I_REPORTING_CURRENCY = 'DEM' "Currency of declaration

IMPORTING
E_EXCLUDE_FROM_SELECTION = "Select document item: Yes (' '), No ('X')

CHANGING
* C_MM_PURCH_ORDER_HEADER = "Field string: Document header MM purchase order
* C_MM_PURCH_ORDER_LINE_ITEM = "Field string: Document item MM purchase order
* C_SD_INVOICE_HEADER = "Field string: Document header SD billing document
* C_SD_INVOICE_LINE_ITEM = "Field string: Document item SD billing document
* C_FOREIGN_TRADE_HEADER = "Field string: Document header Foreign Trade data
* C_FOREIGN_TRADE_LINE_ITEM = "Field string: Document item Foreign Trade data
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
RV_FTT_CALL_SCREEN NOTRANSL: Call a dynpro
RV_FTT_GOV_ACCUMULATION_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Akkumulationsfelde
RV_FTT_GOV_ACC_CRITERIA_CHECK NOTRANSL: Außenhandel: Meldungen an Behörden: Überprüfung der Verdichtungs
RV_FTT_GOV_ADDR_ORGUNIT_SELECT NOTRANSL: Außenhandel: Meldungen an Behörden: Adressenauswahl
RV_FTT_GOV_CARRIER_USER_EXIT NOTRANSL: Außenhandel: Meldungen an Behörden: Selektionsreports: Träger Us
RV_FTT_GOV_CONTROL_DATA_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Steuerdaten - Tabe
RV_FTT_GOV_DISP_INFO_PERIODIC NOTRANSL: Außenhandel: Meldungen an Behörden: Übersicht Periode
RV_FTT_GOV_ENJOY_LOG_TEXTS_GET NOTRANSL: Außenhandel: Meldungen an Behörden: Protokolltexte Enjoy-Bild le
RV_FTT_GOV_ERROR_HANDLING NOTRANSL: Außenhandel: Meldungen an Behörden: Fehlerbehandlung Unvollständ
RV_FTT_GOV_ERROR_HANDLING_CEE NOTRANSL: Außenhandel: Meldungen an Behörden: Fehlerbehandlung Unvollständ
RV_FTT_GOV_EXCLUSION_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Steuerungskennzeic
RV_FTT_GOV_EXP_DOCUMENTS_EXCL NOTRANSL: Außenhandel: Meldungen an Behörden: Wegen Genehmigung ausgeschlo
RV_FTT_GOV_EXP_ITEM_TYPE_EXCL NOTRANSL: Außenhandel: Meldungen an Behörden: Ausgeschlossene Positionstyp
RV_FTT_GOV_EXP_LIC_TYPES_EXCL NOTRANSL: Außenhandel: Meldungen an Behörden: Ausgeschlossene Kontrollstam
RV_FTT_GOV_FIELDTEXTS_GET NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen von Texten zu Feldern
RV_FTT_GOV_FIELD_SELECT_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Feldauswahl aus T6
RV_FTT_GOV_ID_CODES_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Ermitteln der Kennummern
RV_FTT_GOV_INCOMPLETION_CHECK NOTRANSL: Außenhandel: Meldungen an Behörden: Vollständigkeit Arbeitsvorrä
RV_FTT_GOV_INCOMPLETION_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Unvollständigkeits
RV_FTT_GOV_INCOMP_LOG_DISPLAY NOTRANSL: Außenhandel: Meldungen an Behörden: Anzeige Unvollständigkeitspr
RV_FTT_GOV_INTRA_DATA_SENDER NOTRANSL: Außenhandel: Meldungen an Behörden: INTRASTAT - Angaben des Anme
RV_FTT_GOV_ISSUE_LOG_DIS_REP NOTRANSL: Außenhandel: Meldungen an Behörden: Datensatzprotokoll Diskette
RV_FTT_GOV_ISSUE_LOG_SEL_REP NOTRANSL: Außenhandel: Meldungen an Behörden: Fehlerbehandlung Unvollständ
RV_FTT_GOV_ISSUE_LOG_SEL_R_CEE NOTRANSL: Außenhandel: Meldungen an Behörden: Fehlerbehandlung Unvollständ
RV_FTT_GOV_LOG_DISPLAY NOTRANSL: Außenhandel: Meldungen an Behörden: Ausgabe des Selektionsprotok
RV_FTT_GOV_LOW_WEIGHT_HANDLING NOTRANSL: Außenhandel: Meldungen an Behörden: Gewichte kleiner 0,001 KG be
RV_FTT_GOV_MEMORY_HANDLING NOTRANSL: Außenhandel: Meldungen an Behörden: Key für Datenexport ins Memo
RV_FTT_GOV_PLANTS_SELECT NOTRANSL: Außenhandel: Meldungen an Behörden: Wertehilfe für Werke
RV_FTT_GOV_PRINT_SELECT NOTRANSL: Außenhandel: Meldungen an Behörden: Druckausgabe mit/ohne Selekt
RV_FTT_GOV_PROCESSING NOTRANSL: Außenhandel: Meldungen an Behörden: Verdichten von Datensätzen
RV_FTT_GOV_PROCESSING_CEE NOTRANSL: Außenhandel: Meldungen an Behörden: Verdichten von Datensätzen
RV_FTT_GOV_REPORT_INFO_GET NOTRANSL: Außenhandel: Meldungen an Behörden: Reportinfos ermitteln
RV_FTT_GOV_SEGMENT_DISPLAY NOTRANSL: Außenhandel: Meldungen an Behörden: Ausgabe des Segmentprotokoll
RV_FTT_GOV_SEQUENCE_NO_UPDATE NOTRANSL: Außenhandel: Meldungen an Behörden: Ordnungsbegriff schreiben
RV_FTT_GOV_SPEC_REGULATION_GET NOTRANSL: Meldungen an Behörden: Spezialfälle - Länder/Regionen - Einschlu
RV_FTT_GOV_TABLES_INITIALIZE NOTRANSL: Außenhandel: Meldungen an Behörden: Initialisieren interne Tabel
RV_FTT_GOV_TABLE_READ NOTRANSL: Außenhandel: Meldungen an Behörden: Lesen der Arbeitsvorräte
RV_FTT_GOV_TABLE_REORGANIZE NOTRANSL: Außenhandel: Meldungen an Behörden: Reorganisation Arbeitsvorrät
RV_FTT_GOV_TECH_INFO_GET NOTRANSL: Außenhandel: Meldungen an Behörden: Technische Infos aus V50G-Me
RV_FTT_GOV_UPDATE_DATA NOTRANSL: Außenhandel: Meldung an Behörden: Daten verbuchen
RV_FTT_GOV_UPDATE_DATA_PREPARE NOTRANSL: Außenhandel: Meldung an Behörden: Vorbereitung Verbuchung
RV_FTT_GOV_VALUES_CONVERT NOTRANSL: Außenhandel: Meldungen an Behörden: Umrechnung Rechnungswert / G
RV_FTT_LAND_HELP_READ NOTRANSL: F4-Hilfe für das Land
RV_FTT_PRINT_EXPORT_LIC_FETCH NOTRANSL: Außenhandel: Druck: Ermittlung aller Kontrollstämme zu einer Fak
RV_FTT_REGIO_HELP_READ NOTRANSL: F4-Hilfe für die Region

IMPORTING Parameters details for EXIT_SAPLV50G_001

I_COUNTRY - Country of declaration

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

I_REPORTING_TYPE - Declaration type (I, E, K, S, C)

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

I_DIRECTION - Goods direction: 1 - import, 2 - export

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

I_REPORTING_YEAR - Year of declaration

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

I_REPORTING_MONTH - Month of declaration

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

I_REPORTING_CURRENCY - Currency of declaration

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

EXPORTING Parameters details for EXIT_SAPLV50G_001

E_EXCLUDE_FROM_SELECTION - Select document item: Yes (' '), No ('X')

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

CHANGING Parameters details for EXIT_SAPLV50G_001

C_MM_PURCH_ORDER_HEADER - Field string: Document header MM purchase order

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

C_MM_PURCH_ORDER_LINE_ITEM - Field string: Document item MM purchase order

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

C_SD_INVOICE_HEADER - Field string: Document header SD billing document

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

C_SD_INVOICE_LINE_ITEM - Field string: Document item SD billing document

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

C_FOREIGN_TRADE_HEADER - Field string: Document header Foreign Trade data

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

C_FOREIGN_TRADE_LINE_ITEM - Field string: Document item Foreign Trade data

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

Copy and paste ABAP code example for EXIT_SAPLV50G_001 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_country  TYPE T609I-LAND1, "   
lv_c_mm_purch_order_header  TYPE EKKO, "   
lv_e_exclude_from_selection  TYPE C, "   
lv_i_reporting_type  TYPE C, "   
lv_c_mm_purch_order_line_item  TYPE EKPO, "   
lv_i_direction  TYPE T609I-VEREI, "   
lv_c_sd_invoice_header  TYPE VBRK, "   
lv_i_reporting_year  TYPE VEIAV-DATUMJAHR, "   
lv_c_sd_invoice_line_item  TYPE VBRP, "   
lv_i_reporting_month  TYPE VEIAV-DATUMMONA, "   
lv_c_foreign_trade_header  TYPE EIKP, "   
lv_i_reporting_currency  TYPE RVSEL-GWAER, "   'DEM'
lv_c_foreign_trade_line_item  TYPE EIPO. "   

  CALL FUNCTION 'EXIT_SAPLV50G_001'  "Periodic declarations: User exit data selection: Selection
    EXPORTING
         I_COUNTRY = lv_i_country
         I_REPORTING_TYPE = lv_i_reporting_type
         I_DIRECTION = lv_i_direction
         I_REPORTING_YEAR = lv_i_reporting_year
         I_REPORTING_MONTH = lv_i_reporting_month
         I_REPORTING_CURRENCY = lv_i_reporting_currency
    IMPORTING
         E_EXCLUDE_FROM_SELECTION = lv_e_exclude_from_selection
    CHANGING
         C_MM_PURCH_ORDER_HEADER = lv_c_mm_purch_order_header
         C_MM_PURCH_ORDER_LINE_ITEM = lv_c_mm_purch_order_line_item
         C_SD_INVOICE_HEADER = lv_c_sd_invoice_header
         C_SD_INVOICE_LINE_ITEM = lv_c_sd_invoice_line_item
         C_FOREIGN_TRADE_HEADER = lv_c_foreign_trade_header
         C_FOREIGN_TRADE_LINE_ITEM = lv_c_foreign_trade_line_item
. " EXIT_SAPLV50G_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLV50G_001

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 LAND1 FROM T609I INTO @DATA(ld_i_country).
 
 
 
 
 
"SELECT single VEREI FROM T609I INTO @DATA(ld_i_direction).
 
 
"SELECT single DATUMJAHR FROM VEIAV INTO @DATA(ld_i_reporting_year).
 
 
"SELECT single DATUMMONA FROM VEIAV INTO @DATA(ld_i_reporting_month).
 
 
"SELECT single GWAER FROM RVSEL INTO @DATA(ld_i_reporting_currency).
DATA(ld_i_reporting_currency) = 'DEM'.
 
 


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!