cancel
Showing results for 
Search instead for 
Did you mean: 

add 2 smartforms to one email to the customer

Former Member
0 Kudos

Hi

We have 2 separate smartforms connected to 2 different output types which are printed.

After that we created 2 new output types that are suposed to send the same smartforms as PDF to the customers. There is a standard option to put invoice number in the header of the email that the customer gets.

Now, the cutomers want to get one email with 2 smartfroms and one header.

We prefer not to "rewrite" our smartforms - to develop a new form that will unite both one after another.

Is there another way?

In NACE in output type customization, there is an option of adding to forms (not smartforms) one after another. (I don't know what it does), but anyway, it is not possible to add 2 smartforms one after another.

Any idea how to solve this issue?

Job on spool seems to be very complicated and risky. How will we know that these 2 forms belong to the same invoice.

Developing new t-code- complicated.

New ideas would be helpful, since our layouts are very complicated.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Janna

This you can achieve using class cl_bcs.

Method:

1.Create object of CL_BCS class using method create_persistent.

2.Create Body of your email using create_document method of class CL_DOCUMENT_BCS.

3.Create Attchments of EMAIl -Call method ADD_ATTACHMENT of class CL_DOCUMENT_BCS multiple times in your case two times.

4.Call method SET_DOCUMENT of class CL_BCS  to add the document(Email body and attachments)

5.Create sender of class CL_CAM_ADDRESS_BCS.then call method ADD_RECEPIENT  of class CL_BCS.

6. Create recepient of class CL_CAM_ADDRESS_BCS.then call method ADD_RECEPIENT  of class CL_BCS.

7.call method send of class CL_BCS and then commit work.

Thanks.