02-05-2009 7:54 PM
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
02-05-2009 9:34 PM
Any Idea Folks,
Did you see this type of error in Function module.
PP
02-05-2009 9:37 PM
02-05-2009 10:15 PM
Message id is V0 type E and number is 104.
Requested function UER1 is not available here
02-05-2009 10:42 PM
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
02-05-2009 11:12 PM
when I am going to change sales order manually, it is not giving any hard error.
Any Idea ???
02-05-2009 11:35 PM
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
02-06-2009 12:11 AM
Hi Naren,
I tried to create watchpoint for return but it is saying that "Watchpoints not possible for tables and object instances"
Thanks
PP
02-06-2009 12:23 AM
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..
02-06-2009 12:35 AM
I found the issue, was in user-exit USEREXIT_SAVE_DOCUMENT_PREPARE.
Thanks for your help...
02-06-2009 12:36 AM
Sales Order Save User-exit was turning to some wrong user command code and that was not found in system, that was the error.