Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Fetching the values

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...

Tags:
Former Member
replied

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..

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question