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: 

Mail Contenent not displaying

Former Member
0 Kudos

Daer All,

Im using Below FM, in this table t_objtxt table  im passing mail content ,

  i have coded below

data : t_objtxt         type standard table of soli      with header line.

t_objtxt = 'Dear User,'.
append  t_objtxt.
  clear  t_objtxt.

t_objtxt = ' '.
  append  t_objtxt.
  clear  t_objtxt.

t_objtxt-line = 'This is salary slip'.
            append  t_objtxt.
            clear  t_objtxt.


describe table t_objtxt lines tab_lines.
read  table t_objtxt  index tab_lines.

while Debugging value will diplay correctly but it wont display mail content when i will recive mail,please guide me

all function 'SO_NEW_DOCUMENT_ATT_SEND_API1'

       exporting
            document_data              = doc_chng
            put_in_outbox              = 'X'
            commit_work                = 'X'
       importing
           sent_to_all                = sent_to_all
       tables
           packing_list               = objpack

         *  object_header              = objhead

            contents_bin               = objbin

            contents_txt               = t_objtxt[] "objtxt

            receivers                  = reclist

       exceptions

            too_many_receivers         = 1

            document_not_sent          = 2

            operation_no_authorization = 4

            others                     = 99.

1 ACCEPTED SOLUTION

Kartik2
Contributor
0 Kudos

Dear a c,

Did you try setting the parameter commit_work and object_header??

Hope this helps. thank you.

Regards,

kartik

4 REPLIES 4

Kartik2
Contributor
0 Kudos

Dear a c,

Did you try setting the parameter commit_work and object_header??

Hope this helps. thank you.

Regards,

kartik

former_member404244
Active Contributor
0 Kudos

Hi,

You need to pass the internal table objpack like this..

ls_objpack-head_start = 1.

  ls_objpack-head_num   = 0.

  ls_objpack-body_start = 1.

  ls_objpack-body_num   = 4.

  ls_objpack-transf_bin = space.

  ls_objpack-doc_type   = lc_raw.

  APPEND ls_objpack TO lt_objpack.

Regards,

Nagaraj

0 Kudos

HI,

Thanks for your reply..

I have tried same above .

ls_objpack-doc_type   = lc_raw.

i passed this only latter content is coming but PDF attachment not showing

for PDF this is im passing

ls_objpack-doc_type   = 'ALI'.

i need both mail content as well as PDF attachment

0 Kudos

For PDF it should be ls_objpack-doc_type   = 'PDF'.You need to pass both the internal tables

contents_bin          

contents_txt           

to get both the content and also the PDF attachment.

Please search in SCN and also in google, you will find the required information.

Regards,

Nagaraj