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

add spaces

Former Member
0 Likes
821

hi,

i have a variables

lv_branch_code(5) typc c,

lv_branch_code1(4) type c = 'TCCL'

i want to store lv_branch_code1 to lv_branch_code with 1 space after 'TCCL'

e.g. it shuld store as

lv_branch_code = 'TCCL '. (one space after TCCL)

how to do this ?

i have done

concatenat lv_branch_code1 ' ' into lv_branch_code

but it is not adding space.

pls help

hi,

i have a variables

lv_branch_code(5) typc c,

lv_branch_code1(4) type c = 'TCCL'

i want to store lv_branch_code1 to lv_branch_code with 1 space after 'TCCL'

e.g. it shuld store as

lv_branch_code = 'TCCL '. (one space after TCCL)

how to do this ?

i have done

concatenat lv_branch_code1 ' ' into lv_branch_code

but it is not adding space.

pls help

5 REPLIES 5
Read only

Former Member
0 Likes
800

Hi,

Check this thread.

Reward points if helpful.

Regards,

Ramya

Read only

Former Member
0 Likes
800

Data : Var(5) type c value 'TCCL'.

SHIFT VAR BY 1 PLACES RIGHT.

WRITE:/ VAR.

Regards.

Dara.

Read only

0 Likes
800

Hi,

do this:

DATA : var(5) TYPE c VALUE 'TCCL'.

SHIFT var BY space PLACES LEFT.

WRITE:/ var.

Regards,

Kumar.

Read only

0 Likes
800

Even you can use:

CONCATENATE var space INTO lv_branch_code .

It will work.

Read only

Former Member
0 Likes
800

data: lv_branch_code(10) type c,

lv_branch_code1(4) type c value 'TCCL'.

concatenate lv_branch_code1 'ash' into lv_branch_code separated by space.

reward if helpful