2013 Feb 05 8:24 AM
HI expert,
Need particular fields from t_tab which is in ASCI and charter format....when i use SPLITING command which is not working properly....
Note: One kind of input getting exactly the field column when i change input parameter then difference fields are getting...
LIST_TO_ASCI..
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
with_line_break = ' '
TABLES
listasci = t_tab
listobject = itab_list
then considered the t_tab...........to get two fields based on my requirement...Also spilted 'I'
DESCRIBE TABLE t_tab LINES lv_lines.
WHILE lv_index LE lv_lines.
READ TABLE t_tab INDEX lv_index.
IF sy-subrc = 0.
SPLIT t_tab-w_text AT '|' INTO lv_dummy
wa_collect2-field1
wa_collect2-field2 lv_dummy.
APPEND wa_collect2 TO gt_collect2.
ENDIF.
CLEAR wa_collect2.
lv_index = lv_index + 1.
ENDWHILE.
However i change input parameters but the field column is chaging..So getting unnecesary fields from GT_COLLECT2 cause SPLITING COMMENT IS NOT DIVIDING fields properly....
Thanks
Savita
2013 Feb 05 12:05 PM
Hi,
I found the report has two radibutton with different ouput. So which makes sense to change ouput in ASCI file...
I got the solution....
thanks
Savita