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

create multiple line item contact order (va41) using bapi

Former Member
0 Likes
1,072

i want to create contract order with multiple line item , using transaction va41 , data comes from another system , how can I handle multiple line item data to pass to create contact order

i want to create contract order with multiple line item , using transaction va41 , data comes from another system , how can I handle multiple line item data to pass to create contact order

5 REPLIES 5
Read only

Former Member
0 Likes
855

hi

BAPI:BAPI_CONTRACT_CREATEFROMDATA

for this you can pass data fron flat file and fmGUI_UPLOAD.

Read only

Former Member
0 Likes
855

Hi,

try BAPI_SALESORDER_CREATEFROMDAT2.

This BAPI creates all kinds of Sales documents except for quotation.

Hope this helps.

Read only

Former Member
0 Likes
855

Hi

I'm using BAPI_CONTRACT_CREATEFROMDATA. , but was able to create only one contract at a time where can i handle multiple contracts.

Read only

0 Likes
855

Hi,

You need to call this Bapi in the loop .. First get all the data in the internal tables and then Loop the internal table , move the data bapi and endloop... In this way your Bapi will be called multiple times for mutiple contracts.

Regards,

Nagaraj

Read only

0 Likes
855

hi

First gel all the header data

loop at ltab into wa.

move data .

append lt_final_item.

endloop.

call the bapi.-->In the item table pass the internal table itab.