ABAP-query going in infinite loop

Hello all,
I have one on abap-query in which i am displaying data for delivery details that is table LIKP and LIPS.
In this query i also have some code to get the sale order details from the  the delivery details.
I have also used one FM module in this query as well as select endselet  stamt.
When i run my quey it i going in infinite loop.  I am not getting any thing . Each time i have to exit the screen.
Can anyone please tell me wat is the problem, why it is going in infinite  loop.
Thanks and regards
Sachin yadav

thanks for your help,
But may i know how to display my internal table data to out put screen.
As i am new to the query i do not know how to display internal table data to report along with my data coming from ABAp-query.
for eg i have three field to display suppose A , B and C.
Field A and B are coming from query and i have to display field C from internal table.
How to do that
thanks in advance

Similar Messages

  • REDO scanning goes in infinite loop and Too much ARCHIVE LOG

    After we restart DATABASE, capture process REDO scanning goes in infinite loop and Too much ARCHIVE LOG being generated.
    No idea whats going on.... otherwise basic streams functionality working fine.

    What's your DB version

  • I execute my progrem its goes to infinite loop?

    Hi frnds,
    I execute my program its goes to infinite loop? How can i stop that program, before goes to dump?

    why  don't you  put a break point before the loop and just check why it is not  finishing up. u can always set conditions when to exit from such loops when required.
    Loop ...
    if  some cond
    exit.
    endif
    endloop.

  • htmlb:fileupload goes into infinite loop

    Hello all,
    We use the tag <htmlb:fileupload> in our bsp page. Now if the user enters a file name directly, ie:without using the browse button the user simply enters a filename, say 'Resume.doc' in the input field and hits the save button on the page, then the system is going into an infinite loop and the system hangs, the users cannot proceed further and they need to restart the browser all over again(it is not necessary that the file must exist in the system, the user just types in a file name and performs the save action). This is a cause of concern for some of our customers, they expect that we should provide a meaningful message to the user and the processing should end. Is this a known issue in BSPs ?? Can anyone suggest me how to get rid of this problem ?
    Thanks and Best Regards,
    Viqar Ali.

    Hello All,
    I use the following code in my bsp:
    <phtmlb:matrix width="100%" >
      <phtmlb:matrixCell row = "1"
                         col = "1" />
        <phtmlb:formLayout design           = "HEADING_ONLY_SOLID"
                           customizationKey = "<%= controller->context %>" >
        <%-- Upload --%>
        <phtmlb:formLayoutItem label    = "<%= controller->file_label %>"
                               idOfItem = "upload" >
          <htmlb:fileUpload id   = "upload"
                            size = "30" />
        </phtmlb:formLayoutItem>
    Everything works fine if the user selects a file using the browse button to select a file. Instead if the user enters a file name directly, then the system runs into an infinite loop. I have put a breakpoint in DO_HANDLE_DATA & DO_REQUEST of the controller class. However the control doesnt come till this point also and i cannot even debug anything. The breakpoints are hit if the user selects the file using the browse button. If anyone has a similar scenario working correctly in their application pls update me with the code.
    Thanks and Best Regards,
    Viqar Ali.

  • OIM11gR2:Event handler goes into infinite loop

    Hi Experts,
    I have created an event handler where i am doing some functionality on execute function, that updates some UDF's when a user modifies value from the user modify form.
    I am calling the event hanlder on modify action of User entity
    Now the problem i am facing is that the eventhandler goes into infinte loop and modifies the values again and again without any break.
    Please help out, i am not able to kill the process unitill i restart the server :-(

    You can use something like below to get old values :
    HashMap<String, Serializable> interEvtDataMap = orchestration.getInterEventData();
              User newUserState = (oracle.iam.identity.usermgmt.vo.User) interEvtDataMap.get("NEW_USER_STATE");
              User oldUserState = (oracle.iam.identity.usermgmt.vo.User) interEvtDataMap.get("CURRENT_USER");
              newFirstName = (String)newUserState.getAttribute("First Name");
              oldFirstName = (String)oldUserState.getAttribute("First Name");     
    Thanks
    Suren

  • Export CSV Cmdlet goes to infinite loop

    I'm trying to aggregate data from various CSV's into one using the following line of code
    “ ls -n *.csv | %{ ipcsv $_} | epcsv allinone.csv -NoTypeInformation “ 
    It worked fine until I changed the exported csv name to OneWorldFile.csv. It looks like PS lands into an infinite loop and appends the data into the CSV. I’ll have to eventually halt the process.
    “ ls -n *.csv | %{ ipcsv $_} | epcsv OneWorldFile.csv -NoTypeInformation “
    Here is the screenshot for your verification : http://note.io/1pNoee3. Is there any reason for this behaviour? Did I miss something?
    Thank you in advance for your reply.
    Vimal.

    Thank you, Noah.  I've understood what causes this behaviour -> Parallel Processing.
    I did get an interesting reply from powershell.org forum (http://bit.ly/Tzoy3R) and the problem sorts out if pipeline is not used. Thanks to Mike F Robbins.
    Import-Csv-Path(Get-ChildItem-Name*.csv)|Export-Csv-Path .\OneWorldFile.csv-NoTypeInformation
     

  • Enumeration never reaches nextElement(), goes into infinite loop

    String key = "";
    while (request.getSession().getAttributeNames().hasMoreElements()) {
      key = (String) request.getSession().getAttributeNames().nextElement();
      out.println("key = " + key + " and its value = " + (String) request.getSession().getAttribute(key) + "<P>");
    }This results in an infinite loop where key is the same first element while the Enumeration never advances.
    Why would this happen? Any ideas?
    Thanks

    Why would this happen? Any ideas? Your code obtains a fresh enumeration with each loop. Don't. Just use the same enumeration. Example:
    Enumeration e = request.getSession().getAttributeNames();
    while (e.hasMoreElements()) {
      String key = (String) e.nextElement();
      out.println("key = " + key + " and its value = " + (String) request.getSession().getAttribute(key) + "<P>");
    }~

  • Installing tcltk2 package goes into infinite loop

    Hi
    I am trying to load the tcltk2 package downloaded from CRAN into my laptop that already has ORE 1.4.1 installed. However it is running into infinite loop with the following error output:
    Has anyone encountered this error before? Thanks!

    Which version(s) of R and tcl do you have installed on this system?
    For example, in R:
    R> version
    platform       x86_64-unknown-linux-gnu                   
    arch           x86_64                                     
    os             linux-gnu                                  
    system         x86_64, linux-gnu                          
    status                                                    
    major          3                                          
    minor          1.1                                        
    year                                                      
    month                                                     
    day                                                       
    svn rev        -99                                        
    language       R                                          
    version.string Oracle Distribution of R version 3.1.1  (--)
    nickname       Sock it to Me     
    ...and from the Linux shell:
    [slamonic@slc05elz ~]$ rpm -qa tcl
    tcl-8.4.13-6.el5
    Did you have a previous version of R on the system where you are seeing the infinite loop of errors?
    Sherry

  • While loop in query is going under infinite loop

    Declare
    @StartDate_in date,
    @EndDate date
    Set @StartDate_in = cast('2000-01-01' as date)
    Set @EndDate = cast('2010-12-31' as date)
    declare @month int
    declare @year int
    declare @endyear int
    declare @startdate date
    set @startdate= @startdate_in
    set @month = month(@StartDate_in)
    set @year= year(@StartDate_in)
    set @endyear= year(@EndDate)
    while @year<=@endyear
    Begin
    while month(@startdate)<=12 and @year<=@endyear
    begin
    print (@year);
    print (month(@startdate));
    INSERT Into target
    ( YEAR,
    MONTH,
    MONTH_VAL,
    L_DT,
    U_DT,
    S_DT,
    E_DT
    Values
    ( datepart(yyyy,@StartDate) ,
    datepart(month,@StartDate) ,
    substring(datename(month,@StartDate),1,3),
    GETDATE(),
    GETDATE(),
    (GETDATE()-1),
    null
    set @StartDate = dateadd(month,1,@StartDate);
    set @month=1;
    end
    set @year=@year+1;
    print (@year);
    print (@month);
    end
    The query although with exit condtion given in the while loop is not ending and executing infinetly
    ddl of target
    CREATE TABLE target(
    [TIME_ID] [int] IDENTITY(1,1) NOT NULL,
    [START_DT] [date] NULL,
    [E_DT] [date] NULL,
    [L_DT] [datetime] NULL,
    [U_DT] [datetime] NULL,
    [YEAR] varchar (5) NULL,
    [MONTH] varchar(5) NULL,
    [MONTH_VAL] [varchar](5) NULL
    ) ON [PRIMARY]
    GO
    Mudassar

    Try followings:Declare
    @StartDate_in date,
    @EndDate date
    Set @StartDate_in = cast('2000-01-01' as date)
    Set @EndDate = cast('2010-12-31' as date)
    declare @month int
    declare @year int
    declare @endyear int
    declare @startdate date
    declare @innerloopyear int
    set @startdate= @startdate_in
    set @month = month(@StartDate_in)
    set @year= year(@StartDate_in)
    set @endyear= year(@EndDate)
    set @innerloopyear = @year
    while @year<=@endyear
    Begin
    while month(@startdate)<=12 and @year>=@innerloopyear
    begin
    print (@year);
    print (month(@startdate));
    INSERT Into target
    ( YEAR,
    MONTH,
    MONTH_VAL,
    L_DT,
    U_DT,
    S_DT,
    E_DT
    Values
    ( datepart(yyyy,@StartDate) ,
    datepart(month,@StartDate) ,
    substring(datename(month,@StartDate),1,3),
    GETDATE(),
    GETDATE(),
    (GETDATE()-1),
    null
    set @StartDate = dateadd(month,1,@StartDate);
    set @innerloopyear = YEAR(@startdate)
    set @month=1;
    end
    print 'hello'
    set @year=@year+1;
    --set @StartDate = DATEADD(year,1,@StartDate)set @innerloopyear = @year
    print (@year);
    print (@month);
    end
    I have formatted change in "Bold".

  • "IN" clause making query to run infinite loop

    Hello Masters,
    I am using Oracle 9i and using one query with "IN" clause. This query takes arnd 5-6 hours of time to get that completed, but when i removed the "IN" clause with "Inner Join" then query starts completing in seconds.
    More over looking at the execution plan for the queries i don't see any differences and the costing is also very low.
    Query is:
    SELECT contact_id FROM scc_case_contact_t WHERE case_id IN (SELECT id FROM temp_data_manager_t WHERE id_info = 'mDependentCaseIds' AND user_id = 1 AND sess_id = '1769F72A8F7A7B1FB98AAAE6676845F6') AND contact_id IN (SELECT id FROM temp_data_manager_t WHERE id_info = 'arrCntIds' AND user_id = 1 AND sess_id = '1769F72A8F7A7B1FB98AAAE6676845F6')
    Execution Plan:
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | 1 | 272 | 5 |
    | 1 | NESTED LOOPS SEMI | | 1 | 272 | 5 |
    | 2 | NESTED LOOPS SEMI | | 1 | 142 | 5 |
    | 3 | INDEX FAST FULL SCAN | CASE_CONTACT_PK | 94729 | 1110K| 5 |
    | 4 | TABLE ACCESS BY INDEX ROWID| TEMP_DATA_MANAGER_T | 1 | 130 | |
    | 5 | INDEX RANGE SCAN | TEMP_DATA_MANAGER_IX_ID_INFO | 1 | | |
    | 6 | TABLE ACCESS BY INDEX ROWID | TEMP_DATA_MANAGER_T | 1 | 130 | |
    | 7 | INDEX RANGE SCAN | TEMP_DATA_MANAGER_IX_ID_INFO | 1 | | |
    Almost all the queries with "IN" clause are taking astonishingly high time.
    The same set of queries are working fine at Oracle 10G.
    Any help on this will be highly appreciated.

    This is the modified query
    SELECT contact_id FROM scc_case_contact_t inner join
    (SELECT id FROM temp_data_manager_t WHERE id_info = 'mDependentCaseIds' AND user_id = 1 AND sess_id LIKE '1769F72A8F7A7B1FB98AAAE6676845F6')X
    on X.id=case_id
    inner join
    (SELECT id FROM temp_data_manager_t WHERE id_info = 'arrCntIds' AND user_id = 1 AND sess_id LIKE '1769F72A8F7A7B1FB98AAAE6676845F6')Y
    on Y.ID=contact_id
    Execution plan is:
    | Id | Operation | Name | Rows | Bytes | Cost |
    | 0 | SELECT STATEMENT | | 1 | 272 | 1 |
    | 1 | NESTED LOOPS | | 1 | 272 | 1 |
    | 2 | MERGE JOIN CARTESIAN | | 1 | 260 | 1 |
    | 3 | TABLE ACCESS BY INDEX ROWID | TEMP_DATA_MANAGER_T | 1 | 130 | 1 |
    | 4 | INDEX RANGE SCAN | TEMP_DATA_MANAGER_IX_ID_INFO | 1 | | 1 |
    | 5 | BUFFER SORT | | 1 | 130 | |
    | 6 | TABLE ACCESS BY INDEX ROWID| TEMP_DATA_MANAGER_T | 1 | 130 | |
    | 7 | INDEX RANGE SCAN | TEMP_DATA_MANAGER_IX_ID_INFO | 1 | | |
    | 8 | INDEX UNIQUE SCAN | CASE_CONTACT_PK | 1 | 12 | |
    I had tried using Exists but that also not working and taking arnd 4 -5 hrs.
    Also the query with Join condition is completing in 4-5 seconds.

  • Bex broadcaster from web goes in infinite loop

    Hi All,
    After executing a query in web, when we click on the send button for the Bex broadcasting wizard to appear, the page keeps loading and the wizard does not appear.
    Please can you give some pointers....
    Thanks in advance

    Hi Sireesha,
    Can you right click on the Analysis item and go to Broadcast and Export->Broadcast E-Mail and check whether this opens the Broadcasting wizard?
    Disable the pop ups,if you have for the browser
    You can also open the query in BEx Broadcaster and can create the Broadcast setting through wizard to broadcast a query.
    Rgds,
    Murali

  • UI flickrs continously jdk1.7.25 EventdispatchThread's pumpEventsForFilter goes to infinite while loop

    I am migrating a project from Java 1.3 to Java 1.7 update 25 and there is one search button functionality in which search is performed correctly but the UI flickers continuously because EventdispatchThread's pumpEventsForFilter goes to infinite while loop.
    This same code works correctly in java 1.3.
    Below is the part of the code related to searchbutton. Can you please suggest regarding this because the issue is within java api and not sure how to solve this.
    SearchButton.java:
    private JButton searchButton; 
    private String textsearchButton = 
          search.util.Language.getString("buttonStartSearch"); 
    searchButton = new JButton(textsearchButton); 
    buttonPanel.add(searchButton); 
    searchButton.addActionListener(this); 
    searchButton.addActionListener(actionListener); 
    actionListener.actionPerformed( 
                   new ActionEvent( 
                      searchButton, 
                      ActionEvent.ACTION_PERFORMED, 
                      "toFront")); 
                actionListener.actionPerformed( 
                   new ActionEvent( 
                      searchButton, 
                      ActionEvent.ACTION_PERFORMED, 
                      "searchComplete")); 
    setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); 
        if (hasSearch) { 
                actionListener.actionPerformed( 
                   new ActionEvent( 
                      searchButton, 
                      ActionEvent.ACTION_PERFORMED, 
                      "searchComplete")); 
             else { 
                actionListener.actionPerformed( 
                   new ActionEvent( 
                      searchButton, 
                      ActionEvent.ACTION_PERFORMED, 
                      "search")); 
    searchButton.setEnabled(!hasSearch && hasCriterions()); 
    public void actionPerformed(ActionEvent ae) { 
          Object source = ae.getSource(); 
          else if (source == searchButton) 
             startSearch(); 
          else if (source == exportButton) 
             exportSearch(); 
          else { // ActionEvents from the panels occur 
             changesOccured(); 
    EventDispatchThread:
    void pumpEventsForFilter(int id, Conditional cond, EventFilter filter) { 
            addEventFilter(filter); 
            doDispatch = true; 
    //This while goes to infinite loop 
           [b] [color=red]while (doDispatch && !isInterrupted() && cond.evaluate()) { 
                pumpOneEventForFilters(id); 
            }[/color][/b] 
            removeEventFilter(filter); 

    Please provide your code example as SSCCE . I'm not going to spent time guessing what your application code (other than shown) meigt do or not do.
    bye
    TPD

  • Update routine infinite loop

    Hello Experts,
    For loading ODS2 we are making a lookup on ODS1 for 0material based on
    purchaing document number, item line item.
    Is there any mistake in the start routine or update routine.
    Because the load goes in infinite loop. I think update routine should be changed.
    Any suggestions are appreciated
    Start routine:
    data: begin of itab occurs 0,
            pur_doc like /BIC/AZODS100-OI_EBELN,
            item like /BIC/AZODS100-OI_EBELP,
            material like /BIC/AZODS100-material,
          end of itab.
    clear itab.
    select OI_EBELN OI_EBELP MAT_PLANT from /BIC/AZODS100
             into table itab.
    Update routine for 0material
    loop at itab where pur_doc = COMM_STRUCTURE-OI_EBELN
                       and item = COMM_STRUCTURE-OI_EBELP.
           RESULT = itab-matplant.
    endloop.

    Hi,
    this takes a long time, because with each record of your data packaged it is doing the loop and scanning each row of the internal table. Use the following instead.
    Start routine:
    types: begin of t_itab,
    pur_doc like /BIC/AZODS100-OI_EBELN,
    item like /BIC/AZODS100-OI_EBELP,
    material like /BIC/AZODS100-material,
    end of t_itab.
    data: itab type hashed table of t_itab with unique key pur_doc item.
    select OI_EBELN OI_EBELP MAT_PLANT from /BIC/AZODS100
    into table itab order by oi_ebeln oi_ebelp mat_plant.
    I hope these fields are the key of the ods object.
    Update routine for 0material
    data: wa_itab type t_itab.
    read table itab into wa_itab with table key pur_doc = COMM_STRUCTURE-OI_EBELN
    item = COMM_STRUCTURE-OI_EBELP.
    if sy-subrc = 0.
    RESULT = wa_itab-matplant.
    else.
    clear result.
    endif.
    Hope this helps
    regards
    Siggi

  • Entity Adapter in infinite loop

    Hi,
    I have written code which takes userid as input and updates the user attribute using OIM API based an a criteria. I have attached this entity adapter on pre-update of the user form. The adapter is getting trigered but is going into infinite loop.
    Can anyone help me on how to avoid this ??
    Any help will be appreciated.

    Hi,
    I think don't need to update the user attribute using the OIM API. Assign the adapter return value to the UDF you want to update. So you dont have to use the API.
    When you use the API, the events are fired, so your code will go in a loop.
    If you have to update more than one field on the pre update, for example, I suggest you write an Event Handler. Below is a sample of an Event Handler code that I have assigned to the Specific Task Info dataobject:
    import com.thortech.xl.client.events.tcBaseEvent;
    public class EventHandlerSample extends tcBaseEvent {
         public NotifyTaskStatusChangedEvent(){
              this.setEventName("Event Handler Sample");
         @Override
         protected void implementation() throws Exception {
    String taskKey = this.getDataObject().getString("SCH_KEY");
         String newTaskStatus = this.getDataObject().getString("SCH_STATUS");
         String oldTaskStatus = this.getDataObject().getCurrentString("SCH_STATUS");
    System.out.println("Old Status: " + oldTaskStatus);
    System.out.println("New Status: " + newTaskStatus);
    if(this.getDataObject().isInserting()){
    if (this.getDataObject().isPostEvent(){
    //do something
    if (this.getDataObject().isPreEvent(){
    //do something
    }else if(this.getDataObject().isUpdating()){
    }else if (this.getDataObject().isDeleting()){
    Read the metalink Developing a Custom OIM Event Handler Using Eclipse [ID 604817.1]
    Renato.

  • PDF Forms in Firefox - infinite loop

    Howdy,
         I am a developer who is using PDF forms (FDF) to populate data into a database via form submission. Everything works fine on Internet Explorer but, on Firefox 3.6.17 with Adobe Reader X, I either end up getting a blank form when launched from an FDF which has valid data OR, I get into a situation where new firefox windows come up continuously in what appears to be an infinite loop (have to log out to end the recursion). Anyway, figured I'd see if anybody here had seen that before and, if so, if there's a solution to it?
    Thanks!

    I have a similar problem, but apparently in the inverse direction. We recently "upgraded" to Acrobat X (Version 10.1).
    I have a web application that uses data in a database to populate a PDF form displayed in a browser window. (Display in browser window is checked.) At the beginning of August, we started to get an infinite loop whenever trying to display the form.
    Behavior pattern:
    (1) Click the link that's supposed to open the new form. A new IE window opens (as is supposed to happen). Status says "connecting" but there's nothing in the  URL.
    (2) 1/2 second later, a file download popup appears.
    (3) 1/2 second later,  Adobe Acrobat window appears (as if I had run Acrobat as a program). There are 4  windows on the screen at this point, including the normal application window.
    (4) After a 1/2  second delay, system goes into infinite loop, displaying (1) and (2) in an  infinite sequence.Window 3 (Acrobat) seems to simply stay open. Howeve
    Cycle time is about 1/2 second for all 3  popup windows to display one time. This occurs on 19 different  computers (different models, but all running Windows Vista Enterprise, Internet Explorer 7 and Acrobat 10.1.

Maybe you are looking for