Application Development and Automation 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: 
Read only

how to format body message while using SO_DOCUMENT_SEND_API1?

Former Member
0 Likes
628

hi,

i am having some data in internal table that i want to format as text message and mail through SO_DOCUMENT_SEND_API1 function module but not as a attachement. i am using contents in body message. but i am not able to do formating , is there any way ?

internal table:

claimid claimdate expensetype amount

0001 01.06.2008 FUMD 20000

0002 02.06.2008 SUND 500

0003 05.06.2008 ENTM 1500

i want to print this in message body part and send it throgh mail, while using write statement , it takes lot time.

plz suggest me.

Saurin Shah

1 REPLY 1
Read only

Former Member
0 Likes
398

Hi

Take a table as mentioned below.

GT_OBJTXT LIKE SOLISTI1

OCCURS 0 WITH HEADER LINE, " Mail Text options

and populate the data that you want to print as body in this table line by line.

Formating/allignment only can be done while populating the table. U have to check the mail and keep adjusting the allignment.

And after populating send the table to one table parameter in funciton module that is...

CONTENTS_TXT = LT_OBJTXT.

This will populate the mail body.

<REMOVED BY MODERATOR>

Venkat.

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 2:17 PM