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

Query in Badi

Former Member
0 Likes
962

Hi all,

I have a requirement which requires me to give a Subject for the email that is sent . I have used the Badi 'COMPLETE_PROC_PPF' .

For changing the subject line I use the class CL_BCS as per the following code:

LV_SUBJECT = 'Hello!!!!Good Morning!!!!'.

CALL METHOD io_send->SET_MESSAGE_SUBJECT

EXPORTING

IP_SUBJECT = LV_SUBJECT.

But the message subject line does not get changed.

Please help me out in resolving the above issue .

Kindly reply immediately as this is bit urgent.

Regards,

Vijay

Hi all,

I have a requirement which requires me to give a Subject for the email that is sent . I have used the Badi 'COMPLETE_PROC_PPF' .

For changing the subject line I use the class CL_BCS as per the following code:

LV_SUBJECT = 'Hello!!!!Good Morning!!!!'.

CALL METHOD io_send->SET_MESSAGE_SUBJECT

EXPORTING

IP_SUBJECT = LV_SUBJECT.

But the message subject line does not get changed.

Please help me out in resolving the above issue .

Kindly reply immediately as this is bit urgent.

Regards,

Vijay

7 REPLIES 7
Read only

rahulkavuri
Active Contributor
0 Likes
853

hi

I have worked on sending E-Mail using the class..

Does the BADI trigger, just verify it once by setting a break point

Here goes the code sample

*setting the option to send an e-mail more than 50 characters

  DATA: t_sub TYPE string.

      CALL METHOD send_request->set_message_subject
        EXPORTING
          ip_subject = t_sub.

Also check whether SCOT setting enable SMTP Node.. otherwise the subject line will not be more than 50 characters..

Read only

0 Likes
853

Hi Rahul,

Thanks for your reply . I am using the following code:

DATA : io_send type ref to CL_BCS.

DATA : LV_SUBJECT type string.

LV_SUBJECT = 'Hello'.

CALL METHOD io_send->SET_MESSAGE_SUBJECT

EXPORTING

IP_SUBJECT = LV_SUBJECT.

But the following code does not change the subject line of the email .

Please help me out in setting the subject of the email to 'Hello'.

Kindly reply immediately as this is bit urgent.

Regards,

Vijay

Read only

0 Likes
853

It seems you are using COMPLETE_SEND method of BADI 'COMPLETE_PROC_PPF' .

Have you tried putting break-point at your code..?Is control coming overthere?

G@urav.

Read only

0 Likes
853

Hi Gaurav,

Yes...The control goes to the method 'COMPLETE_SEND' of the badi 'COMPLETE_PROC_PPF'.

Kindly help me to resolve the issue.

Kindly reply immediately as this is bit urgent.

Regards,

Vijay

Read only

0 Likes
853

what is the value of sy-subrc after execution of

CALL METHOD io_send->SET_MESSAGE_SUBJECT

EXPORTING

IP_SUBJECT = LV_SUBJECT.

G@urav.

Read only

0 Likes
853

Hi,

The value of sy-subrc is 0.

Kindly reply imediately as this is bit urgent.

Regards,

Vijay

Read only

0 Likes
853

That means after this assignment.. value is getting overwritten somewhere else.

A bit effortful .. but you need to debug it. I am out of answers this time.. sorry.

G@urav.