SAP J1UF_VAT_DECL_ANNEX2_XML Function Module for Declaration VAT (XML file). Annex 2
J1UF_VAT_DECL_ANNEX2_XML is a standard j1uf vat decl annex2 xml SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Declaration VAT (XML file). Annex 2 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 j1uf vat decl annex2 xml FM, simply by entering the name J1UF_VAT_DECL_ANNEX2_XML into the relevant SAP transaction such as SE37 or SE38.
Function Group: J1UF_XML
Program Name: SAPLJ1UF_XML
Main Program: SAPLJ1UF_XML
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J1UF_VAT_DECL_ANNEX2_XML 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 'J1UF_VAT_DECL_ANNEX2_XML'"Declaration VAT (XML file). Annex 2.
EXPORTING
* RPYEAR = "Fiscal Year
* REG_NUMBER = "Character Field of Length 12
* DECL_DATE = "Declaration submition date
* MANAGER = "Comment
* CHIEF_ACCOUNTANT = "Comment
* P_VAT = "Vat declaration base
* PATD = "Local file for upload/download
* F_REG = "Character length 2
* F_RAJ = "Sequence number
* F_DOC_TYPE = "Character length 1
* F_DOC_CNT = "Character length 1
* RPQUART = "Character Field Length = 10
* F_SUB_NUMB = "File Number
* F_HZ = "Character field length 1
* F_HZN = "Character field length 1
* F_HZU = "Character field length 1
* F_ROUND = "Round to INTEGER
* RPMONTH = "Character length 2
* FIRM_NAME = "Field of length 80
* EDRPOU = "CHAR08
* DRFO = "Character Field of Length 12
* INSD = "Character Field of Length 12
* INNR = "Character Field of Length 12
* INN = "Character Field of Length 12
TABLES
* P_ANN2 = "Reimbursement amount for annex 2 of VAT Declaration Ukraine
IMPORTING Parameters details for J1UF_VAT_DECL_ANNEX2_XML
RPYEAR - Fiscal Year
Data type: BKPF-GJAHROptional: Yes
Call by Reference: Yes
REG_NUMBER - Character Field of Length 12
Data type: CHAR12Optional: Yes
Call by Reference: Yes
DECL_DATE - Declaration submition date
Data type: J_1UTAXHELP-DECLDATEOptional: Yes
Call by Reference: Yes
MANAGER - Comment
Data type: CHAR50Optional: Yes
Call by Reference: Yes
CHIEF_ACCOUNTANT - Comment
Data type: CHAR50Optional: Yes
Call by Reference: Yes
P_VAT - Vat declaration base
Data type: UMSVPOptional: Yes
Call by Reference: Yes
PATD - Local file for upload/download
Data type: RLGRAP-FILENAMEOptional: Yes
Call by Reference: Yes
F_REG - Character length 2
Data type: CHAR_02Optional: Yes
Call by Reference: Yes
F_RAJ - Sequence number
Data type: SNUMMOptional: Yes
Call by Reference: Yes
F_DOC_TYPE - Character length 1
Data type: NUM1Optional: Yes
Call by Reference: Yes
F_DOC_CNT - Character length 1
Data type: NUM1Optional: Yes
Call by Reference: Yes
RPQUART - Character Field Length = 10
Data type: CHAR10Optional: Yes
Call by Reference: Yes
F_SUB_NUMB - File Number
Data type: SUBNOOptional: Yes
Call by Reference: Yes
F_HZ - Character field length 1
Data type: CHAR01Optional: Yes
Call by Reference: Yes
F_HZN - Character field length 1
Data type: CHAR01Optional: Yes
Call by Reference: Yes
F_HZU - Character field length 1
Data type: CHAR01Optional: Yes
Call by Reference: Yes
F_ROUND - Round to INTEGER
Data type: J_1UROUND00Optional: Yes
Call by Reference: Yes
RPMONTH - Character length 2
Data type: CHAR_02Optional: Yes
Call by Reference: Yes
FIRM_NAME - Field of length 80
Data type: CHAR80Optional: Yes
Call by Reference: Yes
EDRPOU - CHAR08
Data type: CHAR08Optional: Yes
Call by Reference: Yes
DRFO - Character Field of Length 12
Data type: CHAR12Optional: Yes
Call by Reference: Yes
INSD - Character Field of Length 12
Data type: CHAR12Optional: Yes
Call by Reference: Yes
INNR - Character Field of Length 12
Data type: CHAR12Optional: Yes
Call by Reference: Yes
INN - Character Field of Length 12
Data type: CHAR12Optional: Yes
Call by Reference: Yes
TABLES Parameters details for J1UF_VAT_DECL_ANNEX2_XML
P_ANN2 - Reimbursement amount for annex 2 of VAT Declaration Ukraine
Data type: J_1UF_TAX_AN2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for J1UF_VAT_DECL_ANNEX2_XML 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_p_ann2 | TYPE STANDARD TABLE OF J_1UF_TAX_AN2, " | |||
| lv_rpyear | TYPE BKPF-GJAHR, " | |||
| lv_reg_number | TYPE CHAR12, " | |||
| lv_decl_date | TYPE J_1UTAXHELP-DECLDATE, " | |||
| lv_manager | TYPE CHAR50, " | |||
| lv_chief_accountant | TYPE CHAR50, " | |||
| lv_p_vat | TYPE UMSVP, " | |||
| lv_patd | TYPE RLGRAP-FILENAME, " | |||
| lv_f_reg | TYPE CHAR_02, " | |||
| lv_f_raj | TYPE SNUMM, " | |||
| lv_f_doc_type | TYPE NUM1, " | |||
| lv_f_doc_cnt | TYPE NUM1, " | |||
| lv_rpquart | TYPE CHAR10, " | |||
| lv_f_sub_numb | TYPE SUBNO, " | |||
| lv_f_hz | TYPE CHAR01, " | |||
| lv_f_hzn | TYPE CHAR01, " | |||
| lv_f_hzu | TYPE CHAR01, " | |||
| lv_f_round | TYPE J_1UROUND00, " | |||
| lv_rpmonth | TYPE CHAR_02, " | |||
| lv_firm_name | TYPE CHAR80, " | |||
| lv_edrpou | TYPE CHAR08, " | |||
| lv_drfo | TYPE CHAR12, " | |||
| lv_insd | TYPE CHAR12, " | |||
| lv_innr | TYPE CHAR12, " | |||
| lv_inn | TYPE CHAR12. " |
|   CALL FUNCTION 'J1UF_VAT_DECL_ANNEX2_XML' "Declaration VAT (XML file). Annex 2 |
| EXPORTING | ||
| RPYEAR | = lv_rpyear | |
| REG_NUMBER | = lv_reg_number | |
| DECL_DATE | = lv_decl_date | |
| MANAGER | = lv_manager | |
| CHIEF_ACCOUNTANT | = lv_chief_accountant | |
| P_VAT | = lv_p_vat | |
| PATD | = lv_patd | |
| F_REG | = lv_f_reg | |
| F_RAJ | = lv_f_raj | |
| F_DOC_TYPE | = lv_f_doc_type | |
| F_DOC_CNT | = lv_f_doc_cnt | |
| RPQUART | = lv_rpquart | |
| F_SUB_NUMB | = lv_f_sub_numb | |
| F_HZ | = lv_f_hz | |
| F_HZN | = lv_f_hzn | |
| F_HZU | = lv_f_hzu | |
| F_ROUND | = lv_f_round | |
| RPMONTH | = lv_rpmonth | |
| FIRM_NAME | = lv_firm_name | |
| EDRPOU | = lv_edrpou | |
| DRFO | = lv_drfo | |
| INSD | = lv_insd | |
| INNR | = lv_innr | |
| INN | = lv_inn | |
| TABLES | ||
| P_ANN2 | = lt_p_ann2 | |
| . " J1UF_VAT_DECL_ANNEX2_XML | ||
ABAP code using 7.40 inline data declarations to call FM J1UF_VAT_DECL_ANNEX2_XML
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 GJAHR FROM BKPF INTO @DATA(ld_rpyear). | ||||
| "SELECT single DECLDATE FROM J_1UTAXHELP INTO @DATA(ld_decl_date). | ||||
| "SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_patd). | ||||
Search for further information about these or an SAP related objects