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

regarding offset operators

Former Member
0 Likes
1,478

hi,

i am having 90010214 number now i want to add LIA to first three digites

i want out put like this LIA10214.

please can u explain this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,443

Hi,

Run this sample code,

DATA:
  w_a(8) TYPE c VALUE '90010214',
  w_b(3) TYPE c VALUE 'LIA',
  w_c(5) TYPE c,
  w_d(8) TYPE c.

w_c = w_a+3(5).

CONCATENATE  w_b w_c INTO w_d.
write: w_d.

Regards

Adil

9 REPLIES 9
Read only

Former Member
0 Likes
1,443

use concatenate ..

concatenate 'LIA' v_value into v_value.

Read only

Former Member
0 Likes
1,443

data: test(10) value '90010214' .

concatenate 'LTA' test+3(5) into test .

Read only

Former Member
0 Likes
1,443

use replace statement.

Regards

Anbu

Read only

Former Member
0 Likes
1,444

Hi,

Run this sample code,

DATA:
  w_a(8) TYPE c VALUE '90010214',
  w_b(3) TYPE c VALUE 'LIA',
  w_c(5) TYPE c,
  w_d(8) TYPE c.

w_c = w_a+3(5).

CONCATENATE  w_b w_c INTO w_d.
write: w_d.

Regards

Adil

Read only

0 Likes
1,443

it is comming from the field vbak-vbeln,

Read only

0 Likes
1,443

Hi Reddy,

Can you explain your requirement in detail.

Regards

Adil

Read only

0 Likes
1,443
SHIFT VBAK-VBELN LEFT DELETING LEADING '0'.
VBAK-VBELN(3) = 'LIA'.
Read only

0 Likes
1,443

hi,

thanks i am giving full marks

once again thanks

Read only

Former Member
0 Likes
1,443

Hi,

Try like this:

data: v_test(20) type c value '90010214'.

concatenate 'LIA' v_test+3(5) into v_test.

write v_test.

Regards,

Bhaskar