Skip to Content
avatar image
Former Member

Not able to append 2 structures with same field name into Generic extractor

Hi ,

I am not able to append 2 structures with same field name,I am creating generic extractor on top of View.when i try to append 2 structures with same field name.Its not allowing.

eg:having 1 segment with 5 different structure.1st structure is for Bill_to_party,2nd structure is for ship_to_party,3rd structure is for remitto.whereas all the strutures having same field name as name1,name2,Sreet , City, State.

After adding 1st structure,system is not allowing me to add 2nd structure with same field name.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 02, 2015 at 01:57 PM

    Mean your adding same ecc fields(same technical name) to multiple structures?

    if yes then it won't allow you. Same fieldĀ  can't be added multiple times.

    it will allow you once only.

    Why you want add such way that.

    you can utilize bw attributes(name,city,name1...etc) concepts and drill down at reports based on ship to part/ bill to party if you needed

    Add comment
    10|10000 characters needed characters exceeded

    • Even if they are in different append structures, once you add the appends to the extract structure, all those fields are now part of the extract structure. That's how you can declare a work area of the type as the extract structure, and refer to the fields like this:

      DATA my_work_area TYPE zextract_structure.

      my_work_area-ZNAME1 = 'Joe'.

      Because when you add the append structure ZMM_INVOIC_REMITTO to the extract structure, all fields of ZMM_INVOIC_REMITTO effectively become members of the extract structure.

      The obvious consequence of that is that if there are multiple append structures with the same field names and you try to add those appends to the same extract structure, the system sees it just as if you were adding duplicate fields to the extract structure directly. And that is not allowed.

      So you mean to say instead of adding as a 4 different structure,need to append as a different fields right with different technical names(zname1,zname2,zname3)?