2008 Apr 25 9:41 AM
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
2008 Apr 25 9:44 AM
2008 Apr 25 9:45 AM
Data : Var(5) type c value 'TCCL'.
SHIFT VAR BY 1 PLACES RIGHT.
WRITE:/ VAR.
Regards.
Dara.
2008 Apr 25 9:52 AM
Hi,
do this:
DATA : var(5) TYPE c VALUE 'TCCL'.
SHIFT var BY space PLACES LEFT.
WRITE:/ var.
Regards,
Kumar.
2008 Apr 25 9:56 AM
Even you can use:
CONCATENATE var space INTO lv_branch_code .
It will work.
2008 Apr 25 9:57 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |