Reading an ElementType.LOCAL_VARIABLE

I have been trying read a ElementType.LOCAL_VARIABLE annotation using reflect package.
Here is my annotation:
@Target(value={ElementType.TYPE,ElementType.LOCAL_VARIABLE})
@Retention(value=RetentionPolicy.RUNTIME)
public @interface TestAnnotation{
     String theName();
Here is my program to try read the annotation:
public class TestTheAnnotation{
     public static void main(String[] args){
          @TestAnnotation(theName="My_LastName,My_FirstName")
          Integer id=new Integer(1);
          System.out.println(">> "+id.getClass().getAnnotations().length);
          System.out.println(">> "+id.getClass().getDeclaredAnnotations().length);
The methods getAnnotations, and getDeclaredAnnotations only return the annotations declared for the object, but I want the annotation declared for the local variable.
Is there any way to do this?
Thanks.

getAnnotations() and getDeclaredAnnotations() are methods that you can invoke on an object of the type java.lang.Class (it's where they are defined).
In your code, id.getClass() is exactly such an object and it is the same as Integer.class, because id refers to an Integer object.
Now, it seems that the Integer class has no annotations at all or no annotations with RetentionPolicy.RUNTIME.
You annotated a local variable.
According to http://download.oracle.com/javase/6/docs/api/index.html, there are a few classes that extend the AnnotatedElement interface (java.lang.Class among them),
but none that corresponds to the local variable element. So, your annotation is inaccessible at run-time.
On the other hand, check out this:
@TestAnnotation(theName="My_LastName,My_FirstName")
public class TestTheAnnotation
     public static void main(String[]args) throws Exception
          Class cl = TestTheAnnotation.class;
          System.out.println(">> "+cl.getAnnotations().length);
          System.out.println(">> "+cl.getDeclaredAnnotations().length);
@Target(value={ElementType.TYPE,ElementType.LOCAL_VARIABLE})
@Retention(value=RetentionPolicy.RUNTIME)
@interface TestAnnotation
     String theName();
}Edit: Found this: "Local variable annotations are not retained in class files (or at runtime) regardless of the retention policy set on the annotation type. See JLS 9.6.1.2."
Less words than me, but authoritative (from http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations.html).
Edited by: baftos on May 14, 2011 12:23 PM

Similar Messages

  • Local Variable annotation

    hi
    I've written some lines of code:
    import java.lang.annotation.ElementType;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.LOCAL_VARIABLE)
    public @interface Testable {
         String test() default "haha";
    public class TestAnnotation {
         public static void main(String[] args) {
              @Testable
              String str = new String();
              printAnnotation(str);
         static void printAnnotation(Object str) {
    in printAnnotation i want to see if the passed variable is annotated with @Testable or not.
    But now I dont know how to complete printAnnotation()
    could anyone help me ?
    tanx

    There was no straightforward way to represent local variables and their
    annotations, so no such representation was defined.To me, that's a completely bogus argument. Sun easily could have defined another attribute, similar to the LocalVariableTable, that contains information about a local variable and its annotation.
    I was really excited about all the possibilities of Java annotations... until I noticed this grave oversight.

  • FOX: Read Attribute of time characteristic

    Hey Gurus,
    within my current planning application I maintained an Attribute for 0FISCPER3. Now I want to do some calculations where it is necessary to read this attribute but with standard function ATRV it is not possible.
    The execution of the Planningsequence always fails. In ST22 Methode IF_RSMD_RS_ACCESS~GET_ATTRIBUTES is called (* This method is not supported for these info objects).
    Does anyone know if it is not possible to read attributes of standard time characteristics ? If it's not I think the best alternative is to create a function module that reads my attribute.
    Cheers,
    Moritz

    Hi Moritz,
    can you please post your fox coding for this one? If it is a attribute of a characteristic you have to include the corresponding characteristic of the attribute (the attribute is mentioned as xxx within the coding):
    local_variable = artv(xxx, 0fiscper3).
    Did you try this?
    Brgds,
    Marcel

  • Backup error DBM-Api error ( -4'Reading header from pipe:(0:NO ERROR(0))')

    Hello.
    I have ContentServer on SLES 11 and MaxDB 7.6.06.
    When I don`t create backup:
    dbmcli -d SDB -u superdba,123456 -uUTL u2013c backup_start completeT
    dbmsrv: /SAP_DB/76_SP_REL/linuxx86_64/genopt/sys/wrk/incl/SAPDB/ToolsCommon/Tools_DynamicUTF8String.hpp:871: Tools_UTF8ConstIterator Tools_DynamicUTF8String::GetIteratorAtBasis(unsigned int) const: Assertion `(ToPtr(iter) == ToPtr(End())) || (ToPtr(iter) < ToPtr(End()) && ElementType::IsValid(iter))' failed.
    DBM-Api error ( -4'Reading header from pipe:(0:NO ERROR(0))')
    But when I try create this backup from SAP MaxDB Database Studio - all ok.
    Regards.

    Hello,
    1. "But when I try create this backup from SAP MaxDB Database Studio - all ok".
         Did you connect to the database as superdba user?
         What is the dbm user of the database?
         Did you use the completeT medium to create the database backup?
    2. "dbmcli -d SDB -u superdba,123456 -uUTL u2013c backup_start completeT"
        Run:
         dbmcli -d SDB -n localhost -u superdba,123456
         <enter>
    dbmcli on SDB>db_connect
    <enter>
    dbmcli on SDB>backup_start completeT
    <enter>
    dbmcli on SDB>exit
       update with results.
       See the document at:
       http://maxdb.sap.com/doc/7_6/43/b2fbe195701bbde10000000a1553f7/content.htm
    Regards, Natalia Khlopina

  • Cannot sync, error message "could not be read" for an iPod no longer in use

    I have two problems. I upgraded iTunes to 7.2 and the very next morning my iPod died. It is completely unresponsive. Maybe it's coincidental. So I bought a new 80 gig iPod and gave it a different name than the old dead iPod. Now when I try to sync the new iPod, it goes for about 10 minutes, then it fails with this message:
    Attempting to copy to the disk "old iPod name" failed. The disk could not be read from or written to.
    It is complaining that it can not read the old dead iPod that is NOT hooked up to the computer! Somehow, minutes into syncing, iTunes has forgotten which iPod it is looking at. I have seen the article about the "cannont be read" message and it is not relevant. I need to make iTunes forget about the old dead iPod so it will stop looking for it. I've tried removing the files from "Documents and Settings" but iTunes still remembers the old unit. Where else does it store information? Any recommendations?
      Windows XP  

    Attempting to copy to the disk "old iPod name" failed. The disk could not be read from or written to.
    It is complaining that it can not read the old dead iPod that is NOT hooked up to the computer!
    Okay, that can sometimes be caused by a Windows drive letter confusion. For troubleshooting advice on that possibility, see the following document:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • Ipod not being being read by vista

    Hi Guys,
    I have an 8 gig nano which I got for Xmas in 2007.
    It has worked great (apart from the 4 sets of sennheiser and sony headphones ive been through), less errors than my old 4 gig had.
    But it has an error and I dont know how to fix it or why its happened so Im hoping someone can help.
    About a week ago I was transfering some mp3 files onto my ipod. I thought the transfer had gone smoothly, but when I unplugged my ipod and tried to listen to the songs in my recently added playlist, I was unable to select any most of the songs I had just added (and some I had added a week earlier). It wont let me select these songs either in the songs list or recently played list and skips to the next song. Then it wont let me skip back past that song!
    Also the ipod is no longer recognised by itunes. It simply doesnt pop up in the menu when I plug it in. Windows recognises an ipod has been plugged in, but when I try to explore the ipod it wont let me and tells me the device needs to be formatted.
    The exact error message when I try to access the ipod directly through vista reads:
    "You need to format the disk in drive E: before you can use it"
    The ipod is still usable and charges, but I cannot listen or skip back past the songs ive recently added, itunes wont recognise it and I cant add anymore songs because I cant access it through Itunes.
    I have tried:
    1. The manual reset by holding the centre and middle buttons down
    2. charging it completely
    3. trying different USB ports
    4. trying a different ipod cable.
    5. Uninstalling and reinstalling new itunes.
    Nothing Helps! Any suggestions? Im thinking Im going to have to do a format
    HEEEEEEEEEEEEELP MEEEEEEEEEEEEEEEE!
    Thanks,
    John

    You may need to change the drive letter of the ipod as describe [here|http://support.apple.com/kb/TS1493]
    If you can't see the ipod in disk management, before you connect the ipod, open itunes, select edit/preferences, with that open click on Show desktop. This will make itunes busy. Then connect the ipod.

  • I can no longer read DRM protected books

    I have had ADE and Sony Reader for PC for some years without any major problems. Recently I have been having some issues downloading a particular book - the acsm would not download the file. In trying to fix this I seem to have created a far worse problem. One of the fixes suggested was to ensure my computer was properly authorised - but I was unsure of my password on my Adobe account linked to my old email so not knowing what else to do I created a new account. Adobe have now rather unhelpfully removed the DRM from all my legitmately pruchased books. I have been wrestling with the earlier problems for over a week now and this latest hastle is the last straw.  My computer is Windows Vista and my ereader is Sony PR1, I thought this would need to be resolved by Adobe linking or merging my accounts but if anyone can help  I would be very grateful.

    This is the Reader forum. The Digital Editions one is here:
    http://forums.adobe.com/community/adobe_digital_editions

  • IPod Error Message: "The disk could not be read from or written to."

    Hello!
    I was syncing my sister's video iPod (30GB) and this error message pops up "Attempting to copy to the disk. "SARAH'S IPO" failed. The disk could not be read from or written to."
    I have restored it three times already, but once it starts putting the music and files back onto the iPod it pops up with that error message. I have updated to the latest version of iTunes and iPod software available. My OS is Windows XP.
    Is this something serious? Will I be able to fix it myself or will I need to send it in to be fixed by Apple? Will that be expensive? We didn’t get the Apple replacement plan. D=
    Any help would be greatly appreciated. Thank you in advance. ^_^
    PowerBook G4   Mac OS X (10.4.3)   15" PowerBook 1.5 GHz PowerPC G4, 1.5GB RAM - Windows XP with iPod 5 Generation

    Okay I went thru that entire list and here's what I got...
    (1) My OS is XP and is running fine.
    (2) I've updated my windows
    (3) I don't know of any software that might be interfering.
    (4) There are no damaged files.
    (5) My Windows hard-drive is not damaged and I've tried restoring my iPod's disk thru iTunes but it still doesn't work.
    (6) I don't have an iPod photo and I can't find the folder to delete the cache if if I did.
    (7) The USB cord is firmly connected into my USB port and my iPod
    (8) My music is on my external hard-drive so I need to keep 3rd-party hardware connected
    (9) I will try another USB cord to see if that works.
    Is there anything else that I can do? Can Apple fix this?
    Please let me know.

  • Iomega external hard drive either 'not found' by Time Machine or is now in 'read only' format

    I don't know what's going on with my iomega external hard drive.  Sometimes the HD is recognised by the computer; other times it isn't; if it isn't I can restore to an earlier back up via Time Machine app; but it's like the disk isn't writable.
    Ten days ago, I had trouble backing up my iMac using Time Machine.  After turning it off and restarting my external hard drive, it backed up successfully.
    However, today I am trying to back up my files, and TM tells me it can't find the external hard drive.  Nothing has changed -- I have been out of town this past week -- but somehow my HD now seems to be in 'read only' format.  It does turn on, and I could restore my computer to an earlier back up.
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    Annoyingly, despite my HD not showing in Finder or on my Desktop (as it usually does), when I simply turn it off I get that warning message "The disk was not ejected properly".
    Have tried verifying and repairing using Disk Utility, to no avail. 
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.  I'm guessing this would wipe the disk clean and I'd have to create the initial back up image all over again -- I'm reluctant to do this since this HD is my only back up and if it all goes tits up I'll be up that famous creek without a paddle.
    Thoughts, suggestions, input all welcome and deeply appreciated -- thank you!

    fzgy wrote:
    "Mac OS X can't repair the disk.  You can still open or copy files on the disk, but you can't save changes to files on the disk.  Back up the disk and reformat it as soon as you can."
    It's possible a heavy-duty 3rd-party disk repair app can fix it, but they're expensive (DiskWarrior is about $100), and there's no guarantee it can do it.
    Am prompted to reformat but I don't have a good understanding of what this means and how to do it.
    That will erase it.  See Time Machine - Frequently Asked Question #5.
    It sounds very much like the disk is beginning to fail, although it's possible there's a bad port, cable, connection or power supply (if it has its own).
    I'd suggest getting a new one, and using it for your Time Machine backups; once you have a good backup there, reformat the old one (and select Security Options to write zeros to the whole drive -- if that fails, you know the drive is toast).  Use it for secondary backups, per FAQ #27.   If it has failed, get a second new one for secondary backups. 

  • Fields for creation of BP in cProjects front-end are read-only

    Hi everyone,
    I'm a beginner in SAP-Development/Customizing so I hope this question isn't too easy
    I can't create a Business Partner using the cProjects front-end (Ressources > Staffing) because the necessary fields and buttons are read-only... (> web-Dynpro Component: DPR_ROL_STAFF; View-Info: VI_SEARCH_CREATE)
    I'm using CPRXRPM 450_700 patch 0006
    The field-control is standard-SAP (0SAP).
    My user-account has all cProject-roles + SAP-ALL
    I assume i can change the behaviour of these fields in the Field Control but I can't identify which is the corresponding Object Category to apply the changes.
    - Is there a documentation which field belongs to which Object Category in Field Control?
    - Or can somebody tell me a procedure to find it out on my own?
    Thanks in advance

    Hi,
    generally it is recommended to use transaction BP or ALE distribution to get the business partner be created.
    If you would like to create the BP in web UI directly, the user must have the Structural Authorization, see customizing path:
    Collaboration Projects -> Resource Management -> Organizational Management.
    It is very HR related topic, you may contact a HR consultant to know more details about it.
    Kind regard,
    Zhenbo

  • SPAU error reading log file

    Hi All,
    We have an R/3 4.0B landscape and are working on some changes.  I want to see if any SAP delivered objects have been modified in the past, but whenever I run SPAU or SPDD, I get an error message
    "Error Reading File D:\usr\sap\put\log\umodstat.log"  "Message Number 0U 503".
    I can read a text file in the same directory through AL11, so I'm reasonably sure it's not an OS permission problem.
    Any ideas?
    Thanks,
    Alan

    Hi All,
    I had same issue trying to edit sat.trc file, I fixed this problem by manual editing sat.trc file and modified the following line:
    <!FORMATTER[com.sap.tc.logging.perf.PerfFormatter]/>
    change to:
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    after changes you will able to open file with Visaul Admin Log Viewer or standalone logviewer.
    Hope it helps.
    Regards

  • Unable to Log-in *SAP System Message : Error while reading a Dynpro*

    Hi,
    We are facing issues while logging-in through SAP logon 710.
    The system throws an error dialog box with the below message:
    SAP System Message : Error while reading a Dynpro
    At the OS level Java process  server0 is in stop status with exit code -11113. In ABAP WP Table all processes are in wait status.

    Hi Please find the contents of std_server.out below.
    stdout/stderr redirect
    node name   : server0
    pid         : 4124
    system name : KEC
    system nr.  : 01
    started at  : Mon Jul 27 15:44:57 2009
    [Thr 5656] MtxInit: -2 0 0
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue
    CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode
    CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode
    CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto
    SAP J2EE Engine Version 7.00   PatchLevel 110760.44 is starting...
    Loading: LogManager ... 250 ms.
    Loading: PoolManager ... 0 ms.
    Loading: ApplicationThreadManager ... 47 ms.
    Loading: ThreadManager ... 16 ms.
    Loading: IpVerificationManager ... 0 ms.
    Loading: ClassLoaderManager ... 16 ms.
    Loading: ClusterManager ... 93 ms.
    Loading: LockingManager ... 32 ms.
    Loading: ConfigurationManager ... 1032 ms.
    Loading: LicensingManager ... 0 ms.
    Loading: CacheManager ... 93 ms.
    Loading: ServiceManager ...
    Loading services.:
      Service runtimeinfo started. (16 ms).
      Service cross started. (31 ms).
      Service file started. (31 ms).
      Service memory started. (31 ms).
      Service timeout started. (16 ms).
      Service trex.service started. (32 ms).
      Service userstore started. (0 ms).
      Service jmx_notification started. (15 ms).
      Service p4 started. (62 ms).
      Service classpath_resolver started. (16 ms).
      Service deploy started. (3722 ms).
      Service MigrationService started. (31 ms).
      Service bimmrdeployer started. (0 ms).
      Service log_configurator started. (5177 ms).
      Service locking started. (0 ms).
      Service http started. (126 ms).
      Service naming started. (157 ms).
      Service failover started. (16 ms).
      Service appclient started. (31 ms).
      Service javamail started. (47 ms).
      Service ts started. (47 ms).
      Service jmsconnector started. (47 ms).
      Service licensing started. (15 ms).
      Service connector started. (93 ms).
      Service iiop started. (94 ms).
      Service configuration started. (16 ms).
      Service webservices started. (265 ms).
      Service dbpool started. (1204 ms).
      Service UT started. (0 ms).
    Jul 27, 2009 3:45:09 PM         com.sap.security.core.persistence [SAPEngine_System_Thread[impl:5]_54] Fatal: Initialization of ABAP data source (com.sap.security.core.persistence.datasource.imp.R3Persistence) failed: "     Error while reading a dynpro                                        ". This message is critical if it appears during the startup of the AS Java.
    Jul 27, 2009 3:45:09 PM  ...re.server.ume.service.UMEServiceFrame [SAPEngine_System_Thread[impl:5]_54] Fatal:
      service com.sap.security.core.ume.service ================= ERROR =================
    Core service com.sap.security.core.ume.service failed. J2EE Engine cannot be started.
    com.sap.engine.frame.ServiceException: Start of UME service failed. Check help topic "Start of UME Service Failed". Technical details:      Error while reading a dynpro                                       
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:398)
         at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)
    Caused by: com.sap.security.core.persistence.datasource.PersistenceException:      Error while reading a dynpro                                       
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.newPersistenceException(R3PersistenceBase.java:236)
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.init(R3PersistenceBase.java:491)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.<init>(PrincipalDatabagFactoryInstance.java:446)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.newInstance(PrincipalDatabagFactory.java:164)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:117)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:63)
         at com.sap.security.core.InternalUMFactory.initializeUME(InternalUMFactory.java:221)
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:287)
         ... 6 more
    com.sap.engine.frame.ServiceException: Start of UME service failed. Check help topic "Start of UME Service Failed". Technical details:      Error while reading a dynpro                                       
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:398)
         at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
         at com.sap.engine.core.service630.container.ServiceRunner.startApplicationServiceFrame(ServiceRunner.java:214)
         at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:144)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:81)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:152)
    Caused by: com.sap.security.core.persistence.datasource.PersistenceException:      Error while reading a dynpro                                       
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.newPersistenceException(R3PersistenceBase.java:236)
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.init(R3PersistenceBase.java:491)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.<init>(PrincipalDatabagFactoryInstance.java:446)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.newInstance(PrincipalDatabagFactory.java:164)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:117)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:63)
         at com.sap.security.core.InternalUMFactory.initializeUME(InternalUMFactory.java:221)
         at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:287)
         ... 6 more
    [Framework -> criticalShutdown] Core service com.sap.security.core.ume.service failed. J2EE Engine cannot be started.
    Jul 27, 2009 3:45:09 PM             com.sap.engine.core.Framework [SAPEngine_System_Thread[impl:5]_54] Fatal: Critical shutdown was invoked. Reason is: Core service com.sap.security.core.ume.service failed. J2EE Engine cannot be started.

  • Sy-tabix in relation to LOOP AT and READ TABLE

    Hi All,
    As per SAP documentation,
    1) While looping through an internal table (LOOP AT), sy-tabix contains the index number of current row(for standard and sorted tables)
    2)When successfully reading from an internal table(READ TABLE), sy-tabix is set to the index of the result row.
    But what happens when READ TABLE is used while looping through another internal table?
    i.e. Loop at TAB1...
    write sy-tabix.
    READ TABLE TAB2...
    write sy-tabix.
    endloop.
    If we are looping through 1st row of TAB1 and the result of read statement is found in 3rd row of TAB2, I expected that sy-tabix before READ would be 1 and after the READ be 3.
    But, I found that sy-tabix remains unchanged at 1. Can someone expalin why?
    Thanks,
    Jagan

    Hi
    If after reading the table TAB2 the system variable SY-TABIX has still the previous value, that menas the READ TABLE fails or it was read the first record of TAB2.
    After READ TABLE TAB2 try to check the SY-SUBRC:
    LOOP AT TAB1.
       WRITE: / 'TAB1 index:', SY-TABIX.
       READ TABLE TAB2 .........
       IF SY-SUBRC = 0.
         WRITE: 'TAB2 index:', SY-TABIX.
    Try this:
    DATA: BEGIN OF ITAB OCCURS 0,
            FIELD1,
          END   OF ITAB.
    DATA: BEGIN OF ITAB2 OCCURS 0,
            FIELD1,
          END   OF ITAB2.
    DATA: INDEX TYPE I.
    DO 10 TIMES.
      APPEND ITAB.
    ENDDO.
    DO 10 TIMES.
      APPEND ITAB2.
    ENDDO.
    LOOP AT ITAB.
      WRITE: / 'ITAB:', SY-TABIX.
      INDEX = SY-TABIX + 2.
      READ TABLE ITAB2 INDEX INDEX.
      IF SY-SUBRC = 0.
        WRITE:  'ITAB2:', SY-TABIX.
      ENDIF.
    ENDLOOP.
    Max

  • Due to my laptop screen failing i have to return to facory settings, can i reinstall adobe reader and adobe air afterwards?

    Due to my laptop screen failing I have to return it to factory settings, can I reinstall adobe reader and air afterwards?

    I don't see why not. Do you foresee a special difficulty?

  • Installed adobe but password won't work to read on tablet

    Installed reader and adobe on new tablet, but adobe password will not work to let me read. I reset
    Password but that doesn't help

    A password protected PDF?  How did you reset it?
    What's the operating system on that tablet?

Maybe you are looking for