Regarding key word "Table_line"

Hi abapers,
I came across a key word "TABLE_LINE".
I am able to understand that it is a pseudo component but unable to understand anything more about it.
Can u people explain me about its use with a sample code.
Also I came across standard, sorted and hashed table and their syntax. i saw keywords such as "ANY TABLE" and "INDEX TABLE". please give a code snippet about their usage and importance also their purpose.

Hi Lucky,
TABLE_LINE:
In internal tables, you can generally address the entire table row in a key specification by using the pseudo component TABLE_LINE. This is particularly useful for tables whose line type does not have a structure.
You can, for example, define a
sorted table of integers as follows and process it in a loop with a WHERE condition:
DATA: wa   TYPE i,
      itab TYPE SORTED TABLE OF i WITH UNIQUE KEY TABLE_LINE.
LOOP AT itab INTO wa WHERE KEY table_line > 5.
ENDLOOP.
As TABLE_LINE is similar to a row component, the underlying row structure should not contain a component of the same name.
The old form TABLE LINE (without the underscore) is obsolete. SAP was unable to provide continued support since this form does not allow you to use references in tables to access attributes of the object referenced.
In ABAP Objects, that is, classes and class pools, a stricter syntax check is performed.
In the following example, ITAB is a table of object references. The associated class has an attribute NAME. You can access this attribute by specifying TABLE_LINE->NAME in a LOOP statement.
CLASS my_class DEFINITION.
  PUBLIC SECTION.
  DATA: name TYPE string.
ENDCLASS.
DATA: wa   TYPE REF TO my_class,
      itab TYPE TABLE OF REF TO my_class.
CREATE OBJECT wa. wa->name = 'Hugo'.  INSERT wa INTO TABLE itab.
CREATE OBJECT wa. wa->name = 'Nora'.  INSERT wa INTO TABLE itab.
CREATE OBJECT wa. wa->name = 'Jimmy'. INSERT wa INTO TABLE itab.
CREATE OBJECT wa. wa->name = 'Nora'.  INSERT wa INTO TABLE itab.
LOOP AT itab INTO wa WHERE table_line->name = 'Nora'.
ENDLOOP.
For the remaining things check the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
Hope this helps you.
Regards,
Chandra Sekhar

Similar Messages

  • What is use of LOAD key word in ABAP-HR

    what is use of LOAD key word in ABAP-HR?

    Hi,
    LOAD keyword is used to load all the parameter values.
    Basic form
    LOAD REPORT prog PART part INTO itab.
    Variants
    1. LOAD REPORT prog PART 'HEAD' INTO itab.
    2. LOAD REPORT prog PART 'TRIG' INTO itab.
    3. LOAD REPORT prog PART 'CONT' INTO itab.
    4. LOAD REPORT prog PART 'DATA' INTO itab.
    5. LOAD REPORT prog PART 'DDNM' INTO itab.
    6. LOAD REPORT prog PART 'DATV' INTO itab.
    7. LOAD REPORT prog PART 'SELC' INTO itab.
    8. LOAD REPORT prog PART 'STOR' INTO itab.
    9. LOAD REPORT prog PART 'LITL' INTO itab.
    10. LOAD REPORT prog PART 'SYMB' INTO itab.
    11. LOAD REPORT prog PART 'LREF' INTO itab.
    12. LOAD REPORT prog PART 'SSCR' INTO itab.
    13. LOAD REPORT prog PART 'BASE' INTO itab.
    14. LOAD REPORT prog PART 'INIT' INTO itab.
    15. LOAD REPORT prog PART 'DATP' INTO itab.
    16. LOAD REPORT prog PART 'TXID' INTO itab.
    17. LOAD REPORT prog PART 'COMP' INTO itab.
    Effect
    Loads the specified part of the generated version of the program prog into the internal table itab (for analysis purposes only).
    The return code value is set as follows:
    SY-SUBRC = 0 The load for the program prog exists and is current.
    SY_SUBRC = 4 The load for the program prog does not exist.
    SY-SUBRC = 8 The load for the program prog exists, but is not current. In some cases, this SY-SUBRC may mean that the program load has been destroyed. You can resolve this by generating the program. With PART 'LREF' , SY-SUBRC = 8 means that the line reference table is incorrect for the program. With PART 'CONT' , it means that the reference part of the internal table is empty.
    itab has been filled only if SY-SUBRC = 0 .
    Reward points if useful.
    Regards,
    Sekhar

  • Help on web.xml file, what if the parameters contains key words ?

    Hi:
    I am just wondering what should I do if I want to include key words suchs
    as <param> in web.xml file for a servlet config.
    Example:
    <servlet>
    <servlet-name>testServlet</servlet-name>
    <parameter>
    <param-name>some name</param-name>
    <param-value>some value</param-value>
    </parameter>
    </servlet>
    What should I do if I want to repleace 'some value' with '</param-value>some
    value' and still to prevent the engine to terminate parsing the param-value
    at the fake ending? Is there a standard way in XML to distanguish that?
    (in URL format it can be replaced %xx for some chars).
    ie,
    <param-value> </param-value>some value</param-value>
    where the second </param-value> is the real ending.
    Thank you!
    Gang

    Hi!
    You can use "& lt ;" and "& gt ;" xml entities for that. Or wrap text element in <![CDATA[...]]> section.
    Regards,
    Ignat.

  • What are all the key words are not recommented in User Exit or Enhancement

    Dear Experts,
    Can any of one tell me, what are all the key words not recommended to use any of the User exit or Enhancement spots?
    Regards,
    Mohana
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 22, 2011 4:10 PM

    No Icon:Visitor
    Student
    Honor Student
    Top Student
    Tutor
    Intern
    Teacher
    Grad Student
    Master’s Graduate
    PhD Student
    Associate Professor
    Professor
    Distinguished Professor
    Regents Professor
    Associate Dean
    Dean
    Provost
    FONDA X. COX, PhD

  • Creating Java's editor with key words bolding!

    I would like to create one of mine Java's Editor. I wish for key word to be bold during the input.
    How can I make this option able? Shell I use JTextPane or JEditorPane and what difference does it make?

    Read this topic
    http://forum.java.sun.com/thread.jsp?forum=57&thread=246206
    best regards
    Stas

  • ABAP key word documentation  not appearing

    Hi every one
    when i press F1 on a keyword in ABAP editor it displaying ABAP keyword documentation with blank page.
    i am using vista OS and SAPGUI 6.0 and Internet explorer 7.0
    Please suggest me what to do to get the Key word help.
    Most useful answer will be awarded
    Thank you
    Kiran

    Check transaction ABAPDOCU. This shouldn't be dependent on which version of SAPGUI you have (assuming your sap rel is 4.6 or greater).
    Also look in table tstct for transaction abapdocu.
    If it doesn't exist then you need to re-install it. Should be part of standard SAP however.
    VISTA is irelevant in this regard - however you might need to access the SAP help files via a browser and a manual link as the automatic link doesn't work properly under VISTA unless SAPGUI 7.0 is installed -- as the previous poster has said.
    For the SAP library you can always use a manual link to the sap help data files but of course it won't work via F1.
    Cheers
    jimbo

  • What is the use of Volatile Key word ??

    what is the use of Volatile Key word ??
    There is a primitive variable
    volatile int b = 10; // this is a master copy
    Locally thread A changes this int b as 5.
    Locally thread B changes this int b as 20.
    thread c want to use this int b.
    now what c will get??
    If didn't use volatile what will happen.
    Regards
    Dhinesh

    Deenu wrote:
    what is the use of Volatile Key word ??Why don't you ever reply to any of your threads? You never thank anyone for helping you, and this makes you one of the worst trolls out there.

  • Use of "super" key word in abap oops...

    Hi,
      Can any one explain me what is the use of ' super ' key word in abap oops. excluding super class.
    With Regards,
    M.S.Amirtharaj Vijay.

    Vijay,
    please read the sap documentation or f1 help
    Thanks
    Bala Duvvuri

  • Hyperlink malware in web browsers' key words

    Hi! I was just wondering if anyone has an idea on how to remove malware links in key words in a web browser (ex. IE11 or chrome)?
    Everytime I open a web page, keywords are highlighted with a link to a product or website that is unrelated to the one I am in. For instance I went to technet.microsoft.com and in the search bar when I search for a subject a separate pop up or Tab is displayed. 
    Very annoying and dangerous.
    Your help is appreciated.
    alfredo.

    Your computer is infected with Spyware / Malware.
    Install a free malware removal tool, I recommend
    Spybot S&D
    Install CCleaner
    Run spybot first and remove all the malware
    run ccleaner next to clean up your temporary files and unnecessary junk
    run the registry cleaner tool in ccleaner to fix any broken registry entries
    Make sure when you run these setups (any ANY setups in the future) to read the pages before clicking next! Sometimes programs contain 3rd party applications bundled with them that are not necessary and end up cluttering your system, or even worse, turning
    out to be malware!
    Good luck! Let me know if this fixes the issue!
    Hi,
    do NOT install Spybot S&D... it is not suitable for modern versions of IE and slows down the web browser considerably.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions.
    If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com
    Rob^_^

  • How do I do to import my key words to all my photos from photoshop elements 10 organizer to  to bridge ?

    How do I do to import my key words to all my photos from photoshop elements 10 organizer to  to bridge ?
    I have downloaded photoshop CC and Bridge to test it but can not find out how to get my key words I have to all my photos, in to bridge.
    Or it can not be done ?

    Good day!
    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements
    and Bridge related one at
    Bridge General Discussion
    Regards,
    Pfaffenbichler

  • Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Is it possible to add and view your key words when creating a web site from Lightroom 4?

    Hi,
    I had the same problem with
    "java.lang.NullPointerException at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.ViewContainerUIElementAdapter.getContent(ViewContainerUIElementAdapter.java:98)"
    when I included ViewUsages dynamically in an action handler (outside wdDoInit()).
    The code below fixed that problem.
    This code creates a new OutboundPlug for the embedding view with the embedded view as target and fires the plug.
    <i>// Create OutboundPlug
    IWDOutboundPlugInfo outboundPlug = embedderViewInfo.createOutboundPlug();
    //Create navigation link
    rootViewUsage.createNavigationTarget(outboundPlug.getName(), interfaceViewUsage, "Default");
    // fire navigation link
    wdThis.wdGetAPI().firePlug(outboundPlug, Collections.EMPTY_MAP);
    </i>
    I hope I could help you. Probably you don't need the information anymore, but perhaps anybody else has the same problem.
    Regards, Alex

  • Reporting on Key Words Assigned to Objects

    Does anyone know how I can report on keywords assigned to IMG objects on the configuration tab?  I cannot find anywhere in SOLAR_EVAL to report on this informaiton.  We assign team names to the objects and I would like to report on object status by key word.

    Hi Matt,
    As far as I know, the functionality for displaying keywords for other objects than documents and and keywords assigned
    to the administration tab is not availble yet.
    Additionaly, this information is  stored in table SABOATTRVALUES, maybe this helps you.
    Kind regards,
    Fabricius

  • Favorites & key word markers

    Hi,
    I just tried to mark a few clips in the Browser as favorites & key words but I don't get the green & blue lines respectively at the top of the clip although the clips are saved as favorites & key words when I hide the others.  Also, as I am doing quite a few Ken Burns clips I would like to know if these red /blue lines should also show in stills clips.
    regards
    HH

    at the key word windows was in the past right of the key word the number of pictures showing which belongs to that key word.
    Walter,
    I noticed that too. Sometime the Keywords HUD will open with the right column with the numbers of imahes missing. Then it helps to enlarge the HUD by dragging one of the corners. Have you tried that? That will usually bring the numbers back, at least in Aperture 3.6 in Yosemite.  Which Aperture version are you using?
    Is the reason maybe that the key word "daughter" is under the path "myself" in the hierarchy ?
    If you have hierarchical keywords, any keyword will implicitly have the the parent keywords implied.
    For example if you have a keyword "Buildings", and below "Buildings "Bridges" and "Lighthouse",  any search for "buildings" will also produce all "bridges" and "Lighthouses".
    In your example, "Myself" and daughter" it might be better to create a keyword "Family members" and move "Daughter and "Myself" below family member. This way, your daughter will not be labelled "Myself", but both will be found, when you search for "family member".
    Leonie

  • Error when activating the copied data elem.:Medium key word in language DE

    Hello,
    I have copied data element dats and created a z data element for myself and added the text description.
    Am getting following error.Please guide me for the same-
      Check data element ZDATS1 (C04EAPHALES/15.01.10/16:37)
      Medium key word in language DE: length 18 > maximum length 10
      Data element ZDATS1 is inconsistent
    Please help me resolve the issue.
    Thanks.
    Edited by: sanjivrd on Jan 15, 2010 12:21 PM

    Hi,
    It won't take from domain it always takes from data element... data element only stores the semantic information... Try to change the domain description to someother and then activate both domain and dataelement...and also table and then see...It will take from data element only.
    Regards,
    Nagaraj

  • CRES encrypted mails even without the 'key' word

    Hi
    We have CRES enabled, and it does send out encrypted mails when we type in our "key" word in the subject or body.
    The issue is at times, when the selected user sends non-encrypted mails, the subject and the body of the email does not contain
    any of the "key" words, it even then encrypts the mail and sends it accross.
    We have observed this for a couple of users, so we removed these users from the Allowed list of users, who can encrypt their email,
    and re-inserted these users to encrypt, the mail, it works fine for them now.
    But now again another set of users are complaining of the mails being sent out as encrypted, thought they are not having any
    "key" words that are needed to send out the mail as encrypted.
    Any one faced this kind of issue or any work around for this, kindly advise.
    Regards,
    Tauseef

    Hi Tauseef,
    I would recommend you to use the Message Tracking so you can understand the message flow. The message is probably triggering the Encryption action.
    You could also use the Trace feature at:
    System Administration -> Trace
    So you can simulate a message and how the Cisco ESA will handle the message.
    If you are not confortable sharing the config (policies/filters) and the tracking in the forum, I would suggest you to open a TAC ticket so an Engineer can assist you identifying what is causing the message to be encrypted.
    I would say your Cisco ESA will not encrypt the message without a clear command to do so. The only question remaining is what is causing the action to encrypt to be triggered. I believe you know, but action can be triggered in a message filter, in a content filter and in a DLP policy. There is another option, using the Plug-in for encryptign the message locally but since you did not mention this, I am guessing this is out f the list. I would recommend reviewing the configuration and the message tracking data. That way you can determine what is causing the messages to be encryted.
    If you need further assistance from the forum, please share more data.
    I hope this helps.
    -Valter

