‎2007 Dec 05 1:49 PM
Hey,
created a synchronous proxy call and now I want to access the information.
Sounds simple, but as rookie I got a little problems. In debug mode I can access
the information through the variable it_book_list. The debugger defines the path to
the last name like this:
IT_BOOK_LIST-LIST_OF_BOOKS-BOOK[1]-AUTHOR[1]-LAST_NAME
So you see, that there are two tables/structures to walk through. How can I access
LAST_NAME.
It tried a
write : / IT_BOOK_LIST-LIST_OF_BOOKS-BOOK[1]-AUTHOR[1]-LAST_NAME.
or
write 😕 IT_BOOK_LIST-LIST_OF_BOOKS-BOOK-AUTHOR-LAST_NAME
In first write command he said that BOOK[1] is not a valid component but BOOK.
So do I have to save BOOK in an internal table to access further data?
More detailed:
LIST_OF_BOOKS (deep structure(16))
- BOOK (Standard Table (1x6))
-- column: Author (Standard Table (1x8))
--- column: LAST_NAME (c(35))
thx
chris
Message was edited by:
Christian Riekenberg
‎2007 Dec 05 4:23 PM
Hello Christian,
Yes, you have to use something like:
LOOP AT IT_BOOK-LIST_OF_BOOKS INTO zls_list_of_book.
LOOP AT zls_list_of_book-author INTO zls_author.
WRITE: / zls_author-last_name.
ENDLOOP.
ENDLOOP.
Regards,
John.