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
Below is a list of transaction codes which are relevant to this SAP report
J1GW - W.Tax certificates - Printing
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.
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
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
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.
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.
J_1GWTCP - W.Tax certificates - Output J_1GWTCP - W.Tax certificates - Output J_1GWTCL - W.Tax certificates - Load J_1GWTCL - W.Tax certificates - Load J_1GVL_WHB_POLY - Analytical multi-purpose material ledger/trial balance (WHB) J_1GVL_WHB_POLY - Analytical multi-purpose material ledger/trial balance (WHB)