Application Development 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: 

E-mail Notification for PO data

karthikreddy8174
Explorer
0 Kudos

How to create a email notification program for PO data i.e. purchasing doc ,item, delivery date, quantity. which has delivery due date for 5 days(ex: if date we selected 4th of august it should select data upto 5 days till 8th august)

In those 5 days it should select valid PO's which ASN not confirmed

can you please help me with code . thank you

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

You create a program that get all the corresponding PO

You loop on this PO

> You get the needed detail

> You call a smartforms build for the email layout

> You convert the smartforms in HTML

> You use class CL_BCS to send the smartforms by email

DominikTylczyn
Active Contributor
0 Kudos

Hello karthikreddy8174

karthikreddy8174Actually you don't need to implement anything custom. You can use ME2V "Goods Receipt Forecast". You can schedule it as a periodic background job and distribute its results to recipients - see SAP Help Scheduling Background Jobs, procedure point 5:

If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.

Best regards

Dominik Tylczynski