Application Development and Automation 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: 
Read only

Function library

Former Member
0 Likes
1,021

Hello,

I've made a FM and want to flag in Function Library to run "IN UPDATE TASK".

How do I get there?

Thanks.

9 REPLIES 9
Read only

Former Member
0 Likes
972

Hi

Go to attributes their you can select the radio button for mode .

IN UPDATE TASK

Regards

Neha

Read only

0 Likes
972

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.

Read only

0 Likes
972

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..

Read only

0 Likes
972

Yes, you are right, my function mode has no mode assigned...

Now, what do I have to do to change this?

Thanks.

Read only

Former Member
0 Likes
972

In Attributes, set radiobutton:

"Remote-enable mode"

"Start immed."

Read only

0 Likes
972

I tried this and I receive this message when activating:

Reference parameters are not allowed with RFC.

.....

Read only

0 Likes
972

In your FM parameters (import, export, etc) set checkbox "pass value".

Read only

0 Likes
972

Turn off Remote enabled.

Turn on Update module

Turn on Start immediately.

Rob

Read only

0 Likes
972

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