on 09-16-2014 2:47 PM
Hello at all,
I created an Enterprise Service which contains an Input and Output Structure.
My Problem is, that the Output structure is very deep and this structure contains tabletyps and further structures.
How can I fill a field of the Output structure?
I almost use the Method "describe_by_name", which gives me the components of the "first-Level-structure (lt_components).
Lt_components is filled with different components and types, for example "TTYPE" or "STRU".
One Component of type TTYPE contains a further structure, ... and so on.
At the End of this deep structure (up to 9 Levels) are fields with type of string.
How can I fill These fields?
I hope you can help me.
Thanks in advance.
Andreas O.
Attached you will find a small example.
Hello Andreas,
You can access deep structure like the you access flat structure fields but with some restrictions.
One of things to take care is use the compatible type for the component that is being accessed.
This link will help you ABAP Keyword Documentation
As per you screen shot below statement can be used to access first table.
Table type <tt> = output-getOrderResponse-<Structure1>-<table1>
You can also refer below blog series :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.