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

raul_natu
Explorer
0 Likes
483

Hi!

i have this code


FIELD-SYMBOLS: <outtab> TYPE ANY TABLE,
<l_line> TYPE ANY,
<l_field> TYPE ANY.

after calling a transformation is giving something like this in <l_line>:

TEST MEXICO 12.12.2009 13.12.2009 JOSE AFONSO 12

how i can read this information one by one?

thanks,

Raul Natu

Edited by: Raul Natu on May 8, 2009 11:32 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

Hi

use below approach-SPLIT f AT g INTO TABLE itab.

example-

TYPES: BEGIN OF ITAB_TYPE,

WORD(20),

END OF ITAB_TYPE.

DATA: ITAB TYPE STANDARD TABLE OF ITAB_TYPE WITH

NON-UNIQUE DEFAULT KEY INITIAL SIZE 5.

SPLIT 'STOP Two STOP Three STOP ' AT 'STOP' INTO TABLE ITAB.

ITAB now has three rows. The first is empty, the second contains ' Two', and the third ' Three'.

2 REPLIES 2
Read only

Former Member
0 Likes
460

Hi

use below approach-SPLIT f AT g INTO TABLE itab.

example-

TYPES: BEGIN OF ITAB_TYPE,

WORD(20),

END OF ITAB_TYPE.

DATA: ITAB TYPE STANDARD TABLE OF ITAB_TYPE WITH

NON-UNIQUE DEFAULT KEY INITIAL SIZE 5.

SPLIT 'STOP Two STOP Three STOP ' AT 'STOP' INTO TABLE ITAB.

ITAB now has three rows. The first is empty, the second contains ' Two', and the third ' Three'.

Read only

Former Member
0 Likes
459

Try this may be help ful

DATA : DESC(100) TYPE C.

DATA : BEGIN OF ITAB OCCURS 0 ,

FEILDS(20) TYPE C,

END OF ITAB.

DATA : WA_ITAB1 TYPE ITAB,

ITAB1 TYPE ITAB OCCURS 0 WITH HEADER LINE.

DESC = 'TEST MEXICO 12.12.2009 13.12.2009 JOSE AFONSO 12'.

SPLIT DESC AT ' ' INTO TABLE ITAB.

IF ITAB[] IS INITIAL.

ENDIF.