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

SAPMFIAPSA_PYMO_PAI SAP ABAP INCLUDE - Include SAPMSAFM_NAME_DATA_PAI







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


INCLUDES used within this REPORT SAPMFIAPSA_PYMO_PAI

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:

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING objtype = 'FISA_EO_PA' objkey = objkey event = 'START_APPR_WF' * CREATOR = ' ' * TAKE_WORKITEM_REQUESTER = ' ' * START_WITH_DELAY = ' ' * START_RECFB_SYNCHRON = ' ' * NO_COMMIT_FOR_QUEUE = ' ' * DEBUG_FLAG = ' ' * NO_LOGGING = ' ' * IDENT = * IMPORTING * EVENT_ID = * RECEIVER_COUNT = * TABLES * EVENT_CONTAINER = EXCEPTIONS objtype_not_found = 1 OTHERS = 2 .

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING i_name = form_name IMPORTING e_funcname = funcmodule_name * E_INTERFACE_TYPE = * EV_FUNCNAME_INBOUND = .

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = output_param EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' * IMPORTING * E_RESULT = EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4 .

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = fiapsa_s_pymo-bukrs IMPORTING e_t001 = gs_t001 EXCEPTIONS system_error = 1 OTHERS = 2.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = fiapsa_s_ordr_lt-niamt currency = gs_fiapsa_s_pymo-waers * FILLER = ' ' language = lv_langu IMPORTING in_words = lv_spell EXCEPTIONS not_found = 1 too_large = 2 OTHERS = 3.

SPELL_AMOUNT CALL FUNCTION 'SPELL_AMOUNT' EXPORTING amount = fiapsa_s_ordr_lt-niamt currency = gs_fiapsa_s_pymo-waers * FILLER = ' ' language = sy-langu IMPORTING in_words = lv_spell EXCEPTIONS not_found = 1 too_large = 2 OTHERS = 3.

READ_SKA1 CALL FUNCTION 'READ_SKA1' EXPORTING xktopl = gs_fiapsa_s_pymo-ktopl xsaknr = ls_line-saknr * XSKIP_AUTHORITY_CHECK = IMPORTING xska1 = ls_ska1 * XSKAT = EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = ls_cocd_nro-nrnr object = 'FIAPSA_NRP' * QUANTITY = '1' subobject = gs_fiapsa_s_pymo-bukrs toyear = gs_fiapsa_s_pymo-gjahr * IGNORE_BUFFER = ' ' IMPORTING number = gv_new_pymo_num * QUANTITY = * RETURNCODE = EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = fiapsa_s_ordr_hd-budat * I_MONMIT = 00 i_periv = gs_fiapsa_s_pymo-periv IMPORTING e_buper = lv_buper e_gjahr = lv_gjahr EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = gs_fiapsa_s_pymo-bukrs * I_OPVAR = ' ' i_gjahr = lv_gjahr i_koart = '+' * I_KONTO = ' ' i_monat = lv_buper * I_SPERI = * I_RLDNR = * I_GLVOR = 'RFBU' * I_LDGRP = * IMPORTING * E_OPER = EXCEPTIONS error_period = 1 error_period_acc = 2 invalid_input = 3 OTHERS = 4 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = fiapsa_s_ordr_lt-hkont IMPORTING output = fiapsa_s_ordr_lt-hkont.

BAPI_GL_GETGLACCCURRENTBALANCE CALL FUNCTION 'BAPI_GL_GETGLACCCURRENTBALANCE' EXPORTING companycode = gs_fiapsa_s_pymo-bukrs glacct = fiapsa_s_ordr_lt-hkont currencytype = '10' IMPORTING account_balance = gs_glacc_bal return = gs_ret.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = '2000' TABLES dynpfields = gt_dynpread EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = fiapsa_s_ordr_hd-bldat * I_MONMIT = 00 i_periv = gs_fiapsa_s_pymo-periv IMPORTING * e_buper = lv_buper e_gjahr = lv_docu_year EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.



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