Skip to Content
avatar image
Former Member

EXEC_METHODCALL_PPF Multiple Documents Save Error

I am generating more than 1 task on one status change using action profiles.

But if I use function module CRM_ORDER_SAVE it is not generating any task giving error predecessor not found in database.

If I use function module CRM_ACTION_PUT_DOC_SAVE_OB it is not generating multiple tasks since during commit of second task guid of previous tasks is passed again giving DBSQL_DUPLICATE_KEY_ERROR dump in program SAPLCRM_ACTIVITY_H_DU.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 20, 2017 at 11:42 PM

    Hi Parab,

    You may check

    https://wiki.scn.sap.com/wiki/display/CRM/Method+call+in+action+with+BADI+EXEC_METHODCALL_PPF

    and

    https://wiki.scn.sap.com/wiki/display/CRM/Create+follow-up+document+via+Action

    Above is the standard way to create followup whatever, like a task.

    But, how can you generate more than 1 task within an action?

    By standard, you cannot schedule or execute an action multiple times during one action determination. It means, for example you select status and the action will be executed, this action can be executed only once. So you cannot create several tasks within one action that is triggered when you select any status.

    As you mentioned, you use FM crm_order_save, so most likely you have your z implementation of badi exec_methodcall_ppf?

    In this case, I believe you need debug for the root cause. Better create a chat or sap incident.

    Spencer

    Add comment
    10|10000 characters needed characters exceeded