2008 Feb 21 10:17 AM
hi
is there a FM that condense value such as " 12"
become "12"
a FM that remove space
2008 Feb 21 10:21 AM
hi,
there is a command to condense, try this .
CONDENSE
Removes spaces from a variable.
Syntax
CONDENSE <c> [NO-GAPS].
Removes all leading spaces, and replaces other series of blanks with a single space in the character field <c>. If you use the NO-GAPS addition, all of the spaces are removed.
Regards,
Arunsri
hi
is there a FM that condense value such as " 12"
become "12"
a FM that remove space
2008 Feb 21 10:21 AM
hi,
there is a command to condense, try this .
CONDENSE
Removes spaces from a variable.
Syntax
CONDENSE <c> [NO-GAPS].
Removes all leading spaces, and replaces other series of blanks with a single space in the character field <c>. If you use the NO-GAPS addition, all of the spaces are removed.
Regards,
Arunsri
2008 Feb 21 10:22 AM
Hi,
You can use the simple command of
CONDENSE field NO-GAPS.
If needed in a function module, create a function module with a CHANGING parameter as field and above code within.
Cheers,
Aditya
2008 Feb 21 10:42 AM
does that also work for character
e.g. " convert"
to "convert"
2008 Feb 21 10:47 AM
2008 Feb 21 10:49 AM
Basically CONDENSE works only on follwing data types.
C, N, D, T or STRING
So in your case i.e. ' convert' (charcter type ) it should work.
2008 Feb 21 10:50 AM
Hi,
You can use the statement
condense <fieldname> no-gaps .
This will work characters also.
Thanks,
Sriram Ponna.
2008 Feb 21 11:06 AM
is there a FM module that exist because i want to passe this fucntion is ALV list
2008 Feb 21 10:26 AM
2008 Feb 21 11:17 AM
hi,
try out this function module
CONDENSE_TEXTLINES
Regards,
Arunsri