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: 

BAPI_SALESORDER_CHANGE fails to change Plant

Former Member
0 Kudos

Hi,

I have requirement that change plant for particular item.

I have tried to change Sales order from BAPI BAPI_SALESORDER_CHANGE, but it has given me following messges.

ORDER_HEADER_IN has been processed successfully

ITEM_IN has been processed successfully

Requested function UER1 is not available here

I have given following parameters:-

Headder:-

SALESDOCUMENT 52433

ORDER_HEADER_INX U

Item:-

ORDER_ITEM_IN

ITM_NU -000003

PLAN - P400

ORDER_ITEM_INX

ITM_NU -000003

UPDATEFLAG - U

PLANT - X

I tried with all different- different scenario like changing Update lfag blank and others.

But every time it is giving error that *Requested function UER1 is not available here *

Any Idea how to resolve it.

Thanks

PP

10 REPLIES 10

Former Member
0 Kudos

Any Idea Folks,

Did you see this type of error in Function module.

PP

Former Member
0 Kudos

Hi,

what is the message number and message ID.

Thanks

Naren

0 Kudos

Message id is V0 type E and number is 104.

Requested function UER1 is not available here

Former Member
0 Kudos

Hi,

Not sure of this error message...But try to change the sales order manually in VA02...and see if you are getting the same message..you might get some idea ...if you need to populate any other fields...

Thanks

Naren

0 Kudos

when I am going to change sales order manually, it is not giving any hard error.

Any Idea ???

Former Member
0 Kudos

Hi,

I think you might have to debug the BAPI on why it is giving the error message..Create a watch point on the return internal table...and check where it is appending the error message..

Thanks

Naren

0 Kudos

Hi Naren,

I tried to create watchpoint for return but it is saying that "Watchpoints not possible for tables and object instances"

Thanks

PP

0 Kudos

Hi Naren,

In debugging I found that in Function module SD_SALES_DOCUMENT_SAVE, it is giving error message.

And created watchpoint for work area return-type = 'E'.

Thanks for your help..

0 Kudos

I found the issue, was in user-exit USEREXIT_SAVE_DOCUMENT_PREPARE.

Thanks for your help...

Former Member
0 Kudos

Sales Order Save User-exit was turning to some wrong user command code and that was not found in system, that was the error.