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

Small Issue qith CL_BCS

Former Member
0 Likes
583

I am pasting a part of the code which I am working on now

This is related to sending an e-mail using class CL_BCS.. I am trying to send an e-mail with more than 50 characters in it.

I know that the problem is with the bolded part.. when i went into the debugger mode i see that it compares the subject line which is passed on to the i_subject.

Now please tell me how to link the object document with the method set_message_subject...

Points are guaranteed.........

try.

  • -------- create persistent send request ------------------------

send_request = cl_bcs=>create_persistent( ).

  • -------- create and set document with attachment ---------------

  • create document from internal table with text

document = cl_document_bcs=>create_document(

i_type = 'RAW'

i_text = text

i_length = '12'

i_subject = i_subject ).

<b>

*subject line more than 50 chars

data: t_sub type string.

t_sub = 'This is too ridiculous but lets just test this whether this will work out for more than 50 chars'.

CALL METHOD send_request->set_message_subject

EXPORTING

ip_subject = t_sub.

</b>

*changing the content of the attachment

binary_content[] = l_iobjbin[].

*change the name of the PDF attachment

concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev

into i_att_sub separated by space.

  • add attachment to document

CALL METHOD document->add_attachment

EXPORTING i_attachment_type = 'PDF'

i_attachment_subject = i_att_sub

i_att_content_hex = binary_content.

  • add document to send request

CALL METHOD send_request->set_document( document ).

I am pasting a part of the code which I am working on now

This is related to sending an e-mail using class CL_BCS.. I am trying to send an e-mail with more than 50 characters in it.

I know that the problem is with the bolded part.. when i went into the debugger mode i see that it compares the subject line which is passed on to the i_subject.

Now please tell me how to link the object document with the method set_message_subject...

Points are guaranteed.........

try.

  • -------- create persistent send request ------------------------

send_request = cl_bcs=>create_persistent( ).

  • -------- create and set document with attachment ---------------

  • create document from internal table with text

document = cl_document_bcs=>create_document(

i_type = 'RAW'

i_text = text

i_length = '12'

i_subject = i_subject ).

<b>

*subject line more than 50 chars

data: t_sub type string.

t_sub = 'This is too ridiculous but lets just test this whether this will work out for more than 50 chars'.

CALL METHOD send_request->set_message_subject

EXPORTING

ip_subject = t_sub.

</b>

*changing the content of the attachment

binary_content[] = l_iobjbin[].

*change the name of the PDF attachment

concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev

into i_att_sub separated by space.

  • add attachment to document

CALL METHOD document->add_attachment

EXPORTING i_attachment_type = 'PDF'

i_attachment_subject = i_att_sub

i_att_content_hex = binary_content.

  • add document to send request

CALL METHOD send_request->set_document( document ).

3 REPLIES 3
Read only

Former Member
0 Likes
545

hi,

Reffer program BCS_EXAMPLE*.

Regards

Read only

0 Likes
545

i already checked them but no help

Read only

Former Member
0 Likes
545

I found the solution for this

We need to change the configuration settings in SCOT

Set SMTP node to node in use, goto Internet settings and then say '*' in the address area

This will do the work....