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

help with field

Former Member
0 Likes
697

hallow

i have a field name like orgeh

and in this field i have value like 12345abc99912345

and i wont to remove from this field <b>abc999</b>

that i have after just 1234512345

how can i do that?

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Hi,

use command :

concatenate orgeh1(5) orgeh10(5) into orgeh. "check offsets

Jogdand M B

Hi,

use command :

concatenate orgeh1(5) orgeh10(5) into orgeh. "check offsets

Jogdand M B

4 REPLIES 4
Read only

Former Member
0 Likes
680

Hi,

use command :

concatenate orgeh1(5) orgeh10(5) into orgeh. "check offsets

Jogdand M B

Read only

Former Member
0 Likes
679

Hi!

You can use this:

DATA: str TYPE string VALUE '12345aaa99912345',

st1 TYPE string,

st2 TYPE string.

SPLIT str AT 'aaa999' INTO st1 st2.

CONCATENATE st1 st2 INTO str.

Read only

Former Member
0 Likes
679

Hi Antonio,

Use this code:

Replace 'abc999' in orgeh with ''.

Condense orgeh.

Regds,

Younus

<b>Reward Helpful Answers!!!</b>

Read only

Former Member
0 Likes
679

Hai,

U can do by this,

Data : text(16) type c value '12345abc99912345',

p1(5) type c,

p2(7) type c.

split text at '9' into p1 p2.

shift p2 by 2 places left.

write : p1.

write : / p2.

concatenate p1 p2 into text.

write : / text.

Regards,

Padmam.