I have output data saved in internal table, which has many fields from diff tables.
I need this logic as how to build .... I need to send email attachment to particular dealer number and all his related details ... dealer shldnt get other dealer details ... so i m sorting final output table details by kunnr vbeln and fkdat.
how will i write code or logic which will upload data of particular dealer number in output table one by one and send across as emails ? What i mean is for every customer numbe, his details which can be multiple needs to be send across.
I tried doing this, but didnt get any good results.
sort finaltable by kunnr vbeln fkdat.
loop at Finaltable into workarea.
at new kunnr.
perform mail send function to each customer number
endiat
endloop
Plz advise.
Thnx