SAP RV_FTT_GOV_ID_CODES_READ Function Module for NOTRANSL: Außenhandel: Meldungen an Behörden: Ermitteln der Kennummern









RV_FTT_GOV_ID_CODES_READ is a standard rv ftt gov id codes read 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: Außenhandel: Meldungen an Behörden: Ermitteln der Kennummern 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 ftt gov id codes read FM, simply by entering the name RV_FTT_GOV_ID_CODES_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function RV_FTT_GOV_ID_CODES_READ 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_FTT_GOV_ID_CODES_READ'"NOTRANSL: Außenhandel: Meldungen an Behörden: Ermitteln der Kennummern
EXPORTING
I_COMPANY_CODE = "Company Code
I_COUNTRY = "Country Key
I_REPORTING_TYPE = "

IMPORTING
E_INTRASTAT_COMPANY_ID = "
E_KOBRA_CUSTOMS_ID = "
E_VAR_COMPANY_ID = "
E_VAR_MATERIAL_ID = "
E_AERP_SHIPPERS_AUTH_ID = "
E_AERP_SHIPPERS_EIN_NO = "
E_VAT_NO = "
E_INTRASTAT_COMPANY_ADD_ID = "
E_INTRASTAT_REP_NAME = "
E_INTRASTAT_REP_LOCAT = "
E_INTRASTAT_INSTAT_AUTH_CODE = "
E_EXTRASTAT_ID = "
E_EXTRASTAT_COMPANY_ID = "
E_EXTRASTAT_MATERIAL_ID = "
E_KOBRA_COMPANY_ID = "

EXCEPTIONS
COMPANY_CODE_INITIAL = 1 COUNTRY_INITIAL = 2 WRONG_REPORTING_TYPE = 3
.




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_SAPLV50G_001 Periodic declarations: User exit data selection: Selection
EXIT_SAPLV50G_002 Periodic declarations: User exit data selection: DB update

IMPORTING Parameters details for RV_FTT_GOV_ID_CODES_READ

I_COMPANY_CODE - Company Code

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

I_COUNTRY - Country Key

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

I_REPORTING_TYPE -

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

EXPORTING Parameters details for RV_FTT_GOV_ID_CODES_READ

E_INTRASTAT_COMPANY_ID -

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

E_KOBRA_CUSTOMS_ID -

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

E_VAR_COMPANY_ID -

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

E_VAR_MATERIAL_ID -

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

E_AERP_SHIPPERS_AUTH_ID -

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

E_AERP_SHIPPERS_EIN_NO -

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

E_VAT_NO -

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

E_INTRASTAT_COMPANY_ADD_ID -

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

E_INTRASTAT_REP_NAME -

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

E_INTRASTAT_REP_LOCAT -

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

E_INTRASTAT_INSTAT_AUTH_CODE -

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

E_EXTRASTAT_ID -

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

E_EXTRASTAT_COMPANY_ID -

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

E_EXTRASTAT_MATERIAL_ID -

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

E_KOBRA_COMPANY_ID -

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

EXCEPTIONS details

COMPANY_CODE_INITIAL - Company code has initial value

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

COUNTRY_INITIAL -

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

WRONG_REPORTING_TYPE - Message Category Does Not Exist

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

