Performace of resb table

Dear All,
          I have one Performance issue  , my problem is the query given below
      Takes much more time than Expected were i retreive data from resb table only by passing EBELN and WERKS  .I am using key fields also still my performance is not increased so tell me how to increase performance .
SELECT  rsnum
          rspos
          rsart
          werks
          baugr
          ebeln
          matnr
          bdmng
          enmng
          lifnr
          ebelp
          ebele
     INTO CORRESPONDING FIELDS OF TABLE it_disp
          FROM  resb
WHERE   rsnum NE 0
AND     rspos NE ''
AND     rsart = rsart
AND     werks = p_werks
AND     ebeln = p_ebeln .
Thanks And Regards .
Deepak Dhamat .

Hi Anagha ,
              I have created structure of fields which i am selecting in query  i. e w_disp1 and  created internal table it_dispt .
And The rest is below .
code is working fine but need to test on production server will test and Reply .
SELECT  rsnum
           rspos
           rsart
           werks
           baugr
           ebeln
           matnr
           bdmng
           enmng
           lifnr
           ebelp
           ebele
      INTO  TABLE it_dispt
           FROM  resb
  WHERE   rsnum NE 0
  AND     rspos NE ''
AND     rsart = rsart
  AND     werks = p_werks
  AND     ebeln = p_ebeln .
  LOOP AT it_dispt .
    MOVE : it_dispt-rsnum  TO it_disp-rsnum ,
           it_dispt-rspos  TO it_disp-rspos ,
           it_dispt-rsart  TO it_disp-rsart ,
           it_dispt-werks  TO it_disp-werks ,
           it_dispt-baugr  TO it_disp-baugr ,
           it_dispt-ebeln  TO it_disp-ebeln ,
           it_dispt-matnr  TO it_disp-matnr ,
           it_dispt-bdmng  TO it_disp-bdmng ,
           it_dispt-enmng  TO it_disp-enmng ,
           it_dispt-lifnr  TO it_disp-lifnr ,
           it_dispt-ebelp  TO it_disp-ebelp ,
           it_dispt-ebele  TO it_disp-ebele .
    APPEND it_disp.
    CLEAR it_dispt.
Thanks For Your Suggestion
ANd Also for others who have replied .
Deepak Dhamat .

