2010 Dec 20 6:38 AM
hi everyone
my requirement is to modify the purchasing group of a PM order
im using the fm BAPI_ALM_ORDER_MAINTAIN to change that
i am populating the tables
it_method with refnumber 1, objectecttype 'COMPONENT',method 'CHANGE', objectkey with the orderid and the activity number
it_methid with refnumber 1, method 'SAVE'
it_header with the orderid
it_component with the purchasing group
it_component_up with the purchasing group marked as 'X'
but apparently the order is not changed and im getting error in the BAPI, its saying the objectkey is null
does anybody have any clue on that?
thanks for your help
hi everyone
my requirement is to modify the purchasing group of a PM order
im using the fm BAPI_ALM_ORDER_MAINTAIN to change that
i am populating the tables
it_method with refnumber 1, objectecttype 'COMPONENT',method 'CHANGE', objectkey with the orderid and the activity number
it_methid with refnumber 1, method 'SAVE'
it_header with the orderid
it_component with the purchasing group
it_component_up with the purchasing group marked as 'X'
but apparently the order is not changed and im getting error in the BAPI, its saying the objectkey is null
does anybody have any clue on that?
thanks for your help
2010 Dec 20 8:39 AM
Hi prema,
it_methid with refnumber 1, method 'SAVE'
dotn pass refnumber as 1 to method save just leave blank
just read the Fm documentation
regards
m.a
2010 Dec 20 9:33 AM
Hi,
Check your value of orderid in debugging mode, I think there is no value in Orderid. So it shows objectkey is null.
Edited by: Anjan Paul on Dec 20, 2010 3:04 PM
2010 Dec 20 10:09 AM
Hi,
Fill the structure IT_HEADER_UP with X to the fields you were populated in IT_HEADER.
Regards
Praveen
2010 Dec 21 6:35 AM
hi
problem is solved
The table it-operation and it_operation_up should be filled, instead of it_header
its working now
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |