SAP Reports / Programs | Public Sector Management | Funds Management(PSM-FM) SAP PSM

RFFMFG_UNFILLED_FORMS SAP ABAP INCLUDE - Forms for Unfilled Orders







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


Text pool values


Title: Forms for Unfilled Orders


INCLUDES used within this REPORT RFFMFG_UNFILLED_FORMS

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:

SD_ACC_DOWNPAYMENT_READ CALL FUNCTION 'SD_ACC_DOWNPAYMENT_READ' EXPORTING i_bukrs = p_bukrs i_kunnr = g_t_vbak-kunnr i_vbel2 = g_t_vbak-vbeln TABLES t_bsid = l_bsid * t_bsad = l_bsad " Note 1521034 -> Need note 1495205 EXCEPTIONS no_entry = 1 OTHERS = 2.

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = 'FICUSTOM' i_dtype = 'E' i_msgnr = '300' IMPORTING e_msgty = sy-msgty.

FM_FIPOS_GET_FROM_FIPEX CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' EXPORTING i_fipex = -fipex IMPORTING e_fipos = l_fipos EXCEPTIONS input_error = 1 data_not_found = 2 OTHERS = 3.

FM_COM_ITEM_READ CALL FUNCTION 'FM_COM_ITEM_READ' EXPORTING i_fikrs = -fikrs i_gjahr = -gjahr i_fipex = -fipex IMPORTING e_f_fmci = l_f_fmci.

FM_FIPOS_GET_FROM_FIPEX CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' EXPORTING i_fipex = -rfipex IMPORTING e_fipos = l_fipos EXCEPTIONS input_error = 1 data_not_found = 2 OTHERS = 3.

FM_ABP_REFRESH_RUNTIME CALL FUNCTION 'FM_ABP_REFRESH_RUNTIME'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

BAPI_SALESORDER_CHANGE CALL FUNCTION 'BAPI_SALESORDER_CHANGE' EXPORTING salesdocument = l_vbeln order_header_inx = order_header_inx simulation = l_simulation logic_switch = l_logic_switch TABLES return = return order_item_in = l_order_item_in order_item_inx = l_order_item_inx conditions_in = l_bapicond conditions_inx = l_bapicondx schedule_lines = l_bapischdl schedule_linesx = l_bapischdlx.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X'.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

SD_SALES_DOCUMENT_INIT CALL FUNCTION 'SD_SALES_DOCUMENT_INIT'.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

SD_SALES_DOCUMENT_INIT CALL FUNCTION 'SD_SALES_DOCUMENT_INIT'.

FM_FG_FUND_STATUS CALL FUNCTION 'FM_FG_FUND_STATUS' EXPORTING i_fm_area = u_fmarea i_fund = u_fund i_fund_date = u_fund_date i_flg_exceptions = con_on i_budget_period = u_budget_pd IMPORTING e_fund_status = u_fundstatus e_flg_error = l_flg_error EXCEPTIONS invalid_exp_date = 1 invalid_can_date = 2 OTHERS = 3.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_log_header IMPORTING e_log_handle = l_message_id "g_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_message_id i_s_msg = l_message_text EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_t_log_handle = gt_log_handle EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4.

POPUP_TO_CONFIRM





CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-004 text_question = text-003 text_button_1 = 'Yes' text_button_2 = 'No' display_cancel_button = 'X' iv_quickinfo_button_1 = 'Yes' iv_quickinfo_button_2 = 'No' IMPORTING answer = l_answer.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = u_comp_code IMPORTING e_fikrs = c_fm_area.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = c_fm_area IMPORTING f_fm01 = l_f_fm01.

FM_GET_YEAR_FROM_DATE CALL FUNCTION 'FM_GET_YEAR_FROM_DATE' EXPORTING i_periv = l_f_fm01-ca_periv i_date = u_pstng_date IMPORTING e_year = c_fisc_year.

FM_UPDATE_DATE_VALUES CALL FUNCTION 'FM_UPDATE_DATE_VALUES' EXPORTING i_mass_process = con_on i_fm_update_date = p_budat i_fm_update_period = p_period i_fm_doc_date = p_bldat.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'RFFMFUNFILLED_OBLI' CHANGING ct_fieldcat = p_gt_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

