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

New Line

Former Member
0 Likes
706

Hi Gurus,

Am practising the ALV with OOPS concepts. I inserted hyperlink to the field. When it clicks on hyperlink it will open outlook and inserted that record in the body. The problem here is the message is coming in a single line in the body. I want carraige return after one field is inserted. For Eg.

I use concatenate 'mailto:[email protected]?subject=Hello&body= '

'Material Number: ' wa_mara-matnr 'meins' wa_mara-meins into href separated by space.

The output is

Material Number: 000018 meins AS

I need the output like

Material Number : 000018

Meins AS

Is there any carraige return code is there in a string.

Points will be awarded

Thanks

Ravi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
675

'0D'. "Carriage return.

Hi Gurus,

Am practising the ALV with OOPS concepts. I inserted hyperlink to the field. When it clicks on hyperlink it will open outlook and inserted that record in the body. The problem here is the message is coming in a single line in the body. I want carraige return after one field is inserted. For Eg.

I use concatenate 'mailto:[email protected]?subject=Hello&body= '

'Material Number: ' wa_mara-matnr 'meins' wa_mara-meins into href separated by space.

The output is

Material Number: 000018 meins AS

I need the output like

Material Number : 000018

Meins AS

Is there any carraige return code is there in a string.

Points will be awarded

Thanks

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
675

hi,

Try this

concatenate 'mailto:[email protected]?subject=Hello&body= '

'Material Number: ' wa_mara-matnr 'meins' wa_mara-meins into href separated by CL_ABAP_CHAR_UTILITIES=>CR_LF.

Thanks

Naren

Read only

0 Likes
675

Hi Naraen n Raj,

Thanks for your quick reply. I tried those options but its not coming in the body of the outlook express.

Thanks

Ravi

Read only

Former Member
0 Likes
676

'0D'. "Carriage return.

Read only

Former Member
0 Likes
675

v_hex = '0D'. "Carriage return.

CONCATENATE '' wa_mara-matnr" matnr V_HEX

wa_mara-meins meins V_HEX

INTO T_FINAL-field.