Hi all,
I have a string of certain chars... i wish to check if the number of characters is less than 35 chars, i will need to add blank spaces behind the string. How can i do this in SAPScript? I tried the below code but it does not work. Pls help.
DATA: Z_INT TYPE I,
SPACE_NO TYPE I.
Z_INT = STRLEN( FCOY_NAME ).
IF Z_INT < 35.
SPACE_NO = 35 - Z_INT.
ENDIF.
DO 20 TIMES.
CONCATENATE FCOY_NAME &SPACE& INTO FCOY_NAME.
ENDDO.