SAP Reports / Programs

J_1A_ANIV SAP ABAP Report - AFIP Response File (Annexure IV) Upload (Argentina)







J_1A_ANIV is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter J_1A_ANIV into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

J1AANIV - AFIP Response File Upload


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT J_1A_ANIV. "Basic submit
SUBMIT J_1A_ANIV AND RETURN. "Return to original report after report execution complete
SUBMIT J_1A_ANIV VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_FILE1 = File Path
Selection Text: P_EXP = Export
Selection Text: P_DOM = Domestic
Title: AFIP Response File (Annexure IV) Upload (Argentina)
Text Symbol: 023 = Rejected
Text Symbol: 022 = Approved with Reservations
Text Symbol: 021 = Approved
Text Symbol: 020 = Payment Block
Text Symbol: 019 = Do You wish to continue
Text Symbol: 018 = CAE table updated successfully with CAE No.
Text Symbol: 017 = AEI Annxure IV
Text Symbol: 016 = CAE Payment Due Date
Text Symbol: 015 = Rejection Code
Text Symbol: 014 = CAE Date
Text Symbol: 013 = CAE Number
Text Symbol: 012 = CAE Rejection Code
Text Symbol: 011 = CAE Status
Text Symbol: 010 = Posting Date
Text Symbol: 009 = Reference Document Type
Text Symbol: 008 = Fiscal Year of Reference Document No.
Text Symbol: 007 = Reference Document No.
Text Symbol: 006 = Customer No.
Text Symbol: 005 = Official Document No.
Text Symbol: 004 = Print Character
Text Symbol: 003 = Branch
Text Symbol: 002 = Company Code
Text Symbol: 001 = Path for Annexure IV


INCLUDES used within this REPORT J_1A_ANIV

INCLUDE J_1A_ANIV_TOP.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

KD_GET_FILENAME_ON_F4 CALL FUNCTION 'KD_GET_FILENAME_ON_F4' EXPORTING static = 'X' CHANGING file_name = p_file1.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = s_filename filetype = 'ASC' has_field_separator = ' ' * HEADER_LENGTH = 0 read_by_line = 'X' * DAT_MODE = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * CHECK_BOM = ' ' * VIRUS_SCAN_PROFILE = * NO_AUTH_CHECK = ' ' * IMPORTING * FILELENGTH = * HEADER = TABLES data_tab = readinboundfile[] EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17 .

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC * EXPORTING defaultoption = 'Y' textline1 = text-018 " CAE table updated " successfully with the CAE No textline2 = text-019 " Do wish to continue.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' IMPORTING et_events = t_events.

REUSE_ALV_GRID_DISPLAY

REUSE_ALV_GRID_DISPLAY_LVC * call function 'REUSE_ALV_GRID_DISPLAY' CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC' EXPORTING i_callback_program = gd_repid i_callback_pf_status_set = 'HANDLE_PF_STATUS_SET' i_callback_user_command = 'HANDLE_USER_COMMAND' is_layout_lvc = gd_layout it_fieldcat_lvc = it_fieldcat it_sort_lvc = lt_sort_vc * IT_EVENTS = t_events i_save = 'X' TABLES t_outtab = it_build_fieldcatalog EXCEPTIONS program_error = 1 OTHERS = 2.

MOVE_CHAR_TO_NUM CALL FUNCTION 'MOVE_CHAR_TO_NUM' EXPORTING chr = lt_cae_tmp-doc_no_to IMPORTING num = l_doc_to EXCEPTIONS convt_no_number = 1 convt_overflow = 2 OTHERS = 3.

MOVE_CHAR_TO_NUM CALL FUNCTION 'MOVE_CHAR_TO_NUM' EXPORTING chr = lt_cae_tmp-doc_no_from IMPORTING num = l_doc_from EXCEPTIONS convt_no_number = 1 convt_overflow = 2 OTHERS = 3.

ENQUEUE_EFBKPF ********* CALL FUNCTION 'ENQUEUE_EFBKPF' ********* EXPORTING ********* MODE_BKPF = 'E' ********* MANDT = SY-MANDT ********* BUKRS = lt_j1acae-bukrs ********* BELNR = lt_j1acae-cae_ref ********* GJAHR = lt_j1acae-cae_refyr ********** X_BUKRS = ' ' ********** X_BELNR = ' ' ********** X_GJAHR = ' ' ********** _SCOPE = '2' ********** _WAIT = ' ' ********** _COLLECT = ' ' ********* EXCEPTIONS ********* FOREIGN_LOCK = 1 ********* SYSTEM_FAILURE = 2 ********* OTHERS = 3.

DEQUEUE_EFBKPF ********* CALL FUNCTION 'DEQUEUE_EFBKPF' ********* EXPORTING ********* MODE_BKPF = 'E' ********* MANDT = SY-MANDT ********* BUKRS = lt_j1acae-bukrs ********* BELNR = lt_j1acae-cae_ref ********* GJAHR = lt_j1acae-cae_refyr ********** X_BUKRS = ' ' ********** X_BELNR = ' ' ********** X_GJAHR = ' ' ********** _SCOPE = '3' ********** _SYNCHRON = ' ' ********** _COLLECT = ' ' .

ENQUEUE_EVVBRKE *****CALL FUNCTION 'ENQUEUE_EVVBRKE' ***** EXPORTING ***** MODE_VBRK = 'E' ***** MANDT = SY-MANDT ***** VBELN = lt_j1acae-cae_ref ****** X_VBELN = ' ' ****** _SCOPE = '2' ****** _WAIT = ' ' ****** _COLLECT = ' ' ***** EXCEPTIONS ***** FOREIGN_LOCK = 1 ***** SYSTEM_FAILURE = 2 ***** OTHERS = 3 ***** .

DEQUEUE_EVVBRKE ***** CALL FUNCTION 'DEQUEUE_EVVBRKE' ***** EXPORTING ***** MODE_VBRK = 'E' ***** MANDT = SY-MANDT ***** VBELN = lt_j1acae-cae_ref ****** X_VBELN = ' ' ****** _SCOPE = '3' ****** _SYNCHRON = ' ' ****** _COLLECT = ' ' ***** .

GET_GLOBALS_FROM_SLVC_FULLSCR CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = g_grid.

GET_GLOBALS_FROM_SLVC_FULLSCR CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' IMPORTING e_grid = g_grid.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = gd_path filetype = 'BIN' IMPORTING filelength = gd_length TABLES data_tab = it_xml.

SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING input_length = gd_length IMPORTING buffer = gd_xml_target TABLES binary_tab = it_xml.

SMUM_XML_PARSE CALL FUNCTION 'SMUM_XML_PARSE' EXPORTING xml_input = gd_xml_target TABLES xml_table = it_final_xml_table return = it_return.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'Y' textline1 = text-018 " CAE table updated textline2 = text-019 " Do wish to continue.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = ls_belnr-belnr IMPORTING output = temp_belnr.








Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name J_1A_ANIV or its description.