Maybe you are looking for

  • Vixia HF10 no longer recognized by iMac

    I've had my Canon HF10 for about a year now and I used to be able to connect it via usb and iMovie would automatically open and I could import my HD movies. I haven't touched the HF10 since at least Thanksgiving '08 and decided to load the movies int

  • Sound lag using battery mode

    i've installed windows xp sp2 with boot camp 1.1 and when i play music files it lags like crazy when im on battery. ive tried window media player and winamp and same thing. this does not occur when im plugged in with the ac charger...any ideas how i

  • The "about:tabs" message always appears. The close button appears inactive so checking the "don't show this again" option doesn't work.

    I am running Firefox 3.6.13 under windows/xp. All of a sudden, when opening a new tab the "about:tabs" message comes up all the time. I checked the box labeled "do not show this message again" but the "close" box seems to be inactive. Pressing it has

  • Deactivate Auto-Print?

    Hi! - I have a PDF that I want to be able to read on-screen, but whenever I open it, it automatically shunts me to a print dialog box.  No matter what I do -- close the dialog box, print the document (part or all), immediately thereafter the document

  • Country not listed in iTunes

    I am living in Monaco and unable to sign up to iTunes as Monaco is not listed as a country. France does not work as I get an error when entering the credit card information as it is a Monaco card. Any suggestions? Cheers, Klaus