How to link EKBE and MKPF tables

HI all
plz help me,
how to link EKBE and MKPF tables
thanks
ramesh redddy

HI,
EKPO-EBELN =  EKKO-EBELN  has Purchase Documnet no.
MSEG=MBLNR = MKPF-MBLNR  has material document no
Link MSEG-EBELN =  EKPO-EBELN ( MSEG purchase prder no and EKPO purhcase document no.)
and you should have to add one  more table MSEG which is provide three table.
check this link
EKPO-EBELN = EKKO-EBELN
MSEG-EBELN =  EKPO-EBELN
MSEG=MBLNR = MKPF-MBLNR
regards,
PK.

Similar Messages

  • How to link T001 AND T001W Tables

    Hi Experts,
      I have t001-burks, how do i get t001w-werks, I need link between two tables.
    Thanks,
    mahe

    You can access T001K by BUKRS.  Take T001K-BWKEY and with it you can read T001W with T001W-BWKEY = T001K-BWKEY.  Then you can take T001W-WERKS.
    Note: With this method you can obtain more than one WERKS for one BUKRS.
    Hope it helps!
    Edited by: Gastón Jareño on Aug 6, 2010 1:32 PM

  • How to link vbak and vbrp tables

    hi friends,
    i want to display lips table values based on lips-vbeln = it_vbrp-vgbel
    here i want a filed thru which i can link vbrp-<fieldname> to vbak/vbap-vbeln
    so that i can get values into it_vbrp.
    here is equation.
      it_vbrp =>   vbak-vbeln = vbrp-< ? >
      it_lips =>   vbrp-vgbel = lips-vbeln.
    thanks in advance for your co operation
    regards,
    Anil kumar p

    u can reach vbrp vbeln from vbrk vbeln
    and to get vbrk vbeln from vbak vbeln
    goto table VBFA
    1.
    GIVE VBFA-VBELV = VBAK-VBELN
    and
    VBFA-VBTYP_N = 'M'.   "INVOICE  IN CAPS
    AND F8
    THIS WILL GIVE U VBRK-VBELN .
    NOW U CAN USE VBRK-VBELN TO FETCH VBRP
    SIMILARLY
    2.
    IF U WANT TO PICK DELIVERY NUMBER FROM LIKP USING VBAK-VBELN.
    SAME PPROCEDURE
    PUT VBFA -VBELV = VBAK-VBELN
          VBFA-VBTYP_N = ' J'.   "IN CAPS 
    WILL FETCH U LIKP-VBELN "DELIVERY
    USE THIS TO GET LIPS ENTRIES
    hope this helps
    regards,
    vijay

  • How to link parent and child relation in Metapedia

    How to link parent and child relation in Metapedia

    Vamsi,
    Did you every determine how to do what you were asking about? Where you thinking of how to link a parent term to a child term (i.e. like a related term) or was this about linking a term to a different metadata object (e.g. table or report) ?

  • Select Query info req for ZMKPFMSEG: View of MSEG and MKPF table

    Hi
    I am fetching 7-8 records frm ZMKPFMSEG: View of MSEG and MKPF table,which based on matnr,werks & budut,which is taking a large time,there is no index in the table,so can nay one tell me how to fetch the data,to make code more effictient.
    SELECT  budat
              matnr
              menge
              bwart
              meins
              bwtar
              waers
              dmbtr
              shkzg
              matkl
              FROM  zmkpfmseg
              INTO  CORRESPONDING FIELDS OF TABLE it_mseg
              WHERE budat GE r_ytd-low
                AND matnr IN so_matnr
                AND werks = p_werks
                AND lgort IN so_lgort
                AND matkl IN so_matkl.
    plz tell me what changes have to be done in where condtion to make it run fast.
    regds

    Hi,
    Try the alternate Methods,
    ACCESS VIA SUBQUERY.
    SELECT * FROM MKPF AS M INTO CORRESPONDING FIELDS OF SWAP
                                        WHERE  BUDAT IN BUDAT AND
                                               MBLNR IN MBLNR AND
                                               VGART = 'WA' AND
                                               EXISTS ( SELECT * FROM MSEG
                                                        WHERE MBLNR = M~MBLNR
                                                        AND   MJAHR = M~MJAHR
                                                       AND   WERKS = P_WERKS
    AND matnr IN so_matnr
    AND lgort IN so_lgort
    AND matkl IN so_matkl.
        APPEND SWAP.CLEAR SWAP.
      ENDSELECT.
      LOOP AT SWAP.
        SELECT  * FROM MSEG
                                 WHERE MBLNR = SWAP-MBLNR AND
                                        MJAHR = SWAP-MJAHR AND
          IF SY-SUBRC EQ 0.
            MOVE-CORRESPONDING SWAP TO ITAB.
            MOVE-CORRESPONDING MSEG TO ITAB.
            APPEND ITAB.CLEAR ITAB.
            CLEAR MSEG.
          ENDIF.
        ENDSELECT.
        CLEAR : SWAP,ITAB.
      ENDLOOP.
    Try this,
    SELECT budat
    matnr
    menge
    bwart
    meins
    bwtar
    waers
    dmbtr
    shkzg
    matkl
    FROM zmkpfmseg
    INTO CORRESPONDING FIELDS OF TABLE it_mseg
    WHERE budat GE r_ytd-low
    AND matnr IN so_matnr
    AND lgort IN so_lgort
    AND matkl IN so_matkl.
    delete it_mseg where WERKS NE p_WERKS .
    Reward Points if helpful.
    Regards,
    Balakumar.G

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • Linking PO and AP tables

    Hi Gurus,
    Please help me in linking PO and AP tables for scenarios like to get the fully/ partially invoiced PO receipts.
    Thanks in advance
    Avinash

    Hi, you can link AP and PO tables in this way: please consider for the AP side table AP_INVOICE_DISTRIBUTIONS_ALL, where you will find all Invoices' distributions. In this table there is a field called PO_DISTRIBUTION_ID that is the right link to PO.
    Hope this helps
    Regards
    Riccardo

  • How to access RT and CRT tables

    Hi experts can any one guide me how to view RT and CRT Tables.
    How to access RT and CRT tables.
    Is there any Tcode existing to access these.
    Thanks in advance
    Regards
    vamsi.

    Hi Vamsi,
    1) You can use the function module : CU_READ_RGDIR
    In this function module you can pass PERNR and you can get SEQNR(Sequence No) or you can take the sequence no from any transparent table also.
    2)After getting the sequence NO Pass the employee NO and Sequence NO in the function module : PYXX_READ_PAYROLL_RESULT.
    From this function module you can get the RT,BTand CRT Table results.
    Thanks and Regards
    Partha

  • How to filter parent and child tables data in impdp?

    Hi Friends,
    i hope everyone doing good..
    I have two tables in my schema like below.
    STUDENT_DTLS:-
    SID Sname CID
    1     venkat     001
    2     uppy     002
    3     deepu     003
    4     trinath     003
    5     naveen     004
    6     ramesh     005
    COURSE_DTLS:-
    CID CNAME Fee
    001     Oracle     2000
    002     java     6000
    003     sieble     4000
    004     informatica     3000
    005     obiee 4000
    if I load only few Student details say sid=1,2,3 into another environment using impdp,corresponding to those students course details from COURSE_DTLS table only need to be loaded.Not all course details.
    Iam Expecting Result in new schema as below:-
    SID Sname CID
    1     venkat     001
    2     uppy     002
    3     deepu     003
    CID CNAME Fee
    001     Oracle     2000
    002     java     6000
    003     sieble     4000
    But when i am using the below import scrit,The COURSE_DTLS is loading first and its query option(select cid from STUDENT_DTLS) is returning no rows.Because at that time no data is insertred into STUDENT_DTLS yet.
    secondly it is importing data into STUDENT_DTLS with query option where sid=in (1,2,3) which is loaded propelry.
    Thirdly it is trying to enable primary key and Foreign key constraints which is also failing because of no data in COURSE_DTLS table.
    i have changed the order of tables in TABLES clause like tables=COURSE_DTLS ,STUDENT_DTLS.But still COURSE_DTLS table is loading first.
    impdp pa_data_sub/******* NETWORK_LINK=qdssih30 tables=STUDENT_DTLS,COURSE_DTLS query='STUDENT_DTLS:"where SID IN(1,2,3)"','COURSE_DTLS:"where cid in(select cid from STUDENT_DTLS)"', CONTENT=all table_exists_action=replace directory=DATA_PUMP_DIR logfile=exp_join.log
    output:
    Total estimation using BLOCKS method: 128 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    . . imported "PA_DATA_SUB"."COURSE_DTLS" 0 rows
    . . imported "PA_DATA_SUB"."STUDENT_DTLS" 3 rows
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-02298: cannot validate (PA_DATA_SUB.SYS_C0040905) - parent keys not found
    Failing sql is:
    ALTER TABLE "PA_DATA_SUB"."STUDENT_DTLS" ADD FOREIGN KEY ("CID") REFERENCES "PA_DATA_SUB"."COURSE_DTLS" ("CID") ENABLE
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    Job "PA_DATA_SUB"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 17:28:13
    Please suggest me how to achieve this task in a single import command?
    Is there any option in impdp to prioritize the table to be loaded first?
    Thanks,
    Venkat Vadlamudi

    You can't be guaranteed which order the data will be loaded in, so using a query that examines a table that is being imported is not going to always work the way you want it. The failing constraints makes sense because there is no data.
    So, in your case, course_dtls gets imported first and the table student-dtls exists, but it not populated yet, so the select cid from student_dtls comes back with 0 rows. The second query works fine.
    You might be able to change the query to be:
    'COURSE_DTLS:"where cid in(select cid from STUDENT_DTLS@qdssih30 where SID IN(1,2,3)"'
    This way, you query the source table pointed to by the network link and you use the same subquery from the first table.
    This should work for you... I think anyway.
    Dean

  • How to identify fact and dimension tables

    Hi ,
    We are having the list of parent child relation info for each database tables. Based upon the parent child tables ,needs to identify which table is fact ,which table is dimension .Could you please help me how to identify the fact table and dimensions tables ?
    Thanks in advance

    Hi,
    Refer this link........
    http://www.oraclebidwh.com/2007/12/fact-dimension-tables-in-obiee/
    Please mark if it helps you.......

  • How to link CRMD_ORDERADM_H and CRMD_ORDERADM_I

    Hi,
    I am new to CRM and I am not sure how to use the two tables CRMD_ORDERADM_H and CRMD_ORDERADM_I. What is the relation between the two tables? Can i use the GUID in CRMD_ORDERADM_H to get details from CRMD_ORDERADM_I? I am not sure how to link the two tables. I need to derive the confirmation number in a report that I am developing but the two tables are confusing me. Please  help me with this.

    Hi,
    CRMD_ORDERADM_H gives header details of a transaction number(like service contract number, sales order number etc) and CRMD_ORDERADM_I gives item details.
    Yes,both are linked by GUID.
    Enter the transaction number in OBJECT_ID input filed in CRMD_ORDERADM_H and copy the GUID.
    Then enter the copied GUID in HEADER field in CRMD_ORDERADM_I to get item details.
    You can also use function module CRM_ORDER_READ to obtain all the information regarding a transaction number.
    Regards
    Anitha

  • URGENT:HOW TO COMBINE CLUSTER AND TRANSPARENT TABLE..WITHOUT USING FOR ALL

    how can we join bkpf and bseg without using FOR ALL ENTRIES.HOW DO I COMBINE THE 2 TABLES SO THAT I GET BETTER PERFORMANCE.
    START-OF-SELECTION.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
    belnr = i_bkpf-belnr AND "A/CING DOC NO
    gjahr = i_bkpf-gjahr AND "FISCAL YEAR
    hkont = p_hkont. "General Ledger Account"
    IF sy-subrc = 0.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bseg
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    ENDIF.
    IF NOT i_bseg1[] IS INITIAL.
    LOOP AT i_bseg1.
    IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
    v_sumgl = v_sumgl + i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
    v_sumgl = v_sumgl - i_bseg1-dmbtr.
    ELSEIF i_bseg1-hkont NE p_hkont .
    IF i_bseg1-shkzg = 'H'.
    i_bseg1-dmbtr = - i_bseg1-dmbtr.
    ENDIF.
    i_alv-hkont = i_bseg1-hkont.
    i_alv-dmbtr = i_bseg1-dmbtr.
    APPEND i_alv.
    v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
    ENDIF.
    ENDLOOP.
    regards
    Essam.([email protected])

    Hi Friend,
      I see your code.. there is no other way than using for all entries for your situation.. how ever i saw ur code and a small recommandation in the change of code.
    SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
    WHERE bukrs = p_bukrs AND "COMPANY CODE
    gjahr = p_gjahr AND "FISCAL YEAR
    budat IN s_budat. "POSTING DATE IN DOC
    IF sy-subrc = 0.
    if not p_hkont is initial.
    SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
    i_bseg1 FOR ALL ENTRIES IN i_bkpf
    WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
    belnr = i_bseg-belnr AND "A/CING DOC NO
    gjahr = i_bseg-gjahr. "FISCAL YEAR
    ENDIF.
    i_bseg[] = i_bseg[]1.
    delete i_bseg where hkont ne p_hkont.
    else.
      Your existing logic...
    endif.
    In this way you can avoide writing two selects on bseg..
    Thanks
    Mahesh

  • How to link to and open external document with Mac Dreamweaver

    I'm evaluating Dreamweaver on the Mac. I know how to link to
    an external document, such as a Word or Excel document. However, I
    would like for the file to automatically open when the link is
    clicked, rather than taking me to a directory window (where I then
    have to double-click the file icon). Another option would be to
    easily import data from a Word or Excel document, but the Help
    indicates that's only possible when using Dreamweaver on Windows.
    Thanks for any guidance you can provide.

    What you need to do is this:
    1.) back up all your data from your iPod
    2.) reformat it on the Windows machine.
    You'll then be able to use your iPod on both Windows and Mac:) If you need more help, let me know!

  • How to design fact and dimension tables

    Hi Team,
    Please provide me some useful links!!
    I have a Parent & Child table each has around 8 Million records (1 to many relation).  These two tables need relation with many other master tables to generate any report. 
    I want to desing a fact and dimension(s) for this parent & Child tables.  
    Please help me what are the things I have to keep in mind when desingning datawarehouse fact and dimension tables?
    Thanks,
    Ali

    Hi, any update on this?

  • Can please tell me how to implement expand and collapse table row data?

    i am trying implement expand and collapse table row data but i do not get any ideas..can please any one help me its an urgent requirement

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

Maybe you are looking for

  • FTP File Adapter: more Archive Directory

    Hello everybody, i have some interfaces whit FTP-XI-Idoc scenarion. we decided to save files after elaboration in different directory depending on month (yy-mm). Example: /Rxarchivio/0901 /Rxarchivio/0902 I see this link https://wiki.sdn.sap.com/wiki

  • How to reload embedded oc4j in JDeveloper without terminating it?

    To the experienced: Using JDeveloper (10.1.3.4), when I need to see the effect of my changes in the application code (in the backing beans), the only way I know is to terminate the embedded oc4j by clicking the red square button (or Run > Terminate >

  • PO status - Transaction completed

    Hi Experts, I have the following scenario: I am checking which PO's are not fully receipted, and I have found some examples of PO's that are not fully receipted but the status is "Transaction Completed". I am trying to understand how is a PO flagged

  • Data level security in ldap

    Hi Experts, I am new to obiee can you any one explain how to give data level security if we use LDAP authentication it would be great help for me. thanks in advance. reg, jell

  • Bare Window Manager (ex-MMWM)

    Working at this for a day now. Basically it's a full screen window manager aimed to those who spend their day cycling through windows instead of having 10 onscreen at a time. It's a dumbed down version of Ratpoison's default behaviour (really dumbed