Querry for MKPF and MSEG

Hi,
In mY report,
I have BUDAT as select-options and
         WERKS as select-options.
Based on MBLNR, MJAHR from MKPF into table it_mkpf where Budat in s_BUDAT.
after that I am fetching MSEG data using for all entries in it_mkpf where werks in s_werks.
for low date range it is working fine.
For higher date range ,I am getting around 2 Lacs of records in MKPF , but while fetching MSEG ,Its getting dump with message endless Loop.
How can increase my performance.
Is there any Function Module to fetch data.
Can anybody suggest me.
Thanks
kumar n

Hi Kumar,
I have the same situation,
where I will have 1.5 lakhs minimum records from MKPF every month,,,
now my total database is nearly 35 million records till date from 1998.
and getting records from MKPF is not difficult its very easy even 35 million records,,,
But after getting from MSEG by MKPF is Hell,,,,
but I see Joins are far better , best in these cases,,,
So after that i have written a Code snippet in "Code-gallery" in SAP -Wiki, with title Joins are Better in some cases
Author: Dileep Kumar
Submitted: 11.02.2009
Description  : Join Statement is the best in some cases as shown below than For All Entries. So Dont Forget about Joins Simply. Keep trying with joins
sometimes, where you can get a better performance.
Dont forget about joins simply like that due to performances. Now in this case(A Business Requirement) Joins is the best than FOR ALL ENTRIES.
TYPES: BEGIN OF TY_MKPF ,
        MBLNR TYPE MKPF-MBLNR,          "Material document
        MJAHR TYPE MKPF-MJAHR,
        BUDAT TYPE MKPF-BUDAT,          "Posting Date in the document
      END OF TY_MKPF.
TYPES: BEGIN OF TY_MSEG1 ,
        MJAHR TYPE MKPF-MJAHR,
        BUDAT TYPE MKPF-BUDAT,          "Posting Date in the document
        MBLNR TYPE MSEG-MBLNR,          "Material document
        MATNR TYPE MSEG-MATNR,          "Material Number
        ZEILE TYPE MSEG-ZEILE,          "Item in material document
        BWART TYPE MSEG-BWART,          "Movement Type
        CHARG TYPE MSEG-CHARG,          "Batch Number
        EBELN TYPE MSEG-EBELN,          "PO #
        SHKZG TYPE MSEG-SHKZG,          "Debit/Credit Indicator
        MENGE TYPE MSEG-MENGE,          "Quantity
        MEINS TYPE MSEG-MEINS,          "UOM
        DMBTR TYPE MSEG-DMBTR,          "Amount in local currency
        WAERS TYPE MSEG-WAERS,          "Currency Key
      END OF TY_MSEG1.
TYPES: BEGIN OF TY_MSEG ,
        MBLNR TYPE MSEG-MBLNR,          "Material document
        MATNR TYPE MSEG-MATNR,          "Material Number
        ZEILE TYPE MSEG-ZEILE,          "Item in material document
        BWART TYPE MSEG-BWART,          "Movement Type
        CHARG TYPE MSEG-CHARG,          "Batch Number
        EBELN TYPE MSEG-EBELN,          "PO #
        SHKZG TYPE MSEG-SHKZG,          "Debit/Credit Indicator
        MENGE TYPE MSEG-MENGE,          "Quantity
        MEINS TYPE MSEG-MEINS,          "UOM
        DMBTR TYPE MSEG-DMBTR,          "Amount in local currency
        WAERS TYPE MSEG-WAERS,          "Currency Key
      END OF TY_MSEG.
DATA : IT_MSEG TYPE TABLE OF TY_MSEG, WA_MSEG LIKE LINE OF IT_MSEG.
DATA : IT_MKPF TYPE TABLE OF TY_MKPF, WA_MKPF LIKE LINE OF IT_MKPF.
DATA : IT_MSEG1 TYPE TABLE OF TY_MSEG1, WA_MSEG1 LIKE LINE OF IT_MSEG1.
SELECT-OPTIONS :
   S_BUDAT FOR MKPF-BUDAT," OBLIGATORY,       " Posting Date.
   S_MATNR FOR MSEG-MATNR," OBLIGATORY.       " Material No.
   S_WERKS FOR MSEG-WERKS." OBLIGATORY,       " Plant
