Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending invoices to different customers in one programe

former_member605939
Participant
0 Kudos

I want to sent the email to customer. ( not using standard fron vf02)

As different customer have different email id's. When i execute the programe one all the email will be sent.

I developend z peograme but not worrking

sample code is :

SELECT-OPTIONS S_VBELN FOR LV_VBELN OBLIGATORY .

Problem is that same pdf is being sent to all parties.

can we use 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send mail to multiple customers based on e id's.

Thanks

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
  • Sort your data by customer (or customer mail address) only create pdf and send mail for a single customer (mail address) with some AT END OF statement.
  • Don't use outdated FM, use classes CL_BCS / CL_DOCUMENT_BCS.
2 REPLIES 2

raymond_giuseppi
Active Contributor
  • Sort your data by customer (or customer mail address) only create pdf and send mail for a single customer (mail address) with some AT END OF statement.
  • Don't use outdated FM, use classes CL_BCS / CL_DOCUMENT_BCS.

0 Kudos

Completed the object.