Skip to Content

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

help to define deep structure in export parameter

hi ALL,

I want to build FM that the export parameters is type deep structure ,

i.e.

i want to retrieve for every employee 1 line with the employee number and table with all employee

address

for example

employee number   address   <-  the parameter address i want to get i one line 
123                                abcd
                                     cccc
                                     aaaa

employee number   address 
456                                cddd
                                     wwww
                                     bbbb

....

i want to get the parameter adress in one nested line i.e if i have 10 employee i just

have 10 entries and when i double click on address i get the address of the employee (one or more).

i try to create in export parameter a table type with structure with fields:

1. employee type char 10

2. address like structure of address

and i do loop and append the address like wa_type-address-address but it's not working,

i still get table with lines that dependent on the user address

what I miss here?

Best Regards

Ricardo

Former Member
replied

Hi,

create in DDIC a TT (ZADDRESS_TT) with this line structure

ADDRESS TYPE CHAR128

.... any other field...

Then create a New TT (ZEMPLOYER_TT) with line structure

EmployerId TYPE INT4 <-- everything you prefer

Addresses TYPE ADDRESS_TT

Then in FM export use EMPLOYER_TT

Regards,

Ivan

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question