Skip to Content
0
Former Member
Jan 04, 2008 at 02:46 PM

To send mails to different users from 1 program

101 Views

Hi,

I need to send a mail to different users...Depending upon the conditions.

I have one internal Table Having 10 fields .

Suppose i have 6 records in the internal table ITAB.

I am passing this internal table to function module

'REUSE_ALV_GRID_DISPLAY'.

and I am getting 6 records in the output having 10 fields.

Suppose this is the format:-

AAA A C

AAA B D

AAA C E

BBB A C

CCC A C

DDD A C

In this case we need to send first 3 records to 1 person

4th record to another person

5th record to someone

6th record to someone else

We need to send the mail in below format:-

From: Mamta

To: (Name of the requestor)

subject: sub

some text Jan 4, 2008

========================================

===

Field1 : AAA

Field4 : some text

Field5 : some text

-


---

Field3 field6 field7 field8 field 9

-


---

Value Value Value Value Value

of Field3 of Field6 of Field7 of Field8 of Field9

-


---

some text

Thankyou,

Mamta Gupta

Please tell me how to do this...

I need this as soon as possible.

Thanks & Regards,

Mamta