10-13-2008 5:46 AM
Hi,
Have writtten the code as
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = -1
WITH_LINE_BREAK = ' '
TABLES
listasci = it_asc
LISTOBJECT = it_list
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at it_asc.
if sy-tabix > 2.
write:it_asc-txt.
endif.
endloop.
in the table it_asc the values present is getting genereated as a report.From the report genereated i need to fetch only one value.How to get it...
10-13-2008 7:23 AM
Hi,
If it is only one value then 'READ' the internal table with the key values or if you are sure of the index, then 'READ' with the index..
regards,
Madan..
10-13-2008 7:03 AM
loop at it_asc.
if sy-tabix > 2.
if <selection condition>.
<var> = it_asc-<required field>.
endif.
endloop.
Now you can use the value from <var>
10-13-2008 7:08 AM
>
>From the report genereated i need to fetch only one value.How to get it...
One value or first value?
10-13-2008 7:10 AM
10-13-2008 7:23 AM
Hi,
If it is only one value then 'READ' the internal table with the key values or if you are sure of the index, then 'READ' with the index..
regards,
Madan..