BAPI Simulation & Finding BAPI
BAPI Simulation & Finding BAPI
9105,926
Introduction:
In this blog post, you will learn how to Find BAPI & Simulate BAPI. Like many of the
time, we need to create or upload data in mass. And for that, we use LSMW or BDC to
upload entries to system. But in some case, we need BAPI to upload data.
Simulated BAPI help`s technical person (ABAP) to code it in less time. And as Functional
we must have an idea of how to find BAPI & simulate BAPI. For that, I have shared the
easiest way how to work out along with the screenshot.
Overview:
First of all, you need to know which BAPI will full fill your requirement. In this blog post, I
have simulated BAPI for Production Order Creation (CO01).
Now, to simulate BAPI you can double click on BAPI_PRODORD_CREATE and then
press F8.
Or open Tcode: SE37 (Functional Builder: Initial Screen)
After executing you`ll get the screen Test Functional Module: Initial Screen.
You can take the help of Documentation provided for BAPI by SAP. In some of cases, you
won`t get documentation for BAPI due to non-availability of the document in language
EN.
Note: Documentation helps you in simulating BAPI with correct and required data to
input.
Note: Basic Start Date & Basic End Date is to be filled according to the scheduling type
you are using.
You can also use the other parameter like SCRAP_QUANTITY, ORDER_PRIORITY, etc.
After filling these entries come back to the main screen or press Function-F3(Back).
Now execute the BAPI you will get an Order Number under Export parameters.
If any of the ORDERDATA entries is wrong then the system will return error
under RETURN Parameters.
As for the error message, I have made wrong entries in field PROD_VERSION. Below is
the screenshot for the same.
RETURN: E61 567Version PV11 does not exist for material SFGPRFGRM101T in
plant 1010.
After filling correct entries to BAPI execute it and save the test case for your technical
person (ABAPER).
Also, you can cross-check the generated production order number in COOIS or CO03.
NOTE: “This BAPI performs Implicit Update task i.e. On the generation of
ORDER_NUMBER under Export Parameter this BAPI update the entries into the
database. Also, In some cases, we need to perform the update task explicitly.
Will be sharing the same with some other BAPI”.