Error in loop at itab in ECC 6.0

hi,
in ECC 6.0, in an abap proxy class i have a loop statement as follows:
LOOP AT tablename.
    sdfsdf
    sfsfsf
    s
    fsf
ENDLOOP.
and i get the error, At "Loop At itab" one of the additions into/assigning or transporting no fields is required in OO context !! what does that mean ? in my abap proxy class can't i use the loop at statement's simplest form ?
whats the solution ?

Sure you can, you just have to use an explicit workarea and use the INTO.
Types: begin of ttab,
            fld1 type c,
           fld2 type c,
          end of ttab.
data: itab type table of ttab.
data: wa like line of itab.
Loop at itab INTO wa.
* Now the row is stord in WA, do what you need to here.
endloop.
YOu can NOT use internal tables with header lines in the OO context.
Regards,
Rich Heilman

Similar Messages

  • Error while activating smartforms:'itab' is neither specified under table.

    Hi,
        I got an error while activating smartforms,
    'ITAB' is not specified under tables nor defined as an internal table.
    This comes under loop - Data tab.
      itab into wa.
    Please rectify this error.

    Hi Jana,
      I already declared itab in global definitions as follows,
    Variable     Type            Associated type
    T_VBAP       TYPE         TYPES_VBAP
    (itab)             (type)          (str - structure)
    But still i m getting the error.
    Can u suggest some other soln.
    thanks for ur reply.

  • Error with Loop....endloop.

    Hello all i have an internal table. If i am not looping it it is doign everything fine. However if i am looping it i dont see any results.
    I guess it a small error but unable to figure it.
    here is the code without loop.
        data : i_output_details like ZSD_INQUIRY_OUTPUT_DETAILS occurs 0
    with header line.
        data : i_errors like ZSD_INQUIRY_ERRORS occurs 0 with header line.
    *Output Results
        i_output_details-CHARGE_TYPE = ' '.
        i_errors-ERROR_MESSAGE = 'ERROR'.
          if i_output_details-CHARGE_TYPE = ' '.
            CALL FUNCTION 'POPUP_TO_INFORM'
                 EXPORTING
                    TITEL   = i_errors-ERROR_MESSAGE
                    TXT1    = 'error'
                    TXT2    = 'error'
            TXT3    = ' '
            TXT4    = ' '
          else.
          write :/ 'hello'.
          endif.
    HERE IS THE CODE WITH PROBLEM AFTER I HAVE LOOP.... ENDLOOP.
        data : i_output_details like ZSD_INQUIRY_OUTPUT_DETAILS occurs 0
    with header line.
        data : i_errors like ZSD_INQUIRY_ERRORS occurs 0 with header line.
    *Output Results
        i_output_details-CHARGE_TYPE = ' '.
        i_errors-ERROR_MESSAGE = 'ERROR'.
        Loop at i_output_details.
          if i_output_details-CHARGE_TYPE = ' '.
            CALL FUNCTION 'POPUP_TO_INFORM'
                 EXPORTING
                    TITEL   = i_errors-ERROR_MESSAGE
                    TXT1    = 'error'
                    TXT2    = 'error'
            TXT3    = ' '
            TXT4    = ' '
          else.
          write :/ 'hello'.
          endif.
        endloop.
    Thanks ,
    Shejal.

    You internal table contains no data,  only the header line of the itab contains data.  You must APPEND to your itab before LOOPing at it.
    i_output_details-CHARGE_TYPE = ' '.
    append i_output_details.
    Regards,
    Rich Heilman

  • Thiis error when I execute RSA3 on ECC. Any hints?

    Hi Experts,
    can you help me figure out how to fix this problem:
    I am on an IDES system used by many for training. I am execute rsa3 and enter any of these datasources:
    0fi_gl_4   or 2lis_11_vascl
    and I get the following ABAP screen; any way to get the data extraction going?
    Thiis error when I execute RSA3 on ECC. u2018----
    screen -
    (2) ABAP DEBUGGER CONTROLS SESSION 2(EXCLUSSIVE)
    method IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM.
    field-symbols: <wa_ZOXID30163> type ZOXID30163.
      break-point.
      case i_datasource.
        when 'ZMARA_DS'.
          loop at c_T_DATA assigning <wa_ZOXID30163>.
            <wa_ZOXID30163>-zztest = '123'.
          endloop.
      endcase.
    endmethod.
    u2018----
    Thanks

    Hi,
    Looking at the code it seems like there is no error but someone has put explicit Break point in the code, now you have two options,
    1) Once you get the above screen just press F8 and let the extractor proceed. But everytime this will be manual process.
    2) Remove the Break-point statement from the code.
    As you said it is asking for Access Key, then get your developer key generated on service.sap.com or contact to your basis team.
    Regards,
    Durgesh.

  • Delete Itab within Loop at ITAB ?

    Hi,
    Help needed to remove this delete from within the loop.
    {code
    Loop at itab where <condition>.
    <statements>
    delete itab index sy-tabix.
    Exit.
    Endloop.
    {code}
    The functionality of the code should not be affected.
    Useful help would be awarded

    Hi,
    Instead of deleting data from itab use another internal table of same type (itab1) and append it. Use itab1 data for further processing.
    check below logic...
    {code
    Loop at itab1 into wa_itab1 where <condition>.
    <statements>
    if <condition>
    append wa_itab1 to itab2.
    exit.
    endif.
    Endloop.
    refresh itab1.
    itab1[] = itab2[].
    {code}
    regards,
    N M Poojari.

  • "Windows Explorer Has Stopped Working" Error Message Loop upon Startup of WIndows 7 Ultimate 64-bit

    Ok I have a HP Touchsmart 6000 running Windows 7 Ultimate 64 bit OS.  It is my 74 year old mothers computer and about 3 months ago it started acting up.  First thing that happened was the internal DVD Burner started working intermitently, recognizing
    her QuickBooks backup DVD files occasionally.  I got her a new  internal DVD burner and it worked for a while.   during that time on Startup Help and Support would all of a sudden popup right away.    Then recently Adobe Acrobat would
    launch a PDF file about Flash and keep opening multiple instances of it.   Now her new DVD doesnt work again and on startup at the windows desktop she gets an error "Windows Explorer has Stopped Working".   No matter what I click the error
    keeps looping.  No program has been opened that causes it to crash because the error happens immediately and keeps repeating.   I have tried to boot to Safe Mode, Safe Mode with Networking and have tried System Restore to no avail.
    I have ran Malwarebytes Antivirus, Malwarebytes AntiExploit, AntiRootkit as well as Combofix.   I have run the AntiMalware software from Microsoft and have updated all the drivers for the HP system.   To no succcess.
    At one point the system did load and an error came up JAN2OSD failed to start due to missing ACPI or something like that.  For that brief moment Explorer stopped crashing.   When I finished updating  driverss though the error  came back.
    Please Help  as she is about to cry and no one wants to make a 74 year old woman cry.:)
    Thanks,
    Jeff

    Hi,
    According to the steps you have performed, we have followed the steps mentioned in this KB article?
    Error: Windows Explorer has stopped working
    Hvae you tried the repair install of Windows 7? Follow the steps here:
    How to Perform an In-Place Upgrade on Windows Vista, Windows 7, Windows Server 2008 & Windows Server 2008 R2
    Besides, if issue insists, please follow the steps below to generate a dump file:
    1. Create a new folder (named New folder)under C: drive.
    2. Please save the below as a .reg file, and then import it to registry, reference here:
    ===
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\explorer.exe]
    "DumpFolder"=hex(2):43,00,3a,00,5c,00,4e,00,65,00,77,00,20,00,66,00,6f,00,6c,\
      00,64,00,65,00,72,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    ===
     3.  After that , if Windows Explorer stops working again, please check the
    C:\New folder for dump files and then upload them.
    Meanwhile, please also make a contact with the manufacturer to see if we could get any further help from there.
    Best regards
    Michael Shao
    TechNet Community Support

  • How to cancel automatically messages stated 17 (Application error - manual restart possible) in SAP ECC

    Hi people. I need to create a job to cancel automatically the messages with the status 17 (Application error - manual restart possible) in SAP ECC.
    In SXI_MONITOR I can retrieve these messages filtering just for "Application Error". I can cancel them here, however I need for a Job to do it.
    I appreciate your help.
    Regards
    Arturo Santos

    Hi,
    >Is there any way we can make this automatic
    In RWB-Component Montoring-Adapter Engine-Communication Channel Montoring- Select the Adapter- Go to Settings  and  change as per your Business Requirement.
    Regards
    Agasthuri Doss

  • #DATA Sync & # CONTEXT error in BI 4.1 with ECC 6 environment

    I am getting the #DATA Sync & # CONTEXT error in BI 4.1 with ECC 6 environment. When i am adding Excel Sheet as asecondary source for BO report am getting this error. because of below,
    Ecc data
    Profit center -- 000100
    Fiscal Year --- 2,014
    Posting Period - 1  to12
    Amount 2000
    Excel Data
    Profit center -- 000100
    Discharge Date --- Q1 2014, Q2 2014,
    Discharge Port --- Excelerate or Expediate, etc
    I ahve created report Using ECC Data like, Profit center,Fiscal Year,Posting Period and Amount.
    Now i want to Add from Excel Discharge Date and Discharge Port am getting the #DATA Sync & # CONTEXT error or Imcompatible object.
    because i am anot able to merge these objects with ECC Objects. Can anyone suggest me what i can do to achieve this?
    Cheers
    Murali Durairaj

    Hi
    Have you created two different data providers (one for ECC, another for Excel data)in
    the webI report,
    If yes -- check whether able to see data sample in the Excel data provider
    Run the WebI Report -- Design Mode -- Edit -- Select the Excel Data Provider --
    Check able to see the Data Sample data whichever there in the excel sheet.
    If you are able to see the Sample data…then merge common objects (able to merge
    only if both the objects have same data types.) then check the data in the
    report.

  • Problem in select  statment & loop of itab.

    Hi all,
          I am having on ITAB1  for, ex which is having five line items or more  .
    iam also using select statment SINGLE statment for 7 times ,to select values for
    different data base  table.
    for ex,
    loop at itab.
       1---> SELECT SINGLE Z_CTRY_ORIG INTO LS_PSHDESN-Z_CTRY_ORIG FROM ZLE_PART_MST
      WHERE                           WERKS        = ITAB1-LGNUM
      AND                                 MATNR        = ITAB1-MATNR .
    2---
    3---
    4---
    endloop
    i want to remove from the loop statment  and i have to select  the datas ..
    can any one sugesset some possible ways....
    regards
    veera

    hi,
    Solution:
    Never use select single in loop at itab!! for that :
    Solution 1:
    say ur main table is ITAB and rferring  this u want to select data from other tables.
    SELECT SINGLE Z_CTRY_ORIG INTO LS_PSHDESN-Z_CTRY_ORIG FROM ZLE_PART_MST
    into table itab2
    FOR ALL ENTRIES IN ITAB
    WHERE WERKS = ITAB-LGNUM
    AND MATNR = ITAB-MATNR.
    With this what will hapeen , u will get all records in itab2 which u can update itab1(master) using loop.
    solution 2:
    Instead of all this use JOINs in select statement properly and u can fetch data in one shot this will reduce database load as well as abap load ( More than 3 joins in SELECT stmt  are not recommeded but can be used)
    I believe this is perfect solution if and only if u are giving joins on KEY fields only.  Same is applied for wherer clause.
    Hope this will help u, if not revert.
    Jogdand M B

  • An error has occurred in the system "ECC" while copying the document

    Hello Experts,
    When I'm creating service orders in CRM UI and saving them I'm receiving this error:
    An error has occurred in the system "ECC" while copying the document
    Details:
    An error has occurred in the system "ECC" while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors have occurred while transferring the document into another system. Refer to the enclosed log to view the error messages.
    Transmission log
    Error occurred during determination of profitability segment (Notification E IAOM 025)
    Profit center for CRM integration not found (Notification E KECRMPCA 001)
    Error occurred during determination of profitability segment (Notification E IAOM 025)
    Account assignment error in internal order K1153000004111 for position 2000000990/0000000020 (Notification E C( 321)
    Regarding to the account assignement, we developed a field to input Accounts IDS for WBS.
    This field has a customization table related which allows to visualize in a dropdown list the allowed WBS ID per user according to the entries in the table.
    Also, In the Service Order there is one status that triggers an action that creates a Sales Order in CRM that is replicated in ECC, but since I have this error Sales order is not being replicated in ECC.
    Any ideas?
    Kindly Regards,

    HI,
    Please check these threads:
    CRM-COPA- An error occurred in system EEPCLNTXXX during account assignment
    http://www.riderspider.com/2010/11/error-error-occured-in-system-dv1cltecc.html#more
    Denis.

  • Loop at itab in a Smarform problem

    Hi Guys,
    Right now i'm developing my first OO program that calls a Smartform, but I'm having the following issue.
    I call a method exporting the internal table that i want to pass to the SF, but when i want to make a loop statement in the SF I get a dump. I asked some friends and they told me that right now is obsolete the table statement, so i declare in the SF in the importing tab and then declare it in the exporting part of the FM that calls the SF.
    Now when i try to activate the SF i guet the following error: "You may only read from table "IT_GRID1". - reading.".
    so my question is, how can i declare my itab in order to be able to add a loop statement?.
    Regards,
    Eric

    Hi Subramanian,
    At first I did what you suggest, but for a reason that I can`t explain, when the loop begins I always get a dump. The only way that i could make the dump disappear was by replacing the name of the parameter that I receive from the method for the original table.
    Example:
    " I call the method in the main method.
           lcl_reporte_auditoria=>llamar_sf( EXPORTING
                                                               table = it_sf ).
      METHOD llamar_sf.
    *   Llamar al Formulario
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = 'ZQM_RPT_AUDITORIA_LLANTA_VERDE'
          IMPORTING
            fm_name            = fm_name
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
    *¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
    * CONFIGURO LOS OPARAMETROS DE SALIDA PARA Q NO APAREZACA       *
    * LA CAJA DE DIALOGO DE LA IMPRESION                            *
        wa_ssfctrlop-device     = 'PRINTER'.
        wa_ssfctrlop-langu      = sy-langu.
        wa_ssfctrlop-replangu1  = sy-langu.
        wa_ssfctrlop-replangu2  = sy-langu.
        wa_ssfctrlop-replangu3  = sy-langu.
        wa_ssfctrlop-no_dialog  = 'X'.      "SIN DIALOGO
        wa_ssfctrlop-preview    = 'X'.      "VISTA PREVIA
        wa_ssfcompop-tddest     = 'LOCL'.   "LOCAL AL PC
        wa_ssfcompop-tdimmed    = 'X'.      "IMPRESION IMEDIATA
        CALL FUNCTION fm_name
          EXPORTING
            control_parameters = wa_ssfctrlop
            output_options     = wa_ssfcompop
            user_settings      = ''
          TABLES
            it_grid1               = table
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
      ENDMETHOD.                    "llamar_sf
    In this case I get a dump as soon as the SF reach the loop statement. If I change the
    TABLES
    it_grid1 = table
    for
    TABLES
    it_grid1 = it_sf
    The dump doesn't appear anymore.
    The dump says: MOVE_TO_LIT_NOTALLOWED_NODATA
    Assignment error: Overwriting a protected field.
    At that moment a friend told me that the table statement was obsolete in OO programing, and encourage me to change it for a exporting parameter. This is the reason why i'm doing it, please anyone tell me is that affirmation is correct. Otherwise, could someone explain me why i'm getting that error when i export the table that i'm receiving in the method call.
    Regards,
    Eric
    Message was edited by:
            Eric Hernandez Pardo

  • Error in Looping with variable

    Dear All,
    Please help me. i want to loop of record. i have two scheme. First, i make without variable and not error. Second, i make with variable and error occurs. as below my syntax:
    First:
    declare
    x varchar(50);
    begin
    --x:='select dummy from dual';
    for c1 in (select dummy from dual) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    X
    Second:
    declare
    x varchar(50);
    begin
    x:='select dummy from dual';
    for c1 in (x) loop
    dbms_output.put_line(c1.dummy);
    end loop;
    end;
    result:
    Encountered the symbol 'LOOP' when expecting one...

    Billy  Verreynne  wrote:
    Why? For what purpose?
    A cursor fetch loop is not the ideal processing structure.
    It is slow. It requires data to travel from the buffer cache of the database into PL/SQL variables (in the PGA). It requires context switching between the PL/SQL and SQL engines.
    It does not scale. More rows means more data to travel that path from the SQL engine to the PL/SQL engine. More loop iterations in PL/SQL. If a single loop iteration (for processing a row) is 1ms, then a 100,000 rows will take a 100 seconds. 200,000 rows 200 seconds. Etc. This clearly does not scale with an increase in data volume.
    Also keep in mind that DBMS_OUTPUT does not write to screen or display anything. It is incapable of accessing a client device as it executes inside a server process. So each call to DBMS_OUTPUT stores that line of text in very expensive server memory. When the database call is done, the client (e.g. TOAD or SQL*Plus) can read those lines from the database and the client can display it.
    So if your loop is for a 1000 rows, it means writing a 1000 lines of text into very expensive server memory - and then expecting the client to read that afterwards and display it. Why? This is not a standard client-server method. It also does not scale. It can actually crash the server when this method is abused.
    The standard method would be to create a SQL cursor using PL/SQL code, and then return a reference handle (pointer) to the client. This allows the client the ability to fetch data directly from the cursor - in an optimal way that does not consume expensive server memory.I have to say it: I sincerely appreciate you taking the time to write this whenever it needs to be written rather than just giving up and letting people stumble along with bad design - it must take a lot of mental stamina to keep doing it. One day it will sink into my head also :-)

  • Windows Vista Installation Failed. Error Restart Loop After Install.

    I made it as far as the end of Step 2: Partition for Windows Vista -> Format -> Install -> Restart
    Note: Partition size = 45 GB. Apple USB keyboard and mouse worked fine.
    The install process was stuck in a loop at this point. After restart the screen was black for about 5 minutes. Disc made noise off and on but no screen input. Then it finally restarted. Next screen had error info and a choice to continue. After that a "Install Windows" error msg appeared;
    +"The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click "OK" to restart the computer and then restart the installation."+
    Clicking "OK" resulted in the same error msg. along with +"Press any key to boot from disc"+. No success attempting to start up from Windows partition. or disc. Restarted to Mac HD. There is a "Untitled" drive on the Desktop. It contains multiple folders (11 GB). I tried to restart from this drive w/o Windows disc and it returned to the previous error msg.
    Next I tried restarting w/ Option key, inserting Windows disc, clicking on arrow under disc icon and quickly pressing any key. This brought up +"Windows Boot Manager Window"+. The only choice was; +"Windows set up [EMS Enabled]. To specify an advanced option for this choice, press F8. Tools: Windows memory diagnostic.+" None of the key choices (Enter, Tab, Esc) responded. Disc would not eject.
    Booted to Mac HD. Ejected disc w/ mouse. Used Boot Camp to restore partition. After restart screen is black with; +"No bootable device -- insert boot disc and press any key".+ Then I power down/on with Option key. Only Mac HD is displayed. Log into Admin. Mac HD looks fine. Run Disk Utility to verify disk/volume. OK. Also ran TechTool Deluxe. Passed. Open System Preferences, check that Mac HD Startup Disk is highlighted. Restart. OK now.
    What is going on? I was quite confident this would install without any problem since I was using the latest OS X 10.5.6 and Windows Vista Business (early version). Could that be the cause? I had no problem installing it under VMware Fusion 2 (downloaded updates), worked flawlessly. If I can't get this to work then I have to go back to a PC for ACAD. HELP!!
    Can I get Apple Support for this issue (Phone only, or Genius Bar)? I have AppleCare.
    Message was edited by: Sakahara
    Message was edited by: Sakahara

    Your problem sounds somewhat like mine, although not exactly. In my case it seems as if my CD/DVD drive didn't like the hologram on my Windows XP install CD. I solved this by using Disk Utility to make a disk image of the Windows DVD and then burning the disk image onto a new DVD with an opaque "label". That solved that problem.
    A further problem occurred after that. When I got to the screen that told me to hit "Enter" to start the installation process my keyboard was unresponsive. I solved this by buying a cheap Windows keyboard. That solved that problem and I now have Windows XP running just fine.
    I think that you'll find that Apple tech support isn't very responsive to these sort of problems. I don't have Apple Care but was willing to pay my $49 for tech support. I ended up talking to a "Boot Camp specialist". He was polite but told me that it was "a windows problem" and that Apple didn't support Windows. I agree that Apple can't support windows but it seemed like my two problems were "Mac problems". Anyway, after tearing my hair out for 4 days I finally got it done. I have to admit that I'm not happy with apple tech support.

  • RFC connection error between BW 3.5 and ECC 6.0

    Hi gurus,
    We've defined an RFC destination between BW 3.5 and ECC 6.0. Connection test  (SM59) is ok, but authorization one fails and ALEREMOTE users block. These users on both systems have good profiles. We look ST22 and find a runtime error on CALL_FUNCTION_REMOTE_ERROR. We've cleaned source system on BW and RFC destination and we've created one more time, but error doesn't disappear. We've looked OSS but don't find anything.
    Any idea? Is there any other place (users, RFC) where we have to change user password on system?
    Thanks a lot!
    Regards,
    Iván.
    Edited by: Iván Cabezas Castillo on Nov 6, 2009 12:09 PM

    Solved!
    This is because of the incompatibility of password handling between
    640 and 700 systems.
    We have to use a maximum 8 character long password with only capital letters (numbers are also allowed) for the user "ALEREMOTE".
    1. Change the password for the user in SAP R/3.
    2. Maintain the password in SAP BW for the RFC destination (transaction SM59 - Logon/Security tab)
    3. Authorization test is now successful.
    (SM59 - Test - Authorization).
    Regards!

  • Error in Asset Transactions Report in ECC 6

    Hi Friends,
    We have upgraded from ECC 4.7 to ECC 6.0 in Nov 2007.
    In Asset Transactions Report (S_ALR_87012048) the Depreciation column is displaying Zero Values for individual line items after November 2007 (ie for Assets posted after Nov, 07).
    We posted the same to SAP and they are saying that since New Depreciation Calculation has been activated, Depreciation on Individual transactions will not be calculated.
    SAP has quoted the following note:
    As per note 965032 point 4d under the header 'No depreciations ontransactions' which states:-
    .... if you use the new depreciation calculation, the system no longer saves depreciations on transactions in the line items. Exceptions to this rule are - proportional value adjustments in the case of retirements or retirement transfers, since these must continue to be calculated at single transaction level.
    My questions are:
    1.Even after this the report with depreciation values as Zero can be grossly misleading (other reports are showing correct values).  Is it correct?
    2.If what SAP is saying is correct, then How is this New Depreciation calculated? If anybody has an idea, please explain...
    I hope i am clear in stating my requirements.
    Thanks in advance.
    SK

    Hello,
    Can you please look in the /put/log directory and copy the error from the appropriate log file. You should find a log file with a name similar the to upgrade phase that is causing the error.
    Thanks
    N.P.C

Maybe you are looking for