‎2009 May 08 10:31 AM
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
‎2009 May 08 10:39 AM
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'.
‎2009 May 08 10:39 AM
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'.
‎2009 May 08 10:51 AM
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.