Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multiple Line items in BAPI_PO_CREATE

Hi Everyone,

I am trying to create a webdynpro application for Creating a Purchase Order using "BAPI_PO_CREATE". Could you help in getting the code for adding a new line item while creating a purchase order using the above BAPI. Adding a new line item means similar to that of in the Transaction "ME21N". I need a table where each row is for a line item. Let me know if my question is not clear.

Please help me resolve this issue. I would appreciate your help.

Regards,

Gopal.

Former Member
Former Member replied

HI,

Remove the following code and try

iSourceValueNode.moveNext();

or try the following code it is more simple

for(int i=0;i<target.size();i++)

{

IPrivate<<node>>.ISourcenodeElement ele = wdContext.node<<sourcenode>>().createSourcenodeElement();

ele.setAttribute(wdContext.nodeTarget().getTargetnodeElementAt(i).getAttribute());

wdContext.nodeSource().addElement(ele);

}

Regards

Raghu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question