Custom table relation

Hi all.
I'm having a rought time trying to sort this out.
Here's my scenario;
Table1
ID,     NAME,     TYPE1,     TYPE2,     TYPE3,     VALUE1,     VALUE2,     VALUE3
EXAMPLE DATA:
1,      PEDRO,      COLOR,      SIZE,      HEIGHT,     01,      02,      02
1,      JOHN,      COLOR,      SIZE,      HEIGHT,     01,      02,      02
1,      FRED,      COLOR,      SIZE,      HEIGHT,     01,      02,      02
Table2
TYPE,     VALUE,     DESCRIPTION
EXAMPLE DATA
COLOR,     01,     BLACK
COLOR,     02,     WHITE
SIZE,     01,     SMALL
SIZE,     01,     LARGE
HEIGHT,     01,     MEDIUM
HEIGHT,     01,     TALL
I need to report, along with the NAME field, the DESCRIPTION (TABLE2) of the 3 VALUES stored on TABLE1. I tryed using a SQL Expression, but I need to filter the query to get the values only related to the specifique TABLE1 ID
I have both tables on the connection done to the SQL server on Crystal Reports
...without a subreport, ofc ^^
Thanks allot

Hi,
Did you try this using database fields directly in crystal reports ?
In  database expert check for the links it should be inner join.
then the drag the required fields into the design tab and run the report.
This may  help you.
If you write sql expression manually you need id column in  the second table as well
As per your table it is not there so you cant make inner join.
Or you can write the following.
select name,value, discrptn from tab1,tab2
where tab1.valu1=tab2.value or table1.valu2=table2.value or tab1.value3=tab2.value.
hope this works fine.............
as per my understanding i have written if it does not  work  please let me know and elaborate bit more.
Regards,
Neo.

