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: 

How to pass contents in email body for output type medium external send

Former Member
0 Kudos
1,241

Hi ,

In my requirement i am send attachment to external send using open_form function module with email content blank,So now my requirement is add 2 to 3 line email content should come in external mail with attachment through open_form function module for that any one can help me if faced this kind of object it will be very help full for me.

Thanks,

8 REPLIES 8

rosenberg_eitan
Active Contributor
0 Kudos
376

Hi,

Search for cl_bcs .

Regards.

0 Kudos
376

Hi,

If i will use cl_bcs my attachment pdf going corrupt,any solution through open_form function module.

Thanks,

0 Kudos
376

Hi,

Please look at http://scn.sap.com/message/14309154#14309154

http://scn.sap.com/servlet/JiveServlet/download/14309154-180712/y_r_eitan_test_10_02.txt.zip

Program y_r_eitan_test_10_02 FORM mail_1_prep_4

It is using the otfdata to create pdf attachment .

Regards.

Former Member
0 Kudos
376

Hi,

Trying using the FM -  SO_DOCUMENT_SEND_API1.

Regards,

Suresh

0 Kudos
376

Hello Sir,

I want to send through function module open_form only,If i use some other function module means its corrupting that file while converting from otf to pdf.So through open_form email body content is possible then send me some sample coding it will be very help full.

Thanks,

Former Member
0 Kudos
376

Hi Pradeep,

Use below function modules.

CONVERT_OTF

SX_TABLE_LINE_WIDTH_CHANGE

SO_NEW_DOCUMENT_ATT_SEND_API1

Thanks,

Ashok.

0 Kudos
376

Hi Ashok,

Already i have these function modules while that otf converting pdf file getting corrupting or encoded error,This is support work this script is 9 yrs old,So please suggest me how i can get email content 2-3 line in body of email through function module open_form because before some is converting all those converting part using open_form.

Thanks.

Private_Member_7726
Active Contributor
0 Kudos
376

Hi,

Is your solution using DEVICE = 'MAIL' when calling OPEN_FORM? If yes, please read through OSS Note 311037 - Printing using e-mail. You should be able to define up to 10 lines, as a static cover page for printouts sent via mail (I have not verified if this works). If that doesn't suffice, you are out of luck, I'm afraid. You'd be better off sorting out the otf to pdf conversion problem.

Edit in: alternatively, you could of course try to extend FM SO_OBJECT_SEND via implicit enhancement... All you really need to do there is to populate the table NOTE_TEXT, which will then get converted into e-mail body Create a singleton to hold text, set text in in the driver program before open_form, get it in the implicit enhancement at the beginning of SO_OBJECT_SEND, and, if note_text is empty, take over your text and clear the singleton instance...

cheers

Janis

Message was edited by: Jānis B