on 02-11-2009 1:20 PM
I
How can i use STRLEN function in a sapscript ?
I want to know lenght of a variable (&EKKO-TZX01&) and if's less than 40 char's I want put spaces until 40 char's.
It's possible in sapscript ?
Thanks
For ur requirement
You can replace leading spaces in a value with a fill character. Use the F option with the character immediately following the F in the specification as the fill character.
Syntax
&symbol(F f )&
f = fill character
Eg.:
Initially if &KNA1-UMSAT& -> 700.00
&KNA1-UMSAT(F*)& -> **700.00
So u can use &ekko-txz01(F )&
Regards,
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, with your tip i can fill spaces before my field (ex: *asparten) but i want fill empty spaces after, (example asparten*).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try using this in script editor.
if &EKKO-TZX01+40& is initial.
&EKKO-TZX01(F )&.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this was one &EKKO-TZX01(40)&, provided check that much length available in script.
Regards
Bala Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.