Similar Messages

  • Profile count zero for custom table related attributes

    Hi,
    We added a custom table as an assignment block in the business partner and we are using this in segmentation.
    If I connect with the standard marketing authorisation role, when I create a profile using attributes of this table it returns a count of 0. 
    If I connect using my user with (sap_all) I have no problem with the count.
    Do I need to add a specific authorisation object for the custom table or should this be handled automatrically in  EEWB?
    In the authorisation trace I cannot find anything significant to help.
    regards
    Tim

    Indeed, an authorisation issue, object S_TABU_DIS required.

  • Unable to find custom table in HANA Studio - Data Provisioning - SLT

    Hi All,
    We are working on a scenario where in we have created a custom table in ECC and when I tried to find the custom table for performing replication using SLT , however, I am not able to find the custom table in SAP HANA Studio. The custom table related entries are maintained in DD08L, DD02L, DD02T. We are able to find standard tables in SAP HANA Studio which could be replicated using SLT.
    Please could you let us know the reason  or anything we are missing as pre-requisites for custom tables to be visible in SAP HANA Studio for SLT.

    Hi,
    Since you confirmed that the custom table details are available in DD02l, DD02T and DD08L,
    I would request you to check the language in which the source table is maintained/created.
    If the  table at the source is maintained in a different language than you are logged in to HANA St
    udio, it will not be displayed in SLT Provisioning.
    Please let me know your observation.
    BR
    Prabhith

  • Stock room tables in oracle apps ? and how customer is related with those?

    Hi All
    Can any give the details about stock room tables in oracle apps ? and how customer is related with those tables.
    Thank you

    question is not clear, but is it what you are looking for ?
    Stock Locators in Inventory tableis mtl_item_locations

  • Tables related customer text

    Dear all,
                Wat are the tables related to customer texts.
    I have maintained text for the customer and want to fetch the data fro m the table so iam enable to.
    so please provide the information.
    Thanks

    Hi Sameer,
    Customer text is not resident in any table that you can read
    readily in a query. It is possible to add it if you have some
    ABAP skills. Create an Extra field and insert the READ_TEXT
    function module. Multiple lines of text are difficult to deal
    with, but when you loop through the LINES table (populated by
    the function module) you can concatenate the lines. As I said,
    some ABAP skills are required to make this work.
    If you are an ABAPer then you can follow what our friends said to you.
    pls have a look at this..
    http://fuller.mit.edu/SAPDocs/sap_long_text.html
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/tables-for-sap-query-1227446
    If you want anymore clarity on this , pls contact us .we are happy to help you.
    Regards,
    Viveks

  • How to create the custom table?

    Hi, how to create the custom table and how to integrate the table with defferent R/3?
    my requiremnt is i have to create the two tables and those i have to integrate with the existed R/3 and using those R/3 i have to update my custom tables .....can give me some idea?
    Tks
    DPk

    how to create the custom table
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach.
    Both are valid and you can choose which approach is suitable for you. I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.
    3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.
    how to integrate the table with defferent R/3
    Transport the Table to the another server/client/qas/prd
    Kanagaraja L

  • Maintenance View for custom table with foreign key relationship

    Hi Folks,
         I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
    Regards,
      santosh

    Hi,
    You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
    Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
    Regards,
    Ankur Parab

  • Data from a file need to be read and mapped  into a custom table of R/3

    Hello all,
    This is related to inbound to  SAP ECC via SAP PI.
    There is a requirement concerning PI part that data from a file need to be read and mapped  into a custom table of R/3.
    To have this scenario developed , do we have any other  option than the Proxy ?
    My understanding is as follows : File --> SAP PI --> Proxy
    You suggestions are welcome.
    Regards,
    Rachana

    Hi Ravi,
    As suggested by Inaki, you can use proxy communication in recever.
    but you can also use the below
    FILE -----> PI -------> PROXY
                                  RFC
                                  IDOC
    to communicate to ECC system.
    Regards
    srinivas

  • How to find out which program fill a custom table ?

    Dear All,
    I am trying to find out which program fill custom table, I tried se11, which programs used this custom table via where used list but could not find. Is there any different way ?
    Regards

    Hi Sappcon,
    yes, it is as Brad said, but you should extend the approach regarding this tables content: If it is related to an existing business object (i.e. order, delivery or the like), you may have a look at user exits/Badis in that field.
    Also, the dynamic approach is possible. First use report RPR_ABAP_SOURCE_SCAN to find the name of the table in all programs in customer name space - it may be defined as a constant in program/function group/class.
    If the dynamic approach is used, the name of the table may be determined by reading another (custom) table or even in a programs text pool. You may find this by searching a pattern UPDATE() - or MODIFY/INSERT in customer programs.
    If the table has update date/time fields, check what jobs or online activities can be responsible.
    If, after all, you still do not know, then I'd say this is a consulting issue
    Regards,
    Clemens

  • CREATION OF CUSTOM TABLES

    hi
    I AM TRYING TO CREATE A CUSTOM IN ABAP
    I followed the following procedure
    SE11
    SPCIFIED THE CUSTOM TABLE NAME
    CLICKED ON CREATE BUTTON
    THEN SPECIFIED SHORT DESCRIPTION
    For Delivery Class I specified as C
    For DataBrowser and Table variant I specified as Display and Maintenance allowed
    Once I click on save before specifying other properties I see the following error displayed
    "RFC system error for destination GTADIR_SERVER"
    Thanks in advance

    Hi,
    once again try like this.
    Steps to Creating domains, Data Elements, Tables
    To give you the steps for creating table:.
    There are two approach in creating a table.
    1. Bottom-up approach
    2. Top-down approach. 
    Both are valid and you can choose which approach is suitable for you.  I always use the bottom-up approach. Here are the steps to create the tables with this approach.
    1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.
    2. Enter the short discription of the table and enter the field of the table.  If it is primary key and you have to check the box. 
    3. Enter the data element  and double click it, you will be asked to save and will take you to data element discription page.  Enter the short discription of the data element and enter the information of domain like the length of field and type of field.
    4. If you wanted to use the existing domain then its fine, or else, you have to create one.  Enter the domain name in the data element page and double click it.  Page will ask to save and jump to domain creation page.
    5. In the domain page, you have to save the information which you have already given in the data elements page and check it.  Before going to data element page, you have to activate the domain.
    6. Go to data element page and save, check and activate.
    7. Go to main table page and save, check, and activate.  
    8. Also, you have to save the technical settings of the table.
    The table is now ready for operation. You can use it in your program or you can use it to enter information.
    Check table:  It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.
    It can be created by creating the foreign key from the main table.  Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.
    SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.  
    Well, this is the information I have.
    Regards,
    satish.

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

  • How to track changes in a custom table and based on that run an interface

    I have an interface. The pre-condition for running the interface is "Run the interface only if there is new entry added to the table( a custom table). Now I have created a change document object using tcode SCDO for the custom table. Now how do i proceed further. Please tell me the steps which i need to follow to check if the custom table has been changed and also the entries changed  before running the interface.

    Hello,
    SAP has provided many changes tracking related programs for Sales order, Vendor changes etc.
    They all use the standard function Module
      call function 'CHANGEDOCUMENT_READ_HEADERS'
    call function 'CHANGEDOCUMENT_READ_POSITIONS'
    so with these you can get the changed records
    Let me know if this helps you
    Thanks and Regards
    Pushkar Joshi

  • How to track changes in a custom table

    HI all,
       Requirement is
    1. In custom table instead of using table maintence generator ALV gird has to be display to see table entries. But where i have to write the code when user press CONTENTS button?
    2. In alv gird there shuld be one button which shows the change history of selected record and modify the content of selected record. For track changes i have registered custom table name in SCDO. so that changes made will reflect in CDPOS/CDHDR.
    but how can i track changes thru dis table? i didnt find field contents of custom table in CDPOS/CDHDR tables?
    Please help me with these Ques.

    Hello,
    SAP has provided many changes tracking related programs for Sales order, Vendor changes etc.
    They all use the standard function Module
      call function 'CHANGEDOCUMENT_READ_HEADERS'
    call function 'CHANGEDOCUMENT_READ_POSITIONS'
    so with these you can get the changed records
    Let me know if this helps you
    Thanks and Regards
    Pushkar Joshi

  • Custom table Not deleting the line items on the order.

    Hi All
    I have an issue, In SAP  we have created a custom table which is related to ship to party, as and when we delete any line items in the order(VBAP)  it should update /delete the custom table but it is not deleting, while when we create any line items in the order (VBAP) it is updating  the entries in the custom table which is suppose to happen.
    Please let me know your inputs.
    Thanks,
    Ram

    UPDKZ is not a field name. it is the processing status of a line or order.
    If UPDKZ is I , its initial, like adding a new line
    If UPDKZ is U, its update. Like changing or modifying an existing line
    ....so on...
    Regards
    Sai

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

