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

Workflow Id Hardcoding in ABAP programs


I have always been wondering why don't we have an option of using custom workflow templates for some of the ESS services and couple other places.

For example, If using Salary and Employment Verification ESS service, we have to use the workflow WS01000045 because workflow id is hardcoded in one of the standard SAP programs. If the standard workflow does not meet the client requirements, we either have to change the standard template or change the abap code where the standard workflow template id is hardcoded and I hate to change any SAP standard stuff.

I would appreciate any response justifying the hardcoding of workflow templates. wouldn't it be nice to have a place in configuration to replace standard SAP workfloe template with a custom version like we have for the PCR scenarios?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Apr 13, 2007 at 12:40 AM


    I think it is coming.

    I've been working on a ECC5.0 with EP7 ESS implementation for Leave Requests and there is configuration to allow a different workflow template for each leave type and then again for each type of processing (Approve, Change, delete) with each Leave type.

    I appears as Workflow evolves and becomes more Abap Class friendly, we should see more config options available.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 13, 2007 at 05:59 AM

    As an ABAP (and Business Workflow) developer I can offer three explanations.

    1) no time

    2) no fun

    3) forgotten

    1) Creating a flexible solution costs more in terms of programming effort, so if the project has problems meeting deadlines it is simpler to hardcode, and then fix this hardcoding later if there is time.

    2) Adding flexibility in the form of customizing options to a working solution is definitely not the same fun as working on a new solution.

    3) The developer intended to add customizing options later, actually had the time to do it, but forgot it (or forgot putting it on the to-do list).

    Sorry, but developers are humans too.... even the übergeek ones 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 13, 2007 at 10:02 AM


    The ESS workflows are not exactly what one would call best practice from a design point of view - I mean holding all the request data in workflow container??? It's also among the most OSS-Note ridden apps I've seen. Some notes even tell you to change the ABAP directly.

    For this reason SAP have completely rewritten ESS in ECC6. I mean COMPLETELY new.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 26, 2009 at 11:05 PM

    We are on EHP4 FOR SAP ERP 6.0 / NW7.01. With this release, there is an enhancement spot (HRPADUS_EMPSAL_0001) which may be implemented. This allows the override of the standard WS01000045 to any custom workflow. The available parameters for changing are: OTYPE, OBJID, STEXT.

    Add a comment
    10|10000 characters needed characters exceeded

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.