cancel
Showing results for 
Search instead for 
Did you mean: 

Need response back from Workflow in Report

Former Member
0 Kudos

Dear users,

My scnario is on custom loan type infotype.

1 when user enter data in custom infotype.

2 a workflow triggers .

3 email is sent to the authorized persons.

4 if they approve i need this response into my program.

5 then i save its record in my custom infotype.

Best Regards.

I have read swdd and bor

former_member184495
Active Contributor
0 Kudos

Hi,

you said you need response into your program! could you elaborate what you doing and what you want.

Is the approval done thru workitem or form/program/email..

Aditya V

Former Member
0 Kudos

Dear Aditya ,

I need to send request through email.

Best Regards,

former_member184495
Active Contributor
0 Kudos

Hi,

sorry Sonam, could you elaborate more..so that me and others can help you better.

Aditya V

Former Member
0 Kudos

Dear Aditya ,

I have to trigger workflow on updation of a infotype say 9xxx.

then after the approval from the Manager the record should be saved in 9xxx.

I am very beginer in workflow just triggered throudh FM nad configured workflow in swdd.

best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

i have solved the issue thanks for all ur support.

i have used

CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
EXPORTING
workitem_id = lcl_wihead-wi_id
language = sy-langu
user = sy-uname
TABLES
simple_container = it_container.

in program exit and read container _result

in program exit of decision.

regards

Answers (6)

Answers (6)

pokrakam
Active Contributor

You should revise your approach. Workflow is what should be controlling your processes, that's what it's designed for, in other words you should model your decision outcomes and subsequent actions in workflow rather than capturing it in a report.

Driving workflow from a report is a bit like pulling a car with a horse, you're missing the point and you're making more work for yourself and making it less efficient than if you just used one of the methods properly.

For your scenario, I'd suggest you either don't use workflow and just do your email and response handling via ABAP. Or else take Sue's advice and try to learn more about WF first. By all means do keep asking questions, but also understand that nobody can give you a workflow course via an SCN question. You will need to invest some time into it yourself by working through one of the many tutorials available via the online help and on here (not to mention a useful book). Then ask when you get stuck.

anjan_paul
Active Contributor

Hi,

Instead of Mail step send a Decision step. Your problem will be solved.

Thanks

Former Member
0 Kudos

Dear all ,

thanks for your support , i have implemented class and if_is_* INTERFAE .

Secondly, i have used decision as well .

on creation of record in infotype i called my workflow from mp9xxxxx .

But still i need help in importing infotype record in task container

Best Regards,

keohanster
Active Contributor
0 Kudos

Hi Sonam,

Anjan is totally correct - you don't get an 'approve' or 'reject' from an email. You would get this (typically) in a Decision Task. Which also means the end user has to have either SAPGui or Fiori or the Portal or some other means of approving. Email is for notifications - just saying something like 'This document has been created in SAP' and you don't care what the reader thinks.

A Decision Task is something that actually says 'Do you approve of this item' and then the response is captured in the workflow log.

Please take some time to browse through Workflow Tutorials here on SCN. I'm sure you can find them. That should help you get started.

Sue

Former Member
0 Kudos

Dear Susan,

Thanks for your worthy comment i will use decision and still need to know how can i get the decision in my report.Either i will maintain a variable in container of workflow or there is some other option.

Best Regards

Former Member
0 Kudos

Dear Anjan,


How can i get response of agent in my program.Either he accepted or rejected or cancel.

Best Regards

former_member186746
Active Contributor

Hi,

What do you mean with accept/reject. you're sending an email and not a user decision.

What you should do is model the process in workflow and use extended notification to create emails from user decisions, then you can model whatever you like after rejection or approval.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Hi Rob,

First thanks for your time and response. Yes i am sending approval emails to authorized group But i didnt know how to know what they have done so that i can save my data in infotype or if they dont accept then i will not save it.

regards

Former Member
0 Kudos

any response