Skip to Content
avatar image
-3
Former Member

Service Anniversary report.

Hello Sir/Mam,

I want to write a abap code for which the below output should come.

Output:

Congratulation.

...My name....,

For Successfully Completing 1 year in .....My Company Name....

Please help me as i searched a lot in Google but couldn't found anything as of my requirement.

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Aug 02, 2017 at 05:46 AM
    DATA(my_name) = ``.
    DATA(my_company) = ``. 
    
    cl_demo_input=>new(
      )->add_field( CHANGING field = my_name
      )->add_field( CHANGING field = my_company
      )->request( ).
    
    cl_demo_output=>display(
      |Congratulation.\n\n{
       my_name
       }\n\nFor Successfully Completing 1 year in {
       my_company }.| ).
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 03, 2017 at 07:13 AM
    -1

    l-fba8tmp.png

    Image is not showing in the mail body. Can any one suggest how to resolve the issue?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2017 at 07:31 AM

    Thank you Sir.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2017 at 07:34 AM

    But i have one more question regarding this. If i want to add image in body of a mail in ABAP then how i'll write the code to fetch the output.

    Add comment
    10|10000 characters needed characters exceeded