cancel
Showing results for 
Search instead for 
Did you mean: 

WorkFlow: Mail not received by approver

AB069
Active Participant
0 Kudos

Hi Experts,

I am new to workflow. I use Mail Step to sent mail to different user in SAP inbox. There are different level of approval in my workflow. so i create table in the Business object and fill with approver IDs. When i use this table in the Mail steps as expression. Mail didnt go to any of the user.

Please suggest where i am getting wrong.

Thanks

imran 

Accepted Solutions (1)

Accepted Solutions (1)

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

You need to pass the value of that attribute to your workflow container to use it later in further steps.

The workflow container retains the values as long as the workflow's existence.

You can either create a new attribute to the business object that you are using and can pass the 'ztotal' attribute value in 1st approval or wherever you want to the workflow container.

And later in whatever activity step you want, you can fetch it back from the container.

Please ensure creation of proper binding of the workflow container with your activity step.

Cheers,

Devashish

Answers (12)

Answers (12)

AB069
Active Participant
0 Kudos

Hi Dev,

Issue is resolve. FM  'SAP_WAPI_DECISION_COMPLETE' is use to execute the decision step at run time.

Thanks

Imran


AB069
Active Participant
0 Kudos

Hi Dev,

Issue is resolve now.

Problem : I have used multiple condition under beneath of first contdition step. In multiple condition step i have not giving any contion in OTHER part. thats why the WF giving the error at the vary first step.

Now i came to know that in the beginning only WF check all Condition steps if any one have issue in value assignment it will give error.

Thanks Dev, I really appriciate your affort.

Thanks

Imran

    


AB069
Active Participant
0 Kudos

Hi Devashish,

The Atrribute define in the WF container. Please find below Screenshot.

Thanks

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

What is the condition that you actually want to put?

As you told before that it is :

Condition is       &ZSAM_OBJECT.ZUSER_RSM& = &Flag_X&

But in your above reply, I can see that the condition you have maintained is :

&RSM_X& = X.

Maybe you are not putting the condition right.

When you put any condition, by merely doing a double click on the indicator fields it should show something like :

Regards,

Devashish

AB069
Active Participant
0 Kudos

Hi Dev,

Is it possible to execute the dicision step in Workflow when the status change in Web UI.

Please suggest.

Thanks

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

You need to create an Action for it which gets triggered on the condition which you will give in it.

In your case you can give the status id ( eg E0002 ) in the condition for thr action and assign it to your transaction.

Regards,

Devashish

AB069
Active Participant
0 Kudos

Hi Dev , Satish

I found that even i set 'X' value to flag, the condition is giving error.  Its mean system not reading the attribute. Please below is the way i define condition. please let me know where i am getting

wrong.

Please note : RSM_X is WF attribute , initial value set to X.

Thanks

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

Can you show where the attribute is in the container?

Regards,

Devashish

AB069
Active Participant
0 Kudos

Thanks Devashish, Satish for your response.

I checked. Value is set to X.

Is there any other way to resolve this. Its giving error in workflow when condition is ture.

Thanks

Imran


AB069
Active Participant
0 Kudos

Hi Devashish,

In the beginnning of WF i have condition check. Its always pass when the condition is FALSE but when the condition is TRUE its give an error message "Error when starting a CASE branch".

Condition is            &ZSAM_OBJECT.ZUSER_RSM& = &Flag_X&

&ZSAM_OBJECT.ZUSER_RSM& is Business Object attribute set to 'X' on condition satisfy.

&Flag_X& is constant value 'X'.

I check container value both having same value i.e. 'X' and both parameter are same type.

Please suggest. How can we resolve this.

Many Thanks for your support,

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

Did you go through this thread :

http://scn.sap.com/thread/1815475

Regards,

Devashish

former_member507885
Participant
0 Kudos

Hi Imran,

Check if the &ZSAM_OBJECT.ZUSER_RSM& attribute value is setting to 'X'.

Hope this helps...

Thanks

AB069
Active Participant
0 Kudos

Hi Devanshish,

You misunderstood my ques. After executing above screen(as you have mention), the list of ID,  STATUS etc comes in the second screen, So i require to fectch this ID whose satuts is READY.

Thanks

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

Check the workflow container. I hope you will get the detail you want there.

Regards,

Devashish

AB069
Active Participant
0 Kudos

Hi,

The issue was with buffer . I cleared it now its working fine.

one Last ques. how can i get the worklist number which is in Ready status.
Like Tcode SWI1 in the result screen , i required ID whose status is READY for the given Order Number.

Thanks

Imran

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

In SWI1 only, there is a selection criteria for status just choose this one and execute :

You will get all the work items with the status you want.

Cheers,
Devashish

AB069
Active Participant
0 Kudos

Thanks Devashish, Dipika,

Please find the below screenshot. At run time the workflow getting stuck at the node. I dont know why is every time it getting stuck at area node.

WFexample 1

WF example2

                     

Please suggest.

Thanks

Imran

former_member227595
Active Participant
0 Kudos

Hi Imran I

Could you in trx SWI1, technical login, tab "Step History" or/and "Message". Could you tell us the message.

Thanks in advance.

Regards

AB069
Active Participant
0 Kudos

Thanks Devashish, Dipika

Its very helpful. One Doubth. I have a 5 level of approval in WF.

In the begenning of WF i am calculate total price of all line item and assign into business 'ztotal' attribute and after 2rd or 3rd approval level agent can delete or add line item.

Now the question is , This 'ztotal' will update its value or not. beacuse i have to use the updated total in the 4th level of approval.

Please suggest.

Thanks

Imran    

deepika_chandrasekar
Active Contributor
0 Kudos

Hi Imran,

It will not update attribute. You need to update your custom elements using activity step before 4th approval step.

Regards,

Deepika

devashish_bhattacharya
Active Participant
0 Kudos

Hi Imran,

You need to create a custom rule and assign it in that particular decision step of yours . You can use the below link to check how to create a custom rule :

SAPTechnical.COM Defining custom rules for use with SAP Workflow

Please fetch all your approvers in the function module that you will use inside this rule.

Cheers,

Devashish

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

Check this link

SAPTechnical.COM Workflow Tutorial

Regards,

Deepika.