Indices and F4_GET_RESULT

Hello,
Introduction:
There is a performance problem with VF03. When You provide only BUKRS(company code) and XBLNR (reference)on the selection screen and press Search, then You must wait several minutes before a screen with 1 selected entry pops up. Data are read from table BKPF.
I have implemented the OSS notes 789098 and 964587 so that the database index BKPF_1 is used, but it obviously isn't. I checked it in the SQL Trace.
Index BKPF_1 comprises fields: MANDT, BUKRS, BSTAT, XBLNR.
After having debugged the VF03 I discovered that the data is retrieved in the funcion module F4_GET_RESULT.
I wrote a small program which retrieves data in the same way as the function module and my program uses index and returns data in a flash.
I don't understand why F4_GET_RESULT does not use the index.
<b>How can one make F4_GET_RESULT use it ?</b>
Here's the program:
REPORT  ZTEST_CURSOR.
DATA: WA_BKPF TYPE BKPF,
      IT_BKPF LIKE STANDARD TABLE OF WA_BKPF,
      SELTAB(20),
      C1 TYPE CURSOR,
      CONDITION TYPE STRING.
START-OF-SELECTION.
  SELTAB = 'BKPF'.
  CONDITION = 'BSTAT = '' '' AND BUKRS = 4005 AND XBLNR LIKE ''0096183992'''.
  OPEN CURSOR C1 FOR
  SELECT * FROM (SELTAB)
    WHERE (CONDITION)
      %_HINTS ORACLE 'first_rows' DB6 'OPT_FOR_ROWS 1'.
END-OF-SELECTION.
FETCH NEXT CURSOR C1 INTO table it_BKPF.
loop at it_bkpf into wa_bkpf.
  write:/ wa_bkpf-xblnr, wa_bkpf-bukrs.
endloop.

What do You mean exactly with performance trace ?
I already have performed SQL Trace and explained the SQL.
It is explained exactly in the same way as the SQL in my program. But it does not make use of the index.
Do You mean runtime analysis ?
Yes, I have several custom indices on BKPF.
But even of these custom indices - my search program picks the right row in a flash.

