Skip to Content
avatar image
Former Member

How to create a request form in workflow

Dear Gurus,

Hope you all are fine. I am new to workflow. I need to make a z form (Leave request form), in which a user enter the details. After entering the details, user will see his/her leave quota in form and when he save the button, workflow will start. the form will go to head of department who will approve or reject it. Can anybody guide me how can i do this? In workflow we can make form in screen painter? right? How can i do it? Also, i am also confused on one thing. Shall i create form in header option of workflow or as a step in worlflow? Kindl help in this regards.

Many Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 06, 2015 at 11:17 AM

    OK i am using work flow form options. I have made a small workflow, in which a user can requests for leaves and than it will go to his supervisor who will approve or reject it. I want to ask that different user has different supervisors? how can i tell this to work flow? in simple ABAP code i can fetch the supervisor of that use from table  but how can i do this in work flow? can anyone explain please.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Karri,

      Hope you are fine. I have one question please. In the form step, where if supervisor Approve the form, infotype supposed to be updates. I do know ow to update infotye, bu i don't know how will i differentiate in "Approve" and Reject" because infotype can only be updated if supervisor approve the leaves. When i press the Approve and Reject button, it comes in the MODULE EXPORT_DATA_0003 INPUT. But here how can i fit "Approve" in If condition. How can i  find OK-code is approve so that i can use it in condition.

      Thanks

  • avatar image
    Former Member
    Dec 31, 2014 at 09:03 AM

    You can keep the development of the application/form and the workflow separated. Just build your form with screen painter or whatever UI technology you want to use. Once the user clicks the save button from the form, I would assume that the data gets stored in the database. At this point you can create/trigger an event from your form. The event can be configured to start a workflow. (You don't need to develop the screen "from the workflow".)

    The workflow delivers a work item to the approver. When the approvers click the work item, a task method gets executed. In this task method you can e.g. write code like CALL SCREEN, and this will open the same form that you developed previously.

    I also recommend that you take try to participate some workflow training. Make also sure that you really need to create a new Z-objects for leave requests (there is standard solution in SAP) and make sure that there really is a need for dynpro / screen painter screens (why not some newer technology such as web dynpro?). Unless you are just doing some self-learning...

    Regards,

    Karri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 04:27 AM

    HI,

    In continuation to what Pulkit said, there is a standard leave approval workflow WS12300111. The workitem for this workflow can be processed from portal and not from SBWP. there is aready SAP standard a web dynpro application for entering/approving/rejecting leave request. The leave quota can also be seen there.

    Regards

    Ibrahim

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 06, 2015 at 08:10 AM

    Hi,

    Have a look at tutorial given in below link.

    • Using the step "Form" in Workflow (Simple example) (More details)
    • Using the step "Form" (Detailed example) (More details)

    Regards,

    Unni

    Add comment
    10|10000 characters needed characters exceeded