Fetch in a custom table - ECC 6.0

Hi,
There is a custom table, which has got nearly 50 lakhs entries. The report's performance was fine in 4.7 version. After SAP upgradation to ECC 6.0, the execution of the query takes more than 5 hrs, which was just 600 sec in 4.7 system. What could be the problem?
Note: Primary key is not passed in the select query's WHERE condition.
Thanks,
Dhanalakshmi M S

Hi,
was the database been upgraded as well? Have the statistics been updated after the upgrade?
As Thomas said, please post more details... execution plan, ST05 summary, variables, indexes, ... .
Kind regards,
Hermann

Similar Messages

  • How to fetch the Table Control data to Customer Table(Z-Table) ?

    How to fetch the Table Control data to Customer Table(Z-Table) ?

    Hi Krishna,
    Check this sample programs
    http://www.planetsap.com/online_pgm_main_page.htm
    http://sap.niraj.tripod.com/id29.html
    http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
    Have a look at below links. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    Thanks,
    Reward If helpful.

  • Replicate Custom Table from CRM to ECC

    I have a custom table in CRM and I have to transfer the values of the custom table to ECC.I have BADI  which inserts the values into the custom table in CRM. What should i do to replicate the values in a Custom table in ECC.The tables are of same structure.

    Hi
    Please reffer the C71 : CRM Connectivity document in Best Practices. It will gives you the perfect information for you.
    Please follow the following link to find the same.
    http://help.sap.com/bp_crmv250/CRM_DE/index.htm
    Technical Information>Building Block Library> C71 : CRM Connectivity>Configuration guide.
    Generally: You have to enhance the BAPIMTCS structure which is exchanged between CRM and R/3, and the functionality mapping the BDoc to this structure in CRM and in R/3 the functionality of saving the BAPIMTCS structure to the DB.
    You should use the Transaction Business Events, see also tables TBE24, TPS34 and you can search for the SMOUTIL2 or SMOUTIL3 functionality esp in the CRM system.
    Have a look at note 417906 with some information on used functions.
    Reward with points if helpful
    Cheers
    Manohar

  • Data from a file need to be read and mapped  into a custom table of R/3

    Hello all,
    This is related to inbound to  SAP ECC via SAP PI.
    There is a requirement concerning PI part that data from a file need to be read and mapped  into a custom table of R/3.
    To have this scenario developed , do we have any other  option than the Proxy ?
    My understanding is as follows : File --> SAP PI --> Proxy
    You suggestions are welcome.
    Regards,
    Rachana

    Hi Ravi,
    As suggested by Inaki, you can use proxy communication in recever.
    but you can also use the below
    FILE -----> PI -------> PROXY
                                  RFC
                                  IDOC
    to communicate to ECC system.
    Regards
    srinivas

  • Fetching data from a table and displaying it on the text box

    Hi,
    I have created a dialog program in which created a container(text box)  to enter data upto 1000 characters.
    Iam capturing the data and storing it in a custom table. In PBO I want to fetch data from my custom table (if data is already present :1000 characters data) and display it on screen.
    Please let me know how do i do it?

    hii Pavani,
    declare this two sttements in Screen
    MODULE STATUS_DATA.
    MODULE SELECT_DATA.
    In PBO, Under SELECT_DATA write Select query like:
    (considering the DB field to be text and Screen Field to be SC_TEXT)
    select text from <DB Table> into SC_TEXT where <condition>.
    *note if u r selecting more than one field than write fields in (   ),eg. (f1....f2) )
    Plz let me know for  any further queries.
    Regards,
    Apoorv

  • Custom table(in separate Tray) to display Vendor Master data inSRM 7.0

    Hi,
    How to add custom table as a tray in under Bidder data Tab of Display Supplier screen. All the ther trays in that Tab are under FPM_OIF_COMPONENT.
    Do I need to modify FPM component? If so than how can I catch the Business Partner Number as the data needs to be fetched based on that.
    I am using SRM 7.0 version.

    Moderator message - Cross post locked

  • How to maintain the sequence in the custom table

    Hi,
    We have custom table where we will store the standard text name based on different flags and it will be fetched the value according to the condition.
    Example code
    SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table
                WHERE tdobject = iv_signature
                  AND bukrs    = vbdkr-bukrs
                  AND vkorg    = iv_vkorg
                  AND vkbur    = iv_vkbur
                  AND lland    = vbdkr-land1
                  AND fkart    = vbdkr-fkart
                  AND kschl    = iv_kschl.
      CHECK sy-subrc <> 0.
      SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table
                WHERE tdobject = iv_signature
                  AND vkorg    = iv_vkorg
                  AND vkbur    = space
                  AND fkart    = vbdkr-fkart
                  AND kschl    = iv_kschl.
      CHECK sy-subrc <> 0.
    SELECT SINGLE field1
                      field2
                 INTO  ( vaiable1 variable2 )
                 FROM custom table           
                WHERE tdobject = iv_signature
                  AND vkorg    = iv_vkorg
                  AND vkbur    = space
                  AND fkart    = vbdkr-fkart
                  AND kschl    = space.
    The solution I created to avoid the select is, i have created the FM with all parameter. Addition to the FM, I have created a Table as well to maintain the flag.
    New table                                                                               
    TDOBJECT   TDID BUKRS VKORG VKBUR KUNNR      MWSKZ AUART VGBEL_AUART KTGRM LLAND FKART WERKS KSCHL STNAME                                                                               
    FOOTER                                                                           X     X           ZNET_DICI_FTR_FI  
    FOOTER                                                                           X     X           ZNET_DICI_FTR_NL  
    FOOTER                X     X                                                    X                                   
    i.e. say example if we maintain the value in the custom table based on the first select query. Then we need to maintain the flag in the table which was created newly.
    Note In the both field the key fields are same.
    The problem now is we have plenty of select query for different condition, i though of maintain the sequences of the entries. But my worry is how many sequence number will be maintained and in what bases it will be maintained.
    Could you please help me to resolve this problem?
    Regards,
    Vijay

    Hi,
    I got your requirement as,
    whenever a new entry is made in the table, one sequence has to be maintained somethign like serial number and everytime it has to be incremented. If it is so, then you can go for an additional field as serial number. Then get the max serial number from the following select query:
    select max(serial) from cust_table
    into v_serial.
    Now, when you make a new entry, just give (v_serial + 1) to serial number...
    Please let me know if i understood wrongly... or what you want...

  • ISU Contract Parner with no SD Customer in ECC

    Hi All
    We have a scenario where ISU Contract Partner was created without a corresponding SD reference customer when the data was migrate from legacy. EMIGALL created entries only in BUT000 table, but none in KNA1 and corresponding SD customer tables.
    We are now integrating ISU with CRM. As CRM initial download requires a sold-to-party in ECC, I wanted to know  the options we have for creating SD customer for each of the ISU contract partner record.
    Can any one please guide me ?
    Thanks in advance...
    Ram

    Follow this Procedure... it works....
    Procedure
    1. Review the number ranges that have been created: The number ranges for the business partner in the Best Practices are defined as follows:
    IMG u2192 Cross Application Components u2192 SAP Business Partner u2192 Business Partner u2192 Basic Settings u2192 Number Ranges and Groupings u2192 Define Number Ranges
    01: The Regular business partner uses this number range: 2100000000 to 2199999999 and 03: 7100000000 to 7199999999 is used in the setting above for the ship-to party. Both are internal number ranges.
    XX is the external number assignment used to create the SD reference customer.
    2. The account group DEBI must temporarily be assigned to this external number assignment for the creation of this business partner:
    IMG u2192 Financial Accounting u2192 Accounts Receivable and Accounts Payable u2192 Customer Accounts u2192 Master Data u2192 Preparations for creation customer master data u2192 Assign Number Ranges to Customer Account Groups:
    Set account group: DEBI to external number range XX for the Business Partner creation step.
    3. Create an SD customer:
    Call transaction XD01: Easy Access u2192 Logistics u2192 Sales and Distribution u2192 Master Data u2192 Business Partner u2192 Customer u2192 Create u2192 Complete
    u2022 Select account group: Customer (general)
    u2022 Enter the Customer key: MUST_ALL
    u2022 Enter company code (1000)
    u2022 Enter sales area as follows:
    u2022 Sales organization: 1000,
    u2022 Distribution channel: 01
    u2022 Division: 10.
    u2022 Select Continue.
    Assign MUST_ALL in Master data>bp>settings for creating standard customers.

  • Copying the error records in a custom table

    Hi,
    I  have a report program which is fetching Invoice header and line items . I need to copy the error records (records having a custom field ZZKUNNR as blank) in a custom table . I am executing this report in background daily .
    The records in the custom table can be corrected by functional guys
    Daily the report should fetch the data from SAP and also it should check whether there are correct records in the custom table .
    If the records are found from custom table then those records also must be fetched.
    Finally the output is stored in an application server .
    Kindly help how to write the code for error records.

    Hang on a moment here... I am sure we deleted your user ID a few months ago for ponits gaming!
    Did it "pay off" somehow and now you have a "real job" but don't have a clue what you are doing?
    Doesn't that make you feel just a little bit unconfident about life, the universe and ABAP?
    Cheers,
    Julius

  • Adding new field in customized table ZPM_QMEL_EXT

    Hi all,
    My requirement is  to add a new field in ZPM_QMEL_EXT table numeric field no of  months due (ZZ_CO_MON_DUE) .
    Its value will be calculated as the # of invoices that were paid vs. what has not been paid and then from there, value of this field will be fetched.It has to be populated during the time of notifcation screen entry (iw51). The logic will be similar to this
      SELECT FAEDN FROM DFKKOP INTO TABLE IT_DU_DT
                                  WHERE GPART EQ WA_QMEL-KUNUM AND
                                        VKONT EQ WA_QMEL-ZZ_VKONT.
        SORT IT_DU_DT BY FAEDN ASCENDING.
        READ TABLE IT_DU_DT INTO WA_DU_DT INDEX 1.
        MOVE WA_DU_DT-FAEDN TO DUE_DT.
        CALL FUNCTION 'HR_MONTHS_BETWEEN_TWO_DATES'
          EXPORTING
            I_DATUM_BIS = SY-DATUM
            I_DATUM_VON = DUE_DT
          IMPORTING
            E_MONATE    = NO_MT.
        IF NO_MT IN P_DU_MT.
          WA_QMEL-DUE_MONTHS = NO_MT.
    Awaiting your kind help .
    Thanks
    hariom.

    Hi,
    There is only one option to include extra field for standard tables that is Append Structure other than we don't have any option.
    For Customizing tables we can use Append structure as well as Include Structure.
    Rules: Append Structure should be in last in Field column but include structure you can insert in any where it means between the fields.
    Delivery class option  and data class will take care automatically while upgrading the sap system one version to Another version.(upgrading).
    For that you should maintain the those properties when data base table creation.
    i hope the above information may helpful to you.
    Best Regards
    Sreenivas Pachva

  • Addition of Command based Custom table removes 'Distinct' keyword in Query

    Hi,
    I use 'Command' Object in 'Datbase Expert' to create 'Custom Tables' and use these tables to fetch LoVs. Addition of 'Command' Object is changing the existing Query and the only change is 'Distinct' in the Query got eliminated and showing 210 recirds instead of Just 10. I did not link this Custom table with any of the tables. If I delete this again the query showing only distinct values eliminating duplicates. Please help.
    Edited by: Nanda Kishore B on Jul 16, 2010 12:36 PM

    Nanda,
    My guess would be that you've placed one of the fields from the LOV Command somewhere on your report. The fact that the LOV Command isn't linked to any of the other tables will cause CR to create a Cartesian join if any of the Command fields are used outside of the parameter's LOVs.
    HTH,
    Jason

  • Custom table can be displayed and not maintainable using SE16n.

    Hi Gurus,
    I have created a custom table with DATA BROWSER/TABLE VIEW MAINT. equal to 'N' (Display/Maintainance not allowed) in SAP ECC 6. The the requirment is, this custom table can be displayed using the transaction SE16n.
    This requirement is existing in ECC 5. with same setting DATA BROWSER/TABLE VIEW MAINT. equal to 'N' (Display/Maintainance not allowed) and this table can be viewed using transaction SE16n.
    would there be possible that this requirement be implemented in SAP ECC6? would this be due to the version?
    Please help.
    Thank you..
    Regards,
    SAI

    Hi Kiran,
    Thanks for your answer but unfortunately this is not what I'm looking for. Iam also familiar with &SAP_EDIT.
    Well, my problem is, the custom table setting Data browser/Table view Maint. is set to "N Display / Maintainance not Allowed" ( under Delivery and Maintainance Tab). Also there is no table maintainance generator setup.
    So basically with this setting, in transaction SE11 'Contents' is disabled. And with transaction SE16n, when you execute and tried to view the table, error "You cannot display zcustom_table with standard tool". (checkboxs are hidden)
    What the requirement is looking, the custom table can be viewed (this is with the same setting above but can be viewed using SE16n and the checkbox maintain entries is automatically tick but when executed "auth failed" so, basically to view the entries, untick the checkbox then entries can now be viewed.)

  • Is Custom_authentication blocking me to retrieve password from custom tabl

    Hi
    All i am using custom authentication function which i got in forum and is as below:
    /* Formatted on 2007/02/28 16:54 (Formatter Plus v4.8.0) */
    CREATE OR REPLACE FUNCTION custom_auth (
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    RETURN BOOLEAN
    IS
    l_password VARCHAR2 (4000);
    l_stored_password VARCHAR2 (4000);
    l_expires_on DATE;
    l_count NUMBER;
    BEGIN
    -- First, check to see if the user is in the user table
    --select count(*) into l_count from ap_users where login_id like p_username;
    SELECT COUNT (*)
    INTO l_count
    FROM my_table
    WHERE UPPER (user_name) = UPPER (p_username);
    IF l_count > 0
    THEN
    -- First, we fetch the stored hashed password & expire date
    SELECT PASSWORD, expires_on
    INTO l_stored_password, l_expires_on
    FROM my_table
    WHERE UPPER (user_name) = UPPER (p_username);
    -- Next, we check to see if the user's account is expired
    -- If it is, return FALSE
    IF l_expires_on > SYSDATE OR l_expires_on IS NULL
    THEN
    -- If the account is not expired, we have to apply the custom hash
    -- function to the password
    -- l_password := custom_hash (p_username, p_password);
    -- Finally, we compare them to see if they are the same and return
    -- either TRUE or FALSE
    IF p_password = l_stored_password
    THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    RETURN FALSE;
    END IF;
    ELSE
    -- The username provided is not in the DEMO_USERS table
    RETURN FALSE;
    END IF;
    END;
    I have created a user table my_table for managing user . I have created a from on table with report for creating,updating,deleting users .
    Whenever i am trying to update the first name which is one column of my custom table then for each update asking for password but my client want that once he login as an employee without asking password he should update any column.
    If he desire he can change the password also .
    but when i am enetring as an employee and trying to update any user each time asking password . So is it due to Custom_Auth function or any other problem.
    Please can any one tell me the reason.
    Thanks in advance,
    Amit

    Hi all my problem get solved thanks i am allowing this report to admin so making password as text field working fine thanks

  • Customized Table is giving Short Dump .Want to extract data in Production S

    Hi ,
    I have a problem in customized table .Table is giving a data after trying to access 185th record.There is some problem in the table.But I want to pull out all the data from the table..Is it possible to download it .Pls suggest..
    Even If I put one select query also it is givning dump..
    Pls suggest some other technique to download it..
    Regards
    Arun.P

    Hi Arun,
    Where there you are using WHERE condition  in select statement while fetching the records?
    if yes means check for the fields are primary key, available in WHERE condition, or else create secondary index for those
    non Primary key Fields in WHERE condition.
    This may help you.
    Thanks and Regards,
    Prakash.K

  • Relink CRM Business partner with customer in ECC

    Hi all,
    In our organization, most business partner master data is automatically replicated with ECC.
    Table BUT0ID contains the link between a BP and customer on ECC.
    For some reason it happens regularly that a CRM BP gets a wrong link.
    I.e. BP 80001234 is by accedent linked to 80001000, but it should be 80001234.
    I'm asked to provide a solution to change this link.
    With BAPI's 'BAPI_IDENTIFICATION_DELETE', 'BAPI_IDENTIFICATION_CHANGE' and/or 'BAPI_IDENTIFICATION_REMOVE' it's easy to modify table BUT0ID properly.
    But whatever I change, the replication is still carried out on the wrong customer.
    Afters hours of debugging and tracing I couldn't find the reason. Is there perhaps an other table to change?
    Did any of you have the 'golden tip' for me to fully Relink?
    Thanks a lot in advance,
    Sijmen

    Hi Sijmen,
    Try FM  bupa_identification_change. Ii think that will work for you.
    Thanks,
    Kumar.

Maybe you are looking for

  • Reg:Creating JAR in Jdeveloper 10.1.3.3.0

    Hi All i am new to Jdeveloer application environment.My requirement is i need to create JAR file in Jdeveloper 10.1.3.3.0 version,i searched in internet but could't find related one with this issue. Regards Dillibabu.B

  • Create report with trial version BW

    Hello, Ok, I have a few question. 1. It's possible to install trial verion BW? I saw on sdn, trial version sap for developers, but there isn't BW 1 - true. Is this possible to connect access database without knowledge about ETL? 1. -no. Because, I ha

  • Urgent help!!! My new website shows blank in Explorer

    Hi Anyone My new website, http://www.mindjuicer.com, doesn't show up if you view it in Internet Explorer. It look all fine in Safari and Fireworks but it doesn't show anything with Explorer. Can anyone help???? Please, it's very urgent as I've been t

  • Dynamic reports for different access levels

    <p> </p><p>I want to create a report using Hyperion Report which will showthe data dynamically.</p><p>I have certain hierarchy in my dimesions and there are differentusers associated with different hierarchy levels.</p><p>E.g. Person1 can access only

  • How to place Forward and Back button in left pane of WebHelp?

    Along with buttons for Contents, Index, Search, and Glossary, I want to put buttons for Forward and Back in the left pane of my WebHelp. These buttons appear automatically on the WebHelp Skin Editor dialog box in an earlier version of RoboHelp, but i