Maybe you are looking for

  • Ref cursors don't work in declared procedures?

    It appears that ref cursors in declared procedures don't work. For example, the following code runs with no errors, but returns nothing from the ref cursor - s = s & "DECLARE" & vbLf s = s & " TYPE OutCurType IS REF CURSOR;" & vbLf s = s & "PROCEDURE

  • When I test the web dynpro page, the browser does not display it !

    Hi all, I have (SAP EHP 2 for SAP NetWeaver 7.0) trial version installed in my laptop.  Lately, I took course NET310 about web dynpro.  I started doing the exercises but when I test my work, the browser (Internet Explorer 8) does not display the page

  • FM Transmitter app?

    Is there an FM Transmitter app for the Droid Incredible? Is it even capable? I know that the LG Chocolate 3 has the capabilities and thats a far less advanced phone compared to the DI.

  • Exchange Postmaster Email

    Hi All, Kindly assist,  I have an exchange 2003 and exchange 2007 in our network environment. Our exchange 2003 is on a server and 2007 on another, The first server that host exchange 2003 forwards all email to the second server hosting exchange 2007

  • Zen Stone will not play .WMAs

    ? Hi all- my Zen Stone recently stopped playing wma file- in fact, it will not play anything other than an mp3. When I try, I simply get the red-flashing error signal. I've tried resetting it, searching for updates, etc., but with no results. If this