Skip to Content
avatar image
Former Member

Unable to trigger the workflow for tcode XD01 using BOR when customer is created

Hi Experts,

My requirement is I need to trigger the workflow when ever customer is created in XD01.

I have already go through many post which have the answer but still iam not getting by following that.

Please give me clearly step by step procedure how to do because I am just a beginner for the Workflow.

I have done the follow things.. but still I am not able to achieve.


Step1 : Created a custom subtype (Z_KNA1) for KNA1 and created Zevent in the Z_KNA1.

Step2: Delegate Z_KNA1 TO KNA1.

Step3: In tcode SWEC created an entry like below.

DEBI--KNA1--ZEvent.

step4: In tcode SWETYPV created an entry like below.

BOR--KNA1--Zevent --WFno-- typelinkage checked.

step5: In WF basicdata maintained the BOR and Zevent which i created in the start event with binding and everything.

When I created the Custer data in XD01 it is throwing Error. (if step3 maitained as above) No Entry I can find in SWEL.

Screenshot for tcode SM13 of the Error.

When I created the customer data in XD01 it is saving if step3 maintained as below Entry I can see in SWEL but workflow is not triggering.

step3: DEBI-CLBUS1007-Zevent.

ERROR1.PNG (9.6 kB)
ERROR2.PNG (13.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 08, 2015 at 10:49 AM

    Hi Rick,

    I have triggered my workflow using user exit EXIT_SAPMF02D_001. Now I am facing issue with my Task used in workflow.

    Task is not working in the workflow. When i saw the WF logs in SWIA my workflow is stopped in the task step.

    Step1 : Mail notification.( Working-received mail to inbox)

    Step2: Identification of approver. (this task is not at all working/triggering).

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Finally conclusion of this post!!!

      1) If you want to trigger WF while customer creation use this BADI CUSTOMER_ADD_DATA and implemented the code in SAVE_DATA method.

      Note: We wont get Customer no (Kunnr) in the Exit (EXIT_SAPMF02D_001) at the time of creation customer so using BADI.

      2) If you want to trigger WF while changing the customer data (sensitive field) use the EXIT EXIT_SAPMF02D_001 because here you will get the changed data(senstive field)

      so that you can validate the changed data field based on the past data of changed field from DB table.

      If you found any changes after comparison you can trigger WF else no need to trigger.

      Note: In BADI CUSTOMER_ADD_DATA you will not be getting the changed field value so using the EXIT.

  • Jul 03, 2015 at 11:12 AM

    Hello Anand,

    CLBUS1007 is some obsolete placeholder object, the BOR BUS1007 has been replaced with KNA1 long time ago (see note 719936 - Linked documents can no longer be found after upgrade); found more details in thread , basically you should get rid of CLBUS1007 in SWEL (replace is KNA1). If you will still have issue, posting the details of SWEL would be helpful.

    Kind Regards

    TomT

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      You said:

      "When I created the Custer data in XD01 it is throwing Error. (if step3 maitained as above) No Entry I can find in SWEL."


      Step 3 is SWEC. With SWEC there should be an event so are you sure it's not in SWEL? You don't have a filter on or is SWEL maybe turned off? Check SWELS.


      If there really is no event then there's also no workflow, so the error can't be workflow related.


      regards

      Rick

      PS As you probably know, ZBORs should never be referred anywhere except in delegation. Always refer to the BOR.

  • avatar image
    Former Member
    Jul 03, 2015 at 11:08 AM

    did you define or please check number ranges .

    we had same error when we were posting Invoices through workflw

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 03, 2015 at 11:33 AM

    Hello,

    Could you show a screenshot of what you see in Triggering Events in PFTC_DIS for your workflow?

    regards

    Rick

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      There could be a difference between what you say you did and what you actually did.

      If you don't want to post a screenshot, then good luck with that.

      regards

      Rick