Skip to Content
author's profile photo Former Member
Former Member

Mail Contenent not displaying

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 24, 2012 at 11:58 AM

    Dear a c,

    Did you try setting the parameter commit_work and object_header??

    Hope this helps. thank you.

    Regards,

    kartik

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 24, 2012 at 12:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.