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: 

Error in BAPI_ALM_ORDER_MAINTAIN - Operation number does not exists

0 Kudos

Hello everyone,

While executing BAPI, i am receiving the below errors.

As ABAPER, i'm trying to debug the BAPI, but unfortunatelyi am not able to find anything.

Could you please help me on this. It's very urjent.

Your help will be appreciated.

8 REPLIES 8

arvind_soni
Participant
0 Kudos

Hi Surender,

The error message is explanatory as it says that operation number is missing in the BAPI call. If you are updating something in the operation of the work order then you must pass values in table parameters: IT_OPERATION and IT_OPERATION_UP.

Regards,

Arvind

0 Kudos

Hi Arvind,

Thanks for your answer.

Yes, we are trying to update the operations. User is adding additional operation manually in CO02 transaction.

I checked by updating IT_OPERATION and IT_OPERATION_UP internal tables with operation number and plant.

But it's giving the same error.

Could you please help me.

raymond_giuseppi
Active Contributor
0 Kudos

Self-explanatory message, you try to change an operation '0056' that doesn't exist in the order (wrong ACTIVITY / AFVC-VORNR)

raymond_giuseppi
Active Contributor
0 Kudos

If you don't want to change (or provide an initial value) for the component number don't set the update indicator, also isn't the field name actually ACTIVITY in the BAPI structure?

0 Kudos

Hi Raymond,

Thanks for your reply.

I have got one more issue on the same.

User is trying to update 'Operation Number' for the required component based on their needs.

They are changing through an file upload in a custom transaction.

And this custom transaction, using BAPI_ALM_ORDER_MAINTAIN function module to update the same.

But here, it's not updating correctly. If i remove ACTIVITY field it's not updating correctly.

Could you please help me on this.

Thanks,

Surendar Reddy.

0 Kudos

Hello everyone,

User is trying to update 'Operation number' for each component in an Production order component level.

They are using an EXCEL format (Here they are changing operation number as per their need) to update 'Operation number'.

They are using BAPI_ALM_ORDER_MAINTAIN function module to update the same.

But here, i am getting the same error which i mentioned in earlier screen shot.

I wanna skip this error and update the 'Operation number' in the order for the respective component.

Could you please help me on this.

Thanks,

Surendar Reddy.

former_member215526
Active Participant
0 Kudos

Hello Surender,

I hope it´s not to late and this information can help.

Please can you show us how do you execute this BAPI?

Remark: This error generally appears here in this call function "IBAPI_PROC_METHOD_TABLE_EXEC".

Please verify if you concatenate correctly the order and operation number in the wa_methods-objectkey.

Reason: in the include "LIBAPI_ALM_ORDER_PROCESSINGF05"

I attach also a little program who change the description in the operation.

zbapi-alm-order-maintain-desc-oper.txt

Best Regards,

Xavier

0 Kudos

Problem is when not updating operation only updating component(req date).