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: 

update the field in the database table

Former Member
0 Kudos

hi i have a field zbarcode BCS|0600015004500|127

i have to update only in middle portion i.e material no, i.e 0600015004500. please let me know how to do this logic

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,


report  zars.

data : a(25) type c value 'BCS|0600015004500|127',
       b(13) type c .

move  a+4(13) to b.
write b.

2 REPLIES 2

former_member223537
Active Contributor
0 Kudos

move zbarcode+4(13) to v_matnr.

former_member194669
Active Contributor
0 Kudos

Hi,


report  zars.

data : a(25) type c value 'BCS|0600015004500|127',
       b(13) type c .

move  a+4(13) to b.
write b.