cancel
Showing results for 
Search instead for 
Did you mean: 

smartform email body text

Former Member
0 Kudos

For SMARTFORM, email functionality is included in function built automatically that does not normally provide parameter for text of the body of the email...is there a way to include email body text without loosing standard SMARTFORM functionality?

I am familiar with introductory text of email for payment advice note using function SO_NEW_DOCUMENT_ATT_SEND_API1 as found in OSS note 1033893 but this seems like a very indirect method.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Earlier I have faced the same problem with SAP Script. There is no option for including the Body text there also. I used SO_NEW_DOCUMENT_ATT_SEND_API1 .

Hope this helps.

Former Member
0 Kudos

Yes basically you would have to output as printer then attach the pdf file while change parameters to LF_FM_NAME SMARTFORM function.

LS_CONTROL_PARAM-DEVICE = 'PRINTER'.

LS_CONTROL_PARAM-LANGU = SY-LANGU.

LS_CONTROL_PARAM-NO_DIALOG = 'X'.

LS_CONTROL_PARAM-GETOTF = SPACE.

LS_COMPOSER_PARAM-TDDEST = 'LOCL'.

LS_COMPOSER_PARAM-TDRECEIVER = SY-UNAME.

LS_COMPOSER_PARAM-TDIMMED = ''.

LS_COMPOSER_PARAM-TDCOPIES = '001'.

LS_COMPOSER_PARAM-TDARMOD = 1.

LS_COMPOSER_PARAM-TDIEXIT = 'X'.

CALL FUNCTION LF_FM_NAME

EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

IS_EKKO = L_DOC-XEKKO

USER_SETTINGS = ' ' "Disable User Printer

IS_PEKKO = L_DOC-XPEKKO

IS_NAST = L_NAST

  • IV_FROM_MEM = L_FROM_MEMORY

IV_DRUVO = IV_DRUVO

  • IV_XFZ = IV_XFZ

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Is there any approach to include body text in the email while sending a smartform as .pdf without using the below function module.

SO_NEW_DOCUMENT_ATT_SEND_API1 .

I am passing the parameter (subject line and title) to the parameters of the smartform function module, but didn't see any parameter for body line of the email.

appreciate quick response.....

Former Member
0 Kudos

Hi,

Can you please tell me how you achieved this with out using the FM mentioned.

Regards,

Ratheesh BS