SAP Reports / Programs | Financial Accounting(FI) SAP FI

J_1GWTCP SAP ABAP Report - W.Tax certificates - Output







J_1GWTCP 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_1GWTCP 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

J1GW - W.Tax certificates - Printing


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_1GWTCP. "Basic submit
SUBMIT J_1GWTCP AND RETURN. "Return to original report after report execution complete
SUBMIT J_1GWTCP 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_AFM = Tax code (AFM)
Selection Text: S_BUKRS = Company code
Selection Text: S_CTYPE = Type of certificates
Selection Text: S_DATA = Data file
Selection Text: S_DELETE = Delete after print
Selection Text: S_DIALOG = Show print dialog
Selection Text: S_DOCE = Doc file example
Selection Text: S_DOWN = Create files for mail merge
Selection Text: S_IMMED = Print immediately
Selection Text: S_MEXI = Merge online (Existining doc)
Selection Text: S_MNEW = Merge online (New doc)
Selection Text: S_NAME1 = 1st name for signature
Selection Text: S_NAME2 = 2nd name for signature
Selection Text: S_PATH = Download path
Selection Text: S_PRDEV = Printer
Selection Text: S_PRNT = Merge directly to def.printer
Selection Text: S_SAPSCR = Print with SAPscript
Selection Text: S_UDOC = Use doc example
Selection Text: S_WORD = Word document
Selection Text: S_YEAR = Year of certicates (cal. year)
Title: W.Tax certificates - Output
Text Symbol: M01 = W.Tax certificate type
Text Symbol: F65 = WT5 stamp
Text Symbol: F64 = WT5 rate
Text Symbol: F63 = WT5 dec.part in words
Text Symbol: F62 = WT5 in words
Text Symbol: F61 = WT5DecPart
Text Symbol: F60 = WithTax 5
Text Symbol: F55 = WT4 stamp
Text Symbol: F54 = WT4 rate
Text Symbol: F53 = WT4 dec.part in words
Text Symbol: F52 = WT4 in words
Text Symbol: F51 = WT4DecPart
Text Symbol: F50 = WithTax 4
Text Symbol: M02 = No layout set defined for W.Tax cert.type
Text Symbol: M03 = has not been defined
Text Symbol: M04 = No certificate data found
Text Symbol: MS0 = Please define a valid company code





Text Symbol: MS1 = Please define a valid printer
Text Symbol: MS2 = Please define a valid PC folder
Text Symbol: T00 = W.TAX CERTIFICATES
Text Symbol: TS1 = Print with SAPscript
Text Symbol: TS2 = Create files for mail merge
Text Symbol: TS3 = Information printed on the certificates:
Text Symbol: TS5 = Merge online (New doc)
Text Symbol: TS6 = Merge online (Existing doc)
Text Symbol: TS7 = Open word document
Text Symbol: F06 = Address (Str&Nr)
Text Symbol: F05 = Profession
Text Symbol: F04 = Name
Text Symbol: F03 = Cert. Type
Text Symbol: F02 = TaxNumber
Text Symbol: F01 = Year
Text Symbol: B02 = Output control
Text Symbol: B01 = Data selection
Text Symbol: 135 = OLE: Unknown error
Text Symbol: 134 = OLE: Communication error
Text Symbol: 133 = OLE: Download problem
Text Symbol: 132 = OLE: User cancelled
Text Symbol: 131 = OLE: Invalid fieldnames
Text Symbol: 120 = Binary object & not found
Text Symbol: 117 = Created doc file:
Text Symbol: 116 = Created data file:
Text Symbol: 115 = No data file created
Text Symbol: 111 = Spool request & created for & certificates
Text Symbol: 110 = No spool request created
Text Symbol: 103 = processed
Text Symbol: 102 = ACTION LOG
Text Symbol: 101 = will not be processed
Text Symbol: 100 = Layout set
Text Symbol: F07 = Post. Code
Text Symbol: F45 = WT3 stamp
Text Symbol: F44 = WT3 rate
Text Symbol: F43 = WT3 dec.part in words
Text Symbol: F42 = WT3 in words
Text Symbol: F41 = WT3DecPart
Text Symbol: F40 = WithTax 3





