cancel
Showing results for 
Search instead for 
Did you mean: 

Changing PDF Attachment title

Former Member
0 Kudos

Hi,

The program is using OPEN_FORM to send out emails as below:

  • Create recipient

swc_create_object lo_recipient 'RECIPIENT' space.

swc_set_element lt_container 'TypeID' 'U'.

swc_set_element lt_container 'DocumentHeader' 'Order'.

swc_call_method lo_recipient 'CreateAddress' lt_container.

swc_object_to_persistent lo_recipient ls_persistent_recipient.

.

.

.

.

.

  • create sender

swc_create_object lo_sender 'RECIPIENT' space.

swc_set_element lt_container 'AddressString' z_value.

swc_set_element lt_container 'TypeID' z_type.

swc_call_method lo_sender 'CreateAddress' lt_container.

swc_object_to_persistent lo_sender ls_persistent_sender.

.

.

.

.

.

call function 'OPEN_FORM'

exporting

form = tnapr-fonam

language = nast-spras

options = itcpo

archive_index = toa_dara

archive_params = arc_params

device = xdevice

dialog = ' '

mail_sender = ls_persistent_sender

mail_recipient = ls_persistent_recipient

  • mail_appl_object =

exceptions

others = 1.

The above code sends out a mail with a PDF attachment whose title is the form name. Instead of the form name, the requirement is to set the title to the document no.

How to change the title of the PDF attachement in the program?

Thanks,

Sita.

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayCR
Active Contributor
0 Kudos

In the workflow where the send mail step is present you can use this.

Thanks,

Vijay.