Select Single * is not fetching all Data

Hi,
I have a peculiar problem, when i am extending the customer to a new company code, we are getting Dump saying 'ASSERTION_FAILED'
when i debugg i am geeting issue with following Code of a FM 'KNA1_SINGLE_READER'
IF NOT i_bypassing_buffer IS INITIAL.
    *SELECT SINGLE * FROM kna1*
                    INTO o_kna1
                    WHERE kunnr = i_kunnr.
    IF sy-subrc <> 0.
      MESSAGE e300(vs) WITH 'KNA1' RAISING not_found.
    ENDIF.
i am passing customer number (i_kunnr), this code is executed 2 times first time it is fetching all columns but second time it is only fetching customer number and no other information regarding customer. But in data base all information is present. Can any one help me in this.
Thanks a lot...
Reddy
Edited by: JAGAN MOHAN REDDY on Jun 2, 2010 11:30 AM

Hi Jagan,
It'll be helpful to others if you can please post how and what was done to resolve the issue.
Thanks!
Sandeep

Similar Messages

  • Hierarchy infopackage not fetching all data

    Hi All,
    i am loading hierarchy from R/3, in R/3 there are 93 records but am getting only 3 records.
    the same source system was mapped to another BW system in that we are getting all 93 records.
    i have checked transfer rules and infoobjects everything is fine, but dont know why its not coming in another system.
    When i run the query i can see hierarchy in another BW system but this system is showing no hierarchy, all are falling under not assigned.
    Can you please help.
    Regards,
    Tom
    Edited by: tomhann on Jul 29, 2011 3:37 PM

    Hi Tom,
    Please check your IP, if you maintain any selections(on source system) and check the update methods once
    Please check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/content.htm
    Hope this helps
    Regards,
    Venkatesh
    Edited by: Venky1903 on Jul 29, 2011 7:14 PM

  • SQD3 select options not fetching all the data?

    Hi abapers,
    standard SDQ3 tcode is not fetching all the data?
    In this standard t.code how to find that for different Select-options, different data retrieval queries have been written?
    where to find the select options conditions are written?
    thans in advance

    This could be an issue as ROWTERMINATOR and FIELDTERMINATOR are not well placed.
    Use FORMAT FILE while using BULK INSERT.

  • Lookup in transformation not fetching all records

    Hi Experts,
    In the routine of the transformation of a DSO (say DSO1), i have written a look-up on other DSO (say DSO2) to fetch records. I have used all the key fields of DSO2  in the Select statement, Still the look-up is not fetching all the records in DSO1. There is difference in the aggregated value of the Key Figure of both the DSOs. Please suggest, how can i remove this error.
    Thanks,
    Tanushree

    hi tanushree,
    The code which yu have written in the field routine for lookup is not fetching the data. you can debug the field routine code in the simulation mode of execution of DTP by keeping a break point after the transformation.
    you can test the routine with out actually loading the data..
    double click rule where you have routine and in the below you have option called test routine.
    here you can pass input parameters..
    i hope it will give you an idea.
    Regards
    Chandoo7

  • Report is not fetching the data from Aggregate..

    Hi All,
    I am  facing the problem  in aggregates..
    For example when i  am running the report using Tcode RSRT2, the BW report is not fetching the data from Aggregates.. instead going into the aggregate it is scanning whole cube Data....
    FYI.. Checked the characteristcis is exactely matching with aggregates..
    and also it is giving the  message as:
    <b>Characteristic 0G_CWWPTY is compressed but is not in the aggregate/query</b>
    Can some body explain me about this error message.. pls let me know solution asap..
    Thankyou in advance.
    With regards,
    Hari

    Hi
    Deactivate the aggregates and then rebuild the indexes and then activate the aggregates again.
    GTR

  • People Picker JS Control not fetching all the users...

    Hi,
    I am using Java Script people picker control. It fetching information for users but not all. I used following code block to get the control working. Why is not fetching all the users?? Where as OOTB people picker fetches same user. This does not make sense.
    My environment is SharePoint online.  
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
    // Specify the unique ID of the DOM element where the
    // picker will render.
    initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
    // Create a schema to store picker properties, and set the properties.
    var schema = {};
    schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
    schema['SearchPrincipalSource'] = 15;
    schema['ResolvePrincipalSource'] = 15;
    schema['AllowMultipleValues'] = true;
    schema['MaximumEntitySuggestions'] = 50;
    schema['Width'] = '280px';
    // Render and initialize the picker.
    // Pass the ID of the DOM element that contains the picker, an array of initial
    // PickerEntity objects to set the picker value, and a schema that defines
    // picker properties.
    this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    Here is the link from Microsoft explaining it.
     How to: Use the client-side People Picker control in SharePoint-hosted apps: https://msdn.microsoft.com/en-us/library/office/jj713593.aspx
    Appreciate any help or workaround here.
    Thanks.

    Hi,
    In my case im usign customize people picker. it is better to use in delelopement since you have the control and customization.
    I have used select2 (https://select2.github.io/examples.html) drop down control and create a people picker
    You can use the same REST call to populate data.
    function initApproversPicker(success, fail) {
                var data = { results: [] };
                var executor = new SP.RequestExecutor($$.getAppWebUrlUrl());
                executor.executeAsync(
      url: $$.getAppWebUrlUrl() + "/_api/web/siteusers",
      method: "GET",
      contentType: "application/json;odata=verbose",
      headers: { "Accept": "application/json; odata=verbose" },
      success: function (dt) {
          $.each(JSON.parse(dt.body).d.results, function (i, ele) {
              data.results.push({ id: ele.Id, text: ele.Title });
          executor.executeAsync(
               url: $$.getAppWebUrlUrl() + "/_api/web/sitegroups",
               method: "GET",
               contentType: "application/json;odata=verbose",
               headers: { "Accept": "application/json; odata=verbose" },
               success: function (dt) {
                   $.each(JSON.parse(dt.body).d.results, function (i, ele) {
                       data.results.push({ id: ele.Id, text: ele.Title });
                   $("#WFApprovers").select2({ data: data, multiple: true });
                   if (success) {
                       success();
               error: function (d, errorCode, errorMessage) {
                   if (fail) {
                       fail();
                   utils.log(errorMessage);
      error: function (d, errorCode, errorMessage) {
          utils.log(errorMessage);
    Melick Rajee http://melick-rajee.blogspot.com

  • Stop ADF from fetching all data on startup

    Hi all,
    I have built an ADF page with a search form on it. Goal here obviously is to search the DB for certain user entered criteria. The problem now is that ADF fetches all data before the user has enetered anything. Pretty annoying, as it takes about 5 minutes to fetch the 1 mil records over VPN. And not very performant either...
    How can I stop ADF from doing this?
    Thanks,
    Stijn.

    Hi,
    2 topics here that I'll address one after the other
    1. ADF fetches nothing. The business Service layer does. If you use ADF BC for example then you can define the number of records that are fetched initially. If you use EJB then this kind of intelligence is all yours to implement. Same then for POJO and Web Service. If you are working with a million of records, think about using query hints in your query to boost performance.
    2. To solve your issue
    - assuming you use ADF BC: Set the iterator to find mode or set the query condition to where it finds no hits. If your query uses bind variables then it is enough to not provide a default value for the bind variable. Another option is to use a invokeAction method and set the iterator into findMode upon page load
    - If you use EJB, make sure the initial query also doesn't return any hits
    Note that for the refresh property on teh iterator there are other conditions like "deferred" that you may want to try out
    Frank

  • I have several libraries in Aperture, (9 libraries, 45,000 pictures .. !!) there a way to unite them all in a single library to retain all data?

    I have several libraries in Aperture, (9 libraries, 45,000 pictures .. !!) there a way to unite them all in a single library to retain all data?

    If you have a drive that is large enough, you can open one library and import the other aperture libraries on after the other into your main library.
    Use the command "File > Import > Library".
    When prompted, if you want to "Add" or to "merge", select "Merge". This way, Aperture will try to avoid to import duplicates.
    Merging can take a long time and needs plenty of free storage, sometimes more than the combined sizes of the libraries to be merged. The additional storage will be released,when the merge is done. 

  • Fetching all data from MS access PROBLEM !!!

    Hi all,
    I am having problem of fetching all data from MS ACCESS, ie, I have 112 rows of data, yet when executing query SELECT * ... only 70 items are retrieved. Don't know why, but the retrieval prcess stops on item 69 and want get the rest of the data.
    I am executing the query in a WHILE loop, don't specify the number of loops !!! so I should be able to get all of the data. Why then I always only get 69?
    Second q.
    What is the right SYNTAX for retrieving specific data. ie. SELECT id from images WHERE size = 58
    is this correct? ie. size is declared as number?
    ANy help would be much appreciated.
    Thanks

    1. Where from you are fetching the data? Is it from bean or JSP or servlet? Can you post the code?
    2. Yes. the sql syntax is correct.

  • Sys_refcursor not fetching any data although query returns value

    hi!!!
    I am using sys_refcursor to return columns,and using below procedure to do so.Although data is there in table_1 and table_2.
    PROCEDURE test_pro(abc_date N DATE,
    cur_get_data OUT sys_refcursor
    OPEN cur_get_data
    for
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    IF cur_get_data%rowcount=0
    then
         raise e_error;
    END if;
    EXCEPTION
         when e_error
         then
              ------no_data_found;
         when others
         then
    --------(giving SQL error with error code);
    END      test_pro;
    while running below sql in sql window of pl/sql developer fetching
    data
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    so can somebody please put some ideas what cud be the possible reason for this??

    Welcome to the forum!
    Unfortunatley you posted to the wrong forum. This question belongs in the SQL and PL/SQL forum.
    PL/SQL
    >
    sys_refcursor not fetching any data although query returns value
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    >
    A cursor doesn't fetch data - your code has to do that. The code you posted doesn't have any FETCH statements so no data will be fetched.
    There is no problem using 'IF cur_get_data%rowcount=0' but it will always be 0 in your code because you are not fetching any data.
    I'm guessing that you are trying to determine if there are any rows for the query. That isn't going to work since a cursor doesn't fetch rows.
    You just have to return the cursor to the caller and the caller will have to perform at least one fetch to see if there are any rows.
    If the above answers your question the just mark the question ANSWERED. Otherwise, since you have posted in the wrong forum
    1. repost the question in the SQL and PL/SQL forum
    2. Edit this post to add a link to the new thread in the other forum
    3. Mark this question ANSWERED so people will follow up in the other forum.
    Thanks.

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • "SELECT SINGLE"  is not working.

    Hi all,
    here i have one report. And in this i want just one row when my input material number match with my table material number this time if movement type is 131 then program will be terminated otherwise it's working but this coding is not working properly so can you please help me out.
    My code is below .
    data : matnr1 LIKE mseg-matnr,
           bwart1 LIKE mseg-bwart.
    loop at mseg.
        SELECT SINGLE matnr bwart from mseg into (matnr1,bwart1) where matnr = matnr.
    endloop.
      if bwart1 = '131'.
                MESSAGE 'DATA NOT FOUND FOR THIS SELECTION1' type 'I'.
                SUBMIT ZPP_DAYWISE_MY_OWN VIA SELECTION-SCREEN AND RETURN .
                LEAVE PROGRAM.
       endif.
       CLEAR matnr1.
       CLEAR bwart1.

    there should be all key fields in where condition of SELECT SINGLE
    here in select which matnr you are passing? selection screen of mseg-matnr?
    loop at mseg.
    SELECTmatnr bwart from mseg upto 1 rows  into (matnr1,bwart1) where matnr = matnr. endselect.
    endloop.
    if bwart1 = '131'.
    MESSAGE 'DATA NOT FOUND FOR THIS SELECTION1' type 'I'.
    SUBMIT ZPP_DAYWISE_MY_OWN VIA SELECTION-SCREEN AND RETURN .
    LEAVE PROGRAM.
    CLEAR matnr1.
    CLEAR bwart1.
    endif.
    Edited by: Sachin Bidkar on Feb 23, 2010 7:12 AM

  • 2lis_11_VAITM not inserting all data in ODS

    Hello Gurus.
    I'm using extractor 2lis_11_VAITM, when I test the extractor in RSA3, it is bringing me all registers of table VBAP, but when I load this extractor into an ODS in BW, It is not inserting all registers into the cube, some "return orders" are missing, how can i solved this problem ????   I'm using in ODS key Doc number and position.
    THANKS IN ADVANCED.

    Hi Sudheer, ther is no selections during data load, and also ther isn't any routine(either in transfer or update rules).  It's supposed that all registers have to be loaded to the ODS no ?? because i'm using key Doc number and positions, so I want all documents with all positions to be loaded, but this is not happening, there are missing the "'return orders'".
    Any other idea of why this is happening ??

  • DTP is not fetching any data eventhough data is there in psa

    Hi All,
    I need to load data from existing data source(2lis_03_bf) to new data target, data is available in data source for last 1 year, as my client is retail, and also huge data i tried to load data with filter on BUDAT, for 1 month, but dtp says data is not avialble, i cant run whole data in asingle shot.
    i created new dtp and tried with other selections , even then its showing no data available, i tried with full and delta update in dtp but no luck.
    Kindly suggest me.
    Regards,
    Yunus

    Hi Yunus,
    I believe that your DTP was Delta DTP & i think you might have already loaded the data into the Datatarget. So when you try to run the Delta DTP, it is possible that there is no new Data.
    (Or) If you have not loaded the PSA requests to your Datatarget, delete the already created DTP.. Then create a new FULL DTP, activate it & try loading.
    (Or) create different DTP's with different selections with no overlapping in the selections. Make sure that the selections you are giving are having data in PSA.
    Hope it helps!
    Regards,
    Pavan

  • FDM export to HFM - 2nd export did not clear all data from 1st export?

    Has anyone experienced exporting a replacement FDM file to HFM where the 2nd file did not contain an account that was present in the original file and that account/value in the 1st file then remained in the HFM trial balance and caused it to be out of balance? Does the replace export option not clear all the prior file data? The only unusual part of it might be that the problem account was derived using logic group script? Thanks.

    Thanks Hensen - Sure, it was easy enough to fix once I deduced what the problem was - although my solution was just to use the data clear function and reload. The real question is how to prevent it from happening again and it sounds like I can't do much about it - other than trying to train the users to watch out for do-over files that have fewer accounts than the original load?? Am I wrong to think that HFM should try to fully clear all previous data from a load file if there is a replacement or at least try to validate whether or not all prior accounts have been repopulated?? There's plenty of good validation in the validation step of FDM. Why not during the export step? If this makes sense, I'll put in another "enhancement request" to support.

Maybe you are looking for

  • Service Battery Goofiness

    Last evening I was using my MacBook, watching videos on Youtube and what not. I had plans that night, so I just closed the lid and got up and left. The computer usually falls asleep and when i get home I just open the lid, and everything is right whe

  • Two iPods on Same iTunes

    I have a 30Gb iPod Video, and my bro just bought a 4gb Nano. Is it possible to use both of them on the same iTunes, since I only have about 700 songs on it? Or do I have to put iTunes on my other computer aswell?

  • Which itunes version to download is compatible with my ipod touch?

    hi!! how r u? i have an old ipod touch. the serial number is 8N93234Z75J and also the model number is MC086LL. My question is which itunes old version is to download to my pc for my ipod touch? therefore send me a link if there is one.. since i updat

  • How to enter EXECSQL in BW 7?

    Hello Experts, I have a problem regarding a transaction which I know from the old SAP BW 3.5 it's called EXECSQL. Now I also would like to use this transaction on the new SAP BW 7.0 system but the transaction is not longer available. Could you please

  • Can't see timeline

    I know I must be missing something stupid here, but I cannot, for the life of me, get my timeline to show up. I have clicked on "view/timeline" and a checkmark is present there. I have tried clicking on the little arrow bar thingy above the slide, th