Doubt on creating joins

Hi friends,
I have two tables , ekes and eine
my requirement is if Ekes-ebtyp = 'X1'.
then Ekes-ebtyp = EKES-EINDT + Eine-j_3alitra.
the doubt is there is no primary key common between this table . actually in my whole program for purchase order i used EBELN for extracting details when two tables are involved . in this two tables no two primary keys are common to extract data ...is there any ways please suggest..
the code i wrote is
loop at li_ekes assigning <fl_ekes>.
read table li_eine assigning <fl_eine> with table key (here i need to give some unique fields to join these two fields please guide me which field i can use.).
<fl_ekes>-ebtyp = <fl_ekes>-EINDT + <fl_eine>-j_3alitra.

Hi Gokul try this one,
ekes-ebeln = eine-anfnr
ebes-ebelp = eine-anfps
Make join on this condition it will work.
Reward if it is useful.

Similar Messages

  • Urgent : Doubt on creating joins

    Hi friends,
    I have two tables , ekes and eine
    my requirement is if Ekes-ebtyp = 'X1'.
    then Ekes-ebtyp = EKES-EINDT + Eine-j_3alitra.
    the doubt is there is no primary key common between this table . actually in my whole program for purchase order i used EBELN for extracting details when two tables are involved . in this two tables no two primary keys are common to extract data ...is there any ways please suggest..
    the code i wrote is
    loop at li_ekes assigning <fl_ekes>.
    read table li_eine assigning <fl_eine> with table key (here i need to give some unique fields to join these two fields please guide me which field i can use.).
    <fl_ekes>-ebtyp = <fl_ekes>-EINDT + <fl_eine>-j_3alitra.

    Hi Gokul try this one,
    ekes-ebeln = eine-anfnr
    ebes-ebelp = eine-anfps
    Make join on this condition it will work.
    Reward if it is useful.

  • Doubt on creating join between  two tables

    Hi friends,
    I have two tables , ekes and eine
    my requirement is  if Ekes-ebtyp = 'X1'.
    then Ekes-ebtyp = EKES-EINDT + Eine-j_3alitra.
    the doubt is there is no primary key common between this table . actually in my whole program for purchase order i used EBELN for extracting details when two tables are involved . in this two tables no two primary keys are common to extract data ...is there any ways please suggest..
    the code i wrote is
    loop at li_ekes assigning <fl_ekes>.
    read table li_eine assigning <fl_eine> with table key (here i need to give some unique fields to join these two fields please guide me which field i can use.).
    <fl_ekes>-ebtyp = <fl_ekes>-EINDT + <fl_eine>-j_3alitra.

    Hi,
    Both tables have field EBELN in common.
    You can use it to extract data from both.
    Hope this helps.
    reward if helpful.
    Regards,
    Sipra

  • Doubt in creating program to display application logs

    Hi,
    I have doubt in creating a program to display application logs.
    The standard transaction code SLG1 has been used to display Application logs till now by the user.
    They came up with the new requirement on this.
    <u>The requirements were:</u>
    1)New custom program shoud be created like SLG1 with limited selection fields( data from, date to, Program name and User)
    2) Detail list should be displyed immediately when this program is executed because SLG1 gives Basic list,Detailed list which is getting displayed when 'Detail view' is selected in the first list.
    I have created one program with limited selection fields as per the requirement using the below function modules .
    BAL_FILTER_CREATE
    BAL_DB_SEARCH
    BAL_DB_LOAD
    and BAL_DSP_LOG_DISPLAY
    <u>Issue :</u> still I am getting the firt list.
    both Basic and Detailled lists are getting triggered at the FM BAL_DSP_LOG_DISPLAY.
    Is it only the way to copy and modify this FM.
    Could you please suggest me?
    Thans in advace,
    babu.
    Message was edited by:
            babu v
    Message was edited by:
            babu v

    Hello All,
    Thanks for your valuable suggitions.
    I have seen most of the demo programs.
    I found one fm'BAL_DSP_PROFILE_NO_TREE_GET' which avoids the tree list which is getting listed above the profile list.
    I have been searching alot to omit the Profile list. I searched alot to find any function modules realted to that.
    The requirement was only the Detail list should only be listed.
    Could you please suggest me to avopid that profile list also?
    Thanks in advance,
    babu
    Message was edited by:
            babu v

  • Doubts in creating ztable?

    Hi
    doubts in creating ztable?
    while creating  currency fields and quantity fields
      which ref table and ref field is suggestable
    which techincal settings is suggestable
    is there any possibility to move ztable which is developed as local object to package for futher transportation?
    thanks in advance

    Hi Sitaram,
    - which ref table and ref field is suggestable: : For clarity include currency and unit fields in the same Z-table
    - which techincal settings is suggestable: This heavenly depends on the number of expected records and the type of use.
    You can use SE03 -> Change Object Directory entries for assigning a local object to a package.
    Regards,
    John

  • Doubt in createing forms in flex ?

    hai all,
    i have doubt in creating forms in flex, how can we validate phone number in form and can we have any script for predefined calender to select date for date of birth. plz help by attaching some references,
              one more doubt how to create my UI(user interface) with good look with dropdown menus and incoprate graphics like .gif,.swf tables ect plz forword or attach some references plz do it fast it very urgent

    Hi,
    Try to use page protection in the Folder. 
    Create a Folder in the Main Area of the table and check the Page Protection Option.  Include all your Line types (Row types) in this folder.
    It will avoid page break and display the records in a set.
    Reward if useful........

  • Doubts while creating a Multiprovider

    Hi experts,
    I have a purchasing cube. Our requirement is to add some more fields in this cube.
    But i found those extra fields in all the three of my GL cube AR cube AP Cube.
    So i want to make a multiprovider between purchasing cube and from one of these three cubes.
    My question is , related to purchase for making multiprovider which cube i need to take i.e. ( AR cube or AP cube or GL cube ).
    And also suppose in multiprovider if i am using two cubes, as per my knowledge atleast one field should be common to make a multiprovider.
    Suppose if we have accounting doc no ( 0ac_doc_no ) in both the cubes.In assignment of chars we will tick for 0acc_doc_no in both the cubes.
    If we have 0clr_doc_no in both the cubes and if we want 0clr_doc_no also in the multiprovider then in assignments of characteristics do we need to tick for this in both the cubes ?
    If we tick only in one cube will it bring the data from only one cube ?
    And also if we tick in both the cubes then will the multiprovider brings the data from both the cubes ?
    Please explain me in simple words. I went through so many links but i am not clear.
    Full points will be assigned.
    Regards,
    V N.

    Hi,
    Since you are concerned with the purchasing cube i say you shaould use (AP and AR) (i.e. account receival and account payable) as both these tables are mutually related , As GL could be a stand alone too.
    So in case you just want to add an extra field GL will do but going with the real essence of purchase AR and AP are more suited once.
    Now for creating a multiprovider its a mandate to mark the common field in all the info providers involved since then only the join condition between the master data tables of the providers work out.
    There won't be any duplication in data since all the entries with same field id i.e.0ac_doc_no in your case are merged together to give a unique entry in a ovveride cube.So an account receval entry in AR table and account payable  entry in AP will be merged to from a unique value for they act as "Contra entries"
    Def : Contra entry : some transactions are recorded in three column cash book
    which relates to both cash & bank i.e. balance of one will
    decrease and other will increase due to such transactions.
    such transactions are entered on both sides of the cash
    book . such entries are known as Contra Entry.Hope this will serve your cause to end.
    hope it will be expedite
    Thax & Regards
    Vaibhave Sharma
    Edited by: Vaibhave Sharma on Sep 14, 2008 8:53 PM

  • Need to change forecast data thru planning book + doubt while creating POS

    hi friends,
    my application creates forecast data for following.
    product , location start date , end date.
    i need to put this data into APO(DP).
    i know i can do it using BAPI CHANGEKEYFIGUREVALUE2 of Planning Book APs
    my doubt is while create a Plng Object store, what fileds do i take as charachteristics which match these, please reply if have some clue

    Hi Rohit,
    I believe i misunderstood your first post. I had given the BAPI parameters that you need to fill up for the given business requirements you have mentioned. I realized you were asking about the POS.
    Answer to Q1: You can not place time characteristics in the POS. You will define the "time characteristics" in your Planning Area by specifying a relevant storage bucket profile.
    Answer to Q2: You dont need to add time characteristics in the POS.
    Answer to Q3: 9AVERSION is not included in the POS. However, when you use BAPIs BAPI_PBSRVAPS_GETDETAIL and BAPI_PBSRVAPS_CHANGEKEYFIGVAL to read/write data from/to the planning area you need to supply a selection for the planning version (9AVERSION).
    Hope this helps.

  • Doubts in Creating Synonym

    We have Oracle9i, i have seen about synonym.
    I have some doubts...
    1. Is that we can create synonym for objects like Packages, stored
    procedures,views and Functions.
    2. How Synonyms helpful in user privileges?.
    3. What is Public and Private Synonyms?
    I have seen some documents but they couldnot clear my doubts....
    Any one can help me in this please

    A quick example :
    SQL> desc myusers
    Name                                      Null?    Type
    USERNAME                                  NOT NULL VARCHAR2(30)
    USER_ID                                   NOT NULL NUMBER
    CREATED                                   NOT NULL DATE
    SQL> grant create session to toto identified by toto;
    Grant succeeded.
    SQL> grant select on myusers to toto;
    Grant succeeded.
    SQL> grant create synonym to toto;
    Grant succeeded.
    SQL> conn toto/toto@H89UCBAC
    Connected.
    SQL> desc myusers
    ERROR:
    ORA-04043: object myusers does not exist
    SQL> desc h89ucbac.myusers
    Name                                      Null?    Type
    USERNAME                                  NOT NULL VARCHAR2(30)
    USER_ID                                   NOT NULL NUMBER
    CREATED                                   NOT NULL DATE
    SQL> create synonym myusers for h89ucbac.myusers;
    Synonym created.
    SQL> desc myusers
    Name                                      Null?    Type
    USERNAME                                  NOT NULL VARCHAR2(30)
    USER_ID                                   NOT NULL NUMBER
    CREATED                                   NOT NULL DATE
    SQL> HTH,
    Nicolas.

  • Re Create Joins in Complex folder?

    Hi all, I have a question regarding complex folders. I am reading the Oracle Discoverer Handbook, and it says that when a complex folder is created and Items are dragged in, the Joins are not copied, and must be created. (I noticed that the joins are missing when I drag all items from other folders in.) How do you do this? I havn't been recreating Joins all along and it seems to be working ok... can someone elaborate? I think the book only has one sentence on it.

    Hi,
    If you have 2 base folders A and B, and you create a join between A and B then both folders will contain the A<->B join.
    If you then create a complex folder X and drag items from A into X. X will not contain the A<->B join. If you want to join X to B in your report then you will have to create a X<-> B join.
    However, if you drag items from both A and B into X, then folder X will implicitly contain the A<->B join. It won't show up in the folder items, but will be shown in the folder dependencies.
    Hope that helps,
    Rod West

  • Doubt Regarding LEFT JOIN Operation

    Hello,
    With the Old syntax in place it is easier for find that which join is performed on which table ...
    But with the new syntax ..m getting bit confused when INNER & LEFT JOINS used together ...
    Below is the FROM clause ...please explain .. how this JOIN is gonna take place ..& which table is Left joined with whom...
    FROM VW_TRANS_MANAGER_SALES ref_1
    LEFT OUTER JOIN VW_AGREE_ASSIGN_TAG_DTLS ass
    ON Trim(ass.agreement_id) = trim(ref_1.AGREEMENT_ID)
    LEFT OUTER JOIN VW_CURENT_RATING_DTLS CURR
    ON (ref_1.company_code =curr.COMPANYCODE)
    LEFT OUTER JOIN VW_PREV_RATING_DETAILS PREV
    ON (ref_1.company_code =prev.COMPANYCODE)
    LEFT OUTER JOIN CRMADMIN.CO_MA_COMPANY_CONTACTS cont
    ON (ref_1.CLIENT_CONTACT_ID= cont.CONTACT_ID)
    LEFT OUTER JOIN CRMADMIN.COR_CRM_MST_CITY city
    ON (city.City_id= cont.City_id))
    ---------------------------------------------------------------------------------------------------------------------------------------

    Hi,
    Aijaz Mallick wrote:
    Yeah .. but was a bit Confusing as u used 2 columns in each table....
    Doesn't it depends on the joining condition we use ... lets Say ..if i use an INNER join after 2 LEFT join ... & m doing an that inner join with the first SOURCE table .... then will it perform a join on the resultset on the previous Joins...???Sorry, I'm not sure what you're asking.
    Please post a specific example of a join that you don't understand, or some results that you don't know how to get.
    Use commonly available tables (like those in the scott or hr schemas) or post your own CREATE TABLE and INSERT statements.
    Using ANSI syntax, the results are as if the joins were done in the order they appear in the FROM clause (even though the optimizer may not actually do them in that order).
    For example, in the querry below, the inner-join between emp and salgrade is done first, then the outer join with dept is done to that result set.
    SELECT     d.dname
    ,     e.ename
    ,     g.losal
    FROM          scott.emp     e
    JOIN          scott.salgrade     g     ON     e.sal     BETWEEN     g.losal
                                       AND     g.hisal
    RIGHT OUTER JOIN  scott.dept     d     ON     e.deptno     = d.deptno
    ;Output:
    DNAME          ENAME           LOSAL
    ACCOUNTING     CLARK            2001
    ACCOUNTING     MILLER           1201
    ACCOUNTING     KING             3001
    RESEARCH       FORD             2001
    RESEARCH       SCOTT            2001
    RESEARCH       JONES            2001
    RESEARCH       ADAMS             700
    RESEARCH       SMITH             700
    SALES          BLAKE            2001
    SALES          ALLEN            1401
    SALES          MARTIN           1201
    SALES          WARD             1201
    SALES          JAMES             700
    SALES          TURNER           1401
    OPERATIONSNotice that the OPERATIONS department, which has no matches in the other tables, is still included because of the outer join.
    If you want to have the joins done in a different order, you can explicitly join some table first, either in a sub-query or just by grouping joins within parentheses in the same FROM clause, as in the query below (which produces the same results as the query above):
    SELECT     d.dname
    ,     e.ename
    ,     g.losal
    FROM          scott.dept     d
    LEFT OUTER JOIN     (     -- Join the following tables first:
                   scott.emp     e
              JOIN     scott.salgrade     g     ON     e.sal     BETWEEN     g.losal
                                            AND     g.hisal
              )     ON     d.deptno     = e.deptno
    ;

  • LSMW doubt regarding createing projectid,subprojectid and object id

    Dear Freinds,
    iam doing lsmw for two objects (infotype 0014& infotype 0015) i have one doubt
    a) when i am creating proect id i have given as ZHR_PA30
    b) subproject id as zsub_pa30
    c) object id   zobj_pa30
               ihave taken the second radio button option Batch input recording , however iam able to one infotype 0014 and however when i have
    to do for 0015 i have to create again new object id or i can use same zobj_pa30. IF i have to use same object id so how i can change the batchinput recording...new name because
    it is already having ZPA0014 how can i give for 0015 infotype please let me know.
    regards
    syamla

    For info type 14 do like this...
    a) project ZHR_PA30
    b) subproject id as zsub_pa30
    c) object id zobj_pa30_0014
    recording -- ZPA0014
    For infotype 15 do like this..
    a) project ZHR_PA30
    b) subproject id as zsub_pa30
    c) object id zobj_pa30_0015
    recording -- ZPA0015

  • Creating joins correctly

    I have been asked to create a sales opportunity report which returns a selection of fields from OOPR, OPR1, OPR3, OPR4 and OCPR.  For starters I have the following:
    SELECT DISTINCT T0.OpprId, T0.CardCode, T0.CardName, T0.OpenDate, T0.PredDate, T2.ClosePrcnt, T4.ThreatLevl, T4.Memo, T4.Won, T1.U_Country,  T1.U_Source, T3.Descript, T5.Name
    FROM OOPR  T0 INNER JOIN OCPR  T1 ON T0.CprCode = T1.CntctCode INNER JOIN OPR1  T2 ON T0.OpprId = T2.OpprId INNER JOIN OOST  T3 ON T0.StepLast = T3.Num, OPR3  T4 INNER JOIN OCMT  T5 ON T4.CompetId = T5.CompetId
    This does not include OPR4 yet.  My first problem is that it returns multiple lines for each opportunity based around permutations of stage and competitor.  I have tried INNER, LEFT and RIGHT joins but have the same problem.  I'm obviously missing something fairly fundamental.  If I then try to JOIN in OPR4 I lock up the system until it brings back 105,000 result!  We currently have a total of 360 opportunities!
    Thanks for your time

    I have now seen one area which would cause this.  Step_Id shows the stages of the opportunity there are therefore usually more than one stage.  This query returns all stages.  Any thoughts on how we return just the last one.

  • Doubt in creating a sales order with reference to contract

    Hi all,
    when I create the sales order with reference to contract, in the table VBFA, the field PLMIN is set to zero some times and set to '+' some times. May I know whats the functionality behind this. Any pointers on this will be helpful.
    Regards,
    A.Rathinaprakash

    Hello A.Rathinaprakash,
    This is an Indicator which indicates the quantity or value in the target document(means Sales order) has a negative effect, positive effect, or no effect at all on the quantity still to be completed in the source document(means contract).
    Example from the Help file..
    In sales documents, for example, you can expect the following results:
    Quotation   -> Sales order: positive effect
    Contract    -> Return: negative effect
    Sales order -> Sales order: no effect
    In billing documents, for example, you can expect the following results:
    Delivery    -> Invoice: positive effect
    Delivery    -> Cancellation: negative effect
    Delivery    -> Pro-forma invoice: no effect
    Hope it helps..
    Regards,
    HP

  • Doubt on creating logical table in BMM

    I have a fact table (time fact table) in physical layer. I am adding a new column billable flag.
    This flag is related with w_lov_d table that means it will contain the row wid of W_LOV_D in time fact table.
    I have created a physical alias table(W_LOV_D) and created foreign key relation to time fact table.
    I have created logical dimension table for billable flag in logical table. WHen i create this table, content tab should be at the table itself. I am getting all the table which are listed in the content. But not the table itself.
    How can i bring the table itself in Logical dimension table and
    I didnot find the dimension table under content table of time fact table also.
    Can anyone throw some idea on this?..

    Just drag and drop the attribute from the physical layer to the logical dimension table. You will have the LTS created with the table as content.

Maybe you are looking for