Tables MSEG and EQUI Link

Hi All,
Given a line from MSEG table, how can I pull all serials numbers related to this particular line item in EQUI? What other tables can link the two?
I can use matnr and batch directly to access EQUI but then again two different MSEG line items can make use of the same matnr and batch.
Please help.
Thanks,
Tyken

HI,
To get the serial number check the below code..
here IT_MSEG is an internal table which contain data from table MSEG
select amblnr amjahr azeile bsernr
    into table it_sernr
    from ser03 as a inner join objk as b
    on aobknr = bobknr
    for all entries in it_mseg
    where a~mblnr = it_mseg-mblnr and
             a~zeile = it_mseg-zeile.
Thanks!
Brunda

Similar Messages

  • Find the key for join between table "crhd" and "equi" for use field "answt"

    I make program for read data from table "crhd" for print  about machine report
    but I can not find the key for link join to table "equi" for print field "answt" (acquistion value)
    please help me  find the key field for join between table "crhd" and "equi" for use field "answt"
    thank you very much...

    This is how the Work Center is linked to a particular Equipment -
    Functional - In IE03 ( view Equipments) You see the Work Center of a particular Equipment.
    Technical - Go to view V_EQUI ( view of EQUI and EQUZ). Pass the Equipment number alongwith V_EQUI-PM_OBJTY = 'A' ( i,.e searching for the Object Type Work Center).  In this way u ll get the V_EQUI-GEWRK - this is the Work Center ID.
    You can pass this Work Center ID to CRHD. And you will get the Work Center text.
    CRHD-OBJTY = 'A'
    CRHD-OBJID = V_EQUI-GEWRK.
    and u ll get the CRHD-ARBPL - this is the Work Center.
    So u need to come backwards, alongwith ur CRHD-OBJTY and CRHD-OBJID , you pass the same to V_EQUI and u get the list of equipment numbers alongwith ur ANSWT(Acquisition value).
    I guess it solves ur problem.

  • Link between tables mseg and afvv

    Dear Sap Gurus,
    I need a report in which i can get production order wise production and cunsumption for all production order
    operations in a single report.
    i just want to know how to link mseg table in which i am having batch wise production and consumption with afvv table
    or any else in which  i can get operation nos of production order.
    Thanks and regards
    Shankar

    Hi,
    AFVV - AUFM by AUFPL as told above is best way, otherwise to join MSEG, you can use field AUFNR in tables MSEG & AUFM and further AUFPL to join AUFM & AFVV.
    Regards
    Trin

  • Join on two tables mseg and bsim

    hi
    i have to select data from both these tables based on select-option datum as basim-budat and sakto as mseg-sakto.
    base on these two elect-options i have to fetch material from these tables . where both datum and sakto conditions match.
    Thanks

    One program i wrote sometime ago had the following logic :
      select * from mbew into table t_mbew
        for all entries in t_mara
        where matnr = t_mara-matnr
          and bwkey in s-bwkey
          and bwtar in p-bwtar
          and ( bwtty = space or ( bwtty <> space and bwtar <> space ) ).
      sort t_mbew by matnr.
      select * from mseg
               join mkpf on mkpfmblnr = msegmblnr and
                            mkpfmjahr = msegmjahr
               into table t_mseg_mkpf
               for all entries in t_mbew
               where mkpf~budat >= p-budat-low
                 and mseg~werks in s-werks
                 and mseg~bwtar = t_mbew-bwtar
                 and mseg~matnr = t_mbew-matnr.
      select * from bsim
               into table t_bsim
               for all entries in t_mbew
               where budat >= p-budat-low
                 and bwkey in s-bwkey
                 and bwtar = t_mbew-bwtar
                 and matnr = t_mbew-matnr.
      loop at t_mbew into mbew.
        loop at t_bsim into bsim
             where matnr = mbew-matnr
               and bwkey = mbew-bwkey
               and bwtar = mbew-bwtar.
        endloop.
        loop at t_t001w into t001w
             where bwkey = mbew-bwkey.
          loop at t_mseg_mkpf
               where mseg-matnr = mbew-matnr
                 and mseg-werks = t001w-werks
                 and mseg-bwtar = mbew-bwtar.
          endloop.
        endloop.
      endloop.
    Hope this may help you.
    Regards

  • 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

  • GRC PC 2.5 table for task plan and testlog and its link

    Hi,
    I want to know the list of tables used and the link between the tables related to GRC PC.
    Mainly I need tables involved while creating task plan, test logs. We need to develop a report using this data. We need to know how the tables are linked. We saw some two, three GRPC tables, in which the primary key is GUID. We need to know how this GUID is getting generated and on what basis we can retrieve this information from the tables.
    There is one report in report center of GRC PC 2.5. In that selection screen, is it possible to add another filed and based on that retrive data.
    Regards,
    Karthick S
    Edited by: Karthick Sitaraman on Apr 24, 2009 9:55 AM

    Karthick,
    I can offer the following:
    1) SP07 was released on 4/20/2009 and contains a new report "Test Step Status."  You might want to look at this report so you don't unnecessarily reinvent the wheel.  This would, however, require application of SP07.  That report has 42 available fields.....lots of data.
    2) The table that contains Test plan Master data is HRP5327.
    We previously had minor reporting change required and SAP was able to issue a fix for it.  The request was a minor, natural extension of an existing report.  Part of the problem is that we have very limited web dynpro ABAP skills in house so development of a report was very time consuming.  Another option you might want to look at is BI. 
    I hope this helps.
    Matt

  • 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

  • Problem linking A/R invoice table INV1 and Credit memo table RIN1

    Hi Experts,
    I have developed a sales report by picking data from the A/R invoice table INV1, BP partner table OCRD and Charts of accounts table OACT and the report is working fine. The only problem is I am having a challenge linking the above tables with the A/R Credit memo table RIN1. I want the linkage that is in case an A/R invoice is cancelled by raising an A/R credit memo, the same is not reflected on the sales report, kindly help.
    Patrick

    Hi Gordon,
    Sorry, I did both the report and relationships in crystal but if I do a query in a view it is something like
    SELECT     dbo.OACT.AcctCode, dbo.OACT.AcctName, dbo.INV1.ItemCode, dbo.INV1.Dscription, OCRD_1.CardCode, OCRD_1.CardName
    FROM         dbo.OCRD CROSS JOIN
                          dbo.OACT INNER JOIN
                          dbo.INV1 ON dbo.OACT.AcctCode = dbo.INV1.AcctCode INNER JOIN
                          dbo.OCRD AS OCRD_1 ON dbo.INV1.BaseCard = OCRD_1.CardCode
    the problem is incorporating the credit memo table coz if i include it I end up with wrong figures, hope this will help you guide.
    Patrick

  • CS5 table of contents broken links and missing bookmarks

    I'm having an issue with the table of contents in a .pdf. I'm working on a 112 page document in InDesign CS5. After exporting the .pdf, I realized that the file would be far too large to upload to the website. I used "reduce file size" in Acrobat Pro to make it smaller and chose the option to make it compatible with Acrobat 5.0 and later. The table of contents worked fine, all bookmarks appeared and links worked but the file was still too big. I did the same thing again but for version 4.0 and later and now the file is an appropriate size but the table of contents doesn't include all of the bookmarks and certain links don't work. Any help is appreciated!

    Don't go down to 4. Consider v5 a minimum. I prefer v7 as a minimum. v4 doesn't support smarty features. Generally, the higher the version number, the more clever it is at squeezing file size. But really, the single biggest factor in PDF file size is your choice of how many ppi the bitmap images are sampled down to. Did you try setting them down to 100 ppi, for example?

  • Link B/W table field and  Applications

    hi
    Is there any transaction for Link B/W table fields and  Applications.
    regards,
    pavan.

    Hi
    If you starts from delivery you can find the sales order number and item in LIPS table: LIPS-VGBEL and LIPS-VGPOS, if you need to start from sales order it should be better to use the table VBFA (document flow) and search the next document of sales order VBFA-VBELN and VBFA-POSNN with VBFA-VBTYP_N = 'J'
    Max

  • Linking and de-linking of Oracle tables

    Hi,
    Does anyone know how to link and de-link Oracle database from MS Access please? (programmatically)
    I have made a form in MS access. For example. say there is a button when user click on in, it will insert the data from access into Oracle table.
    In a simple way, the button just for transfer data from table 'A' (in Access) or records into table 'B' (in Oracle).
    Therefore, how do you connect a table in Oracle from ms access programmatically. It means in vb code and how do you de-link it so it will reduce the lag time.
    At the moment, I can connect link tables from Oracle into ms Acces using the link tables and setup the ODBC connection. However, I want to use this setup the connection & calling the table with codes in ms access (vb).
    For Example: (however, this code doesnt work but maybe I am getting there)
    So if someone can help me, it would be great.
    Dim strCon
    strCon = "Driver={Microsoft ODBC for Oracle}; " & _
    "CONNECTSTRING=(DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST=MYCOMP)(PORT=9876))" & _
    "(CONNECT_DATA=(SERVICE_NAME=testing))); uid=user;pwd=password;"
    Dim oCon As Database
    Set oCon = WSCript.CreateObject("ADODB.Connection")
    Dim oRs As Recordset
    Set oRs = WSCript.CreateObject("ADODB.Recordset")
    oCon.OpenRecordset strCon
    Set oRs = oCon.Execute("SELECT * FROM employee")
    cheers

    I think I am in the right forum, the only thing is that I don't know in which category that I belong to. Is there a topic about access & Oracle in this forum?
    Basically, I can connect link tables from Oracle into ms Acces using the link tables and setup the ODBC connection. However, I want to use this setup the connection & calling the table with codes in ms access (vb).
    For Example: (however, this code doesnt work but maybe I am getting there)
    So if someone can help me, it would be great.
    Dim strCon
    strCon = "Driver={Microsoft ODBC for Oracle}; " & _
    "CONNECTSTRING=(DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST=MYCOMP)(PORT=9876))" & _
    "(CONNECT_DATA=(SERVICE_NAME=testing))); uid=user;pwd=password;"
    Dim oCon As Database
    Set oCon = WSCript.CreateObject("ADODB.Connection")
    Dim oRs As Recordset
    Set oRs = WSCript.CreateObject("ADODB.Recordset")
    oCon.OpenRecordset strCon
    Set oRs = oCon.Execute("SELECT * FROM employee")

  • 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

  • Fetching data slow from MSEG and BSEG table

    Dear Experts,
    Out  MSEG and BSEG are major tables which are very slow and taking 5-10 minutes in fetching just 20/30 records.
    Why this table taking more time and how I can fatch fast  data from these table.
    regards

    > Out  MSEG and BSEG are major tables which are very slow and taking 5-10 minutes in fetching just 20/30 records.
    > Why this table taking more time and how I can fatch fast  data from these table.
    Do you select on key fields or on indexed fields? How do you select?
    If not, then the database must read the full table and check which of the entries are valid for your selection.
    Do an SQL trace using ST05, run the command, stop the trace and check the explain.
    Markus

  • JOINING local table and DB Link table performance

    Hellou everybody,
    can somebody tell me how it is work in Oracle DB when you want to join some local table and DB Link table for example:
    Select a.col1, b.col2
    from local_table a , remote_table@dblink b
    where a.key = b.key;
    and when I use DRIVING_SITE hint and the all data from remote table is transforming (pushing) into my DB (in some temporar space), it will transform although Indexes from remote table?
    So when I use some JOINS, this joins will be fast enought? Will they using remote table indexes to query the data or not?
    Thank you for response.
    Zoffob

    user10708026 wrote:
    Is it as simple as:No. Use:
    UPDATE  habitationalsupplement live_hab
       SET  primaryheatingapparatuscode = (
                                           SELECT  hab_backup.primaryheatingapparatuscode
                                             FROM  habitationalsupplement@backupdb hab_backup
                                             WHERE hab_backup.itemobjectid = live_hab.itemobjectid
                                               AND hab_backup.itemversionnumber = live_hab.itemversionnumber
      WHERE (itemobjectid,itemversionnumber) IN (
                                                 SELECT  hab_backup.itemobjectid,
                                                         hab_backup.itemversionnumber
                                                   FROM  habitationalsupplement@backupdb hab_backup
    /SY.

  • Asigning Reports, specific tables and Url links to the Role

    Hello Gurus,
    could you please tell me the procedure of asigning Reports, specific tables and Url links in the role.actually i know the process of assigning T-Codes to the role but i dont know the procedure for reports and url links and tables...
    i hope u people will respond positively.
    Cheers.......
    srinivas.korva

    Hi Srinivas,
    "i want to add only one particular table not all tables", you can do this using a Custom Transaction Code, the following are the steps to do it:
    1) goto se93, give a unique name, say zxxx
    2)Enter SE16 into the transaction field and select the flag the ‘skip initial screen’ field:
    3)On the lower portion of the screen, enter the following information:
    Name of screen field: DATABROWSE-TABLENAME
    Value: Enter the name of the table you want to browse with
    4)save it.
    5) Now add the transaction zxxx in th role, and assign it to the user.
    With this, when user executes the transaction, he/she will be able to see only the perticular table you added.
    "in PFCG what is the use of Exper mode for profile generation. what is the difference between general profile generation and expert mode profile generation".
    Expert mode has 3 options:
    1) Delete and recreate profile and authorizations---This will completely delete the old profile and add only  the new once.
    2) Edit old status----It will edit the old values
    3) Read old status and merge with new data----This will add the new values aithout actually disturbing the old ones.
    Hope it helps.
    Please award points if it is useful.
    Thanks & Regards,
    Santosh

Maybe you are looking for