SAP Reports / Programs

J_1AF014 SAP ABAP Report - Selfwithholding







J_1AF014 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 the selfwithholdings of 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_1AF014 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_1AF014. "Basic submit
SUBMIT J_1AF014 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AF014 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_LFILE = Transfer dataset to local file
Selection Text: P_LFNAME = Local File
Selection Text: P_LWFILE = Transfer dataset to local file
Selection Text: P_LWFNAM = Local File
Selection Text: P_NTAXCD = Tax Regime Code
Selection Text: P_SFILE = Create a new Dataset
Selection Text: P_SFNAM = Name of Dataset
Selection Text: S_BELNR = Document no.
Selection Text: S_BELNR2 = Document no.
Selection Text: S_BLART = Document type
Selection Text: S_BLART2 = Document type
Selection Text: S_BUDAT = Posting date
Selection Text: S_CREATE = Create a new Dataset
Selection Text: S_FILE = Name of Dataset
Selection Text: S_GJAHR = Fiscal year
Selection Text: S_LIST = Print list
Selection Text: S_PRDATE = Printing date
Selection Text: S_SEMSTR = Semester no. (calendar year)
Selection Text: S_WITHT = Withholding type
Title: Selfwithholding
Text Symbol: U31 = Posting date
Text Symbol: U30 = Customer name/C.U.I.T./No.
Text Symbol: U29 = Clearing date
Text Symbol: U28 = Document no./type
Text Symbol: U26 = to the DGI
Text Symbol: U25 = Payment amount
Text Symbol: U23 = C.U.I.T.s
Text Symbol: U22 = Different
Text Symbol: U20 = Records
Text Symbol: U19 = Printed
Text Symbol: U17 = Concept min.
Text Symbol: H01 = Selfwithholding
Text Symbol: H03 = Company:
Text Symbol: H04 = Code:
Text Symbol: H05 = Tax No.:
Text Symbol: H06 = DGI office:
Text Symbol: H07 = Printing date:
Text Symbol: H08 = Calendar year:





Text Symbol: H09 = Semester No.:
Text Symbol: H10 = Payments to the DGI
Text Symbol: H20 = Customer payments
Text Symbol: H30 = T O T A L S
Text Symbol: H50 = DGI Documents
Text Symbol: H60 = Customer Documents
Text Symbol: S01 = General selections
Text Symbol: S02 = Selection parameters for DGI Invoices
Text Symbol: S03 = Output
Text Symbol: S04 = Selection parameters for Incoming Payments
Text Symbol: S05 = Withholding Amounts
Text Symbol: S06 = People Withheld
Text Symbol: U01 = Month
Text Symbol: U02 = Concept
Text Symbol: U03 = Payment date
Text Symbol: U04 = Payment amount
Text Symbol: U06 = Type of
Text Symbol: U07 = Withhld.
Text Symbol: U09 = Customer name
Text Symbol: U11 = Withholding
Text Symbol: U12 = amount
Text Symbol: U14 = Net amount -
Text Symbol: U15 = C.U.I.T.
Text Symbol: U16 = Net amount


INCLUDES used within this REPORT J_1AF014

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:

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.

ADDR_GET * CALL FUNCTION 'ADDR_GET' * EXPORTING * ADDRESS_SELECTION = ADDR1_SEL * ADDRESS_GROUP = 'CA01' ** read_sadr_only = 'X' * IMPORTING * SADR = SADR.

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

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

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = lt_fieldcat it_events = lt_eventtab is_layout = ls_layout is_print = ls_print i_callback_pf_status_set = gc_pf_set_status " set_pf-status i_callback_user_command = slis_ev_user_command " USER_COMMAND TABLES t_outtab = gt_xtable1 EXCEPTIONS program_error = 1 OTHERS = 2.






REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = i_strname 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_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = lt_fieldcat it_events = lt_eventtab is_layout = ls_layout is_print = ls_print TABLES t_outtab = gt_xtable2 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = lt_fieldcat it_events = lt_eventtab is_layout = ls_layout is_print = ls_print TABLES t_outtab = gt_xtable3 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = lt_fieldcat it_events = lt_eventtab is_layout = ls_layout is_print = ls_print i_callback_pf_status_set = gc_pf_set_status i_callback_user_command = slis_ev_user_command " USER_COMMAND TABLES t_outtab = gt_docm_dgi EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid it_fieldcat = lt_fieldcat it_events = lt_eventtab is_layout = ls_layout is_print = ls_print TABLES t_outtab = gt_docm_cust EXCEPTIONS program_error = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = LCL_FILENAME FILETYPE = 'ASC' TRUNC_TRAILING_BLANKS = ' ' TABLES DATA_TAB = OUTPUT_FILE1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = LCL_FILENAME FILETYPE = 'ASC' TRUNC_TRAILING_BLANKS = ' ' TABLES DATA_TAB = OUTPUT_WITHHELD1.

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.



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