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

problem in fm BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
672

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

4 REPLIES 4
Read only

Former Member
0 Likes
591

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

Read only

anjan_paul
Active Contributor
0 Likes
591

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

Read only

Former Member
0 Likes
591

Hi,

Fill the structure IT_HEADER_UP with X to the fields you were populated in IT_HEADER.

Regards

Praveen

Read only

0 Likes
591

hi

problem is solved

The table it-operation and it_operation_up should be filled, instead of it_header

its working now