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

string

Former Member
0 Likes
462

I'm trying to access parts of a string (a real string, not a type c) using dynamic offsets (assign wibble+foo(bar) to <F>) but it won't let me.

I'm sure I'm missing something. The Abap Objects book isn't very clear - it refers to character strings as if they all behave the same, which sadly is clearly not the case.

'tis 4.6C.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
441

Hi,

there must be functions to work with string.... such as length, substr and so on... (personally never used them... bbut maybe you could try to search for them)

data: aa1 type string.

data: bb1 type string.

field-symbols <f> type string.

aa1 = '1234567890'.

write / aa1+4(1).

bb1 = aa1+4(1).

assign bb1 to <f>.

write / <f>.

Regards,

Satish......

2 REPLIES 2
Read only

Former Member
0 Likes
441

str2 = str1+off(len)

Thanks

ANUPAM

Read only

Former Member
0 Likes
442

Hi,

there must be functions to work with string.... such as length, substr and so on... (personally never used them... bbut maybe you could try to search for them)

data: aa1 type string.

data: bb1 type string.

field-symbols <f> type string.

aa1 = '1234567890'.

write / aa1+4(1).

bb1 = aa1+4(1).

assign bb1 to <f>.

write / <f>.

Regards,

Satish......