2007 Apr 19 8:14 AM
Dear Gurus,
On BAPI_REQUISITION_CHANGE there is parameter name REQUISITION_ITEMS_OLD, on this parameter there was no item MATERIAL. I want to change this material when doing update (change). How could this BAPI doesn't support MATERIAL when doing update (change) ? Do you have any information about this? Thx for you help before.
2007 Apr 19 10:07 AM
Thx for reply Kenshin,
when u create Purchase Req. using BAPI_REQUISITION_CREATE, you can save parameter MATERIAL (material number), but when u changed using BAPI_REQUISITION_CHANGE you can't save this MATERIAL, there is no paramater name MATERIAL on REQUISITION_ITEMS_OLD or REQUISITION_ITEMS_NEW. How could this happened? Anybody knows about this?
Dear Gurus,
On BAPI_REQUISITION_CHANGE there is parameter name REQUISITION_ITEMS_OLD, on this parameter there was no item MATERIAL. I want to change this material when doing update (change). How could this BAPI doesn't support MATERIAL when doing update (change) ? Do you have any information about this? Thx for you help before.
2007 Apr 19 9:51 AM
Dear John,
I'm newbie here,
This BAPI used for changing your old Purchase Requisition Document,
Sure firstly when doing change or update u have to know the old item Requisition Number.
Still confuse with ur question.............
BR,
2007 Apr 19 10:07 AM
Thx for reply Kenshin,
when u create Purchase Req. using BAPI_REQUISITION_CREATE, you can save parameter MATERIAL (material number), but when u changed using BAPI_REQUISITION_CHANGE you can't save this MATERIAL, there is no paramater name MATERIAL on REQUISITION_ITEMS_OLD or REQUISITION_ITEMS_NEW. How could this happened? Anybody knows about this?
2007 Apr 19 10:18 AM
PREQ_NO=Purchase requisition number
MATERIAL=Material Number
These 2 field are different,
Purchase Requisition Number is key field for Purchase Requisition Document.
Material Number is not a key at Purchase Requisition Document.
Hope u can get the answer or clue for ur problem bro.............
Br,
2007 Apr 19 10:34 AM
Sorry Kenshin but your answer still make me confused, when u running TCODE ME52, u change purchase request in SAP transanction mode, u can also change material number, material group, purchasing organization.
But when u using BAPI_REQUISITION_CHANGE, you cannot change material number, account assignment category, item category, requisition date, and some another field that cannot be changed. Anobody knows about this problem? please let know, thx before.
2007 Apr 19 10:51 AM
Hi John,
I took this part from BAPI documentation .
<i>The table contains the purchase requisition item with the changed values.
For more information on the individual parameter fields, see the data element documentation in the ABAP Dictionary.
Proceed as follows:
First enter all values from RequisitionsItemsOld in RequisitionItemsNew.
Then change the desired field values.
Ensure that all field that are not to be changed contain the values from the database.
Note
You cannot add any new items. The method only supports the changing of already existing items</i>
Please look for the documentation in BAPI for the other fields.
Hope this helps
Regards,
Caglar