Similar Messages

  • Deleting Reservation from RESB Table

    Hi Experts,
    I have reservations of child component in RESB table which are resulted from the parent component in Subcontracting Scheduling Agreement.
    All Delivery Schedules lines are completed (GR Made.) Still reservations exist for child component.
    Please suggest how to remove these reservations from RESB Table.
    Regards,
    Shravan.

    Hi Sharvan,
    To delete entry from Table
    Run trx SE16n (preferable)  or SE16.
    Enter the Table RESB.
    Enter the reservation number.
    Now in the command window (Where you type the T Codes) type &sap_edit. And press enter.
    A message such "SAP editing function is activated" will flash.
    Execute
    Delete the entry.
    Regards,
    Shyamal

  • Subcontract Reservations in RESB Table

    Hi Experts,
    I have reservations of child component in RESB table which are resulted from the parent component in Subcontracting Scheduling Agreement.
    All Delivery Schedules lines are completed (GR Made.) Still reservations exist for child component.
    Please suggest how to remove these reservations from RESB Table.
    Regards,
    Shravan.

    There is only one solution in this case if all efforts fail.
    You have to write an ABAP code which will flag the Final issue indicator in RESB table for perticular reservation. In this case you have to flag exact reservations and close that chapter not to be opened again. in future.
    Regards,
    Rahul Puranik.

  • How can we improve the performance while fetching data from RESB table.

    Hi All,
    Can any bosy suggest me the right way to improve the performance while fetching data from RESB table. Below is the select statement.
    SELECT aufnr posnr roms1 roanz
        INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
        FROM resb
        WHERE kdauf  = p_vbeln
        AND   ablad  = itab-sposnr+2.
    Here I am using 'KDAUF'  & 'ABLAD' in condition. Can we use secondary index for improving the performance in this case.
    Regards,
    Himanshu

    Hi ,
    Declare intenal table with only those four fields.
    and try the beloe code....
    SELECT aufnr posnr roms1 roanz
    INTO  table itab
    FROM resb
    WHERE kdauf = p_vbeln
    AND ablad = itab-sposnr+2.
    yes, you can also use secondary index for improving the performance in this case.
    Regards,
    Anand .
    Reward if it is useful....

  • Error on RESB table changing planning order using BAPI_PRODORD_CHANGE

    Hallo.
    In my custom program ZINTERFACE_ORDER, I use BAPI 'BAPI_PRODORD_CHANGE' to change multiple production order (quantity / start date/ end date).
    CALL FUNCTION 'BAPI_PRODORD_CHANGE'
         EXPORTING
    number       =  wk_ordine
    orderdata    =  wk_orderdata
    orderdatax  = wk_orderdatax
         IMPORTING
    return         = bapi_return.
    First order change works right, but the second order generate the error:
    TYPE: E
    ID      : CO
    NUMBER : 888
    MESSAGE:  Internal: Error when reading document table RESB
    The error is generated by  COXT_BAPI_ORDER_CHANGE , called internally from the above BAPI_PRODORD_CHANGE
    And I have to exit from my custom report and reprocess the second order to work.
    It seems that there is a lock on RESB table.
    Could you
    help me?
    Thanks a lot
    Giancarlo

    You need to find the lock that is being set.  After your BAPI Commit, you need to test that the lock is cleared.  If not, do a wait for 1 sec and retest.
    Unlock (and lock) are queued objects that do not occur until after the commit is complete.  Because they are queued, they can get slow.  Especially when a background process is going to try to work with multiple in a short period of time.
    Neal

  • Dont find purchasing document and item in RESB table

    Hi Guys,
       **I have a requirement to find production order for puchase document and item and get product cost, for this i am trying to find the link between purchase docuemnt and production order (other than material) and i found RESB table but some how i dont find Purchase document information in that table the feild is blank , could anybody pls let me know how can i ahcieve this??
    And i found one datasource for this 2lis_02_ACC but that is pulling only when purchase document account assignment happend and i dont find my required values from that source also.
    Thanks,
    chandra.

    This is a case where I would go to the MM or PP functional consultant on the project, or the end customer, to determine how they would manually connect the dots to get from the purchase order to the production order.
    There are ways on going about this, but it depends on the configuration of your R3/ECC source environment and at what point the data is required. For instance, you might be able to go from:
      EKKN-EBELN = BSIK-EBELN
      EKKN-EBELP = BSIK-EBELP
      BSIK-AUFNR = AFKO-AUFNR
    This would be after account assignment.

  • Regarding RESB table changes

    Hi..
    I m working on one interface, in which i hav RESB extraction process. For the initial run of this interface all the records should be downloaded .But on subsequent execution i need only the changed records. The problem is there is no means for me to keep track of the changes in RESB, as these are not getting reflected in change tables CDHDR and CDPOS. Also there is no CREATED/CHANGED date fields in RESB table. Does anyone know any alternative for fetching the changed or newly records from RESB table based on date?

    Hi Cynthia,
    In the runtime we can check for the changes that are made in a table by using the mirror tables. there would be XRESB and YRESB tables in runtime which would hold the mirror images of the table contents before change and after change. so we have to perform a check of the fields from both the table at runtime. If there is a change perform the required action accordingly.
    <b>
    Reward points if this helps,</b>
    Kiran

  • Increasing the Performace of GLPCA Table

    Dear All,
    Is there any way to increase the performace of GLPCA table
    Regards
    VSKR

    Hi,
    It depends on your SAP release. The easiest way to see if it's possible is to go to OSS and type 'GLPCA performance'. There are several notes regarding this issue, but only some could be reolevant for your current SAP release.
    Regards,
    Eli

  • I want to get data from only RESB table without loss of any deltas

    i have to fetch the reservation details for the production orders.
    we are using descrete manufacturing method to keep track the Work in process and cost .
    for addition of components manually in the production order we can track thru change date i.e From AUFK table with field name AEDAT. for each time when we are adding the components the system will create a new line item In tableRESB-OBJNR(field)
    i need very few fields from RESB table to be pulled into SAP BW.
    how should i proceed creating a generic exractor without any loss of deltas.
    i want to get data from only resb table into sap bw.
    how should i proceed with Generice extractor with single table RESB and what would be the delta field . could any one throw some light .
    all answers would be rewarded with points

    I have few reports for BOM data is to be pull into bw
    all the reports contain the same tables Mentione below
    MAST- material to BOM LINK
    STKO- BOM header
    STPO- BOM ITEM
    STAS- BOM ITEM SELECTION
    how should i create ageneric datsource satisfying that all the data comes from these tables without fail of deltas,
    my doubts.1. Do i have to create a separate data sources (generic) for all these individually and load into separate ODS'S AND CLUB THEM into single ODS further.?
    if i create i dont know what should be delta field that has to be picked for each datasource
    2. Do i have to create a view on all these tables and create a generic datasource.if created what would be the delta field i have to select.
    could you pls let me know how should i pull the data without loosing any deltas
    could you pls let me know the flow with delta fields mentioned
    regards,
    P

  • Performance issue with RESB table

    Hi,
    User want to improve the performance of a standard program RLLL07SE in which a RESB table data is fetched and take much time on it.
      The select querry for RESB is,
        SELECT * FROM RESB WHERE
               MATNR = MATNR AND
               WERKS = WERKS AND
               XLOEK = SPACE AND                    "Löschkennzeichen
               KZEAR = SPACE AND                    "endausgefaßt
             XWAOK = CON_X AND                    "Warenausgang erlaubt
               LGNUM = LGNUM AND
               LGTYP = LGTYP AND
               LGPLA = LGPLA.
    whereas the table index is created on following fields of RESB,
    MATNR
    WERKS
    XLOEK
    KZEAR
    BDTER
    What possible can be done in this respect as the program is a standard one we can change only in Table Inxex I guess..or what else can be done?
    Can we add LGNUM LGTYP LGPLA into the particular index apart from the existing fields?

    Hi,
    Instead of creating the Index, Get Data from RESB with the where clause having the entire key of the index and then loop to the internal and delete the unwanted entries as shown below.
    loop at itab.
      if itab-LGNUM = LGNUM AND
        itab-LGTYP = LGTYP AND
        itabLGPLA.
      else.
         delete itab index sy-tabix.
      endif.
    endloop.
    As u r getting data with entire index fields the performance will surely increase. Also avoid Select * and retrieve whatever fields u require.
    As you r not having value to the field BDTER, you can pass a range or select-options for this field which has empty valuee.
    Regards,
    Satya

  • Purhcase order is archived and reservatins are still open in RESB table

    Hi Experts,
    The purchase order has been archived and reservations to this order is still open in table RESB - KZEAR.  There is no reservations display in MD04. The mateial is in subcontracting scenario.
    We can clear this reservation technically by updating the table in pre-production. But the problem arised in production environment. We cannot do any technical changes.
    My question is: How can we clear these reservations functionally??
    Pl give your valueable suggestions.
    Best answers will be rewarded.
    Regards,
    Surya.

    Hi
    The final issue indicator in RESB table is shown as blank. If we select 'x'  Indicates that a reservation item is completed.
    How can we get functionally the indictor is to be 'x' as the PO is archived?
    Thanks & Regards,
    Surya

  • Regarding resb table

    hai,
    is it possible to count the no of records by year wise in resb table and in that table 16 millions records are present.if it is possible means, tell me the solution as soon as possible.
    with regards,
    r.dhinesh raj.

    hi,
    write a query like,
    data: ws_cnt type i,
          ws_gjahr type gjahr.
    select count(*) gjahr into (ws_cnt, ws_gjahr)
      from bkpf GROUP BY gjahr.
    write: ws_cnt, ws_gjahr.
      endselect.
    regards,
    Subramanian

  • Access resb table

    How can I access RESB table from EKPO table ?? Thanks

    Hi Jennifer,
    From EKPO, i thing that you'll get the material and plant, then you search it in RESB table, but it might be more then 1 reservation, so you need to add logic to get the requirement date, either you get the min or max date.
    Reward points if useful.

  • RESB Table ..Record Type

    This is the first time i am using this table.I have noticed that RESB table has a Record type field RSART in its primary key.Can anyone explain me what is the significance of this field and what are the possible values?

    I have currently 9368387 records in my RESB table and none has a value for this field.
    The docu says that this field is not used in any Dynpro.

  • RESB table about delete flag

    dear experts
            issue: A is FG, B is purchase part, is component for A, when creat independent requirement, MD02 run MRP,  plan order is generated for A, when change this planned order's component B to C, then A transfer dependent requirement to C. then cancel indenpendent requirenment for A, then run MRP, the planned order for A is deleted and missed. but the dependent requirement to C is not missed, i found the TABLE-RESB for material C is also exist, the delete flag is not set automatically. so meet this dependent requirement, sysyem will generate PR.
    the origin requirement for A was deleted, why dependent requirement still exist in MD04?
    bset regards
    lee

    Dear Lee,
    You need to run MRP with planning mode as 3 ( Delete are re create planning data )
    Then system will automatically deletes the depended requirements
    or use MD16 for deletion
    Regards
    Madhu

Maybe you are looking for

  • BT TWIN TALK = possible, reason for SLOOOOOW inter...

    since november 09 we have had "intermitent" broadband. it's only recently since it got worse (96k) we have queried it. we started a new business and got BT CALLSIGN as a second number for our house.( Nov 09) so that we didnt have the "business custom

  • I cant get itune to load

    I can open itunes only the music i have, but i havent able to load the new version of itunes and not able to open store. So i cant even update my ipod and ipad. any way of fixing it?

  • Inspection setup key

    Hi,      While making gr goods automatically updated in to quality inspection stock. But inspection setup key is not activated in the material master for that material. So inspection lot  number is not created for this Goods receipt entry.. how can i

  • Remoting Security: Best Practice

    I am exploring Remoting and I am curious about security best practice. By default, Enable-PSRemoting will configure an HTTP listener that listens to all addresses. Initially I thought this address was the addresses of the computer making the demoting

  • Router login with RSA token

    Is there any way to secure the logining process of a router using RSA token? And how to do that. Thank you! Regards.