Saturday, May 24, 2014
This step is used to customized the approval screen i.e. if the customer doesn't want the standard screen then the approval screen can be developed by using Form.

  • Firstly we need to created the table/ structure with fields which I want to display in Form.
  • Now create the workflow and First Save it.
  • Next step would be to create the container element with the same structure/table  which we created in SE11
  • Now Right Click on the branch and select the Form step.
  • Give any name in Step Name and choose WF-Initiator in Agents tab for Expression drop-down.
  • Now choose create button to create the form. The wizard will get open.
  • Select Continue
  • Select the structure which is coming from workflow container
  • Complete the wizard
  • The form step will get created as shown below.
  • Now go to form step and select the change icon as shown below.
  • The screen painter will get open where we can design our approval screen. All the fields of the structure will get displayed in the screen. We can adjust the alignment of all those fields.
  • Now use push button to create one Approve button and assign the function code to the same.
  • Also select the Input field check box of the Sales document field.
  • Now Save the Form .
  • And activate it.
  • Go to Flow logic to write the code in Export_data subroutine.
  • DC Export_data subroutine.
  • Write the code as shown below. The below code is responsible to take the values from screen and save it into database.
  • Click on Save and activate and go back and click on Enter ( Green mark)
  • Now save the workflow and activate it. Test the workflow.
  • Once executed the work item gets generated and gets placed in inbox (SBWP) of the user.
  •  Select the Change Form work item and Double Click on it.  The Form will get open where we can provide sales order number.
  • Now once Approve button is clicked , the corresponding value gets saved into database.

4 comments:

  1. This article ( SAP Workflow ) from SAP Consultant ) is quite worthy and providing steps on " How to " for the learners and professionals to software developers career successful and excel.

    For best SAP implementation services

    ReplyDelete
  2. i follow the the prctice above but i need delete the delivery block on sales order
    document when press button approve
    can you guide me
    thanks

    ReplyDelete
  3. Thank you for taking the time to provide us with your valuable information.
    We strive to provide our candidates with excellent care
    http://chennaitraining.in/sap-cs-training-in-chennai/
    http://chennaitraining.in/sap-ec-training-in-chennai/
    http://chennaitraining.in/sap-ecm-training-in-chennai/
    http://chennaitraining.in/sap-ehs-training-in-chennai/
    http://chennaitraining.in/sap-ep-training-in-chennai/
    http://chennaitraining.in/sap-erp-training-in-chennai/
    http://chennaitraining.in/sap-ess-training-in-chennai/

    ReplyDelete

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.