Similar Messages

  • Discontinuation indicator and follow up material.

    Hi,
    I am facing the strange issue for which i need your expertise. The requirement is like:
    1. "X" material is discontinued and "Y" is as follow-up in two plants A & B. Discontinaution group and follow-up group has also been assigned in the BOM.
    2. Now The client want to reverse the settings . means "Y" should be discontinued and "X" should be follow-up in both plants A & B.
    Now I have removed the discontinuation indicator and follow up material from "X" in both plants. But when I am going to discontinue the "Y" material and putting " X" as a follow-up material, The system is giving the message "The specified follow-up material results in recursiveness
    Message no. M3609
    Diagnosis
    You have entered a follow-up material. However, the BOM explosion for the follow-up material leads to the discontinued material, resulting in unpermissible recursiveness.
    Procedure
    Enter another follow-up material or cancel the entry.
    Please suggest me where I am missing in my settings and what is the reason for this message.
    Regards
    Deepak Sharma

    Dear ,
    Check the following  :
    1.Validity of the Bill Of Material or any deletion flag is set in the present BOM.
    2.Please check the following SAP notes :
    Note 161742 - Consulting note: BOM recursion/low-level code 999
    Note 839879 - Trace 'BOM is recursive'
    Note 139517 - Recursiveness for follow-up materials
    Note 42891 - Recursiveness check
    Hope this will help you to figure it out
    Regards
    JH

  • Tax indicator and code

    hi,
    1 may i know what is the difference between tax indicator and tax code?
    2 in purchase info record, it has tax code in purch org data tab. what is the difference of this tax code defined and the tax code in miro?
    3 if i enter the tax code which is different from PIR during miro, what will happen?
    thanks

    Hi,
    1 may i know what is the difference between tax indicator and tax code?
    For procedure TAXINJ, Tax is calculated based on conditions in the taxcode. Tax indicator is used to determine the taxes for vendor & plant
    For procedure TAXINN, Tax is calculated based on conditon records. Here the tax code is used only to trigger the tax calculations.
    2 in purchase info record, it has tax code in purch org data tab. what is the difference of this tax code defined and the tax code in miro?
    Both are same.
    3 if i enter the tax code which is different from PIR during miro, what will happen?
    If you are using the TAXINJ, taxes are calculated based on the conditions present in the tax code.
    For TAXINN, tax code will not play any role as taxes are calculated based on condition records.
    Regards,
    Krishna A S V

  • BADI to uncheck Invoice indicator and set net price as 0 while creating PO

    Hi all,
    Is there any BADI to uncheck the Invoice indicator and set the net price as "0" while creating Purchase order?
    Im creating Purchase order in SRM and for certain vendor and material group net price should be set to zero and invoice receipt to be unchecked so that user wont get invoice receipt.
    Can anyone tell me how to do this?
    Thanks,
    Amal

    Pradeep,
    Thanks for your response.
    I will tell you the actual senario im having.
    Using Shoppin Cart, user will order for some items in SRM and once it was completed PO will be created in R/3 system. Here(R/3) when i check in ME23 for the created PO, the IR flag has been set. But i want the PO should be created as IR flag not checked and amount is changed to ZERO for certain vendor and material group combination.
    I searched some threads and found few function modules ( BBP_PD_PO_GETDETAILS, BBP_PD_PO_UPDATE, BBP_PD_PO_SAVE) which can be used in BADI BBP_DOC_CHANGE_BADI. But im not aware of the fields in which we can found vendor, material group, amount, IR indicator.
    Can you please guide me how to resolve this?
    This is my first task in SRM and im not aware of all terms in SRM.
    SRM version: 4.0
    R/3 version: ECC 5.0
    Thanks,
    Amal

  • Link between ABC Indicator and Priority

    Hi friends,
    My client requires the Link between ABC Indicator and Priority. i.e., While creation of notification, based on the ABC indicator assigned in the Equipment, Priority should be selected.
    Is it possible, if possible please help me out to resolve this issue.
    With Best Regards,
    Dev

    Hello,
    Yes you can acheive this by Development use the Below User Exit or Fubctional Module to get it done
    User Exit-->QQMA0014 QM/PM/SM: Checks before saving a notification
    BADI-->NOTIF_EVENT_SAVE Change When Saving Notification
    When Notification create against the Equipment which Having ABC Indicator it will stop Notification while Saving the Notification By checking The ABC Indicator on Equipment and Proposes Priority which You already defined in Configuration with Proposed New Dates for Notification Completion Dates.Notification save allowed once you fill Exact value of Priority.
    Regards,
    Rakesh

  • Special GL indicator and document type

    Hello ,
    I 'm not well acquainted to the FI applications but I know special GL indicator and document type are two important thing on Financials .
    I want to learn for what purpose these two fields used .  Also I would like to learn interactions between FI GL and FI AR .  If you can share a detailed explanation about my questions, it will be much appreciated
    thanks in advance
    guest

    Hi,
    Special GL Indicator's you have to declere for special cases like Down payment and Bills of exchange etc..
    those tables are stored in different different tables and not in regular tables.
    Doc Type
    based on document type we will identify that Vendor Invoices , Customer Invoices , memo, JV.
    each doc type is having a seperate no range.
    FI-gl handled all GL issues.
    FI-AR handleds  all customer issues.
    we will get more help at http://help.sap.com/
    Reg
    Madhu

  • What is ' build indices' and ' drop indices' in a process chain

    Hello ,
    can any one explain me ,In transaction loading process , in a process chain , after activating Data in DS object, what is ' Drop  indices'  and what is 'buid indices'
    Thank you .

    Hi,
       These mostly deal with the indices in a cube. When you load data to a cube, if the indices are present, along with loading the fact tables and dimension tables, the index tables also need to be filled. This requires the system to search for the right location in the index to place a new transaction data row and hence slows down the load.
    Inorder to speed up the loading, the indexes are first deleted, data is then loaded into the cubes,  and the indices are rebuilt. This is a much faster process than loading the cubes with the indexes intact.
    Hope this helps,
    Regards.

  • Distribution Indicator and Partial Invoice to be set F

    Hi
    In my project, some of the POs are stuck in Error in Process due to the error "Distribution Indicator and Partial Invoice to be set F"
    Can anyone throw some light on this?
    Thanks in advance.
    Regards
    Shunmugaraj. T

    Hi
    Which SRM and R/3 version are you using ? Which Scenario in SRM ?
    <b>Please refer to following OSS notes</b>
    <u>Note 508632 - Extended - Acct assgnment change from 'Multiple' to 'Single'
    Note 480540 - Changing purchase orders in enhanced classic scenario
    Note 508788 - Incorrect account assignment in purchase order back end</u>
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Requirement class- consumtion indicator and requirement reduction indicator

    hi
    in DEMAND MANAGEMENT WE CAN SET REQUIREMENT CLASS
    can any one elobrate whats the difference between the consumption indicator and requirement reduction indicator.
    in help i dint get any explanation regarding the indicators which we need to se at requirement class
    in siemens material i got the diff on between but i couldnt understood
    can any experts elobrate the issue.
    the explantion is like that
    consmtion is not the only integartion between actual sales requirements and PIR. reduction of the PIR will also takes place asa result of the sales requirement.
    Reduction is the process of actual reducing the value of PIR and its stored in the system. where as  during  consumtion the actual value stored was not changed, only the quantity passed to planning was lowerd.
    can any body elobrate the above statement
    regards
    sasikanth

    HI
    Consumption indicator
    The PIR are consumed with respectve to sales order
    requirement reduction indicator
    make-to-stock production is reduced by customer requirements which are planned as sale from stock
    -ashok

  • HT3302 damage contact indicator and there not showing but my phone wont com on or charge up??!!!

    Both mine & my boyfriends iphone 4 were in my bag on holiday & accidently the sea had started to come further up the beach, so some water had gotten in my bag... i took both phones out straight away and they were working fine! i switched mine off has i didnt need to use it and since its not coming on or charging up. my boyfriends phone is still working fine. ive checked the water damage indicator and neither of them or pick or red, there white/silver. WHAT SHOULD I DO?!!!

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).
    If they did get wet and basic troubleshooting does not resolve the issue, Out of Warranty replacement is $149 (US).

  • How to update SDABW(Process Indicator) and EXPKZ (Export indicator) in LIKP

    How to update SDABW(Process Indicator) and EXPKZ (Export indicator) in LIKP Table without using UPDATE statement

    I believe SAP automatically updates those fileds while creating the delivery document.
    rthanks,
    krishna

  • Forall indices and values

    hi,,
    when forall indices and values of is used,please any one tell me?

    Go Through The Link..
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/forall_statement.htm
    Regards
    Umesh

  • ME5A: blocking indicator and blocking text

    Hello SAP Guru,
    In ME5A, is it possible to add comments/texts directly for each purchase requisition, such as "not ready to convert", "ready to convert" etc? The requirement from business is that they want to have a PR report with indicator to state: if one PR is ok to convert or not. Since we have not set up PR release strategy, I found "blocking indicator" and "blocking text" in ME5A, but first need to go into each PR to block, then run ME5A to get these info.
    Many thanks in advance for your comments/advice and with best regards-
    Mengyu

    Hi Mengyu,
    ME5A is to List Display PR only. It is in read only mode. You cannot change anything directly form there.
    Thanks,
    Gordon

  • In my BB 8330, between battery indicator and new email message.

    In my BB 8330, between battery indicator and new email message, there is an icon shows blue 4f.
    It begins at blue 1f now it is 4f
    I don't know what does it represent? I clean out all emails, messages, it is still there.
    Solved!
    Go to Solution.

    Those my friend, would be Facebook messages.
    ~Lorrie~ Master of All Things Blackberry!

  • Significance and use of CVD indicator and MRP indicator in J1IEX

    Dear Frndz...
    Plz expln significance and use of CVD indicator and MRP indicator in J1IEX.
    Regards,
    Amit P Hiran
    njoy SAP..
    njoy Life...........

    hi
    >CVD TICk
    CVD indicator will be auto ticked when when u go for IMPORT PROCESS
    check folowing for import process
    import process customization
    >MRP TICk
    MRP tick is used for the first stage dealer scenario ,where at time of purchase u cant have excise values
    the bill will be including base price exciseothertax + delears commisiion
    E.g.:
    Material Price = 80/-
    Excise Duty = 14/- (BEDECessSECess)
    Margin = 6/-
    Total =100/-
    VAT @3% = 3/-
    Grand Total =103/-
    Step 1:
    Create PO with Base Price as 100/- by selecting tax code which is having VAT as 3% (Total PO value will be 103/-)
    Step 2:
    Post MIGO and Capture Excise Part - 1
    Click on More details icon in Excise tab (header), check MRP Indicator in miscellaneous tab, Enter Assessable value as 80 in Excise tab Item level and enter the excise values BED, ECess , SECess manually, check & save the document.
    Step 3;
    Post Excise Part 2 in J1IEX
    Step 4:
    Post MIRO by checking calculate tax, edit base value as 80/- enter the amount in header as proposed by the system (103/-), simulate & post the document.
    Note 1104456 - Use of MRP indicator for capturing excise duties from dealer

