SAP Reports / Programs | Sales and Distribution | Basic Functions(SD-BF) SAP SD

SDFPLAC1 SAP ABAP Report - Billing Plan Correction: Creating Deadlines







SDFPLAC1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Billing Plan Correction: Creating Deadlines This plan deletes all 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 SDFPLAC1 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 SDFPLAC1. "Basic submit
SUBMIT SDFPLAC1 AND RETURN. "Return to original report after report execution complete
SUBMIT SDFPLAC1 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
Title: Billing Plan Correction: Creating Deadlines
Text Symbol: 026 = Deadlne 2 Status
Text Symbol: 025 = Deadline 2 Settlement Date To
Text Symbol: 024 = Ddlne 2 Settlement Date From
Text Symbol: 023 = Deadlne 1 Status
Text Symbol: 022 = Deadline 1 Settlement Date To
Text Symbol: 021 = Ddlne 1 Settlement Date From
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 SDFPLAC1

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 = GV_REPID I_CALLBACK_PF_STATUS_SET = GC_PFSTATUS I_CALLBACK_USER_COMMAND = GC_USERCOMMAND I_STRUCTURE_NAME = GC_SNAME IS_LAYOUT = GS_LAYOUT IT_FIELDCAT = GT_FIELDCAT I_SAVE = L_SAVE IT_EVENTS = GT_EVENTS TABLES T_OUTTAB = GT_OUTTAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = GV_REPID I_STRUCTURE_NAME = GC_SNAME 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 = IT_EVENTS.

/SAPDMC/DATAELEMENT_GET_TEXTS CALL FUNCTION '/SAPDMC/DATAELEMENT_GET_TEXTS' EXPORTING NAME = GC_P_SIMUL IMPORTING TEXT_LONG = LV_TEXT EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = GS_APP_LOG IMPORTING E_LOG_HANDLE = G_LOG_HANDLE EXCEPTIONS LOG_HEADER_INCONSISTENT = 1 OTHERS = 2.

BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING I_LOG_HANDLE = G_LOG_HANDLE I_MSGTY = IV_MSGTY I_TEXT = IV_MSGV1 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 = L_S_DISPLAY_PROFILE * I_T_LOG_HANDLE = GT_APP_LOG_HANDLE EXCEPTIONS PROFILE_INCONSISTENT = 1 INTERNAL_ERROR = 2 NO_DATA_AVAILABLE = 0 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 SDFPLAC1 or its description.