Dictionary structure with reference to two transparent tables

Hi
I have a question about structures defined as dictionary objects.
Is it possible to define a dictionary structure consisting of the structure types of two transparent tables, i.e. to define a dictionary type that corresponds to something like this:
TYPES:
           BEGIN OF ty_s_tablejoin,
              tab1     TYPE z_table1,
              tab2     TYPE z_table2,
           END OF ty_s_tablejoin.
where z_table1 and z_table2 are both transparent tables?
I need it as a dictionary type in order to pass the structure/table into a function module as an input parameter.
There might be other ways of doing this, but it could be interesting to know if it is possible. Please excuse me if this is a weird question, I'm rather new with SAP.
kind regards
Klaus Stenbæ

Hi Klaus,
You can't create a structure in the data dictionary from two tables.  However, you can define tables based on structures then create a structure combining both.
For example;
Create structures ZST1 and ZST2 (containing the fields of z_table1 and z_table2 respectively)
Then create tables z_table1 and z_table2, defining them based on ZST1 and ZST2
Finally create a structure (say ZST12) combining both ZST1 and ZST2
From a practical point of view, ZST1 and ZST2 should not contain the client field as when you combine them the field will duplicate.  Add the client field to z_table1, z_table2 and ZST12 before including the structres.
Hope this helps,
Nick