Copy and paste ABAP code example for RV_FTT_GOV_ID_CODES_READ 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_company_code  TYPE T001-BUKRS, "   
lv_company_code_initial  TYPE T001, "   
lv_e_intrastat_company_id  TYPE T001N-INKNR, "   
lv_e_kobra_customs_id  TYPE V50G_KOBRA_CUSTOMS_ID, "   
lv_e_var_company_id  TYPE T001N-EXFNR, "   
lv_e_var_material_id  TYPE T001N-EXMNR, "   
lv_e_aerp_shippers_auth_id  TYPE V50G_AERP_SHIPPERS_AUTH_ID, "   
lv_e_aerp_shippers_ein_no  TYPE V50G_AERP_SHIPPERS_EIN_NO, "   
lv_e_vat_no  TYPE T001N-STCEG, "   
lv_i_country  TYPE T609I-LAND1, "   
lv_country_initial  TYPE T609I, "   
lv_e_intrastat_company_add_id  TYPE T001N-INZNR, "   
lv_i_reporting_type  TYPE V50G_I_REPORTING_TYPE, "   
lv_e_intrastat_rep_name  TYPE V50G_INTRASTAT_REP_NAME, "   
lv_wrong_reporting_type  TYPE V50G_INTRASTAT_REP_NAME, "   
lv_e_intrastat_rep_locat  TYPE V50G_INTRASTAT_REP_LOCAT, "   
lv_e_intrastat_instat_auth_code  TYPE V50G_INTRASTAT_INSTAT_AUTH_COD, "   
lv_e_extrastat_id  TYPE T001N-EXTKN, "   
lv_e_extrastat_company_id  TYPE T001N-EXFNR, "   
lv_e_extrastat_material_id  TYPE T001N-EXMNR, "   
lv_e_kobra_company_id  TYPE V50G_KOBRA_COMPANY_ID. "   

  CALL FUNCTION 'RV_FTT_GOV_ID_CODES_READ'  "NOTRANSL: Außenhandel: Meldungen an Behörden: Ermitteln der Kennummern
    EXPORTING
         I_COMPANY_CODE = lv_i_company_code
         I_COUNTRY = lv_i_country
         I_REPORTING_TYPE = lv_i_reporting_type
    IMPORTING
         E_INTRASTAT_COMPANY_ID = lv_e_intrastat_company_id
         E_KOBRA_CUSTOMS_ID = lv_e_kobra_customs_id
         E_VAR_COMPANY_ID = lv_e_var_company_id
         E_VAR_MATERIAL_ID = lv_e_var_material_id
         E_AERP_SHIPPERS_AUTH_ID = lv_e_aerp_shippers_auth_id
         E_AERP_SHIPPERS_EIN_NO = lv_e_aerp_shippers_ein_no
         E_VAT_NO = lv_e_vat_no
         E_INTRASTAT_COMPANY_ADD_ID = lv_e_intrastat_company_add_id
         E_INTRASTAT_REP_NAME = lv_e_intrastat_rep_name
         E_INTRASTAT_REP_LOCAT = lv_e_intrastat_rep_locat
         E_INTRASTAT_INSTAT_AUTH_CODE = lv_e_intrastat_instat_auth_code
         E_EXTRASTAT_ID = lv_e_extrastat_id
         E_EXTRASTAT_COMPANY_ID = lv_e_extrastat_company_id
         E_EXTRASTAT_MATERIAL_ID = lv_e_extrastat_material_id
         E_KOBRA_COMPANY_ID = lv_e_kobra_company_id
    EXCEPTIONS
        COMPANY_CODE_INITIAL = 1
        COUNTRY_INITIAL = 2
        WRONG_REPORTING_TYPE = 3
. " RV_FTT_GOV_ID_CODES_READ




ABAP code using 7.40 inline data declarations to call FM RV_FTT_GOV_ID_CODES_READ

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 BUKRS FROM T001 INTO @DATA(ld_i_company_code).
 
 
"SELECT single INKNR FROM T001N INTO @DATA(ld_e_intrastat_company_id).
 
 
"SELECT single EXFNR FROM T001N INTO @DATA(ld_e_var_company_id).
 
"SELECT single EXMNR FROM T001N INTO @DATA(ld_e_var_material_id).
 
 
 
"SELECT single STCEG FROM T001N INTO @DATA(ld_e_vat_no).
 
"SELECT single LAND1 FROM T609I INTO @DATA(ld_i_country).
 
 
"SELECT single INZNR FROM T001N INTO @DATA(ld_e_intrastat_company_add_id).
 
 
 
 
 
 
"SELECT single EXTKN FROM T001N INTO @DATA(ld_e_extrastat_id).
 
"SELECT single EXFNR FROM T001N INTO @DATA(ld_e_extrastat_company_id).
 
"SELECT single EXMNR FROM T001N INTO @DATA(ld_e_extrastat_material_id).
 
 


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!