Link up b/w MKPF,MSEG and RBKP,RSEG

Hi,
I am working on a report in which i have to make up a link b/w above mentioned tanles. till now i am able to make  link between MSEG and MKPF but the problem is that when i go for the RBKP and Rseg it gives a bit problem as RBKP is a Header Table and RSEG is a item table ,the flow of logic conatins data from field MSEG-LFBNR which is EQ to RSEG-LFBNR and from there i pick up the BELNR and proceed to the PBKP .Is it a right process for reteriving the data?
Please provide me guidelines to solve this problem.

Plz SEARCH in SCN before posting.
Re: EKBE - the connection between Invoice Recipt to Good Recipt

Similar Messages

  • VIEW b/w MKPF, MSEG and VBAK

    Hello Friends,
    I have done some coading, thought to take ur opinion, if its right or not....
    actually, I have following senario:
    I have to select all document of TODAYS date ( MKPF-BLDAT) which are from some specific MSEG-LIFNR and the KUUNR is always e.g "123456" ( VBAK-KUNNR )
    SO I made a VIEW with join condition...
    MKPF-MANDT = MSEG-MANDT
    MKPF-MANDT = VBAK-MANDT
    MKPF-MBLNR = MSEG-MBLNR
    MKPF-MJAHR = MSEG-MJAHR
    MSEG-KDAUF = VBAK-VBELN
    and make the select statement as:
      SELECT * FROM /BAGCOI/MSVIEW
        into CORRESPONDING FIELDS OF TABLE lt_msview
        WHERE
           BLDAT in p_sdate AND
           LIFNR eq c_lifnr AND
           KUNNR eq c_kunnr.
    Do u guys think, it will work for me ?
    Regards,
    PLS ask, if my post is not clear enough
    Message was edited by:
            Shah H

    Hi Rob,
    Could you pls explain about index ?
    Secondlly, I need to have all goods movement of todays date ?, then it would be the filed BLDAT or ?
    Regards,
    Message was edited by:
            Shah H

  • Linking tables MKPF MSEG MBEW EKKO EKBE EKBZ BSEG TCURR

    Hello everyone, I need help with linking all these tables:
    MKPF, MSEG, MBEW, EKKO, EKBE, EKBZ, BSEG, TCURR...
    what is the best way to link them in order to run a report??
    any ideas?

    Refer to this MM and FI tables flow, ths might help you
    http://www.sapgenie.com/abap/tables_mm.htm
    http://www.sapgenie.com/abap/tables_fi.htm
    http://www.sapgenie.com/abap/tables_mm.htm#Purchasing%20Tables
    Regds
    Manohar

  • Link between EKKO and RBKP

    Hi all,
    I'm new to this system and I was wondering if someone could tell me how can I link EKKO and RBKP?
    Thank you!

    Hi Arash,
    Welcome to SDN
    Please go through this link.
    Link between MKPF table and EKKO or RBKP table
    Reward points if useful.
    Regards,
    Atish

  • 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

  • Link for MSEG and EBELN for Mvt 541.

    HI,
    Actually I need link to get the mataerial document numbers against Sub contract Po for mvt 541.
    I need to develop a program to capture the material document nos against Subcontract PO and calucate reamain components against each po with respect to GR for that PO and line item.
    Please provide link for MSEG and EBELN link for mvt 541.
    Thanks
    Venkat

    Hi Venkat,
    Check EKBE table. U will find Material doc no corresponding to the PO no.
    Reagrds,
    Amitava

  • Are there any alternatives for mseg and mkpf

    I had to display from table S032...following fields.
    S032-LETZTABG --> Date: last (i.e. most recent) goods issue
    S032-LETZTVER --> Date: last (i.e. most recent) consumption
    However the data was not properly filled in s032 table.  So I went for mseg and mkpf table to get budat based on moment types.
        SELECT   MSEG~MATNR
                 MSEG~WERKS
                 MSEG~LGORT
                 MSEG~BWART
                 MKPF~BUDAT
                 INTO TABLE IT_MSEG
                 FROM MKPF AS MKPF  INNER JOIN MSEG AS MSEG
                 ON
                     MKPFMBLNR  =  MSEGMBLNR  AND
                     MKPFMJAHR  =  MSEGMJAHR
                 FOR ALL ENTRIES  IN  T_OUT_TMP
                WHERE MSEG~MATNR  EQ  T_OUT_TMP-MATNR
                  AND MSEG~WERKS  EQ  T_OUT_TMP-WERKS.
    Are there any other alternative table for mseg and mkpf...
    Because my above coding  ( which includes above  SELECT of mseg and mkpf )got performance issue...
    Could you please suggest me anyu other alternative for mseg and mkpf ...

    Try to include the BUDAT in the selection of the MKPF.. if you don't have any restriction in MKPF than just pass an empty range.
    RANGES: S_BUDAT FOR MKPF-BUDAT.
    SELECT
    MKPF~BUDAT   "<<<
    MSEG~MATNR
    MSEG~WERKS
    MSEG~LGORT
    MSEG~BWART
    INTO TABLE IT_MSEG
    FROM MKPF AS MKPF INNER JOIN MSEG AS MSEG
    ON
    MKPF~MBLNR = MSEG~MBLNR AND
    MKPF~MJAHR = MSEG~MJAHR
    FOR ALL ENTRIES IN T_OUT_TMP
    WHERE
    MKPF~BUDAT IN S_BUDAT   " <<<
    MSEG~MATNR EQ T_OUT_TMP-MATNR
    AND MSEG~WERKS EQ T_OUT_TMP-WERKS.
    Regards,
    Naimesh Patel

  • MKPF & MSEG Performance issue : Join on table  MKPF & MSEG  taking too much time ..

    Hello Experts,
    I had a issue where we are executing one custom report in which  i used inner join on table  MKPF & MSEG,  some time join statement  took  9-10 min to excute and some time execute within  1-2 min with same test data .
    i am not able to understand what the actaully happing .
    please help.
    code :
       SELECT f~mblnr f~mjahr f~usnam f~bktxt  p~bukrs
        INTO TABLE itab
        FROM mkpf AS f INNER JOIN mseg AS p
            ON f~mblnr = p~mblnr AND f~mjahr = p~mjahr
         WHERE f~vgart = 'WE'
           AND f~budat IN p_budat
           AND f~usnam IN p_sgtxt
           AND p~bwart IN ('101','105')
           AND p~werks IN p_werks
           AND p~lgort IN p_lgort.
    Regards,
    Dipendra Panwar.

    Hi Dipendra,
    if you call a report twice after another with the same test data for data selection, then the second run should be faster, because some data are remaining in memory and needn't to be caught from database. This will be also for the following third und further runs, until the data in the SAP memory will be removed by other programs.
    For performance traces you should try to test with a first run.
    Regards,
    Klaus

  • Create a Logical Database Based on Mseg and Bseg

    Hi,
      how can i create a Logical database using bkpf,bseg,mkpf,mseg. i need to know , which table is a root node ?
    could any one help me?
       Thanks

    Hi Amit,
           While I am Creating the Logical Database by selection MKPF as root node, i have one problem.
       my selection-screen is,
        Plant  Bseg-werks,
        G/Laccount Bseg-Hkont,
        Fin year bseg-gjahr,
        Grn Date Bkpf-Budat,
        Vendor No Bseg-lifnr,
        Po        Bseg-ebeln,
        MatNr     Bseg-matnr.
      My LDB structure is
             MKPF
    Mseg
    BKPF
    Bseg.
      My Doubt is, how can I access the glaccount details from bseg and How can i fetch the data from Mseg and Mkpf
    (Grn details) .
      If you give the Source code it is very useful to me.
      Thanks,
      Neptune.M

  • LIS Info Structure with table MKPF/MSEG

    Hi Gurus,
    I have a view made up of table MKPF/MSEG (74 fields in totals). Based on my requirement (loading archived and non archived marerial movements data) I am looking to create an Info structure with the same 74 fields - to connect the LIS infostructures to BW.
    I need to create a char. as KF fields catalog.
    my issue is while doing that I am not able to have the 74 fields I am looking for (I am just getting around 50).
    I know how to create an Infostructure/ Catalogue (Transaction MC21/MC18)
    Any Idea how to Create an Info Structure that would have all the fields from table MKPF and MSEG?
    Regards
    Edited by: Blaiso on Jun 2, 2011 6:10 PM

    Hi,
    Steps in LIS EXTRACTION:
    T.code u2013 :MC18 u2013 create field catalog
    1. Characteristic Catalog
    Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory Controlling, etc..
    Catalog category 1. Characteristic catalog, 2. Key figures catalog 3. Date catalog Select characteristic catalog and enter, click on characteristic select the source table and it will be display the relevant source field and select the source field, copy + close, copy.
    Save, similarly create key figures catalog
    T.code : MC21 u2013 create infostructure
    Example u2013
    Inforstructure : S789
    Application u2013 01
    Choose characteristic select the catalog, select the fields, copy + close Choose key figures catalog select the key figures ,copy + close, save and generate
    T.code u2013 MC24 u2013 create updating
    Infostructure : S789
    Update group : 01- Sales document, delivery, billing document ,enter Select the key figures click on rules for key figures give suggest rules, copy save and generate Click on updating (activate updating) Select the infostructure set periodic split 1. Daily, 2. Week, 3. Month, 4. Posting period Updating u20131)No updating,2)Synchronous updating (V1), 3)As synchronous updating (V2), 4)As synchronous updating (V3),
    T.code u2013 LBW0 u2013 Connection of LIS Information structures to SAPBW Information structure : S786 Select the radio button-Setup LIS environment and Execute.
    Select the radio button-Generate data source and Execute.
    For Delta update:
    Select the radio button-Generate updating and Execute Select the radio button -Activate / deactivate and Execute.
    T.code u2013 SBIW u2013 Display IMG (implementation guide) Setting for applications specific data source u2013 logistics u2013 Managing transfer information structure u2013 setup of statistical data u2013 applications specific setup of statistical data u2013perform statistical setup u2013 sales.
    Choose activity
    Setup u2013 Orders, deliveries, billing
    Choose the activities enter the infostructure (S789), give name of the run, date of termination, time of termination, No. of tolerated faulty documents. Then execute
    T.code u2013 RSA3 u2013 Extractor checker
    Give the data source name eg. 2LIS 01S789 and execute, result will get some records Go to BW side replicate data source u2013 Assign infosource u2013 Create infocube u2013 Create update rules u2013 create infopackage and schedule the package with initialize delta process.
    For delta update :
    In R/3 side
    T.code u2013 MC25, set update (V1) or (V2) or (V3)
    T.code u2013 LBW0, choose generate updating and execute then choose activate / deactivate and execute
    BW side u2013 create infopackage and schedule the package with delta update.
    First time if your scheduling the infopackage -in R/3 side T.code :MC25 -Udating set to No update,insted of selecting the update V1,V2,V3.
    If your doing the Delta update:in R/3 side T.code :MC25-Updating set to either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button Active/deactivate and Execute.
    and schedule the infopackage with delta update.
    Modules for LIS : SD,MM, PP,QM.
    Deltas for LIS:
    After setting up the LIS environment, 2 transparent tables and 1 extract structure is generated for this particular info structure. Within transaction SE11 you can view the tables u2018SnnnBIW1u2019, u2018SnnnBIW2u2019 and the structure u2018SnnnBIWSu2019 and the InfoStructure itself u201ASnnnu2018
    The tables S5nnnBIW1 & SnnnnBIW2 are used to assist the delta update process within BW.
    Extract structure u2018SnnnnBIWCu2019 is used as an interface structure between OLTP InfoStructure and BW
    The OLTP system has automatically created an entry in the control table u2018TMCBIWu2019. Within transaction u2018SE16u2019 youu2019ll see, that for your particular InfoStructure the field u2018BIW activeu2019 has the value u2018Xu2019 and the field u2018BIW statusu2019 is filled with value u20181u2019 (refers to table SnnnBIW1).
    The orgininal LIS update program u201ARMCX#### will be enhanced within the form routines u201Aform Snnnbiw1_update_u2026.u2018 and u201Aform Snnnbiw2_update
    With the transaction u2018SE38u2019 youu2019ll see at the end of the program starting at line 870 / 1006, that the program is enhanced within a u2018BIW delta updateu2019 coding
    Within the flag u201AActivate/Deactivateu2018 the update process into the delta tables (SnnnBIW1/Sn5nnBIW2) is swichted on/off. In the table u201ATMCBIWu2018 is defined, which table is active for delta update.
    Regards,
    Prakash

  • TS3232 I have the mini DisplayPort to Dual-Link DVI Adapter firmware 1.03 and I still have screen flickering issues

    I have the mini DisplayPort to Dual-Link DVI Adapter firmware 1.03 and I still have massive screen flickering issues on a Mac Mini 2012.
    I am using a Dell 30" monitor (it's the Samsung screen just rebranded) connected to a WD 4TB Thunderbolt drive connected to the Mac Mini.
    The screen is usable for the most part when I've just started the computer (although today I started having issues after a fresh restart) but if even just the screen goes to sleep, or the computer goes to sleep and I wake it later, I start to have massive flickering to black and occasionally to snow.
    The effect seems to be more likely to arise when I'm on heavy graphics-intensive websites or programs (eg, Tumblr feed with lots of GIF images or working in Adobe Premiere), but once it starts shutting down those programs has no effect, the screen keeps flickering wildly.
    The problem improved after the 1.03 firmware upgrade (for a while it was flickering uncontrollably ALL the time and was virtually unusable) but it has not gone away.
    Any suggestions would be very welcome, either for how to fix this issue or how to get Apple to, you know, let me TELL THEM that their adapter firmware fix has NOT solved the issue, since my phone support has expired. :/

    I have a new Mini DisplayPort to Dual-Link DVI Adapter to allow my original Apple 30" Cinema Display to connect to the new Mac Pro.  Shipped straight from Apple, it is firmware version 1.03.  I've never had flickering issues, but the display will often go black (possibly after a screen power save) and not come back.  when this happens I am still able to connect to and use the Mac via remote connection.  But the only way to get the screen back is either to unplug the adapter and plug it back in to the Mac, or to shut down and power up the Mac.  This may be a separate issue, so I'll also post it standalone...

  • Link between Ivnoice A/R (OINV) and Ivnoice A/P (OPCH)

    Hi!
    Is it possible to find some link between Ivnoice A/R (OINV) and Ivnoice A/P (OPCH) without using batches, serial numbers and UDFs?
    Any ideas?
    Thanx!
    Regards,
    David

    Hi David,
    I only known of 1 link possibility.
    If you created the purchase order from the sales order (and the invoices are based on the orders) you can find the purchase invoice through the Purchase order, Sales Order, Sales Invoice.
    Regards
    Ad

  • I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove tha

    I own a iPhone and I have in ÇáÇí Cloud account, but has been disabled worked ريستور and what worked device device is linked to the account books first and I am I do not know the account and password and wrote activation iphone and I am ready to prove that this device is not stolen any way you want

    Apple does not participate in these forums.  We're only users like you.

  • I have an iPhone 4 and an iPod 4th gen linked to the same email address and apple ID. I am trying to set up a new email address for the iPod so a family member can use it but it doesn't want to recognize the new email account. Where am I going wrong?

    I have an iPhone 4 and a 4th gen iPod linked to the same email address and apple ID. I am trying to change the email address on the iPod so a family member can use it but when I do it says it doesn't recognize the email address. Where am I going wrong ? I just want them to be able to iMessage and email without having to use my email address.

    The procedure is Settings>Messages>Send & Receive at>You can be reached by iMessages at>Add another email address. The email address has to be a valid working email address, obviously. Apple should verify the email address and you have to go to the inbox of that email account, read the verification email from Apple and follow the inductions in the email in order to complete the verification. Then you go back to the settings, uncheck your email address and check the new email address to be used as the contact email address.

  • My Ipod shows it is linked to a different Apple ID and all my playlists are gone from the only Apple ID I have, What can I do to not loose the music on my ipod?

    My daughter shares an Ipod account with me and it has worked fine for years until recently.  All of my music and playlists have vanished and only hers remain.  When I plug my Ipod in a window pops up stating my ipod is linked to a another Itune account and I can either erase and sync or copy purchased music over.  I have never started a different Itune account and most of my music is collected from CD's that are not saved to my computer.  How do I keep my music and still be able to add more?

    You need to sign out in System Preferences (or Settings)>iCloud and sign back in again with the new password

Maybe you are looking for

  • Error while invoking BPEL from ESB

    Hi All, I am try'n to invoke BPEL process from ESB services ,where my BPEL process contains a webservice which has an input parameter of type ,a customized bean. I am hitting with the below error <env:Envelope xmlns:env="http://schemas.xmlsoap.org/so

  • Cost of extra personal web space

    What is the cost of extra personal web space

  • Automatic E-mail to a staffed resource in C-project

    Hi experts, I need your help. I'm trying to configure cproject for sending an automatic E-mail when a resource is staffed  in a project. I can´t find the place / IMG entry to do this. Thanks for all. Regards, Diego

  • Need to Access VoiceOver Menu + Other KB Shortcut

    I'll try to be brief: I need to restore my keyboard shortcuts to Default; Shift + T no longer types a capital "T", just nothing. In the VoiceOver menu I set Shift + t to read text. Now I cannot bring back the VoiceOver "floating" menu. Apple's docume

  • CommandLink in dataTable rendered method is called multiple times

    I have a dataTable in which one of the columns contains a commandLink. The commandLink has the "rendered" option bound to a backing bean method. When the page is submitted, the backing bean method gets called 8 times for each row in the table if the