2008 Jul 14 7:14 PM
Hi Guys,
I have created a FM which actually updates operation user status of an service order(IW31). It basically calls
FM STATUS_CHANGE_EXTERN.
Now my FM is getting called from a FM which is RFC enabled. And this RFC enabled FM is called from a
legacy system.
Now the problem is when I test my FM it updates
the operation status properly. But when legacy system
calls that RFC FM then operation status is not updated.
Could you guys help me on this.
Mainak
Hi Guys,
I have created a FM which actually updates operation user status of an service order(IW31). It basically calls
FM STATUS_CHANGE_EXTERN.
Now my FM is getting called from a FM which is RFC enabled. And this RFC enabled FM is called from a
legacy system.
Now the problem is when I test my FM it updates
the operation status properly. But when legacy system
calls that RFC FM then operation status is not updated.
Could you guys help me on this.
Mainak
2008 Jul 14 7:17 PM
Hello,
Make sure that the FM is remote enabled and also the username password are valid.
cheers,
Sushil Joshi
2008 Jul 14 7:27 PM
Hi,
Firstly in ATTRIBUTES tab of function module
select RFC Enable Function module button ( Remote Enabled).
And still getting the same error then im sorry that I Cant help you exactly so kindly look into this link..
and
http://searchsap.techtarget.com/tip/0,289483,sid21_gci786084,00.html
Hope it may help you.
Regards
Narin Nandivada
2008 Jul 14 8:03 PM
Hello Mainak,
Read the FM documentation for the FM:
FU STATUS_CHANGE_EXTERN
____________________________________________________
Short Text
Set User Status
Functionality
User status is set or deleted.
Notes
The status change is first executed in the internal buffer only and is written to the database later using a "COMMIT WORK".
If the message handler is active, no error messages or exceptions are triggered. Instead an appropriate message is written in the message handler.
Parameters
CHECK_ONLY
CLIENT
OBJNR
USER_STATUS
SET_INACT
SET_CHGKZ
NO_CHECK
STONR
Exceptions
OBJECT_NOT_FOUND
STATUS_INCONSISTENT
STATUS_NOT_ALLOWED
Function Group
Looks like the Logic is Handling using the COMMIT work at later point of time. So In your RFC Wrapper FM do a commit work / call BAPI Transaction_commit and try.
Thanks,
Greetson
2011 May 26 9:05 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |