Hi
you can do this .
Step 1.
Pass the document Number in BSID Table in the field Documnet Number(BELNR) and get the custom number(KUNNR) Field.
Example:-
Document Number(BELNR) - 122025000.
Custom Number(KUNNR) - 1100656.
step 2.
Pass the Custom Number(KUNNR) in kNA1 table in the field Custom Number(KUNNR) and get the Address(ADRNR) Field .
Custom Number(KUNNR) - 1100656.
Address(ADRNR) - 0000012890.
step 3.
Pass the Address Number(ADDRNUMBER) in ADR6 table in the field ADDRNUMBER.NO and get the E-Mail Address(SMTP_ADDR) Field.
Address number(ADDRNUMBER) - 0000012890.
E-Mail Address(SMTP_ADDR) karthi@karthi.co.in
Now you need to loop inside loop you have to call smart form , and convert into OTF , then send as email .
each customer will receive PDF separately
.