cancel
Showing results for 
Search instead for 
Did you mean: 

workflow

0 Kudos

Dear all

Sales order is being created on ECC by incoming IDoc. I need to check the order value in an exit. Incase this value exceeds a certain value limit maintained in a custom table, delivery block should be set to 'X' & a workflow needs to be sent to a receiver group. When the users under this group click in the workflow item in their SAP inbox, VA02 should open.

Neeraj

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Niraj,

1) You need to develop a program in which you have to display all the blocked orders based on the selection criteria (like for the given sales org and customer)

2) Once you have all the blocked SOs you need to display them using alv disply.

3) In the alv output create a button (ex Apply for Block Release) so that user can select single/multiple orders (provide check box for selection of orders) and click on that button to sumbit them for block release approval

4) You have to capture the selected orders into a internal table say i_sellecteddocs

5) In the report you have developed, use the function module SAP_WAPI_CREATE_EVENT. Pass the BO name, Event and object key to the same.

6) You need to mailtain a Z table where you can have the details of approvers (ex. based on the order value you can have different hirarchy and different approvers)

7) Once you set up this table, define a method in your Z BO say getappovers in which you write the logic to fetch the data from Z table (approvers table)

😎 Once the approver is picked from the table, check the order value in workflow (ex less than or gretet than 50k)

9) Based on the vaue, have different branches in worklfow so that approval will go for different approvers.

Hope this is clear for you.

Regards,

Deepa Kulkarni

Former Member
0 Kudos

Hi,

To develop your worklow,

1) You can make use of tables VBAK and VBUK

2) First based on the selection critria, fetch data from VBAK

3) Then fetch data from VBUK for all entries in i_vbak where LFGSK <> 'C' (Completely processed) and CMGST = 'B' (Credit check was executed, document not OK).

4) Once you get the data corresponding to blocked orders from above step, you can check the order value in the workflow desing

5) Workflow design can be made as, based on the value (ex. less than 50K or greated than 50K etc) you can have different branches where you can have different approver set up in all the branches based on the value.

Hope this helps you.

Regards,

Deepa Kulkarni

0 Kudos

Hi Deepa, thanks a lot for your inputs. I need to know the stepwise procedure for setting up this workflow.

Edited by: Neeraj Gokhale on Jul 6, 2009 1:52 PM