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

BAPI_PO_Change problem

Former Member
0 Likes
606

Hi All,

Can any body will tell some idea on what are all the parameters that I have to pass to a BAPI when I am creating new line item for my purchase order.This is like I have one line item say 10 with quantity 100 I want to create one more line item with the same data of ist line item 10 but now the quantity is 50.Simply I want to replicate the line item with only change in the quantity.

I am using BAPI_PO_getdetail1 and getting the data of Ist line item and the same I am passing to 2nd line item by changing only quantity but it's giving lot of errors like "please enter material number or account assignment categoru",

"Please enter a delivery date"

It's really very urgent can some body suggest some idea on this pls

Thanks&Regards

Mahesh

4 REPLIES 4
Read only

Former Member
0 Likes
500

Pass PO_ITEM_SCHEDULES, PO_HEADER etc which you got from BAPI_PO_GETDETAIL to the BAPI_PO_CHANGE. Also check in which strucutre material number and account assignment are getting stored.

Regards,

Prakash.

Read only

0 Likes
500

Hi Prakash,

I am passing Material number and account assignment but still I am getting error

Read only

Former Member
0 Likes
500

check what u are passing to this field.

<b>BAPIMEPOITEM-ACCTASSCAT</b>

regards

Prabhu

Read only

Former Member
0 Likes
500

Hi,

You need to pass the entire item structure(POITEMS) which you have got from BAPI_PO_GETDETAIL for item 10 , populate POITEMX structure and ITEM SCHEDULE LINES structure also.

I think this should help.

Cheers

Sudheer