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

SAPMFIAPQA_PREQ_FORM SAP ABAP INCLUDE - Include SAPMFIAPQA_PREQ_FORM







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


Text pool values


Title: Include SAPMFIAPQA_PREQ_FORM


INCLUDES used within this REPORT SAPMFIAPQA_PREQ_FORM

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:

FIAPQA_CALL_F_59 CALL FUNCTION 'FIAPQA_CALL_F_59' EXPORTING i_bukrs = fiapqa_s_preq_selscrn-bukrs i_gjahr = fiapqa_s_preq_selscrn-gjahr i_buzei = fiapqa_s_preq_selscrn-buzeiv i_belnr = fiapqa_s_preq_selscrn-rebzg i_preq = ls_f59 * IMPORTING * E_PREQHEADER = * E_PARTIAL_AMOUNT = * E_BELNR = TABLES gt_bdcmsgcoll = lt_bdcmsgcoll.

LDB_PROCESS CALL FUNCTION 'LDB_PROCESS' EXPORTING ldbname = 'KDF' variant = space * EXPRESSIONS = * FIELD_SELECTION = * DYN_NODE_TYPES = TABLES callback = lt_callback selections = lt_seltab EXCEPTIONS ldb_not_reentrant = 1 ldb_incorrect = 2 ldb_already_running = 3 ldb_error = 4 ldb_selections_error = 5 ldb_selections_not_accepted = 6 variant_not_existent = 7 variant_obsolete = 8 variant_error = 9 free_selections_error = 10 callback_no_event = 11 callback_node_duplicate = 12 callback_no_program = 13 callback_no_cbform = 14 dyn_node_no_type = 15 dyn_node_invalid_type = 16 OTHERS = 17.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-001 * DIAGNOSE_OBJECT = ' ' text_question = text-002 text_button_1 = text-007 * ICON_BUTTON_1 = ' ' text_button_2 = text-008 * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' display_cancel_button = 'X' * USERDEFINED_F1_HELP = ' ' start_column = 25 start_row = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = lv_answer_rev * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

CALL_FB08 CALL FUNCTION 'CALL_FB08' EXPORTING i_bukrs = fiapqa_s_preq_selscrn-bukrs i_belnr = gv_selected_preq i_gjahr = fiapqa_s_preq_selscrn-gjahr * I_BVORG = ' ' i_stgrd = lv_reason_rev * I_VOIDR = '00' ** I_BUDAT = * I_MONAT = '00' ** I_XSIMU = ' ' i_update = 'A' i_mode = 'N' ** I_NO_AUTH = ' ' ** I_BLDAT = * I_VATDATE = IMPORTING e_budat = lv_rev_pstng_date e_monat = lv_monat * E_XSOFO = EXCEPTIONS not_possible = 1 OTHERS = 2.

FM_READ_BSIK CALL FUNCTION 'FM_READ_BSIK' EXPORTING i_bukrs = fiapqa_s_preq_selscrn-bukrs i_gjahr = fiapqa_s_preq_selscrn-gjahr i_belnr = gv_selected_preq i_buzei = '01' IMPORTING f_bsik = ls_bsik TABLES t_docs = lt_fmds_docs EXCEPTIONS not_found = 1 OTHERS = 2.

FI_DOCUMENT_CHANGE CALL FUNCTION 'FI_DOCUMENT_CHANGE' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_KUNNR = ' ' * I_LIFNR = ' ' * I_OBZEI = ' ' i_buzei = '001' * I_BSEGC = * X_LOCK = 'X' i_bukrs = fiapqa_s_preq_selscrn-bukrs i_belnr = gv_selected_preq i_gjahr = fiapqa_s_preq_selscrn-gjahr TABLES t_accchg = lt_accchg EXCEPTIONS no_reference = 1 no_document = 2 many_documents = 3 wrong_input = 4 overwrite_creditcard = 5 OTHERS = 6.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-003 * DIAGNOSE_OBJECT = ' ' text_question = text-004 text_button_1 = text-005 * ICON_BUTTON_1 = ' ' text_button_2 = text-006 * ICON_BUTTON_2 = ' ' * DEFAULT_BUTTON = '1' display_cancel_button = 'X' * USERDEFINED_F1_HELP = ' ' start_column = 25 start_row = 6 * POPUP_TYPE = * IV_QUICKINFO_BUTTON_1 = ' ' * IV_QUICKINFO_BUTTON_2 = ' ' IMPORTING answer = gv_form_langu * TABLES * PARAMETER = EXCEPTIONS text_not_found = 1 OTHERS = 2 .

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = fiapqa_s_preqheader-bukrs i_belnr = fiapqa_s_preqheader-rebzg i_gjahr = gs_bseg-rebzj * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = t_bkpf = lt_bkpf_data t_bseg = lt_bseg_data EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3.

