Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 12, 2009 at 04:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 12, 2009 at 03:53 PM

    Hi Ricardo,

    I think you are missig table declaration of addres.

    You should do like following:

    TYPES:
     ys_address type table of address,
     BEGIN OF yt_address,
      employee type c(10),
      addres type address,
    END OF yt_address.
    

    or you can define directly addres type table of address inside begin yt_address.

    Don't forget to create this correct structures with table type in Data Dictionary.

    Regards,

    Frisoni

    Add comment
    10|10000 characters needed characters exceeded