‎2008 Nov 25 1:01 PM
Hello,
I've made a FM and want to flag in Function Library to run "IN UPDATE TASK".
How do I get there?
Thanks.
‎2008 Nov 25 1:03 PM
Hi
Go to attributes their you can select the radio button for mode .
IN UPDATE TASK
Regards
Neha
‎2008 Nov 25 1:41 PM
Hello,
I can't find that option...
All the radio buttons I have are:
Normal function module
Remote-enabled module
Update module
Start immediately
Immediat start, no restart
Start delayed
Coll. run
What should I choose, because it seems every combination I tried is in vain....
Thanks.
‎2008 Nov 25 1:48 PM
Hi
check table TFDIR to list of all FM's ... many SAP FM's does not have a mode assigned..
or try goto> future options> generated update include..
‎2008 Nov 25 1:50 PM
Yes, you are right, my function mode has no mode assigned...
Now, what do I have to do to change this?
Thanks.
‎2008 Nov 25 2:10 PM
In Attributes, set radiobutton:
"Remote-enable mode"
"Start immed."
‎2008 Nov 25 2:19 PM
I tried this and I receive this message when activating:
Reference parameters are not allowed with RFC.
.....
‎2008 Nov 25 2:27 PM
In your FM parameters (import, export, etc) set checkbox "pass value".
‎2008 Nov 25 2:30 PM
Turn off Remote enabled.
Turn on Update module
Turn on Start immediately.
Rob
‎2008 Nov 25 2:36 PM
Hi
In the attribute of the fm u can see the radiobutton UPDATE MODULE: u need to set it.
Then u need to indicate when your fm has to be called, so u need to choose one of these radiobutton:
- Start immed.;
- Immediate start, no restart
- Start delayed
These flag indicated the class of the process: V1 or V2
V1 Start immediatly: it means your fm will be run after COMMIT WORK: the order to run it depends when the fm is called in program.
All fm to update the data in the database have class V1, so if your fm is inserted in a std process and have V1 as class, if a dump occurs in your fm all process can be aborted;
V2 Start delayed: it means your fm will be run after running all fm of class V1
So If you need to insert your fm in a user-exit of a std process it should be better set Start delayed, else Start immed.
Max