Start-of-Selection.
*<<<<<<<<<<<<<<<<<<<<
    SELECT MBLNR MJAHR BUDAT
      INTO TABLE IT_MKPF
      FROM MKPF
      WHERE BUDAT IN S_BUDAT.
  IF IT_MKPF IS NOT INITIAL.
    SELECT MBLNR MATNR ZEILE BWART CHARG EBELN SHKZG MENGE MEINS DMBTR WAERS
      FROM MSEG
      INTO TABLE IT_MSEG
      FOR ALL ENTRIES IN IT_MKPF
      WHERE MBLNR = IT_MKPF-MBLNR AND
            MJAHR = IT_MKPF-MJAHR AND
            MATNR IN S_MATNR AND
            WERKS IN S_WERKS .
  ENDIF.
*compared to the above For all entries, below Join can perform well &
*Good for 2nd & third runs are much faster as they store data in Buffer memory..
*<<<<<<<<<<<<<<<<<
  SELECT  AMJAHR  ABUDAT BMBLNR BMATNR BZEILE BBWART B~CHARG
          BEBELN BSHKZG BMENGE BMEINS BDMBTR BWAERS
          INTO TABLE IT_MSEG1
          FROM MKPF AS A INNER JOIN MSEG AS B ON AMBLNR = BMBLNR AND
                                                 AMJAHR = BMJAHR
          WHERE A~BUDAT IN S_BUDAT AND
                B~MATNR IN S_MATNR AND
                B~WERKS IN S_WERKS .
*<<<<<<<<<<<<<<<<<<
Thanks & regards,
Dileep .C