BAPI_PO_GETDETAIL1 CALL FUNCTION 'BAPI_PO_GETDETAIL1' EXPORTING purchaseorder = ls_preq_info_pdf-ebeln * ACCOUNT_ASSIGNMENT = ' ' * ITEM_TEXT = ' ' * HEADER_TEXT = ' ' * DELIVERY_ADDRESS = ' ' * VERSION = ' ' * SERVICES = ' ' * SERIALNUMBERS = ' ' * INVOICEPLAN = ' ' IMPORTING poheader = ls_ekko * POEXPIMPHEADER = * TABLES * RETURN = * POITEM = * POADDRDELIVERY = * POSCHEDULE = * POACCOUNT = * POCONDHEADER = * POCOND = * POLIMITS = * POCONTRACTLIMITS = * POSERVICES = * POSRVACCESSVALUES = * POTEXTHEADER = * POTEXTITEM = * POEXPIMPITEM = * POCOMPONENTS = * POSHIPPINGEXP = * POHISTORY = * POHISTORY_TOTALS = * POCONFIRMATION = * ALLVERSIONS = * POPARTNER = * EXTENSIONOUT = * SERIALNUMBER = * INVPLANHEADER = * INVPLANITEM = * POHISTORY_MA = .

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' * EXPORTING * WAIT = * IMPORTING * RETURN = .

FIQA_PDF_FORM_GET_NAME CALL FUNCTION 'FIQA_PDF_FORM_GET_NAME' EXPORTING iv_form_code = 'PREQ' iv_language = lv_langu IMPORTING ev_form_name = form_name EXCEPTIONS form_not_found = 1 OTHERS = 2.

FIQA_GET_SIGNATURES_FOR_PDF_1 CALL FUNCTION 'FIQA_GET_SIGNATURES_FOR_PDF_1' EXPORTING iv_bukrs = fiapqa_s_preqheader-bukrs iv_form_name = form_name iv_lang = lv_langu * IV_SIGN_ID = IMPORTING et_sign_tab = lt_roletxt_sign.

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_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = fiapqa_s_preq_selscrn-bukrs i_belnr = gv_selected_preq i_gjahr = fiapqa_s_preq_selscrn-gjahr * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = t_bkpf = gt_bkpf_detail t_bseg = gt_bseg_detail EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3 .

READ_BSEG CALL FUNCTION 'READ_BSEG' EXPORTING xbelnr = gs_preq_selected-rebzg xbukrs = fiapqa_s_preq_selscrn-bukrs xbuzei = gs_bseg-rebzz xgjahr = gs_bseg-rebzj IMPORTING *** XBSEC = *** XBSED = xbseg = ls_bseg *** XBSEGA = EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = fiapqa_s_preq_selscrn-bukrs i_belnr = fiapqa_s_preq_selscrn-rebzg i_gjahr = fiapqa_s_preq_selscrn-gjahr * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = t_bkpf = gt_bkpf_detail t_bseg = gt_bseg_detail EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3 .

REUSE_ALV_POPUP_TO_SELECT





CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = lv_title * I_SELECTION = 'X' * I_ZEBRA = ' ' * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_CHECKBOX_FIELDNAME = * I_LINEMARK_FIELDNAME = * I_SCROLL_TO_SEL_LINE = 'X' i_tabname = '1' i_structure_name = 'FIAPQA_S_PREQ_VENDOR_LINE_ITEM' * IT_FIELDCAT = * IT_EXCLUDING = * I_CALLBACK_PROGRAM = * I_CALLBACK_USER_COMMAND = * is_private = gs_private IMPORTING es_selfield = ls_selfield * e_exit = gv_exit TABLES t_outtab = gt_vendor_line_item EXCEPTIONS program_error = 1 OTHERS = 2.

