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

RFFMCLOS SAP ABAP Report - Close Obligations







RFFMCLOS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generated include for enhancement - NGUYEN - 21...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFFMCLOS 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 RFFMCLOS. "Basic submit
SUBMIT RFFMCLOS AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMCLOS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_BDDATE = D Document date
Selection Text: P_ERROR = Error List
Selection Text: P_FISCYR = D Fiscal year
Selection Text: P_FMAREA = D FM area
Selection Text: P_FMDATE = D FM posting date
Selection Text: P_GETEF = Use Earmarked Funds Docs
Selection Text: P_GETPK = Use Parked Documents
Selection Text: P_GETPO = Use Purchase Order Docs
Selection Text: P_GETPR = Use Purchase Requisition Docs
Selection Text: P_PERIOD = D Period
Selection Text: P_TESTRN = D Test run
Selection Text: S_DOCEF = D Earmarked funds
Selection Text: S_DOCPK = Parked Document
Selection Text: S_DOCPO = D Purchasing document
Selection Text: S_DOCPR = D Purchase requisition
Selection Text: S_FUND = D Fund
Title: Close Obligations
Text Symbol: 040 = Update dates recorded in Funds Management
Text Symbol: 032 = Number of unsuccessfully completed Parked documents
Text Symbol: 031 = Number of successfully completed Parked documents
Text Symbol: 030 = Number of unsuccessful Parked document checks:
Text Symbol: 029 = Number of successful Parked document checks:
Text Symbol: 028 = Parked Documents
Text Symbol: 002 = Funds Management Obligation Document Selection
Text Symbol: 003 = FM Obligation Document Closeout
Text Symbol: 004 = Process Control
Text Symbol: 008 = Test Run
Text Symbol: 009 = Prod. Run
Text Symbol: 010 = Purchase Order Documents
Text Symbol: 011 = Purchase Requisition Documents
Text Symbol: 012 = Earmarked Funds Documents
Text Symbol: 013 = Document completed successfully
Text Symbol: 014 = Error
Text Symbol: 015 = Initial document check OK
Text Symbol: 016 = Number of successful Purchase Order document checks:
Text Symbol: 017 = Number of successful Purchase Requisition document checks:
Text Symbol: 018 = Number of successful Earmarked Funds document checks:
Text Symbol: 019 = Number of unsuccessful Purchase Order document checks:





Text Symbol: 020 = Number of unsuccessful Purchase Requisition document checks:
Text Symbol: 021 = Number of unsuccessful Earmarked Funds document checks:
Text Symbol: 022 = Number of successfully completed Purchase Order documents:
Text Symbol: 023 = Number of successfully completed Purchase Requisition documents:
Text Symbol: 024 = Number of successfully completed Earmarked Funds documents:
Text Symbol: 025 = Number of unsuccessfully completed Purchase Order documents:
Text Symbol: 026 = Number of unsuccessfully completed Purchase Requisition documents:
Text Symbol: 027 = Number of unsuccessfully completed Earmarked Funds documents


INCLUDES used within this REPORT RFFMCLOS

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:

FM_GET_VALID_PERIOD_FROM_DATE CALL FUNCTION 'FM_GET_VALID_PERIOD_FROM_DATE' EXPORTING i_fm_area = p_fmarea i_date = p_fmdate i_old_period = p_period IMPORTING e_new_period = p_period.

FM_CHECK_SPECIAL_PERIOD CALL FUNCTION 'FM_CHECK_SPECIAL_PERIOD' EXPORTING i_fm_area = p_fmarea i_fm_update_date = p_fmdate i_fm_period = p_period.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = l_f_mesg-msgid message_number = l_msgno message_var1 = l_f_mesg-msgv1 message_var2 = l_f_mesg-msgv2 message_var3 = l_f_mesg-msgv3 message_var4 = l_f_mesg-msgv4 IMPORTING message_text = l_message_text TABLES longtext = l_t_long_text EXCEPTIONS message_not_found = 1 OTHERS = 2.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = l_fmarea ip_fincode = l_fund ip_gjahr = l_fiscyr * IP_LANGUAGE = ' ' IMPORTING f_fmfincode = l_f_fmfincode.

FM_FG_FUND_STATUS CALL FUNCTION 'FM_FG_FUND_STATUS' EXPORTING i_fm_area = l_fmarea i_fund = l_fund i_fiscal_year = l_fiscyr i_budget_period = l_budget_pd * ip_applc = applc_ca IMPORTING e_fund_status = l_fundstatus e_flg_error = l_flg_error EXCEPTIONS invalid_exp_date = 1 invalid_can_date = 2 fiscal_year_variant_empty = 3 fund_budget_pd_invalid = 4 OTHERS = 5.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = l_fmarea ip_fincode = l_fund ip_gjahr = l_fiscyr * IP_LANGUAGE = ' ' IMPORTING f_fmfincode = l_f_fmfincode.

FM_FG_FUND_STATUS CALL FUNCTION 'FM_FG_FUND_STATUS' EXPORTING i_fm_area = l_fmarea i_fund = l_fund i_budget_period = l_budget_pd i_fiscal_year = l_fiscyr * ip_applc = applc_ca i_flg_exceptions = con_on IMPORTING e_fund_status = l_fundstatus e_flg_error = l_flg_error EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FMFR_CHANGE_COMPLETION_FLAG CALL FUNCTION 'FMFR_CHANGE_COMPLETION_FLAG' EXPORTING i_flg_commit = con_off i_flg_checkonly = p_testrn i_flg_complete_doc = con_on IMPORTING e_count_success = l_count_success TABLES t_positions = l_t_position.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_handlermesg.

FM_SELECTION_CRITERIA_PRINT CALL FUNCTION 'FM_SELECTION_CRITERIA_PRINT' EXPORTING i_report_name = sy-cprog xfeld = space.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = u_t_mesg-msgid message_number = l_msgno message_var1 = u_t_mesg-msgv1 message_var2 = u_t_mesg-msgv2 message_var3 = u_t_mesg-msgv3 message_var4 = u_t_mesg-msgv4 IMPORTING message_text = l_message_text EXCEPTIONS message_not_found = 1 OTHERS = 2.

BAPI_PO_CHANGE CALL FUNCTION 'BAPI_PO_CHANGE' EXPORTING purchaseorder = p_l_docnr testrun = p_testrn TABLES return = p_l_t_message poitem = l_poitem poitemx = l_poitemx.

BAPI_REQUISITION_DELETE CALL FUNCTION 'BAPI_REQUISITION_DELETE' EXPORTING number = p_l_docnr TABLES requisition_items_to_delete = l_bapieban return = p_l_t_message.








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