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

RPSDKZ_VATINV SAP ABAP INCLUDE - Print programm for SD VAT Invoice (Kazakhstan)







RPSDKZ_VATINV is a standard ABAP INCLUDE 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 RPSDKZ_VATINV 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 RPSDKZ_VATINV. "Basic submit
SUBMIT RPSDKZ_VATINV AND RETURN. "Return to original report after report execution complete
SUBMIT RPSDKZ_VATINV VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Print programm for SD VAT Invoice (Kazakhstan)


INCLUDES used within this REPORT RPSDKZ_VATINV

INCLUDE RVADTABL.


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:

FP_JOB_OPEN call function 'FP_JOB_OPEN' CHANGING ie_outputparams = fp_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 others = 5.

FP_GET_LAST_ADS_ERRSTR CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR' IMPORTING E_ADSERRSTR = l_errstr.

FP_JOB_CLOSE call function 'FP_JOB_CLOSE' IMPORTING E_RESULT = fp_JOBOUTPUT exceptions usage_error = 1 system_error = 2 internal_error = 3 others = 4 .

CONVERSION_EXIT_ALPHA_INPUT * CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' * EXPORTING * INPUT = hd_invoice-belnr * IMPORTING * OUTPUT = hd_invoice-belnr.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING AMOUNT = hd_invoice-smtot CURRENCY = komk-waerk "Invoice currency FILLER = ' ' LANGUAGE = lang IMPORTING IN_WORDS = SPELL EXCEPTIONS NOT_FOUND = 1 TOO_LARGE = 2 OTHERS = 3.

SPELL_AMOUNT * CALL FUNCTION 'SPELL_AMOUNT' * EXPORTING * AMOUNT = hd_invoice-smtot * CURRENCY = komk-waerk "Invoice currency * FILLER = ' ' * LANGUAGE = lang * IMPORTING * IN_WORDS = SPELL * EXCEPTIONS * NOT_FOUND = 1 * TOO_LARGE = 2 * OTHERS = 3.

SPELL_AMOUNT * CALL FUNCTION 'SPELL_AMOUNT' * EXPORTING * AMOUNT = hd_invoice-hmtot * CURRENCY = komk-hwaer "Domestic currency * FILLER = ' ' * LANGUAGE = lang * IMPORTING * IN_WORDS = SPELL * EXCEPTIONS * NOT_FOUND = 1 * TOO_LARGE = 2 * OTHERS = 3.

SPELL_AMOUNT * CALL FUNCTION 'SPELL_AMOUNT' * EXPORTING * AMOUNT = hd_invoice-hmvat * CURRENCY = komk-hwaer "Domestic currency * FILLER = ' ' * LANGUAGE = lang * IMPORTING * IN_WORDS = SPELLN * EXCEPTIONS * NOT_FOUND = 1 * TOO_LARGE = 2 * OTHERS = 3.

RV_PRICE_PRINT_REFRESH CALL FUNCTION 'RV_PRICE_PRINT_REFRESH' TABLES TKOMV = TKOMV.

RV_BILLING_PRINT_VIEW CALL FUNCTION 'RV_BILLING_PRINT_VIEW' EXPORTING COMWA = VBCO3 IMPORTING KOPF = VBDKR TABLES POS = TVBDPR exceptions terms_of_payment_not_in_t052 = 1.

RV_PRICE_PRINT_ITEM CALL FUNCTION 'RV_PRICE_PRINT_ITEM' EXPORTING COMM_HEAD_I = KOMK COMM_ITEM_I = KOMP LANGUAGE = lang IMPORTING COMM_HEAD_E = KOMK COMM_ITEM_E = KOMP TABLES TKOMV = TKOMV TKOMVD = TKOMVD.

RV_PRICE_PRINT_HEAD CALL FUNCTION 'RV_PRICE_PRINT_HEAD' EXPORTING COMM_HEAD_I = KOMK LANGUAGE = lang IMPORTING COMM_HEAD_E = KOMK COMM_MWSKZ = PRINT_MWSKZ TABLES TKOMV = TKOMV TKOMVD = HKOMVD.

CONVERSION_EXIT_ALPHA_OUTPUT * CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' * EXPORTING * INPUT = hd_invoice-ext_orig * IMPORTING * OUTPUT = hd_invoice-ext_orig.

