Skip to Content
0
Former Member
Sep 23, 2009 at 09:23 AM

sending mail based on condtion using smartform

557 Views

Hi friends,

I have header data and item data...in the below way..


header data

   vbeln     =     1000
 
item data 
 
  posnr      recipient       materail no       quanity     amount
  
    10          1000              abc                 100             10000
    20          2000              pqr                  100               5000
     
     -               -                  -                       -                    -
     -               -                  -                       -                    -

      n             n                   n                        n                  n  



Now the for a particular recpient the data may go to next page ie: several pages.. if the item data for the same recipient is same then it should not display the header data in the 2nd page but it should only print the item data.

now based on the recipient changes i should print agian the header data and then the item data from the next page.

and also as the recipient is changing the mail should go to another person ie: all the related recipients mail will be send to one person and others to some other person

ie: recipient 1000 --- person1

recipient 2000 --- person2

like that.

how can i do..? can any one suggest me

Regards

Kumar