‎2006 Sep 26 1:26 PM
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
‎2006 Sep 26 1:32 PM
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.
‎2006 Sep 26 1:52 PM
Hi Prakash,
I am passing Material number and account assignment but still I am getting error
‎2006 Sep 26 2:00 PM
check what u are passing to this field.
<b>BAPIMEPOITEM-ACCTASSCAT</b>
regards
Prabhu
‎2006 Sep 26 2:06 PM
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