SAP Reports / Programs

SDFPLAC2 SAP ABAP Report - Billing Plan Correction: Creating Deadlines







SDFPLAC2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Billing Plan Analysis and Correction: Creating Deadlines This report deletes all non-billed deadlines in the incorrect periodic billing plans and creates new deadlines...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 SDFPLAC2 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 SDFPLAC2. "Basic submit
SUBMIT SDFPLAC2 AND RETURN. "Return to original report after report execution complete
SUBMIT SDFPLAC2 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: TEST = Test
Selection Text: PERIO = Rule Billing Date
Selection Text: ORDER_NR = Document number
Selection Text: NFDAT = correct settlement end
Selection Text: COMPLETE = Completeness
Title: Billing Plan Correction: Creating Deadlines
Text Symbol: 026 = Deadline 2 Settlement Date To
Text Symbol: 025 = Ddlne 2 Settlement Date From
Text Symbol: 024 = Deadline 1 Settlement Date To
Text Symbol: 023 = Ddlne 1 Settlement Date From
Text Symbol: 022 = No. of Ddlines:
Text Symbol: 021 = Manual deadlines in billing plan, please check.
Text Symbol: 020 = Bill. Type
Text Symbol: 019 = Billing block
Text Symbol: 018 = 2nd deadline Status
Text Symbol: 017 = manual changes: please correct
Text Symbol: 016 = 1st deadline Status
Text Symbol: 015 = Manual
Text Symbol: 014 = In advan.
Text Symbol: 013 = Period
Text Symbol: 012 = Item
Text Symbol: 011 = Doc. no.
Text Symbol: 010 = Document lists, that are being corrected
Text Symbol: 006 = No execution
Text Symbol: 005 = Execute
Text Symbol: 004 = Only execute this correction programm after consulting with SAP
Text Symbol: 003 = Billing type and block are not transferred automatically, for example.
Text Symbol: 002 = New deadlines are created. Manual changes are lost.
Text Symbol: 001 = Correct incorrect billing plans


INCLUDES used within this REPORT SDFPLAC2

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:

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING titel = text-001 textline1 = text-002 textline2 = text-003 textline3 = text-004 text_option1 = text-005 text_option2 = text-006 cancel_display = 'X' defaultoption = '2' start_column = 25 start_row = 6 IMPORTING answer = da_answer.

SD_SALES_DOCUMENT_READ CALL FUNCTION 'SD_SALES_DOCUMENT_READ' EXPORTING document_number = int_liste-vbeln EXCEPTIONS error_message = 01.

SD_SALES_BILLINGPLAN_CHANGE CALL FUNCTION 'SD_SALES_BILLINGPLAN_CHANGE' EXPORTING i_vbeln = int_liste-vbeln i_posnr = int_liste-posnr i_fpla = kfpla i_create_dates = 'C' EXCEPTIONS error_message = 1 OTHERS = 1.

SD_SALES_ITEM_LIST_READ CALL FUNCTION 'SD_SALES_ITEM_LIST_READ' TABLES eivbap = itab_item_lines EXCEPTIONS OTHERS = 1.

SD_SALES_BILLINGPLAN_READ CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ' EXPORTING i_vbeln = int_liste-vbeln i_posnr = itab_item_lines-posnr IMPORTING e_fpla = fpla TABLES e_fplt = ifplt EXCEPTIONS no_billingplan_allowed = 1 no_billingplan_found = 2 OTHERS = 3.

SD_SALES_BILLINGPLAN_CHANGE CALL FUNCTION 'SD_SALES_BILLINGPLAN_CHANGE' EXPORTING i_vbeln = int_liste-vbeln i_posnr = itab_item_lines-posnr i_fpla = fpla i_create_dates = 'C' EXCEPTIONS error_message = 1 OTHERS = 1.

SD_SALES_DOCUMENT_SAVE CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE' EXCEPTIONS error_message = 01.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command i_structure_name = gc_structure is_layout = gs_layout_grid it_fieldcat = gt_fieldcat_grid i_save = gc_save it_events = gt_eventtab_grid TABLES t_outtab = gt_output_billing_docs EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_structure CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab_grid EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

/SAPDMC/DATAELEMENT_GET_TEXTS CALL FUNCTION '/SAPDMC/DATAELEMENT_GET_TEXTS' EXPORTING name = gc_simul IMPORTING text_long = lv_text_simul EXCEPTIONS not_found = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_top_of_page.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = gv_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = gv_log_handle i_s_msg = ls_app_log 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_s_display_profile = gs_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.



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