Maybe you are looking for

  • Page error causes server to crash

    These are the symptoms: we start loading a page and Oracle launches a process that hogs as much CPU as it can, slowing everything on the server to a near standstill. If we don't catch it within about 5 minutes, we cannot even log on to kill the proce

  • HT202665 What are the best Discs to use with my Apple USB SuperDrive?

    HHi, i have an Apple USB SuperDrive, would like to know which are the best Blank Discs to use please, I live in the United Kimgdom

  • Skipped tables during UNICODE conversion

    Hello everybody. We are making a unicode conversion in a 701 Ehp4 over iSeries. The export has finished succesfully but we have detected that some tables have been skipped. In the Export_monitor.log there are some comments like this one: INFO: 2010-0

  • Running programs won't stay minimized

    Hi, I have a MacBook Pro (15-inch, Mid 2009) (2.66 GHz Intel Core 2 Duo, 4 GB 1067 MHz DDR3) that I just upgraded to Yosemite. Since upgrading, whenever I minimize apps back into the Dock, after a few seconds my desktop background will flash to black

  • Basic Interface Query

    In the code below, when I create i2=ob object of an interface, it successfully executes. But howcome we can create an onject of interfaces, as interfaces can not be instantiated? interface Int2 public void inInt2(); interface Int1 extends Int2 public