Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Passing IDOC to BAPI

Former Member
0 Likes
546

Is there any way of passing an IDOC contents to a BAPI directly, rather than reading the data from the IDOC segments and populating the BAPI structures manually?

The IDOC is generated from a Purchase Order created in the same client and so cannot be looped back into the system as an Inbound document. Instead I am sending the outbound IDOC (generated from the PO) to an ABAP function module port which will create the Sales Order.

Useful suggestions will be rewarded.

Regds

Thiru

Is there any way of passing an IDOC contents to a BAPI directly, rather than reading the data from the IDOC segments and populating the BAPI structures manually?

The IDOC is generated from a Purchase Order created in the same client and so cannot be looped back into the system as an Inbound document. Instead I am sending the outbound IDOC (generated from the PO) to an ABAP function module port which will create the Sales Order.

Useful suggestions will be rewarded.

Regds

Thiru

1 REPLY 1
Read only

Former Member
0 Likes
473

Check with the fillowing bapi's

BAPI_IDOC_INPUT1 Inbound BAPI IDoc: Individual Processing

BAPI_IDOC_INPUTP Inbound BAPI IDoc: Packet Processing

Reward points if useful.