Skip to Content
0
Former Member
Jul 27, 2005 at 02:42 PM

adjusting space

159 Views

hi folks,

I have to adjust the space while cocatenation of characters

If I have the data '7/08 TU MET ENT' I need the data to be spaced as

'7/08 TU

MET ENT'

Few days back one of the developers helped me with this code

constants: c_crt type x value '0D'.

concatenate zdate1 wa-vavartyp c_crt zbunit zposcc

into wa1-zdateproductcode separated by space.

but it throws an error saying that c_crt is not a char type

one of the other developer also gave me

concatenate ztotalwidth cl_abap_char_utilities=>cr_lf zzquantity into wabb1-zadsize separated by spac

this is working but I am getting '##' sign in the form I am displaying.

Can anybody help me to adjust the code here?

thanks

Santhosh