READ_LFA1 CALL FUNCTION 'READ_LFA1' EXPORTING xlifnr = p_lifnr * XADR_FL = ' ' IMPORTING xlfa1 = ls_lfa1 EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.

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

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = fiapqa_s_preq_selscrn-bukrs i_belnr = gs_preq_selected-rebzg i_gjahr = gs_bseg-rebzj * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = t_bkpf = gt_bkpf_ldb_data t_bseg = gt_bseg_ldb_data EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3 .

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = 'FIAPQA_RSTAT' value = lv_char10 langu = sy-langu * TEXTS_ONLY = ' ' IMPORTING dd07v_wa = ls_dd07v EXCEPTIONS not_found = 1 illegal_input = 2 OTHERS = 3.

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = i_bukrs i_belnr = i_belnr i_gjahr = i_gjahr * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = t_bkpf = gt_bkpf_detail t_bseg = gt_bseg_detail EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3 .

READ_BSEG CALL FUNCTION 'READ_BSEG' EXPORTING xbelnr = gs_bseg-rebzg xbukrs = i_bukrs xbuzei = gs_bseg-rebzz xgjahr = gs_bseg-rebzj IMPORTING *** XBSEC = *** XBSED = xbseg = ls_bseg *** XBSEGA = EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.

FI_DOCUMENT_READ CALL FUNCTION 'FI_DOCUMENT_READ' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_XNBKL = ' ' i_bukrs = i_bukrs i_belnr = gs_bseg-rebzg i_gjahr = i_gjahr * I_BSTAT = ' ' * I_XBLNR = ' ' * I_BUDAT = * I_BLART = ' ' * IMPORTING * E_AWTYP = * E_AWREF = * E_AWORG = * E_AWSYS = TABLES * T_ABUZ = * T_ACCHD = * T_ACCIT = * T_ACCCR = * t_bkpf = t_bseg = lt_bseg_inv_detail EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 3 .

FI_DOCUMENT_TYPE_CHECK CALL FUNCTION 'FI_DOCUMENT_TYPE_CHECK' EXPORTING i_blart = fiapqa_s_preqheader-blart * I_KOART = ' ' i_langu = sy-langu * X_DIALOG = ' ' * X_NOBDC = ' ' * X_ROLLUP = ' ' * X_PLAN = ' ' * X_ALLOCACT = ' ' * X_ALLOCPLAN = ' ' EXCEPTIONS account_type = 1 document_type = 2 document_type_for_batch_only = 3 doctype_only_for_glx_postings = 4 doctype_not_for_glx_postings = 5 OTHERS = 6.

READ_LFB1 CALL FUNCTION 'READ_LFB1' EXPORTING xbukrs = fiapqa_s_preq_selscrn-bukrs xlifnr = fiapqa_s_preq_selscrn-lifnr IMPORTING xlfb1 = gs_lfb1 EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.

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

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING objtype = 'BKPF' objkey = objkey event = 'CHANGED' * 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 .

FM_READ_BSIK CALL FUNCTION 'FM_READ_BSIK' EXPORTING i_bukrs = i_bukrs i_gjahr = i_gjahr i_belnr = i_belnr i_buzei = '01' IMPORTING f_bsik = ls_bsik TABLES t_docs = lt_fmds_docs EXCEPTIONS not_found = 1 OTHERS = 2.

FI_DOCUMENT_CHANGE CALL FUNCTION 'FI_DOCUMENT_CHANGE' EXPORTING * I_AWTYP = * I_AWREF = * I_AWORG = ' ' * I_AWSYS = ' ' * I_KUNNR = ' ' * I_LIFNR = ' ' * I_OBZEI = ' ' i_buzei = '001' * I_BSEGC = * X_LOCK = 'X' i_bukrs = i_bukrs i_belnr = i_belnr i_gjahr = i_gjahr TABLES t_accchg = lt_accchg EXCEPTIONS no_reference = 1 no_document = 2 many_documents = 3 wrong_input = 4 overwrite_creditcard = 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 SAPMFIAPQA_PREQ_FORM or its description.