SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

J_1AF016 SAP ABAP Report - Withholdings and Perceptions - RG 4110







J_1AF016 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report informs the DGI about all withholdings (only AP) and perceptions (AR and AP) applied by your company...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


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_1AF016. "Basic submit
SUBMIT J_1AF016 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AF016 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: S_WITHT = Withholding type
Selection Text: S_NEWDAT = Create new dataset
Selection Text: S_KTOSL = Processing keys
Selection Text: S_FILE = Output file
Selection Text: P_SFNAM = Name of Dataset
Selection Text: P_SFILE = Create a new Dataset
Selection Text: P_LWFNAM = Local File
Selection Text: P_LWFILE = Transfer Dataset to local file
Selection Text: P_LFNAME = Local file
Selection Text: P_LFILE = Transfer dataset to local file
Title: Withholdings and Perceptions - RG 4110
Text Symbol: U08 = BaseAmount
Text Symbol: U09 = WT Date
Text Symbol: U10 = CnC
Text Symbol: U11 = Tax Amount
Text Symbol: U12 = % Ex.
Text Symbol: U13 = WT Ex.date
Text Symbol: U14 = Tax Type & Number
Text Symbol: U15 = WT Certif.
Text Symbol: U16 = Company Code
Text Symbol: U17 = G/u
Text Symbol: U18 = Country Tax Num.
Text Symbol: U19 = Company Tax Num.
Text Symbol: U21 = Doc. Number
Text Symbol: U22 = Account Name
Text Symbol: U31 = Tax Regime Code
Text Symbol: U32 = Amount
Text Symbol: U07 = TT
Text Symbol: 001 = Output List
Text Symbol: 002 = Display Variant
Text Symbol: 003 = Detail List
Text Symbol: 004 = Configure
Text Symbol: 005 = Total Code
Text Symbol: 006 = Other Selections
Text Symbol: 007 = Variant
Text Symbol: 008 = Configure Variant for Detail List
Text Symbol: 009 = Configure Variant for Total Code
Text Symbol: 304 = Change Layout





Text Symbol: F01 = National Tax Code
Text Symbol: H01 = Withholdings and Perceptions
Text Symbol: H02 = - RG 4110 -
Text Symbol: H03 = Configure ALV Variant Detail List for Withholdings and Perceptions
Text Symbol: H04 = Configure ALV Variant Total Code for Withholdings and Perceptions
Text Symbol: H05 = Date:
Text Symbol: H06 = File:
Text Symbol: S01 = Other Selections
Text Symbol: S02 = People Withheld
Text Symbol: S03 = Withholdings and Perceptions
Text Symbol: T01 = T O T A L
Text Symbol: U01 = DC
Text Symbol: U02 = Date
Text Symbol: U03 = Off.Doc.Number
Text Symbol: U04 = Amount/LC
Text Symbol: U05 = TxC
Text Symbol: U06 = RC


INCLUDES used within this REPORT J_1AF016

No INCLUDES are used within this REPORT code!


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:

J_1A_HELP_KTOSL CALL FUNCTION 'J_1A_HELP_KTOSL' EXPORTING DISPLAY = ' ' IMPORTING E_KTOSL = S_KTOSL-LOW EXCEPTIONS OTHERS = 1.

J_1A_HELP_KTOSL CALL FUNCTION 'J_1A_HELP_KTOSL' EXPORTING DISPLAY = ' ' IMPORTING E_KTOSL = S_KTOSL-HIGH EXCEPTIONS OTHERS = 1.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gs_header.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gs_item.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat i_save = gc_save is_variant = gs_variant i_tabname_header = gt_tab_header i_tabname_item = gt_tab_item is_keyinfo = gs_keyinfo TABLES t_outtab_header = gt_header t_outtab_item = gt_item EXCEPTIONS program_error = 1 OTHERS = 2.

INITIALIZE_STRUCTURE CALL FUNCTION 'INITIALIZE_STRUCTURE' EXPORTING i_n_fill = 0 i_i_fill = 0 CHANGING c_workarea = gs_tot_code.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat_1 i_save = gc_save is_variant = gs_variant it_events = gt_events_1 TABLES t_outtab = gt_tot_code EXCEPTIONS program_error = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' "ACC>>> EXPORTING name = '@ ' text = text-004 info = text-008 IMPORTING RESULT = con1 EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = '@ ' text = text-004 info = text-009 IMPORTING RESULT = con2 EXCEPTIONS OTHERS = 0. "ACC<<<

