Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow experts, one query

Former Member
0 Likes
783

Can workflow be used to send an email once in a day to the approver for all the POs that require approval, is it possible.

In this case we need to use only POs without standard PR functionality.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

Hi,

Yes it is possible.

Write a program. Mark it to run in back ground everyday. This report fetches all the POs that have been generated on a day.

Use the FM: 'SWE_EVENT_CREATE', pass all the POs collected, trigger a Business Object Event, which'll trigger the Workflow whose step will be to send the e-mail, to the person with all the PO details collected.

Please let me know if further details are required.

Thanks & Regards,

Goutham.

7 REPLIES 7
Read only

Former Member
0 Likes
752

Hi,

Yes it is possible.

Write a program. Mark it to run in back ground everyday. This report fetches all the POs that have been generated on a day.

Use the FM: 'SWE_EVENT_CREATE', pass all the POs collected, trigger a Business Object Event, which'll trigger the Workflow whose step will be to send the e-mail, to the person with all the PO details collected.

Please let me know if further details are required.

Thanks & Regards,

Goutham.

Read only

0 Likes
751

Hi Goutam,

The requirement is not to use PR functionality at all.

Direct approval for PO's is required with classification.

I need to know where this program needs to be written, in a user exit or somewhere else.

Some more details or a doc would be appretieted.Thanks.

Read only

0 Likes
751

Hi

Have a look at the standard report RSWUWFML2 - the purpose of this report is infact to send these kinds of notifications.

In order for it to work you need to set up SAP Connect (SCOT) and to define forwarding.

Regards

Morten Nielsen

Read only

0 Likes
751

However there is no BW that is being used, can this program still be used for sending email notifications.

Read only

Former Member
0 Likes
751

Hi,

The report cannot be written in a User Exit, because you do not want to trigger WF everytime a change is made. So create a Customizing table or from the standard table you can get the data.

My MAIN issue here is, if you create a program in a User Exit or a BADI let us say, it will be triggered every time a change is made. But as per your requirement you need to trigger it once in a day. So, as far as i can get to it user-exit or BADI might not solve the purpose.

Please let me know if further details are required.

Thanks & Regards,

Goutham.

Read only

Former Member
0 Likes
751

Is there any release strategy?If not then and if just need to send an email and not workitem then you need to determine the approver for pos and send the mail using function module <b>so_object_send.</b>...there is one more function module for sending mail outside sap.

Run this program as a batch job once in a day.You will have to build up the logic for which PO is required for approval and who is the approver.

You can even use standard workflow for PO approval if you are following release strategy.

Read only

0 Likes
751

The requirement is really the following :

PO approval may need multiple levels of approval.Release strategy needs to be used for PO with workflow, PR does not need to be used.

Also all PO s requiring approval need to be listed in the email(not SAP inbox) and a single link should link up to all the work items at one go.

Any pointers to an approach here would be nice.

Thanks a lot !!