cancel
Showing results for 
Search instead for 
Did you mean: 

Fill deep output Structure of Enterprise Service

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

jitendra_it
Active Contributor
0 Kudos

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 :