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

Custom Process Controlled Workflow for Confirmation, coding required?

Hello,

Do we require coding (development efforts) for the following WF scenario (BUS2203: Confirmation):

If user role = /SAPSRM/Employee -> auto-approve (no approval)

If user role = /SAPSRM/Vendor -> 1-step responsible purchasing group manager approval

Tried a couple of things but failed. Anyone has any experience on such a workflow configuration using the Process Controlled Workflow / BRF?

Kind regards,

Tim

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 06, 2010 at 12:24 PM

    Hi,

    I think it can be managed without any coding.

    Please go to SWO1 transaction and check the BUS2203. The attribute WFLCreatorType fits for your logic.

    V Supplier

    D Desktop User

    P Professional User

    R Requester

    M Invoice Assistant (Mass Entry)

    Then go to BRF transaction and find a expression. You will find 0V_CO_WFLCREATORTYPE.

    Now you can create a custom event and expression with 0FB001 SAP Formula Interpreter type.

    Something like if 0V_CO_WFLCREATORTYPE = V. Result Type B Bool.

    Please let us know your result.

    Regards,

    Masa

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Masayuki Sekihara

      Hi Masa,

      The expression seems to be correct. The process scheme can not be found.

      The SLG1 loggings only show me the following warnings, which seems to be correct (seen those before for any std. workflow aswell):

      Event ZEV_CONF_SCHEMA get description error

      10 Execute event ZEV_CONF_SCHEMA Confirmation Approval 1-step schema. 06.07.2010 16:15:09

      Expression ZEV_CONF_ROLE_EXPR get description error

      41 Execute expression ZEV_CONF_ROLE_EXPR Confirmation Poster Role Check: If organization me; result is: =blank

      Expression 0V_CO_WFLCREATORTYPE get description error

      51 Execute expression 0V_CO_WFLCREATORTYPE Type/Role of Creator of Procurement Document; result is empty

      Expression 0C_C1_C_FWFCORLCNTNT get description error

      61 Execute expression 0C_C1_C_FWFCORLCNTNT Class: /SAPSRM/CL_WF_RULE_CONTXT_CONF; result /SAPSRM/CL_WF_RULE_CONTXT_CONF

      Expression 0C_C2_C_GET_PROPERTY get description error

      61 Execute expression 0C_C2_C_GET_PROPERTY Method - Get Atrribute Value; result GET_PROPERTY

      Expression 0C_C3_C_WFLCREATTYPE get description error

      61 Execute expression 0C_C3_C_WFLCREATTYPE Type/Role of Creator of Procurement Document; result WFLCREATORTYPE

      I might have configured something incorrectly within the 'define process levels' transaction. Checked my define process level configuration and cannot find anything. Tried a complete new custom 'event' setup but didn't help either. Might the cause that the workflow isn't working be that certain subworkflows are not activated?

      Kind regards,

      Tim

      Edited by: T. Schuffelen on Jul 6, 2010 4:19 PM

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.