J_1A_READ_XZAHL





CALL FUNCTION 'J_1A_READ_XZAHL' EXPORTING I_BSCHL = BSEG-BSCHL IMPORTING E_XZAHL = BSEG-XZAHL.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename CHANGING PHYSICAL_FILENAME = S_FILE EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename CHANGING PHYSICAL_FILENAME = P_SFNAM EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3.

CUSTOMER_READ CALL FUNCTION 'CUSTOMER_READ' EXPORTING I_BUKRS = SPACE I_KUNNR = BSEG-KUNNR IMPORTING E_KNA1 = KNA1.

VENDOR_READ CALL FUNCTION 'VENDOR_READ' EXPORTING I_BUKRS = SPACE I_LIFNR = BSEG-LIFNR IMPORTING E_LFA1 = LFA1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename CHANGING PHYSICAL_FILENAME = S_FILE EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3.

ARCHIVFILE_SERVER_TO_CLIENT * CALL FUNCTION 'ARCHIVFILE_SERVER_TO_CLIENT' * EXPORTING * PATH = LCL_FILE * TARGETPATH = P_LFNAME * EXCEPTIONS * ERROR_FILE = 1 * OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = LCL_FILENAME FILETYPE = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' TRUNC_TRAILING_BLANKS_EOL = ' ' * WK1_N_FORMAT = ' ' * WK1_N_SIZE = ' ' * WK1_T_FORMAT = ' ' * WK1_T_SIZE = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = OUTPUT_FILE1 * FIELDNAMES = * EXCEPTIONS * FILE_WRITE_ERROR = 1 * NO_BATCH = 2 * GUI_REFUSE_FILETRANSFER = 3 * INVALID_TYPE = 4 * NO_AUTHORITY = 5 * UNKNOWN_ERROR = 6 * HEADER_NOT_ALLOWED = 7 * SEPARATOR_NOT_ALLOWED = 8 * FILESIZE_NOT_ALLOWED = 9 * HEADER_TOO_LONG = 10 * DP_ERROR_CREATE = 11 * DP_ERROR_SEND = 12 * DP_ERROR_WRITE = 13 * UNKNOWN_DP_ERROR = 14 * ACCESS_DENIED = 15 * DP_OUT_OF_MEMORY = 16 * DISK_FULL = 17 * DP_TIMEOUT = 18 * FILE_NOT_FOUND = 19 * DATAPROVIDER_EXCEPTION = 20 * CONTROL_FLUSH_ERROR = 21 * OTHERS = 22 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 ACCESS_DENIED = 15 FILE_NOT_FOUND = 19 OTHERS = 22 .

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = gc_setpfstatus i_callback_user_command = gc_user_command is_layout = gs_layout is_variant = gs_variant "Note 1021760 it_fieldcat = gt_fieldcat it_events = gt_events i_tabname_header = gt_tab_header i_tabname_item = gt_tab_item is_keyinfo = gs_keyinfo TABLES t_outtab_header = gt_header t_outtab_item = gt_item EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ls_variant i_save = gc_a IMPORTING e_exit = lv_exit es_variant = ls_variant_help.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = gc_a CHANGING cs_variant = ls_variant.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = gt_tab_header i_structure_name = is_struct1 i_inclname = gv_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = gt_tab_item i_structure_name = is_struct2 i_inclname = gv_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events.

FAGL_BATCH_HEADING_PERFORM CALL FUNCTION 'FAGL_BATCH_HEADING_PERFORM' EXPORTING is_bhdgd = bhdgd.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid is_layout = gs_layout it_fieldcat = gt_fieldcat_1 i_save = gc_save it_events = gt_events_1 TABLES t_outtab = gt_tot_code EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid * i_internal_tabname = gt_tot_code " 'GT_TOT_CODE' "gt_tot_code i_structure_name = gc_tot_code i_inclname = gv_repid CHANGING ct_fieldcat = xt_fieldcat_1 EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = ADDR1_SEL IMPORTING ADDRESS_VALUE = ADDR1_VAL.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename CHANGING PHYSICAL_FILENAME = P_SFNAM EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3.




GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = LCL_FILENAME FILETYPE = 'ASC' TRUNC_TRAILING_BLANKS = ' ' TABLES DATA_TAB = OUTPUT_WITHHELD1 EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 ACCESS_DENIED = 15 FILE_NOT_FOUND = 19 OTHERS = 22.



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_1AF016 or its description.