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

Changing Material Number ON BAPI_REQUISITION_CHANGE!!!

Former Member
0 Likes
1,087

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
994

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.

5 REPLIES 5
Read only

Former Member
0 Likes
994

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,

Read only

Former Member
0 Likes
995

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?

Read only

0 Likes
994

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,

Read only

0 Likes
994

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.

Read only

0 Likes
994

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