Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Accessing response data from a proxy

Former Member
0 Likes
292

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

1 REPLY 1
Read only

Former Member
0 Likes
265

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.