SAP Reports / Programs | Production Planning and Control | Material Requirements Planning | Master Data(PP-MRP-BD) SAP PP

MDBAPI01 SAP ABAP dialog Program - Planned order BAPI testing transaction program







MDBAPI01 is a standard Module pool for a dialog screen ABAP Program available within your SAP system (depending on your version and release level). It is used for This program is a test program to give you an idea of how the planned order BAPIs (methods) can be used and integrated, for what purposes...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 MDBAPI01 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MDBA - BAPI planned order processing


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


Text pool values


Title: Planned order BAPI testing transaction program
Text Symbol: 001 = BAPI executed
Text Symbol: 002 = DEL BAPI
Text Symbol: 003 = ExtChk BAPI
Text Symbol: 004 = GetLt BAPI
Text Symbol: 005 = GetDet BAPI
Text Symbol: 006 = Change BAPI
Text Symbol: 007 = Create BAPI


INCLUDES used within this REPORT MDBAPI01

INCLUDE API01TOP.


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:

BAPI_PLANNEDORDER_DELETE CALL FUNCTION 'BAPI_PLANNEDORDER_DELETE' EXPORTING PLANNEDORDER = I_BAPIPLNUM IMPORTING RETURN = MESSAGE.

BAPI_MESSAGE_GETDETAIL CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL' EXPORTING ID = MESSAGE-ID NUMBER = MESSAGE-NUMBER LANGUAGE = SY-LANGU TEXTFORMAT = TEXTFORMAT MESSAGE_V1 = MESSAGE-MESSAGE_V1 MESSAGE_V2 = MESSAGE-MESSAGE_V2 MESSAGE_V3 = MESSAGE-MESSAGE_V3 MESSAGE_V4 = MESSAGE-MESSAGE_V4 IMPORTING MESSAGE = SHOW_MESSAGE-MESSAGE RETURN = SHOW_MESSAGE.

BAPI_MESSAGE_GETDETAIL CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL' EXPORTING ID = MESSAGE-ID NUMBER = MESSAGE-NUMBER LANGUAGE = SY-LANGU TEXTFORMAT = TEXTFORMAT MESSAGE_V1 = MESSAGE-MESSAGE_V1 MESSAGE_V2 = MESSAGE-MESSAGE_V2 MESSAGE_V3 = MESSAGE-MESSAGE_V3 MESSAGE_V4 = MESSAGE-MESSAGE_V4 IMPORTING MESSAGE = SHOW_MESSAGE-MESSAGE RETURN = SHOW_MESSAGE.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

BAPI_PLANNEDORDER_EXIST_CHECK CALL FUNCTION 'BAPI_PLANNEDORDER_EXIST_CHECK' EXPORTING PLANNEDORDER = I_BAPIPLNUM IMPORTING RETURN = MESSAGE.

BAPI_PLANNEDORDER_GET_DETAIL CALL FUNCTION 'BAPI_PLANNEDORDER_GET_DETAIL' EXPORTING PLANNEDORDER = I_BAPIPLNUM IMPORTING RETURN = MESSAGE HEADERDATA = I_HEADER_DATA_S "<= Please double click CAPACITYHEADERDATA1 = I_CAPACITYHEADERDATA1 "<=double click CAPACITYHEADERDATA2 = I_CAPACITYHEADERDATA2 "<=double click CAPACITYHEADERDATA3 = I_CAPACITYHEADERDATA3 "<=double click TABLES COMPONENTSDATA = I_COMPONENTS_DATA "<= Please double click CAPACITYDATA1 = I_CAPACITY_DATA1 "<= Please double click CAPACITYDATA2 = I_CAPACITY_DATA2 "<= Please double click CAPACITYDATA3 = I_CAPACITY_DATA3. "<= Please double click

BAPI_PLANNEDORDER_GET_DET_LIST CALL FUNCTION 'BAPI_PLANNEDORDER_GET_DET_LIST' EXPORTING SELECTIONCRITERIA = BAPIPLAF_I3 IMPORTING RETURN = MESSAGE TABLES DETAILEDLIST = I_HEADER_DATA EXCEPTIONS ERROR_MESSAGE.

BAPI_PLANNEDORDER_CREATE CALL FUNCTION 'BAPI_PLANNEDORDER_CREATE' EXPORTING HEADERDATA = BAPIPLAF_I1 IMPORTING PLANNEDORDER = I_BAPIPLNUM RETURN = MESSAGE.

BAPI_PLANNEDORDER_CHANGE CALL FUNCTION 'BAPI_PLANNEDORDER_CHANGE' EXPORTING PLANNEDORDER = I_BAPIPLNUM HEADERDATA = BAPIPLAF_I2 HEADERDATAX = BAPIPLAF_I2X IMPORTING RETURN = MESSAGE.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.



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