Similar Messages

  • Help in defining organization structure with reference to new gl

    Hi Experts,
    I need some help in defining organization structure with reference to new GL. I have three legal entities spread across 17 locations. In each location there may be three legal company entities in operation. And in each company code there are 5 to 6 several product lines. I have defined 3 legal entities as 3 company codes, but my concern is how do i define these 17 locations as and how do i define these product lines. We do location wise reporting meaning if i take one location i draw P&L for all the 15 product lines of the combined 3 company codes. Like wise for we do individual location wise reporting. As ususal we do budgeting location wise for departments for each individual company code.
    I thought of using business area as locations, but i heard SAP doesnt support anymore on business due to new gl concept and moreover business area doesnt populate in all transactions. Can we use new gl concept like segments and so, i am sorry i am very new to New gl. Can the location wise combined reporting be done in consolidation or it can achieved in new gl
    Can somebody share their expertise on how to achieve this either my new gl or traditional gl.
    Thanks in advance
    Best Regards,
    gj

    Hi Experts,
    Looking forward some help on this issue.
    Best Regards,
    gj

  • Enterprise structure with reference to integration points

    Hi,
        Can some one send me information on  Enterprise structure with reference to integration points in SAP-IS RETAIL plz.
    Edited by: sayee on Feb 20, 2008 11:54 AM

    Hello Sayee
    In the Sales and Distribution module of SAP, there are three different perspectives for an enterprise structure. These are:
    •     Market Oriented Organization structure
    •     Internal Organization Structure
    •     Shipping Related Organization Structure
    Market Oriented Organization Structure
    Market oriented Organization structure in the Sales and Distribution module consists of sales organizations, distribution Channels and a reference division. A combination of sales organization and distribution channel forms a Distribution Chain.
    Internal Organisation Structure
    Sales Office and Sales Group represent the internal Organization in SAP. The internal Organization structure is used for performance management of sales personnel.
    Shipping Related Structure (*For Stock Transport Orders)
    Independent Organizational entities, such as shipping points, are responsible for scheduling and processing deliveries to Stores from the Distribution Centre. A delivery is always carried out by one shipping point only. The shipping point depends on the following criteria:
    •     Plant/Site (Distribution Centre)
    •     Shipping Condition
    •     Loading Group
    Thanks
    Amit Shivhare
    PS: Reward point

  • ABAP dictionary : can we delete and recreate transparent table

    Hi Experts,
             I would like to know if we can delete and recreate transparent table which had already been transported to another server? Will it create any other problem?
             The reason why I want to do this is that I want to transport the table contents and the table was earlier created under the class 'Application table' . Now I want to create it under 'Customizing table' class.
    Thanks in advance

    I think you can change the table's Delivery class in SE11.
    Than you can add your entries in the transport request.
    Follow these steps:
    (1) Create a transport request
    (2) Open it, update mode
    (3) Add a line with R3TR TABU <table name>, select the line created
    (4) goto Menu, Key list and add the two keys list you have created (* is wildcard, mandt+key)
    (5) Save, release and transport your request
    No need to delete and regenerate it.
    Regards,
    Naimesh Patel

  • ABAP Objects: Private variable with reference to global internal table

    Hello. I want an object that can hold a private reference
    to a global internal table so that when one of it's methods are invoked, the global table contents are modified.
    Simplification of scenario:
    class myObject definition.
      public section.
        methods:
          set_global_table
            importing reference(i_table) type standard table,
          change_global_table.
      private section.
        data:
          m_pointer_to_table " not sure how to type this"
    endclass.
    class myObject implementation.
      method set_global_table.
        m_pointer_to_table = i_table. " this needs to  "
                                      " assign a pointer to "
                                      " the global variable "
      endmethod.
      method change_global_table.
        refresh m_pointer_to_table. "this should change "
                                    "the contents of global "
                                    "variable "
      endmethod.
    endclass.
    data: gt_itable   type standard table of t_widget,
          go_myobject type ref to myobject.
    * Main code
      create object go_myobject.
    * phantom code fills gt_itable
      call method go_myobject->set_global_table
                    exporting i_table = gt_itable.
      call method go_myobject->change_global_table.
      if gt_itable is initial.
         write 'this should output'.
      endif.
    The code here doesn't work and I've tried messing with field-symbols, etc. all to no avail. Thank you for any help you could provide!
    Brett

    Just typed in this editor - so no syntax-check but you will get the idea:
    Pass the internal table and get the reference of it
    Store the reference and manipulate the global contents with local field-symbols to which you have assigned the reference.
    Hope this helps
    Christian
    >
    > class myObject definition.
    > *
    >   public section.
    > *
    >     methods:
    >       set_global_table
    > importing reference(i_table) type standard
    > standard table,
    > *
    >       change_global_table.
    > *
    >   private section.
    > *
    >     data:
    > m_pointer_to_table type ref to data
    > *
    > endclass.
    > *
    > class myObject implementation.
    > *
    >   method set_global_table.
    > *
         GET REFERENCE of i_table into m_pointer_to_table.
    >   endmethod.
    > *
    > *
    >   method change_global_table.
    > *
      field-symbols: <lit_table> type any table.
        assign m_pointer_to_table to <lit_table>.
    * manipulate <lit_table>
    >   endmethod.
    > *
    > endclass.
    > *
    > *
    > data: gt_itable   type standard table of t_widget,
    >       go_myobject type ref to myobject.
    > *
    > * Main code
    > *
    >   create object go_myobject.
    > *
    > *
    > *
    > * phantom code fills gt_itable
    > *
    > *
    >   call method go_myobject->set_global_table
    >                 exporting i_table = gt_itable.
    > *
    >   call method go_myobject->change_global_table.
    > *
    > *
    >   if gt_itable is initial.
    > *
    >      write 'this should output'.
    > *
    >   endif.
    >
    >
    > The code here doesn't work and I've tried messing
    > with field-symbols, etc. all to no avail. Thank you
    > for any help you could provide!
    >
    > Brett

  • Working with data from two separate tables

    In a report I'm building, I have two tables: "Registration" and "SpecialDates".
    In the Registration table has client info specific to an account number. Each account number has a different billing cycle.. either Cycle 1, Cycle 2, or Cycle 3.  This is listed for the account number as {Registration.Cyle}. In the SpecialDates table I have three different dates listed for each cycle. So this table looks something like this:
    fldCycle          fldPastDueDate
    1                     01/11/2010
    2                     12/15/2009
    3                     1/20/2010
    The problem I'm having is I can't link {SpecialDates.fldCycle} to {Registration.Cycle}.  I have to somehow make the date from the SpecialDates table show up on the report depending on the value of {Registration.Cycle}.  Does anyone have any ideas on how to do this?
    Edited by: MarcieHennessy on Jan 27, 2010 7:26 PM

    Then I would create a custom table with the Add Command in Data Expert with the following query:
    SELECT Field1, Field2, Field3, cast (fldCycle as char(10)) as fldCycle, Field4, Field5, etc
    FROM SPECIALDATES
    Where you list all the fields from the table you will need in the report, with the link field converted to a string.  Then replace the SPECIALDATES table in your linking with the new custom table .  Now when you link from REGISTRATION to the new custom table.
    Fuskie
    Who notes you can rename the custom table to a more recognizable name...

  • Transparent table which i can use instead of this structure :::RMCP2

    Hi Buddies,
    I have to use some fields into this structure
    RMCP2 - I/O Table: Sales and Operations Planning .
    But this is a structure, do we have any transparent table which i can use instead of this structure?
    Regards,
    vijay

    Hi Vijay,
    Plz use SQL trace ( ST05 ) to fetch the corresponding table.
    ( Activate trace, use your txn, deactivate & display trace... )
    Hope this helps,
    Erwan,

  • Transparent table instead of this structure : RMCP2

    Hi Buddies,
    I have to use some fields into this structure
    RMCP2 - I/O Table: Sales and Operations Planning .
    But this is a structure, do we have any transparent table which i can use instead of this structure?
    Regards,
    vijay

    Hi,
       CHeck table P445V, PGPL  
    Regards,
    Prashant

  • How to activate the transparent table along with append structure

    Hi,
    I add the new fields in existing append structure on tale VBAP.
    Initially i provide them the data type as Char with length 20.
    Similarly i added the fields in user exit on scree 8459 to add fields on screen.
    Until this eveything was working fine.
    Then my functional consultant ask me to delete one field from structure and change the length of other data types to 40 characters.
    I done this changes but when i go to activate that append structure its giving me error that certan structures in which it is been used are not adjusted and activated.
    The table is not adjusted through SE14 - Database Utlity.
    Its showing me that Runtime Object and Transparent table are different and not consistent.
    Can i delete the runtime object?
    The domains which i ave changed are also not geing activated.
    Suggest me the node of problem and solution also.
    What should be the problem.
    What should i do to solve the problem.
    Suggest me the solution if any.

    Give a trail that instead of activating all together, activate low-level objects (domains, data elements etc)first and then high levels (structures, tables) individually. With this approach you could find the errors easily and can resolve quickly.
    Regards,
    Prasanth

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

  • Find Transparent table name for correspoding Dictionary Structure SRM 7.0

    Hi,
    I am not able to find Transparent table name for correspoding Dictionary Structure in Webdynpro Component for a field in  SRM 7.0.
    Please let me know.
    Thanks,
    Monica

    Hi Monica
    please tell the transaction name and the name of field seen in webdynpro
    regards
    andrea

  • Performance between two partitionned tables with different structure

    Hi,
    I would like if there is a difference between two partitionned tables with different structure in term of performance (access, query, insertions, updates ).
    I explain myself in detail :
    I have a table that stores one value every 10 minutes in a day (so we have 144 values (24*6) in the whole day), with the corresponding id.
    Here is the structure :
    | Table T1 |
    + id PK |
    + date PK |
    + sample1 |
    + sample2 |
    + ... |
    + sample144 |
    The table is partionned on the column date, with a partionned every months. The primary key is based on the columns (id, date).
    There is an additionnal index on the column (id) (is it useful ?).
    I would like to know if it is better to have a table with just (id, date, value) , so for one row in the first table we'll have 144 rows in the future? table. The partition will already be on the columns (id, date) with the index associated.
    What are the gains or loss in performance with this new structure ( access, DMLs , storage ) ?
    I discuss with the Java developers and they say it is simpler to manage in their code.
    Oracle version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Thanks & Regards
    From France
    Oliver
    Edited by: 998239 on 5 avr. 2013 01:59

    I mean storage in tablespaces and datafiles on disk.
    Can you justify please and give me concrete arguments why the two structures are equivalent ( except inserting data in T(id, date,value))
    because i have to make a report.i didnt say any thing like
    two structures are equivalent ( except inserting data in T(id, date,value)i said
    About structure : TABLE1(id, date, value) is better than TABLE1(id, date, sample1, .... sample144)because
    1) oracle has restriction for numbers of column. Ok you can have 144 columns now but for future if you must have more than 1000 columns , what will you do?
    2) Restrictions on Table Compression (Table compression is not supported for tables with more than 255 columns.)
    3) store same type values on diffrent columns is bad practise
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm#i4383
    i remember i seen Toms article about this but now i cant find it sorry ((( if i found i will post here

  • Two internal tables with different structures

    Hi Experts,
    I Have two internal tables.
    Table 1 structure:
    Name
    Age
    Table 2 structure :
    Name
    age
    branch
    Now the table 1 has some 5 data's and table 2 is empty.
    First i want to move that 5 data's from table 1 to table 2.
    Then the branch field is same for all records. its stored in a separate field called 'Branch'.
    finallay i need to move that branch to internal table 2 for all records.
    So the Table 2 should has five records and each record should have the branch.Its like,
    Name  Age Branch
    name1 10  ECE
    name2 10  ECE
    I didnt use with header line for both tables. In function module i declared as table parameter.
    Please give me a logic.
    Helps will be appreciated.

    Since the structure of yur both internal table is different so you can't use ITAB1[] = ITAB2[] statements.
    In this  case you have to  loop on first table then move data into second table and appned data into second table.
    Declare work area for both table with like line of statement as follows
    data: wa_itab1 like line of itab1,
              wa_itab2 like line of itab2.
    Loop at ita1 into wa_itab1.
    wa_itab2-name = wa_itab1-name.
    wa_itab2-age = wa_itab1-age.
    wa_itab2-branch = 'ECE'.
    append wa_itab to itab2.
    clear wa_itab1, wa_itab2.
    endloop.
    Hope this will solve your problem.

  • Get the data from a structure not a transparent table

    Hello masters, does anyone knows how to retrieve data from a structure?

    Structures do not contain data, they are mearly a way to describe it and are usually used in screen programming to collect data into which come from transparent tables.  For example, lets say you have data from two tables that need to be displayed on a screen, the data is related, so a good programming practice is to use a structure either described internally in the program, or in the ABAP dictionary.  Then in the program, you retrieve the data from the transpart tables and move the data to the structure fields, these structure fields are then defined within the screen. 
    Anyway, when you do F1 help on a field in a screen, and it is says that it is part of a structure, then this is becasue the structure is being used to group these fields into a common container when doing the screen programming, so it is a little trickier to find where the data is coming from, but not impossible.  One way is to use the ST05 to do a SQL trace on the program, this will tell you the tables being hit, and you can find the data that way.  Another way, is to debug the program, and see where the data is coming from.
    Regards,
    Rich Heilman

  • Functinality to compare two material price with reference to BOM in CO

    Hi All,
    Is there is any functionality in Controlling which can compare the costing for two FERT materials.
    or
    is there is  any functionality where we can compare two material price with reference to BOM in controlling
    Please help me to compare the material price with reference to BOM
    Regards
    nandu

    Hi,
    You can use this report to compare two itemizations. The report compares the characteristics item number, item category, cost element, resource, material, cost center, plant/work center, cost center/activity type, operation number, BOM item, assembly indicator, and cost component.
    You can access this report as follows:
    Accounting ® Controlling ® Product Cost Controlling ® Product Cost Planning ® Material Costing ® Cost Estimate with Quantity Structure or Cost Estimate Without Quantity Structure ® Compare
    or
    Accounting ® Controlling ® Product Cost Controlling ® Product Cost Planning ® Information System ® Object Comparisons ® For Material ® Itemization Comparison.
    For Detail Please reffer following link:
    http://help.sap.com/saphelp_46c/helpdata/en/56/abd108f1a611d28a950000e8214595/content.htm
    Thanks and Regards
    Binoj M D

Maybe you are looking for