Text Symbol: F35 = WT2 stamp
Text Symbol: F34 = WT2 rate
Text Symbol: F33 = WT2 dec.part in words
Text Symbol: F32 = WT2 in words
Text Symbol: F31 = WT2DecPart
Text Symbol: F30 = WithTax 2
Text Symbol: F25 = WT1 stamp
Text Symbol: F24 = WT1 rate
Text Symbol: F23 = WT1 dec.part in words
Text Symbol: F22 = WT1 in words
Text Symbol: F21 = WT1DecPart
Text Symbol: F20 = WithTax 1
Text Symbol: F12 = BA dec.part in words
Text Symbol: F11 = BA in words
Text Symbol: F10 = BA DecPart
Text Symbol: F09 = Base amount
Text Symbol: F08 = City


INCLUDES used within this REPORT J_1GWTCP

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_1GBUKRS_AUTH_CHECK call function 'J_1GBUKRS_AUTH_CHECK' exporting i_xdb = 'KB' i_bukrs = s_bukrs.

WS_QUERY call function 'WS_QUERY' exporting filename = s_path query = 'DE' importing return = w_result exceptions inv_query = 1 no_batch = 2 frontend_error = 3 others = 4.

J_2GMDM_C call function 'J_2GMDM_C' exporting i_t001 = t001 i_split = ' ' importing e_md = j_2gmd exceptions others = 1.

CONTROL_FORM call function 'CONTROL_FORM' exporting command = 'NEW-PAGE' exceptions unopened = 1 unstarted = 2 others = 3.

SPELL_AMOUNT call function 'SPELL_AMOUNT' exporting amount = vw_amount currency = t001-waers language = 'G' importing in_words = ph_spell exceptions not_found = 1 too_large = 2 others = 3.

WS_DOWNLOAD * call function 'WS_DOWNLOAD' * exporting ** CODEPAGE = ' ' * filename = l_filename * filetype = 'DAT' ** IMPORTING ** FILELENGTH = * tables * data_tab = t_dat * exceptions * file_open_error = 1 * file_write_error = 2 * invalid_filesize = 3 * invalid_type = 4 * no_batch = 5 * unknown_error = 6 * invalid_table_width = 7 * gui_refuse_filetransfer = 8 * customer_error = 9 * others = 10.

J_2G_WS_DOWNLOAD call function 'J_2G_WS_DOWNLOAD' EXPORTING * BIN_FILESIZE = ' ' FILENAME = l_filename FILETYPE = 'DAT' * MODE = ' ' * TRUNC_TRAILING_BLANKS = ' ' * IMPORTING * FILELENGTH = tables data_tab = t_dat EXCEPTIONS INVALID_TYPE = 1 NO_BATCH = 2 NO_AUTHORITY = 3 DOWNLOAD_ERROR = 4 OTHERS = 5.

DOWNLOAD_WEB_OBJECT call function 'DOWNLOAD_WEB_OBJECT' exporting key = lh_key destination = l_filename.

WS_FILENAME_GET call function 'WS_FILENAME_GET' exporting mask = l_mask mode = 'O' title = text-ts7 importing filename = s_word exceptions inv_winsys = 01 no_batch = 02 selection_cancel = 03 selection_error = 04.

MS_WORD_OLE_FORMLETTER



call function 'MS_WORD_OLE_FORMLETTER' exporting word_document = s_word * HIDDEN = 0 * WORD_PASSWORD = password_option = 0 file_name = w_datafile new_document = lf_newdoc download_path = s_path print = lf_print tables data_tab = t_dat fieldnames = t_fnames exceptions invalid_fieldnames = 1 user_cancelled = 2 download_problem = 3 communication_error = 4 others = 5.



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