FIKZ_SIMULATE_NEW_REG_ENTRY CALL FUNCTION 'FIKZ_SIMULATE_NEW_REG_ENTRY' EXPORTING IS_CUR_DOC = gs_bkpf IV_REGISTER_NAME = 'FIKZD_REGINV_OUT' CHANGING CS_REG_ENTRY = gs_invnum EXCEPTIONS INVALID_REGISTER_NAME = 2 INVALID_LINK = 3 OTHERS = 4 .

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = SEL IMPORTING address_value = addr1_val EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = SEL IMPORTING address_value = addr1_val EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = SEL IMPORTING address_value = addr1_val EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5.

ADDR_GET CALL FUNCTION 'ADDR_GET' EXPORTING ADDRESS_SELECTION = SEL IMPORTING address_value = addr1_val EXCEPTIONS PARAMETER_ERROR = 1 ADDRESS_NOT_EXIST = 2 VERSION_NOT_EXIST = 3 INTERNAL_ERROR = 4 OTHERS = 5.

FP_FUNCTION_MODULE_NAME





CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = P_TNAPR_SFORM IMPORTING e_funcname = P_FUNC_MODULE_NAME.

J_3RFGTD_INVGET * CALL FUNCTION 'J_3RFGTD_INVGET' * EXPORTING * P_INVOICENUM = VBDKR-vbeln * P_INVOICEPOS = wa_invoice-POSNR * P_READ_DB = 'X' * IMPORTING * ET_GTDINV = ET_GTDINV .

J_3RFGTD_INVGET * CALL FUNCTION 'J_3RFGTD_INVGET' * EXPORTING * P_READ_DB = 'X' * IMPORTING * ET_GTDINV = ET_GTDINV * .

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING object = pa_tdobject name = pa_tdname id = pa_tdid language = '*' IMPORTING entries = txt_entries TABLES selections = it_reftext.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING id = pa_tdid language = name = pa_tdname object = pa_tdobject TABLES lines = it_lines EXCEPTIONS OTHERS = 8.

TH_IN_UPDATE_TASK CALL FUNCTION 'TH_IN_UPDATE_TASK' IMPORTING in_update_task = l_in_update_task.

GET_ARCHIVE_PARAMETERS CALL FUNCTION 'GET_ARCHIVE_PARAMETERS' EXPORTING ARCHIVE_ID = ARC_PARAMS-ARCHIV_ID archive_info = '000' archive_text = arc_report AR_OBJECT = ls_daratab-AR_OBJECT IN_PARAMETERS = ARC_PARAMS * LAYOUT = ' ' mode = iv_out_params-arcmode no_dialog = no_dialog printer = iv_out_params-dest report = arc_report SAP_OBJECT = ls_daratab-SAP_OBJECT abap_list = space * PO_FAX_STORE = ' ' IMPORTING out_parameters = arc_params EXCEPTIONS archive_info_not_found = 2 * NO_AUTHORITY = 2 * NOT_VALID = 3 OTHERS = 99.

NAST_PROTOCOL_UPDATE CALL FUNCTION 'NAST_PROTOCOL_UPDATE' EXPORTING MSG_ARBGB = SYST-MSGID MSG_NR = SYST-MSGNO MSG_TY = SYST-MSGTY MSG_V1 = SYST-MSGV1 MSG_V2 = SYST-MSGV2 MSG_V3 = SYST-MSGV3 MSG_V4 = SYST-MSGV4 EXCEPTIONS OTHERS = 1.

ADDR_COMM_GET * call function 'ADDR_COMM_GET' * exporting * address_number = gs_interface-head_detail-tvko-adrnr * language = gv_language * table_type = 'ADSMTP' * tables * comm_table = lt_adsmtp * exceptions * parameter_error = 1 * address_not_exist = 2 * internal_error = 3 * others = 4.

ADDR_COMM_GET * call function 'ADDR_COMM_GET' * exporting * address_number = tvko-adrnr * language = sy-langu * table_type = 'ADFAX' * tables * comm_table = lt_adfax * exceptions * parameter_error = 1 * address_not_exist = 2 * internal_error = 3 * others = 4.

ADDR_GET_NEXT_COMM_TYPE call function 'ADDR_GET_NEXT_COMM_TYPE' exporting strategy = nast-tcode address_type = ls_addr_key-addr_type address_number = ls_addr_key-ADDRNUMBER person_number = ls_addr_key-PERSNUMBER importing comm_type = lv_comm_type comm_values = ls_comm_values exceptions address_not_exist = 1 person_not_exist = 2 no_comm_type_found = 3 internal_error = 4 parameter_error = 5 others = 6.



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