Skip to Content
avatar image
Former Member

Worfklow error: The element PURCHASINGCONTRACT does not exist in the container

WF template: WS20000077

Settings: All standard

I just simulated the workflow for the first time on an Ides System and i get the error to be

this way.

Task: 20000159

Rule: AC2000026

I have also maintained the customizing for rule, ist Container objects, defined binding.

Could not find much info over the Internet as well

Thank you

nim5h.png (10.3 kB)
junsw.png (35.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 17 at 12:52 PM

    I already admitted that I am not familiar in depth with workflow, but I get already confused when seeing 2 terms together which have rarely something to do with each other under this circumstance.

    WS20000077 is for requisition overall release. What has this to do with purchasing contracts? Can you explain what is the purpose for this purchasing contract thing in a PR release?

    And the error message says that the element PURCHASINGCONTRACT does not exist in a container.

    Based on that message I would expect that you show us where you defined this element and where it is in the container.

    Actually there is an answered question from 10 years ago about the same element error:

    https://archive.sap.com/discussions/thread/775436

    Add comment
    10|10000 characters needed characters exceeded

    • check the old discussion, follow each step of the correct answer, just keep in mind that you are doing requisition while the old discussion was about purchase order.

  • Apr 13 at 01:12 PM

    Please ensure that you have correctly implemented binding for the element PURCHASINGCONTRACT from the Workflow to the rule. That's what the error message is tellling you.


    Good luck,

    Sue

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 17 at 12:24 PM

    kindly look

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Just found an issue in debugging the function module used

      ME_REL_GET_RESPONSIBLE

       Initialisieren der Tabelle ACTOR_TAB
        REFRESH actor_tab.
        CLEAR actor_tab.
        swc_get_element ac_container 'ReleaseCode' rm06b-frgab.
        swc_get_element ac_container 'requisition' object.
        IF sy-subrc EQ space.
      * Objectschlüssel in das Anwendungsfeld bringen
      * swc_get_object_key object ebankey.       " 4.0C GF
          ebankey-banfn = object-objkey(10).
          ebankey-bnfpo = object-objkey+10(5).
      * Banf lesen
          IF ebankey-bnfpo IS INITIAL.
      * Freigabeverantwortlicher für gesamte Banf
            SELECT * FROM eban UP TO 1 ROWS WHERE banfn EQ ebankey-banfn.
            ENDSELECT.
            IF sy-subrc > 0.
              RAISE nobody_found.
            ENDIF.
          ELSE.
      

      The 6th line of the code snippet looks if the value of the object is a space or is not a space

      Only if the value is blank will the function continue to move to finding a PR and steps

      If not a space then it heads over to the PURCHASECONTRACT section

      This FM is used for PR,PR,Purchase contract as well on an if and else basis

      Planning to copy this FM and edit this line to run the program again.

      This is a standard FM so wont make changes there