FM_FIPOS_GET_FROM_FIPEX CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' EXPORTING i_fipex = g_t_funds_rsv-fipex IMPORTING e_fipos = l_fipos EXCEPTIONS input_error = 1 data_not_found = 2 OTHERS = 3.

FM_FIPOS_GET_FROM_FIPEX CALL FUNCTION 'FM_FIPOS_GET_FROM_FIPEX' EXPORTING i_fipex = g_t_fmia_unass-rfipex IMPORTING e_fipos = l_fipos EXCEPTIONS input_error = 1 data_not_found = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'RFFMFUNFILLED_UNASSIGNED' CHANGING ct_fieldcat = p_gt_fieldcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

FREE_SELECTIONS_RANGE_2_EX CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX' EXPORTING field_ranges = u_t_segments IMPORTING expressions = c_t_texpr.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'RFFMFUNFILLED' i_buffer_active = 'X' i_bypassing_buffer = 'X' CHANGING ct_fieldcat = ct_fcat[] EXCEPTIONS inconsistent_interface = 1 program_error = 2.

SD_SALES_DOCUMENT_PREFETCH CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH' EXPORTING i_sales_view = da_sales_view i_memory_read = 'A' TABLES i_vbak_keytab = da_vbak_keytab fxkomv = da_xkomv.

SD_SALES_DOCUMENT_ENQUEUE CALL FUNCTION 'SD_SALES_DOCUMENT_ENQUEUE' EXPORTING vbeln = t_itab-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

SD_VBAK_SINGLE_READ CALL FUNCTION 'SD_VBAK_SINGLE_READ' EXPORTING i_vbeln = u_vbeln i_bypassing_buffer = ' ' IMPORTING e_vbak = l_vbak EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = 25 text = text-001.

SD_VBKD_SELECT CALL FUNCTION 'SD_VBKD_SELECT' EXPORTING i_document_number = u_vbeln i_item_number = u_posnr IMPORTING e_vbkd = xvbkd.

SD_VEDA_SELECT CALL FUNCTION 'SD_VEDA_SELECT' EXPORTING i_document_number = u_vbeln i_item_number = u_vposn i_trtyp = 'A' IMPORTING e_vedavb = xveda.

SD_SALES_DOCUMENT_PREFETCH CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH' EXPORTING i_sales_view = da_sales_view i_memory_read = 'A' TABLES i_vbak_keytab = da_vbak_keytab fxkomv = da_xkomv.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_document_number = t_itab-vbeln i_item_number = t_itab-posnr IMPORTING e_bukrs = l_bukrs e_vbap = vbap e_vbak = l_f_vbak EXCEPTIONS OTHERS = 1.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = l_bukrs IMPORTING e_fikrs = l_fikrs EXCEPTIONS no_fikrs_for_bukrs = 1 OTHERS = 2.




FM_CO_ASS_INPUT_GET_SD CALL FUNCTION 'FM_CO_ASS_INPUT_GET_SD' EXPORTING i_vbeln = t_itab-vbeln i_posnr = t_itab-posnr i_bukrs = l_bukrs i_fikrs = l_fikrs IMPORTING e_fipos = l_fipos e_fistl = l_f_fmfg_uo_derive-fund_center e_fonds = l_f_fmfg_uo_derive-fund e_fkber = l_f_fmfg_uo_derive-function_area e_measure = l_f_fmfg_uo_derive-measure * e_grant_nbr = l_f_fmfg_uo_derive-grant_nbr e_budget_period = l_f_fmfg_uo_derive-budget_period EXCEPTIONS no_customizing_found = 1 assignment_incomplete = 2 not_active = 3 OTHERS = 4.

CONVERSION_EXIT_FIPOS_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_FIPOS_OUTPUT' EXPORTING input = l_fipos IMPORTING output = l_f_fmfg_uo_derive-commit_item EXCEPTIONS not_found = 1 OTHERS = 2.

