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

What is command to format variables in script layout?

Former Member
0 Likes
427

Hi all,

Can anybody let me know, What is the command we use to format the varialbles in script layouts?

like if i want to delete leading or trailing spaces(condence) from a variable in the layout, there are some command like (c) for condence

But, i dont remember how to use it exactly. Can anybody help me on this?

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
403

Space Compression

The symbol value is viewed as a sequence of u2018wordsu2019, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the u2018wordsu2019 to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.

Syntax:

&symbol(C)&

Assuming ' Albert Einstein ' is the symbol value,

&symbol& -> Albert Einstein

&symbol(C)& -> Albert Einstein

Regards,

Joy.

2 REPLIES 2
Read only

Former Member
0 Likes
404

Space Compression

The symbol value is viewed as a sequence of u2018wordsu2019, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the u2018wordsu2019 to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.

Syntax:

&symbol(C)&

Assuming ' Albert Einstein ' is the symbol value,

&symbol& -> Albert Einstein

&symbol(C)& -> Albert Einstein

Regards,

Joy.

Read only

Former Member
0 Likes
403

Hi,

Check this link for all formatting options of SAP SCRIPT...

http://it.toolbox.com/wiki/index.php/Sap_script#7.6.09Formatting_Options

Hope this would really help you.

Regards

Narin Nandivada.