Similar Messages

  • SQ01 Query Help for (MKPF and MSEG)

    Is their anyway to have the field MSEG-ERFMG show up on the query results as postive or negative color or use a "-" or "+".  Need to try and show whether is was a negative or postive movement.

    F1 help for MSEG-SHKZG
    Debit/credit indicator in revaluation
    This indicator is used for internal program control.
    Please do not change the entry in this field.
    Any changes made could lead to program errors or terminations.
    I guess the "sign" is defined trough this field ("S" - sollen (debit), "H" - haben (credit)). If my assumption is true, you won't be able to see + / - in MSEG-ERFMG simply because this field contains no information on the sign.
    Using ABAP code you can solve it (or in SQ01 you can use calculated field in your query...I'm not sure you can define that calculated field to cover your requirement...).
    Regards,
    Csaba
    Edited by: Csaba Szommer on May 12, 2009 11:20 PM

  • MKPF and MSEG table

    What is diff between MKPF and MSEG table ?

    Dear Balaji,
    In MKPF you will get to know the transaction code which was used for posting the material document.
    In MSEG,you will get to know the the item details from which it was posted along with the quantity and amount in LC.
    Regards
    Mangalraj.S

  • Info about mkpf and mseg

    I need to modify a report that brings all the production of all our materias for a given period of time.
    The code joins both tables mkpf and mseg and ask for the date:
    mkpf-budat between s_budat-low and s_budat-high
    This query is taking A LOT of time and I need to optimize it. All of the fields needed are in the mseg, but the date is in mkpf. In mseg there is a field called production date (hdat) Is this field the same than the budat located in mkpf (I want to query only one table)?  If not, what do I have to do to optimize my query????
    TIA
    Query:
    select smblnr smjahr sbwart smatnr swerks smenge  
    appending  corresponding fields of table t_mseg  
    from  mseg as s inner join mkpf as k             
    on smblnr = kmblnr and                       
    smjahr = kmjahr                           
    where                                           
    ( sbwart eq lit_101 or sbwart eq lit_102 )
    and s~matnr in s_matnr                          
    and s~werks in s_werks_full                     
    and k~budat between s_budat-low and s_budat-high
    and s~bukrs = p_bukrs.

    Well MSEG has an index on MATNR and WERKS. Try changing the order of the where:
    select s~mblnr s~mjahr s~bwart s~matnr s~werks s~menge
    appending corresponding fields of table t_mseg
    from mseg as s inner join mkpf as k
    on s~mblnr = k~mblnr and
    s~mjahr = k~mjahr
    where s~matnr in s_matnr
    and s~werks in s_werks_full
    and ( s~bwart eq lit_101 or s~bwart eq lit_102 )
    and k~budat between s_budat-low and s_budat-high
    and s~bukrs = p_bukrs.
    Also - make sure s_matnr is not empty.
    Also make sure s_matnr is either 'I'ncluding either ranges or single values. Indexes don't work very well with 'E'xcluding, patterns or NE.
    Rob
    Message was edited by: Rob Burbank

  • Optimization of Join statement between MKPF and MSEG table for improving pe

    Hi All,
    I had a issue where we are executing one custom report and it is getting timed out after 45 minutes. We further executed with trace on and got to the conclusion with the help of BASIS that about 42 minutes of the 45 minutes tracetime are spent by a join over the tables  MKPF en MSEG.
    This join is done by the abap statement:
      SELECT mkpf~mblnr
             mkpf~mjahr
             mkpf~bldat
             mkpf~blart
             mseg~matnr
             mseg~werks
        INTO CORRESPONDING FIELDS OF TABLE i_matdoc_we
        FROM mkpf INNER JOIN mseg ON mkpfmblnr = msegmblnr
                                 AND mkpfmjahr = msegmjahr
    FOR ALL entries IN i_list
       WHERE mkpf~mblnr BETWEEN lv_interval-fromnumber
                            AND lv_interval-tonumber
         AND mkpf~blart = 'WE'
         AND mkpf~bldat LE gv_last_day_fisc_period
         AND mseg~matnr = i_list-matnr
         AND mseg~werks IN s_werks.
    Here, I_LIST comprises of stock for specific period as entered in the selection screen for that particular Material and plant
    LV_INTERVAL is range of all goods receipts for material and gv_last_day_fisc_period is current date.
    During the tracetime this statement was executed  more than 20.000 times, until the transaction timed out.
    The individual executions of this select stmnt  varied (roughly) between 50 and 1200 miliseconds. (depends wheter the requested database block is in the buffercache or must be read from disk).
    The acesspath used to execute the query ( see below) is optimal, given the present indexes.
    Index MSEG~M is covering al the specified selection criteria for  MSEG.
    Index MKPF-0 is used  to search the specified MBLNR criterium in MKPF.
    The  remaining selection criteria MKPF-BLART and MKPF-BLDAT are not indexed, and imho this would also not make sense for this query.
    BLART has only 3 different values n the MKPF table, and the selected value 'WE' has more than 1 million occurences.
    BLDAT is selected with =<20110903, so this is not distinctive as well.
    Can any one suggest some better way to write this query.
    Regards,
    Subhajit

    Actually there are 2 select statements where JOIN have been introduced and especially the time out is occurring in the second JOIN.
    Find all goods receipts for material
      PERFORM get_number_range_matdoc USING '03'
                                   CHANGING lv_interval.
      SELECT mkpf~mblnr
             mkpf~mjahr
             mkpf~bldat
             mkpf~blart
             mseg~matnr
             mseg~werks
        INTO CORRESPONDING FIELDS OF TABLE i_matdoc_we
        FROM mkpf INNER JOIN mseg ON mkpfmblnr = msegmblnr
                                 AND mkpfmjahr = msegmjahr
    FOR ALL entries IN i_list
       WHERE mkpf~mblnr BETWEEN lv_interval-fromnumber
                            AND lv_interval-tonumber
         AND mkpf~blart = 'WE'
         AND mkpf~bldat LE gv_last_day_fisc_period
    AND mseg~matnr = i_list-matnr
        AND mseg~werks IN s_werks.
      CLEAR lv_interval.
      PERFORM get_number_range_matdoc USING '02'
                                   CHANGING lv_interval.
    Find all goods issues for material
      SELECT mkpf~mblnr
             mkpf~mjahr
             mkpf~bldat
             mkpf~blart
             mseg~matnr
             mseg~werks
        INTO CORRESPONDING FIELDS OF TABLE i_matdoc_wa
        FROM mkpf INNER JOIN mseg ON mkpfmblnr = msegmblnr
                                 AND mkpfmjahr = msegmjahr
    FOR ALL entries IN i_list
       WHERE mkpf~mblnr BETWEEN lv_interval-fromnumber
                            AND lv_interval-tonumber
         AND ( mkpfblart = 'WA' OR mkpfblart = 'WI' )
         AND mkpf~bldat LE gv_last_day_fisc_period
    AND mseg~matnr = i_list-matnr
         AND mseg~bwart NE '561'
         AND mseg~bwart NE '562'
         AND mseg~bwart NE '961'
    AND mseg~bwart NE '962'
    AND mseg~werks IN s_werks.
    Mainly the second JOIN is creating the problem... In the backend ORACLE is being used as database.
    Please suggest how I can improve the performance of these joins as its taking more than 45 mins..

  • Oracle Hint on Table MKPF and MSEG : force index MSEG~M to be utilize

    Hi Experts, I'm quite new to ABAP performance tuning, I try to put details as much as I can in my question below, just to have a quick overview of my problem below, I want to use/force in my SQL below to force the utilization of index MSEG~M.
    added an Oracle Hint forcing index MSEG~M
      SELECT MATNR BWART MENGE
      FROM   MKPF
      INNER JOIN MSEG
         ON MKPFMANDT EQ MSEGMANDT
        AND MKPFMBLNR EQ MSEGMBLNR
        AND MKPFMJAHR EQ MSEGMJAHR
       INTO CORRESPONDING FIELDS OF TABLE T_MSEG2
      WHERE MKPF~BUDAT IN S_GSTRP    "(index bud should be used)
       AND  MSEG~MJAHR IN R_DOCYEAR
       AND  BWART IN ('931', '932',
                      '901', '902',
                      '701', '702',
                      '703', '704',
                      '707', '708',
                      '711', '712',
                      '713', '714',
                      '715', '716',
                      '717', '718',
                      '551', '552',
                      '553', '554',
                      '555', '556') "ZZCHK: Constants Not Applicable
             AND  MATNR IN R_MATNR3
             AND  MATNR IN R_COMPNTS
             AND  WERKS EQ P_WERKS
      %_hints oracle u2018INDEX(u201CMKPFu201D u201CMSEG~Mu201D)u2019.
    Note: I'm assuming that you'll take not some comments on further enhancement:
    - " INTO CORRESPONDING FIELDS "
    - use of field symbols
    - I didn't modify it yet since my focus if for MSEG~M
    - cannot make material number as mandatory field
    Objective: Force to use index MSEG~M
    Problem:
    After adding the Oracle Hint, I did the analysis in ST05 and it seems like index M is still not being forcefully
    utilize instead MSEG~0 is being used.
    I replaced the Oracle Hint with:
      %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019.
    In ST05, I can get see that index MSEG~M is now being utilize BUT worst thing happened after applying this, the program timed out.
    I already take a look on the following Notes: 129385, 130480, 772497, 162034, 818321 but nothing seems to be helpful in my problem.
    Questions:
    1.  In syntax %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019. T_01 stands for MKPF right which is the first table, do you what's the reason for the program time out after adding this Oracle Hint?  Is this the proper syntax?
    2.  How can I force in my code to use index MSEG~M without any program timeout?
    For the whole source code of my question above, please see the link:
    http://rapidshare.com/files/211740852/ZDXX0028.txt.html

    Hi Thomas, thanks with the prompt reply (even if it's Saturday )
    Yes, MKPF~BUD is being used.
    The budat selection is narrowed to 28 days though users can input any date range, a warning message will just be displayed if budat selection exceeded.
    Yes, optimizer usually chooses the right index; I'm not in as the same experience as you are though, but I find it interesting that after I added the Oracle hints (several combination) the performance of the program was optimize up to 40% to 50%.
    I uploaded a detailed SQL trace and the ABAP change done in my program, if you'll notice in the summary of the changes, after adding some hints, the duration of the program was improved..
    (SQL Trace Summary of my program) this worth taking a look
    http://rapidshare.com/files/211870091/ZD28_SQL_Trace.zip.html
    I made a custom index in MSEG, but unfortunately I doubt that it will be approve by our performance capacity team.  But I somehow have a hunch that this will further optimize the program.
    MSEG~Z03
    MANDT     Client
    WERKS     Plant
    BWART     Movement Type (Inventory Management)
    LGORT     Storage Location
    What do you think Thomas and SAP experts?
    **Sorry for pasting the whole ST05 result
         SELECT STATEMENT          ( Estimated Costs = 131.250 , Estimated #Rows = 450 )
                        6          FILTER
                        Filter Predicates
                        5          NESTED LOOPS
                        ( Estim. Costs = 131.249 , Estim. #Rows = 450 )
              Estim. CPU-Costs = 1.885.249.948 Estim. IO-Costs = 129.700
                        2          TABLE ACCESS BY INDEX ROWID          MKPF
                        ( Estim. Costs = 14.442 , Estim. #Rows = 288.570 )
                   Estim. CPU-Costs = 206.401.140 Estim. IO-Costs = 14.272
                   1          INDEX RANGE SCAN          MKPF~BUD
                        ( Estim. Costs = 655 , Estim. #Rows = 519.426 )
              Search Columns: 2
              Estim. CPU-Costs = 30.640.783 Estim. IO-Costs = 630
              Access Predicates          Filter Predicates
                        4          TABLE ACCESS BY INDEX ROWID          MSEG
                        Estim. CPU-Costs = 5.818 Estim. IO-Costs = 0
              Filter Predicates
              3          INDEX RANGE SCAN          MSEG~0
                   Search Columns: 3     
         Estim. CPU-Costs = 1.564 Estim. IO-Costs = 0
         Access Predicates          Filter Predicates

  • Tables MARDH and MSEG - daily stock position

    Hi gurus of MM.
    I'm from BW and posted a thread about data from MM:
    Thread: 1876587
    As I understand, I can calculate the stock for a given date directly from tables MKPF (field BUDAT) and MSEG.
    MSEG has normal movement and also the initial stock value (posted as movement type: field BWART = 561), so this is possible.
    But I still didn't understand what's the logic to fill the different types of stock: fields LABST (unrestricted), UMLME (in transfer), INSME (quality inspection), EINME (restricted), SPEME (blocked) and RETME (returns).
    With MSEG I arrived to the total value.
    Which is coherent with the values that I found in MARD and MARDH  (the sum of these types of stock).
    What's the logic to distribute total value among these types of stock ???
    Thanks in advance.
    César Menezes

    Dear Amit
    I'm looking for technical information.
    But if you can also indicate some documents that explain the business rules I'd appreciate.
    The technical question is:
    Using tables MKPF and MSEG (basically fields BUDAT, MENGE and SHKZG) I can arrive to the values in tables MARD and MARDH.
    But until now I can arrive only to the totals of MARD and MARDH (the sum of fields LABST, UMLME, INSME, EINME, SPEME and RETME).
    The question is: what's the logic to arrive to each type of stock: LABST (unrestricted) and so on.
    I'm doing this because I need a daily stock position.
    MARD has a position at the moment, I can't use it to a report like: stock at day 10 plus movement of day 11 equal stock at day 11.
    MARDH has a montly, not a daily position.
    And I saw that I can arrive to daily stock position using only MKPF and MSEG.
    Thanks
    César Menezes

  • Urgent: BSIS and MSEG link

    Hello,
    I cannot get the material number of the GR line in FI documents.
    I am using the tables BSIS and BSAS but cannot find any material number associated with them.
    BSEG is an option but it is giving time-out dump when data of more than 10 days are selected.
    Any suggestions will be appreciated.
    Regards,
    Sukriti

    Hi Sukriti,
    Never use BSEG or MSEG directly to fetch data as they always have huge data and it takes lot of time to fetch data.
    the link between BSIS and MSEG is as follows.
    BSIS-BELNR = MSEG-BELNR
    BSIS-GJAHR = MSEG-GJAHR
    BSIS-BUZEI   = MSEG-BUZEI
    BSIS-BUKRS = MSEG-BUKRS
    and filter in where condition based on MSEG-MATNR = materials from Select option or Parameters.
    May be you can create an index with the above 4 fields and also BSIS-HKONT in BSIS table.
    This would definitely give you the exact number of entries as in BSIS and MSEG.
    You can notice that in MSEG the Fields are not Key fields but they will give you unique entries.
    So you should be using join for BSIS and MSEG tables on the above 4 fields.
    hope this will solve your problem.
    If useful please dow reward
    Thanks
    Venugopal

  • Table name and field name for accounting and material document in MM

    Hi
    Table name and field name for accounting and material document in MM
    how can we diffreentiate the accounting document in MIGO and MIRO ?

    Hi,
    For Goods reciept documents you can search from the tables  MKPF-Header: Material Document and MSEG-Document Segment: Material,
    and for Invoice documents you can search in  tables   BKPF-Accounting Document Header and BSEG-Accounting Document Segment.
    For differentiating the Accounting documents in MIRO and MIGO based on posting key and document types for GRN -document key is -WE and for MIRO document is -RE.......
    Hope this may help you.....................

  • Taking long time filling the setup tables for sales and shipment

    Hi ,
    I am trying to fill the setup tables for sales and shipment and it is taking lot of time .
    It took 16 hours just to bring 6 months of  sales history  data in the test environment .
    Cn anybody help on this issue why it is taking that much of time ...
    I am trying to  load the sales data from R/3 into APO-BW from 2005 to 2007 .......
    It is taking 16 hours to fill the data for only 6 months .

    Hi,
    1. delete data and refill the setuptables again by spliting to several small pieces.
    2. compare the data. wht is the last Document numner in RSA3(Maximum one). Start from Maximum one. may be bit complex approch.
    you need to check with PSA and base tables.
    keep one thing in your mind you need to check againest MSEG and BSEG only. noy BKPF and MKPF.
    correct if i'm wrong.
    either refill or create a user exit to avoid duplicae records(you should have very good understanding of data, it will lead to inconsitent data for delta records).
    User exit not a good solution. it's one possibility.
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • EXIT for MIGO and MB01

    Hello,
    I need to find a BADI or USER-EXIT for MIGO and MB01 at the time of posting, to store in table BSEG fields ZBD1T LIFNR ZTERM the table EKKO.
    I found User-exits several but none contains the BSEG as output instead contains MSEG and the MKPF which I serve.
    Someone can help me?
    Thanks
    Diego

    Try this BTE  00001120
    link:
    Fill in BSEG-ZUONR with PO BEDNR field
    Thanks,
    AMS

  • Tables for batch and movement type

    Hi all!
      We have to show the batch data after GR is done with respect to different movement types. I got a table CHVW which gives the data for batch , movement type ,material and quantity.But data for 302 and 541 movement types is not updating in this table.Is there any other table for these two movements?Please suggest.

    Hi,
    pls use below table's
    MSEG - Detail Material Document
    MKPF - Header: Material Document
    Regards,
    Sankaran

  • View creation on MKPF and MBEW

    Hi gurus,
    I want to create a view on mkpf and mbew data base table for creating the generic extractor. Can one please tell me the step by step procedure or any screen shots send to mail id, my id is [email protected]
    i will be grateful if any help is provided.
    Thanks in advance.

    Hi ,
    chk this
    views
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm
    creating views
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
    Cheers,
    Swapna.G

  • MB51 : add field not included in MKPF or MSEG table

    Dear.
    I need to show a new field in MB51.
    This field isnu2019t included in MKPF or MSEG table.
    I cannot add it in Customizing , do you know an exit for doing this ?
    Thanks.

    Hi There,
    The reports MB51/MB5B read the data from the tables MKPF/MSEG, so if you wish to add a new field in MB51 you need to add the field into one of these tables. Unfortunately there is no such exit.
    For Inventory Management, SAP provides the following customer exits:
    MB_CF001 Updating of material document data upon posting
    MBCF0002 Filling the item text in the material document
    MBCFC003 Maintaining batch master data upon goods movements
    MBCFC004 Maintaining batch specifications upon goods movements
    MBCF0005 Filling the item data on goods receipt/ issue slips
    MBCF0006 Transferring the number of the WBS element for subcontracting
    MBCF0007 Posting a reservation
    MBCF0009 Filling the Storage location field
    IQSM0007 Serial numbers, user exit for goods movements
    XMBF0001 Stock determination: - changing the stock determination rule -
             Adjusting the stock determination item table
    Kind Regards,
    Elaine.

  • Querry for Production receipe

    I am new to this forum
    From C203 : We get Receipe Details of 1 singel Material and Plant
    I want to know the Operations with lead times for List of materials
    For this purpose i have creaed a SAP querry using below tables
    MKAL : Production Version of Materialas
    MAPL :Assignment of Material to Task List -
    >Linked through material number
    PKLO: Task list header --->Link is Key for task list group
    PLPO Task list operations---> Link is key for task list group
    The problem is of Valid list of operations as on Date
    C203 displays only valid list of sequence but this querry shows multiple sequence of operations as stored in PLPO
    I want to restrict the querry(For multipler items) exactly to same as C203 display.
    T-code C203 has 3 seleiction fields , Material , Plant and Key date(Validity)
    However the Key date is not stored in any table
    I have also checked the tables about Valid From, Valid to , change date etc there is no difference is sequence of operations
    How can i restrict the entry to exactly the same as of c203

    Hi there,
    technically You miss one table: PLAS (...PLKO - PLAS  PLPO)
    I am not sure of what You said: do You have the same operation from PLPO multiplied (missing table could cause multiplication), or You have the one, which could be seen in C203 and some more? In this case  have You checked if those ones are deleted ones? The operation deletion could be also found in PLAS-LOEKZ.
    Br

Maybe you are looking for

  • ITunes can't see my iPhoto Library

    This evening I updated iPhoto to v11.4 and after the update it required my iPhoto library to be updated to work with the updated version of the software.  After that was complete, iTunes could no longer see my iPhoto library, albums etc.  It looks li

  • Signal booster needed?

    I moved and cannot get a signal at my more remote location.  I cannot receive or send out phone calls, it registers phone call failed.  I do however receive text messages and email.  I have a strong WIFI signal but my Verizon service is not working.

  • Web Service scedule report NUll pointer Error

    I've managed to use the web service to scedule my report. The web service completes and mails the output but the final status is failed due to this error: System Message java.lang.NullPointerException      at oracle.apps.xdo.servlet.scheduler.Util.ge

  • Photoshop elements 10 trash

    How to photoshop elements 10 that opens onto a space totally free and without any opening of trash?

  • Help with: ACPI_NOTIFY_BUS_CHECK event: unsupported

    Dear Fellas, I start to have the following error while booting: _SB_.ACAD: ACPI_NOTIFY_BUS_CHECK event: unsupported That happened after some update last night, probably. I don't remember which one. I'm using last kernel and btrfs partition in an old