on 10-25-2017 6:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of Mail step send a Decision step. Your problem will be solved.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Anjan,
How can i get response of agent in my program.Either he accepted or rejected or cancel.
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
any response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.