cancel
Showing results for 
Search instead for 
Did you mean: 

passing multiple items as input for Createfromdat2 BAPI of sales

0 Kudos

Hi All,

I am trying to create sales order through Web Dynpro java application. I am using Createfromdat2 BAPI for this purpose. In wdDoInit() method of controller i have added following code

Bapi_Salesorder_Createfromdat2_Input inputCreate=new Bapi_Salesorder_Createfromdat2_Input(); 
wdContext.nodeBapi_Salesorder_Createfromdat2_Input().bind(inputCreate); 

inputCreate.setOrder_Header_In(new Bapisdhd1());   
inputCreate.addOrder_Items_In(new Bapisditm());
inputCreate.addOrder_Partners(new Bapiparnr());

Using this code i can create sales order but it takes only one item as input.

here i want to create application where user can give multiple items as input to BAPI......

Please Guide me on the same...

Thanks & Regards,

Arati Bondre

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Repeat inputCreate.addOrder_Items_In(new Bapisditm()); for each item. This is also case with the multiple partners.

Cheers,

~kranthi