Skip to Content
avatar image
Former Member

passing multiple items as input for Createfromdat2 BAPI of sales

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(); 

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 02, 2008 at 10:17 PM

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



    Add comment
    10|10000 characters needed characters exceeded