cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass valvu to MAIL_RECIPIENT

Former Member
0 Kudos

CALL FUNCTION lf_fm_name

*CALL FUNCTION '/1BCDWB/SF00000058'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = ls_control_param

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = ls_composer_param

  • USER_SETTINGS = 'X'

bukrs = p_bukrs

p_day = p_day

budat1 = p_budat

budat2 = p_budat1

v_amt = v_amt

c_amt = c_amt

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

i want to send email to our customers.

thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI JITHENDRA ,

in which method u want to send mail via BCS or using fm 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

reply to get soln.

Former Member
0 Kudos

to mail normal mail accounts

Former Member
0 Kudos

suggest me which method i go for

Former Member
0 Kudos

Hi,

Its better to go with the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' as you can find lots of example programs using this FM to convert smartform in to PDF and then send as E-mail.

Regards,

Vik

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

Perform some search at sdn with keywords [send smartforms email|https://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=sendsmartformsemail&searchQuery.spaceKey=conf_global] (you should find samples like [Smartform Send via Email |https://wiki.sdn.sap.com/wiki/display/ABAP/SmartformSendvia+Email])

Regards,

Raymond