hi abapers,
i am stuck here for last 3 weeks.
Internal table rows will depend on the no. of pending permits present in the main header table.
i have a final internal table named zpm_permit with fields.
permit no. location id work location status mail id
1000000001 10 abc to atul@zmail.com
1000000001 10 abc cc ari@zmail.com
1000000002 20 xyz to atul@zmail.com
1000000002 20 xyz to ari@zmail.com
1000000002 20 xyz cc nata@zmail.com
My requirement is that i need to send mail to mail id's of same pending permit no. maintaining to and cc in mail id.
here there should be 2 mails from the program.
1st mail having the pending permit no. (1000000001) will be sent to mail ids (atul@zmail.com in 'to' & ari@zmail.com in 'cc') in one mail.
2nd mail having the pending permit no. (1000000002) to mail ids (atul@zmail.com in 'to' , ari@zmail.com in 'to ' & nata@zmail.com in 'cc') in another mail.
mail body will contain " Dear Sir please close your pending permit no. ".
Please help me with the logic or logic code to achieve this in my program.
Regards,
Arijit.