Application Development 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: 

PM order related - BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Kudos

Dear Friends,

I'm doing some changes to PM order via BAPI_ALM_ORDER_MAINTAIN. In Pm order there are operations and components. In my system each time I create a new component for new operation, the numbering of components is reset and new component is assigned item number 0010. I'm trying to find a way how to pass the component item number via BAPI, but such field is not present in IT_COMPONENT structure. I found the item number is written in RESB-POSNR. Do you know how I can control the item numbering for new components created?

Maybe you also know if the components numbering can be changed via customizing?

Thanks!

Regards,

Vojtek

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try to pass component item number in below mentioned field in table IT_COMPONENT.

IT_COMPONENT-ITEM_NUMBER = pass component item number

IT_COMPONENT-ACTIVITY = pass operation activity number.

For operation.

IT_OPERATION-ACTIVITY = pass operation number.

May this will help you.

Thanks,

Vijay

2 REPLIES 2

Former Member
0 Kudos

Hi,

Try to pass component item number in below mentioned field in table IT_COMPONENT.

IT_COMPONENT-ITEM_NUMBER = pass component item number

IT_COMPONENT-ACTIVITY = pass operation activity number.

For operation.

IT_OPERATION-ACTIVITY = pass operation number.

May this will help you.

Thanks,

Vijay

0 Kudos

Dear Vijay,

It works, item_number really works! I don't know how I missed it, because I tried to add different fields in component table.. Sometimes a view from a different side helps. Thank you so much!