Skip to Content
-1

CALL FUNCTION XXX UPDATE TASK

Hello Experts,

Good Day!

I'm working on a user exit where a couple of existing custom FM is implemented as below, each FM updates different field from table LT_TAB_UPDATE.

CALL FUNCTION XX1 in UPDATE TASK

TABLES = LT_TAB_UPDATE

CALL FUNCTION XX2 in UPDATE TASK

TABLES = LT_TAB_UPDATE

Now, i have a new requirement to update a new field and planning to implement a new FM, i don't want to touch the existing FM's.

CALL FUNCTION XX3 in UPDATE TASK

TABLES = LT_TAB_UPDATE

I cant find anything in the forum if it's allowed to have multiple update task in one LUW but base on debugging it seems that multiple update task doesn't work as expected. Can anyone confirm if this is allowed or not?

Thanks,

Dimmak

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 08, 2017 at 06:29 AM

    Why don't you read the documentation for CALL FUNCTION IN UPDATE TASK and COMMIT WORK instead of searching forums?

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 08, 2017 at 06:37 AM

    The update task (if any) occurs at the end of the SAP LUW. There's only one. It's triggered by COMMIT WORK (only if there's at least one CALL FUNCTION IN UPDATE TASK since the beginning of the current SAP LUW). A new SAP LUW is started at the beginning of an internal session (SUBMIT, transaction, etc.) and after every COMMIT WORK or ROLLBACK WORK.

    I don't fully understand your question, please give more details about your scenario.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2017 at 02:52 PM

    Hi,

    You can call any number of FMs in UPDATE TASK in a single SAP LUW, once the COMMIT WORK statement is executed, all registered FMs will execute in update work process. Now if your field is not getting updated then there should be something wrong in your FM. Please use SM13 t-code to check if your update FM went to any error. Also you can use UPDATE DEBUGGING to debug your update FM.

    Add comment
    10|10000 characters needed characters exceeded