Skip to Content
author's profile photo Former Member
Former Member

Function modules in Update task

Hi Folks,

What is the difference between

1.If a function module contains in attributes 'Update mode ' and run( without 'update task - keyword).

2.call function ' fun2' in update task.

In this case, do we need to set the attributes must be 'Update task'?

Please help me.

Thanks in advance

Bhavani

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 07, 2005 at 02:29 PM

    From F1 Help...

    <i>

    This statement registers the update function module specified in update_function. update_function must be a character-type field, which during execution of the statement contains the name of an update function module in uppercase letters.

    <b>An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.</b>

    The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.

    </i>

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2005 at 04:18 PM

    Hi Bhavani ,

    1.If a function module contains in attributes 'Update mode ' and run( without 'update task - keyword).

    <b>It will behave as a normal FM . The update mode in attribute has no effect .</b>

    2.call function ' fun2' in update task.

    In this case, do we need to set the attributes must be 'Update task'?

    <b>Yes the attribute 'Update Task' must be set . Otherwise you will get a run time error CALL_FUNCTION_NO_VB. In this way the function will be executed when your program hits a commit work statement and will be executed in a sepaarte task ( not in the dialog task in which your program was running ) called update task.</b>

    Cheers.

    ( Dont forget to reward if answers were helpful )

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.