In this procedure, you create BAPI wrappers that retrieve data from the tables ZTR_ORDER_ITM and ZTR_ORDER_HDR that you have created. Since BAPI wrapper interfaces need to conform to a certain syntax, you use the BAPI wrapper wizard for their creation.
Field |
Value |
---|---|
Backend Destination |
[RFC destination of the DOE] |
Function Group |
ZTR_BAPIFG |
Field |
Value |
---|---|
GetList |
ZTR_ORDER _GETLIST |
GetDetail |
ZTR_ORDER_GETDETAIL |
Modify |
ZTR_ORDER_MODIFY |
Field |
Value |
---|---|
Root Node |
Select the radio button in the first line |
Parameter Name |
ORDERHEADER |
Back-end Structure |
ZTR_ORDER_HDR |
Field |
Value |
---|---|
Root Node |
Do not select the radio button |
Parameter Name |
ORDERITEM |
Backend Structure |
ZTR_ORDER_ITM |
For Parameter Name , select ORDERHEADER .
Make the Key Field checkbox for Orderid is marked.
Mark the checkbox Import the BAPI Wrappers into DOE .
Choose Continue .
Select the radio button Create new SWCV .
Make the following entries:
Field |
Value |
---|---|
Name |
ZTUTORIAL |
Vendor |
Yourcompany.com |
Version |
1.0 |
Data object package |
$tmp |
Uses |
NW04s/MI |
Application |
Not marked |
Data Object |
ORDER |
Category |
STD Standard |
Direction |
Bidirectional |
Choose Continue .
For Backend BO , enter ORDER_BO .
Mark the checkbox for Generate runtime objects on import .
Do not mark the checkbox for Send confirmation .
Choose Continue .
In the Data Object Node dropdown list, select ORDERITEM
Mark ORDERID and ITEMNO as Key Fields .
Choose Continue .
This ensures that your development is local to the current system and is not transported to subsequent systems.
After a short time for generation, the BAPI wrappers are ready for use.