Can I verify a field-symbol using its component name?

Hello experts,
I am looping at my field-symbol and I need to know what are its component name.
I need to create an IF or CASE statement checking whether the field-symbol's
component name is equal to that of the value that I declared. I want to do
something like this:
LOOP AT <fs_dyntable> ASSIGNING <wa_dyntable>.
ASSIGN COMPONENT sy-index OF STRUCTURE <wa_dyntable>
        TO <component>.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
if component name = '2000'.
    condition...
  elseif component name = '1999'.
    condition...
  elseif component name = '1998'.
    condition...
  endif.
endloop.
Again, thank you guys and take care!

Hi,
I am not clear on your doubt , but you can use field-symbol fields like below:
* if <component>-fld1 = '2000'.
condition...
elseif <component>-fld1 = '1999'.
condition...
elseif <component>-fld1 = '1998'.
condition...
endif.
endloop.
LOOP AT x_table ASSIGNING <wa_table>.
IF <wa_table>-fld1 EQ 100.
-----your code
ENDIF.
ENDLOOP.
Regards
Appana

Similar Messages

  • How can I find my lost IPod using its serial number?

    How can I find my lost iPod using its serial number?

    As I said, and Varjak said, if it is setup in iCloud, login to iCloud from your comptuier or other device, click on Find My and find the entry for the iPod, and if it is turned on and connected to the internet it will show up.

  • How can I save a page and all its component parts in a single file, like IE does as an MHT - it's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)

    how can I save a page and all its component parts in a single file, like IE does as an MHT?
    It's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)
    It is simply too painful to have to zip everything up into a single file to send. MHT format has been available for years now from IE, and with every new FF release it's the first thing I look for. I have been using FF for years, and hate having to come out of it, over into IE |(which I even took out of startup) and key everything in again, in order to send somebody something in a convenient format that they can open with a single click.
    I can't believe this hasn't been asked before, so have you looked at it and rejected it? Have MS kept the file format secret?
    Thanks
    MG

    This is not really an answer just my comments on your question.
    I am sure I recollect efforts being made to get mhtml to work with FF.
    Probably the important thing to remember about .mhtml is that if other browsers do support it they may need addons, and may not necessarily render the content correctly/consistently.
    There are FF addons designed for archiving webpages, you could try them, but that then assumes the recipient has the same software.
    You could simply save the page from FF to your XP pc; then offline open it with and save it using IE, before then emailing using FF, and attaching the .mht or mhtml file that you have now created on your PC.
    As an alternative method, in some cases it could be worth considering taking a screen grab of the required page, then sending that to the recipient as a single email attatchment using either a bitmap or jpeg file format for instance.
    Something such as an airline booking may be designed with a print option, possibly it could be worthwile looking at sending the print file itself as an email attachment.

  • How to call a stored procedure using its package name in Oracle

    hi
    we're doing a JDBC scenario where we call a stored procedure(a.prc) using its package name(b)The stored procedure has In /Out/IN-OUT parameter.
    i have got 2 queries:
    1- How to call the stored procedure using it's package.
    2- How to capture the In/Out parameter in the response.

    hi Prateek
    thanks for the reply.
    However when i tried mapping it to Package.procedure, communication channel throws the error saying that Package.proceudre needs to be declared.
    As i said , the procedure has IN-OUT parameter too.In oracle we need to write a block if we want to read the IN-OUT parameter.
    How to get the IN-OUT parameter in XI?

  • Field symbols and its practical usages

    I read about the field symbol but cannot think about the practical examples of how, where and when should I use it? any one have suggestions and recommendations? thanks!

    Please check th following standard programs which will help you understand the scenarios in which you can use field symbols
    DEMO_FIELD_SYMBOLS_TYPE
    DEMO_FIELD_SYMBOLS_STRUCTURE
    DEMO_FIELD_SYMBOLS_STAT_ASSIGN
      DEMO_FIELD_SYMBOLS_STAT_AS_OFF
    DEMO_FIELD_SYMBOLS_STAT_AS_OF2
    DEMO_FIELD_SYMBOLS_DYNAMI_AS_1
    DEMO_FIELD_SYMBOLS_DYNAMI_AS_2
    DEMO_FIELD_SYMBOLS_DYNAMI_AS_3
    DEMO_FIELD_SYMBOLS_ASSIGN_COMP
    DEMO_FIELD_SYMBOLS_CASTING
    DEMO_FIELD_SYMBOLS_CASTING_TYP
    DEMO_FIELD_SYMBOLS_ASSIGN_TYPE
    DEMO_FIELD_SYMBOLS_ASSIGN_DECI
    DEMO_FIELD_SYMBOLS_ASSIGN_ERR
    DEMO_FIELD_SYMBOLS_ASSIGN_ERR
    DEMO_DATA_REFERENCE
    All the best,
    Murthy.

  • Can I change which fields are used to print envelopes from contacts in OSx Mountain Lion

    I would like to alter the way a contact appears on an envelope I print from contacts.  For example: if my contact is "Bob Abbott" how can I have the envelope print addressed to "The Abbott Family".  Thanks

    I used the Department field in my Address Book for the "The Abbott Family" and "Mr. & Mrs. John Jones" variations. I chose Department from the available fields, since it was unused by me. Then I used the Department field instead of the First Name, Last Name, etc. fields in the merge.

  • Can't edit DOC field data if its over 250 characters.

    Hi All,
    If am IDOC field length is more than 250 characters, SAP is not allowing to change the data(example basic type: ACC_DOCUMENT01, segment: E1BPACEXTC, field: FIELD1). Its throwing an error on saying field lenght is more than 250 characters. Now I need to write a custom program to modify those fields in the Idoc. Can any body help with function module I need to call to modify the fields in idoc.
    Regards,
    Venkat.

    Forgive me, this is not practical advice.
    I installed Numbers 3. From the Mac App Store, there being no other way. As is its practice, MAS, wipes out every trace of previous versions of the software it replaces. Numbers 2.3 simply does not exist on my machine.
    Yes, I have Time Machine backups. Have you tried drag-installing iWorks applications? They will not run. They rely on system-level frameworks that I am not confident I can dig out of Time Machine.
    No, I do not have my original distribution media for iWorks. I bought iWorks nearly six years ago, when computers still had optical drives. It happens I have a couple of 3.5" floppies from the first developer-tools releases in 1984, but those are relics. I don't have the DVD (or CD?).
    If I did have the DVD, it would not contain version 2.3. 2.3 came from an Apple update I downloaded from the support site five years ago. I challenge you to give me a live URL for that updater.
    P.S. Perhaps I am oversensitive, but I think the implication is gratuitous, that only a fancy-pants rocket scientist would want to import a spreadsheet that contains 100 lines of dates, text, and numbers in 17 columns.
    When one double-clicks an .xlsx file, Numbers opens it. Import of Excel files is not an advanced future direction. It is an intended function of the application today. Numbers responds to double-clicking .xlsx files today. If it were not an intended function, it would not attempt to open the file; or at least it would post some kind of alert that the operation is not yet implemented.

  • Can you track a lost ipod using its serial number?

    my ipod went missing, and i dont think find my ipod is much help to find it, so i was wondering if it was possible to find it or track it using its serial number.

    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How can i find  out field for a particular component type

    hi,
    how can i find out for particular component name is belongs to this field.....that means REF_DOC_NO componemt is belongs to xblnr field ..../.if we know only component type ...how to find the field...
    plz tell me
    thanks&regards,
    kalyan

    keep the cursor on component
    press F1
    select technical information
    you will find the field name and table or structure name
    regards
    sateesh

  • HT5824 why does my ipad say user name disabled, but on all other devices i can pog into itunes and icloud using my user name

    why does my ipad say user name disabled but i can use my user name to log into itunes and icloud on other devices

    At this time there is no "solution." You'll simply have to wait the 90 days to re-enable iTunes Match.
    For now here is my suggestion. In your User Account, in OS X, sign out of whatever iTunes Store account you are signed in with. Then sign in with your store account and leave it at that. Now sign out of your OS X User Account, sign into your wife's OS X User Account and sign into the iTunes Store with her Apple ID (if necessary sign out of the account first).
    Now, you can go back to your OS X User Account and attempt to enable iTunes Match. You will probably get the "wait 90 days" message. If so leave it, mark your calendar, and wait for the 90 days to expire. You can try contacting iTunes Store support at <https://expresslane.apple.com> if you wish, but I really do not know how useful that will be.
    Incidentally, you get the message to pay for the service when trying to enable it on your wife's Apple ID because the service has not been purchased using that Apple ID. iTunes Match is designed to be a single-user service that is never signed out of and is associated with one, and only one, Apple ID and a regional store.

  • How can I verified my appleID without using a credit card ?

    Hi ! I registered to an AppleID. Now, I need to verified my account, but I do not want to verified it with a credit card. How can I proceed to solve this problem ? (Without a verified account, I can't use any services provided by iTunes Store...)

    Hello,
    Does this link help:
    http://support.apple.com/kb/HT2534
    Basically it explains that if you create a new Apple ID you can select 'None' for Payment Options.
    If you already have a Apple ID there is another link in the page above which explains how you can do it.
    Hope this helps.
    Paul

  • Can't verify Apple ID to use with Find My iPhone

    Has anyone else experienced this problem? I've been trying to activate the Find My iPhone on my phone (following instructions from here: http://www.apple.com/iphone/find-my-iphone-setup/). But my iPhone keeps popping up a box saying:
    Verify Your Account
    This Apple ID's email address cannot be verified. Change your Apple ID's email address at appleid.apple.com to sign in to MobileMe.
    I then logged onto appleid.apple.com and tried to verify the email and it too said it can't. It's my personal email address that I use to log into iTunes and other stuff. Why would it not be able to verify it? It's a Gmail account and it's typed correctly.
    I posted this question on Apple's forum and got no replies. Thanks.

    I had this exact same problem with my daughter iPod touch and I knew I was doing everything correctly because I had already done 2 iPhones and 2 other iPod touches the same evening.  After trying for about 3 hours and just getting frustrated I decided to take it to Apple the following morning.  What I found out is when i did the last update it missed adding a couple of "packets" so all that had to be done was a complete reset (on iTunes) which completely wiped out everything she had on it and then I just did a sync to put it all back on.  Only tok a couple of minutes and everything was perfect after that.  It sounds like the same thing happened to you.  Oh by the way Apple said that I may have just lost internet connection for a brief second and that is what probably caused it. 

  • After resetting my password my FaceTime and I cloud can not verify email already in use how do I fix this

    After resetting my password FaceTime and I cloud cannot verify email how do I fix this

    Try here...
    The Backup disk image ... sparsebundle ... is already in use.
    From Pondini’s excellent Information Here...
    http://pondini.org/TM/Troubleshooting.htm

  • Can limit loop on FIELD-SYMBOLS list ?

    i have loop ....
      LOOP AT <GT_TABLE> ASSIGNING <DYN_TABLE1> .
    i want to do
    LOOP AT <GT_TABLE> ASSIGNING <DYN_TABLE1> where
    but i get message that the 'LOOP .. WHERE'
    Have to be statically define

    hi Dakota,
    the WHERE won't work here. The reason is the actual structure of <DY_TABLE1> only determined at runtime.
    The workaround is that when you are in the LOOP already, you have to ASSIGN fields of the dynamic structure (ASSIGN COMPONENT ...) than you can decide if you need that record or not, if not than CONTINUE...
    hope this helps
    ec

  • How can I verify alternative thread library use?

    Hello all,
    If anyone could help me with finding a method for verifying that the Solaris alternative threading model (LD_LIBRARY_PATH=/usr/lib/lwp) is being used successfully by a virtual machine it would be much appreciated.
    I am using Solaris 8, JDK 1.3.1_03.
    Thanks in advance,
    Nathaniel

    Run the JVM with the utility truss to see the system calls. That might help.
    User Commands truss(1)
    NAME
    truss - trace system calls and signals

Maybe you are looking for

  • Adding code-coloring to file with nonstandard extension

    I have PHP files that end in .ctp, which are basically HTML templates with PHP mixed in (as part of the Cake PHP framework). I'd like them to be parsed for code coloring the same way that the PHP files are, but the text is all black. Is there a way t

  • Why my DBMS_OUTPUT utility doesn't work

    This is the first time I use DBMS_OUTPUT utility in AIX. I did not get anything printed on my screen. Do I miss anything before I use it? Please help!!

  • CRM Survey - Radiobutton check?!

    Hello guys, I have survey with 40 question - each question has a group of radio buttons with 5 options! no option is pre-select!!!! how can I check, if all questions answered before you can submit the form?? Please help!

  • My Canon PIXMA MG2440 USB is not being recognised and I can not print anything..?

    I cannot use my printer as the USB is saying its not recognised. I never needed a driver for this printer before and it used to work fine.  I have no idea how to get my printer to work as I cant connect it to my laptop?

  • HT5557 How do I completely delete a book?

    How do I completely delete a book? I delete 'this copy' but it still shows up on my shelf.  I want it off my shelf and off my cloud - make it go away!