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

alignment in mailing report

Former Member
0 Likes
552

Hi all

i am mailing a report from SAP to my account using the FM 'Z_AG_MAIL_REPORT', this is working fine, however the report is not aligned in the mail,

i am using the bit of code shown below, to insert the entries into 'i_bodytxt' which is the message body.

CONCATENATE i_sum-date

i_sum-day

lw_docno

lw_ordno

i_sum-netwr

i_sum-waerk

INTO i_bodytxt SEPARATED BY space.

APPEND i_bodytxt.

CLEAR i_bodytxt.

Is there any other way than this to insert the entries in the internal table so that the alignment is perfect?

i_bodytxt is just a line with no fields,

DATA: BEGIN OF I_BODYTXT OCCURS 1,

LINE(255) TYPE C,

END OF I_BODYTXT.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
533

Hi,

try using the option

CONCATENATE ..... INTO result separated by space RESPECTING BLANKS.

Shruthi

Hi all

i am mailing a report from SAP to my account using the FM 'Z_AG_MAIL_REPORT', this is working fine, however the report is not aligned in the mail,

i am using the bit of code shown below, to insert the entries into 'i_bodytxt' which is the message body.

CONCATENATE i_sum-date

i_sum-day

lw_docno

lw_ordno

i_sum-netwr

i_sum-waerk

INTO i_bodytxt SEPARATED BY space.

APPEND i_bodytxt.

CLEAR i_bodytxt.

Is there any other way than this to insert the entries in the internal table so that the alignment is perfect?

i_bodytxt is just a line with no fields,

DATA: BEGIN OF I_BODYTXT OCCURS 1,

LINE(255) TYPE C,

END OF I_BODYTXT.

2 REPLIES 2
Read only

Former Member
0 Likes
534

Hi,

try using the option

CONCATENATE ..... INTO result separated by space RESPECTING BLANKS.

Shruthi

Read only

Former Member
0 Likes
533

Hi shruthi,

thank you for the response, unfortunately i am using R/3 4.6C and i dont think that functionality is present in the version i am using.