Skip to Content
0
Jun 02, 2008 at 11:36 AM

passing multiple items as input for Createfromdat2 BAPI of sales

33 Views

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