FMFG_DERIVE_UNFILLED_ORDERS CALL FUNCTION 'FMFG_DERIVE_UNFILLED_ORDERS' EXPORTING i_fmfg_unfilled_orders_derive = l_f_fmfg_uo_derive i_flg_buffer = con_on IMPORTING e_fmfg_unfilled_orders_derive = l_f_fmfg_uo_derive EXCEPTIONS derivation_failed = 1 OTHERS = 2.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_document_number = t_itab-vbeln i_item_number = t_itab-posnr IMPORTING e_vbap = vbap EXCEPTIONS OTHERS = 1.

FM_ABP_REFRESH_RUNTIME CALL FUNCTION 'FM_ABP_REFRESH_RUNTIME'.

BAPI_SALESORDER_CHANGE CALL FUNCTION 'BAPI_SALESORDER_CHANGE' EXPORTING salesdocument = l_vbeln order_header_inx = order_header_inx simulation = l_simulation logic_switch = l_logic_switch TABLES return = return order_item_in = l_order_item_in order_item_inx = l_order_item_inx conditions_in = l_bapicond conditions_inx = l_bapicondx schedule_lines = l_bapischdl schedule_linesx = l_bapischdlx EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg EXCEPTIONS OTHERS = 1.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X'.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

SD_SALES_DOCUMENT_INIT CALL FUNCTION 'SD_SALES_DOCUMENT_INIT'.

ACCOUNT_ALLOCATION_GENERAL CALL FUNCTION 'ACCOUNT_ALLOCATION_GENERAL' EXPORTING i_application = komkcv-kappl i_scheme = komkcv-kalsmc i_header_communication = komkcv i_item_communication = kompcv i_protokoll = ' ' IMPORTING e_c000 = lv_c000 EXCEPTIONS OTHERS = 0.

ACCOUNT_ALLOCATION_GENERAL CALL FUNCTION 'ACCOUNT_ALLOCATION_GENERAL' EXPORTING i_application = komkcv-kappl i_scheme = komkcv-kalsmc i_header_communication = komkcv i_item_communication = kompcv i_protokoll = ' ' IMPORTING e_c000 = lv_c000 EXCEPTIONS OTHERS = 0.

FM_ABP_REFRESH_RUNTIME CALL FUNCTION 'FM_ABP_REFRESH_RUNTIME'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

AC_CLR_DOCUMENT_CREATE CALL FUNCTION 'AC_CLR_DOCUMENT_CREATE' EXPORTING i_auglv = 'EINGZAHL' i_koart = c_customer i_bukrs = p_bukrs i_konko = g_t_bsid-kunnr TABLES t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr t_accclr_itm_key = lt_selection EXCEPTIONS invalid_input = 1 invalid_selection = 2 account_missing = 3 account_not_oi_handled = 4 account_locked = 5 document_locked = 6 account_clr_internally = 7 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' EXPORTING i_incl_title = ' ' TABLES t_mesg = lt_mesg.

FI_DOCUMENT_TYPE_DATA CALL FUNCTION 'FI_DOCUMENT_TYPE_DATA' EXPORTING i_blart = ls_accit-blart IMPORTING e_numkr = l_numkr.

NUMBER_GET_INFO CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING nr_range_nr = l_numkr object = c_no_obj subobject = p_bukrs toyear = g_t_bsid-gjahr IMPORTING interval = ls_nriv.

FI_REFERENCE_CREATE CALL FUNCTION 'FI_REFERENCE_CREATE' EXPORTING i_awtyp = c_awtyp i_bukrs = p_bukrs i_gjahr = g_t_bsid-gjahr i_belnr = e_belnr IMPORTING e_awtyp = l_awtyp e_awref = l_awref e_aworg = l_aworg e_awsys = l_awsys.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awtyp = l_awtyp i_awref = l_awref i_aworg = l_aworg i_awsys = l_awsys.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' EXPORTING i_incl_title = ' ' TABLES t_mesg = lt_mesg.

FM_ABP_REFRESH_RUNTIME CALL FUNCTION 'FM_ABP_REFRESH_RUNTIME'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

