cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with 'BAPI_ALM_ORDER_MAINTAIN'

ramiwal_dsilva
Participant
0 Kudos

Hello Everyone,

I am an SAP ABAP consultant, however my knowledge of SAP Sales and Distribution is very limited.

I am facing a strange issue when I execute the BAPI_ALM_ORDER_MAINTAIN' to create a Service order.

1) I have all the required information to be passed to the BAPI, At first I executed the BAPI (standalone)  via SE37 and passed the required information and The Order was successfully created.

2) Next step: I called the same BAPI programmatically and passed the same information, but i got an error in the return structure " The

           Material did not exist or is not activated.

3)Next Step: I did not pass any material/qty this time programmatically, and the order was successfully executed.

Is there a reason for this disparity?

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

I would understand this findings that way:

It is possible to create a service order with and without material number,

but it is not possible to create a material with a wrong material number

Remember, a material number might be stored with leading zeros in the database while it is shown without leading zeros in the GUI.

ramiwal_dsilva
Participant
0 Kudos

Perfect!! that was spot on.

I forgot about the conversion

Thank you very much...

JL23
Active Contributor
0 Kudos

If that means your issue is solved then please close the question as described here

Answers (0)