Application Development 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: 

regarding offset operators

Former Member
0 Kudos

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

former_member705122
Active Contributor
0 Kudos

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

Former Member
0 Kudos

use concatenate ..

concatenate 'LIA' v_value into v_value.

Former Member
0 Kudos

data: test(10) value '90010214' .

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

Former Member
0 Kudos

use replace statement.

Regards

Anbu

former_member705122
Active Contributor
0 Kudos

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

0 Kudos

it is comming from the field vbak-vbeln,

0 Kudos

Hi Reddy,

Can you explain your requirement in detail.

Regards

Adil

0 Kudos
SHIFT VBAK-VBELN LEFT DELETING LEADING '0'.
VBAK-VBELN(3) = 'LIA'.

0 Kudos

hi,

thanks i am giving full marks

once again thanks

Former Member
0 Kudos

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