RV_INVOICE_CREATE CALL FUNCTION 'RV_INVOICE_CREATE' EXPORTING invoice_date = p_budatg vbsk_i = ls_vbsk with_posting = 'B' i_blart = u_dp_doc IMPORTING vbsk_e = ls_vbsk TABLES xkomfk = lt_komfk xkomv = lt_xkomv xthead = lt_xthead xvbfs = lt_xvbfs xvbpa = lt_xvbpa xvbrk = lt_xvbrk xvbrp = lt_xvbrp xvbss = lt_xvbss.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' EXPORTING i_incl_title = ' ' TABLES t_mesg = lt_mesg.

ENQUEUE_EVVBAKE CALL FUNCTION 'ENQUEUE_EVVBAKE' EXPORTING vbeln = us_vbeln _wait = 'X' EXCEPTIONS foreign_lock = 1 system_failure = 2.

DEQUEUE_EVVBAKE CALL FUNCTION 'DEQUEUE_EVVBAKE' EXPORTING vbeln = us_vbeln.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_document_number = t_itab-vbeln i_item_number = t_itab-posnr IMPORTING e_bukrs = l_bukrs e_vbap = vbap e_vbak = l_f_vbak EXCEPTIONS OTHERS = 1.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = l_bukrs IMPORTING e_fikrs = l_fikrs EXCEPTIONS no_fikrs_for_bukrs = 1 OTHERS = 2.

FM_CO_ASS_INPUT_GET_SD CALL FUNCTION 'FM_CO_ASS_INPUT_GET_SD' EXPORTING i_vbeln = t_itab-vbeln i_posnr = t_itab-posnr i_bukrs = l_bukrs i_fikrs = l_fikrs IMPORTING e_fipos = l_fipos e_fistl = l_f_fmfg_uo_derive-fund_center e_fonds = l_f_fmfg_uo_derive-fund e_fkber = l_f_fmfg_uo_derive-function_area e_measure = l_f_fmfg_uo_derive-measure * e_grant_nbr = l_f_fmfg_uo_derive-grant_nbr e_budget_period = l_f_fmfg_uo_derive-budget_period EXCEPTIONS no_customizing_found = 1 assignment_incomplete = 2 not_active = 3 OTHERS = 4.

CONVERSION_EXIT_FIPOS_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_FIPOS_OUTPUT' EXPORTING input = l_fipos IMPORTING output = l_f_fmfg_uo_derive-commit_item EXCEPTIONS not_found = 1 OTHERS = 2.

FMFG_DERIVE_UNFILLED_ORDERS CALL FUNCTION 'FMFG_DERIVE_UNFILLED_ORDERS' EXPORTING i_fmfg_unfilled_orders_derive = l_f_fmfg_uo_derive i_flg_buffer = con_on IMPORTING e_fmfg_unfilled_orders_derive = l_f_fmfg_uo_derive EXCEPTIONS derivation_failed = 1 OTHERS = 2.

SD_DOCUMENT_ACCOUNT_ASSIGNMENT CALL FUNCTION 'SD_DOCUMENT_ACCOUNT_ASSIGNMENT' EXPORTING i_document_number = t_itab-vbeln i_item_number = t_itab-posnr IMPORTING e_vbap = vbap EXCEPTIONS OTHERS = 1.

FM_ABP_REFRESH_RUNTIME CALL FUNCTION 'FM_ABP_REFRESH_RUNTIME'.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

BAPI_SALESORDER_CHANGE CALL FUNCTION 'BAPI_SALESORDER_CHANGE' EXPORTING salesdocument = l_vbeln order_header_inx = order_header_inx simulation = l_simulation logic_switch = l_logic_switch TABLES return = return order_item_in = l_order_item_in order_item_inx = l_order_item_inx conditions_in = l_bapicond conditions_inx = l_bapicondx schedule_lines = l_bapischdl schedule_linesx = l_bapischdlx EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = lt_mesg EXCEPTIONS OTHERS = 1.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

SD_SALES_DOCUMENT_INIT CALL FUNCTION 'SD_SALES_DOCUMENT_INIT'.

SD_SALES_DOCUMENT_PREFETCH CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH' EXPORTING i_sales_view = da_sales_view TABLES i_vbak_keytab = da_vbak_keytab fxkomv = da_xkomv.



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