Display of constants

hello,
         i have to display the constants on entering the program name ,for that i have read the report into a table.i checked the line in the table using
loop at it_na INTO wa_na WHERE TABLE_LINE  CS  'CONSTANTS' .
           write : wa_na-text.
  ENDLOOP.
but the problem is that it displays only the first constant.
how to display all the constants declared within the declaration
eg:constants : a(10) type c value 'asdf',
                        b(25) type c value 'cvbn'.

Hi,
Try with SCAN statement.. But this is also internal use.. But this works very fine..
DATA: abap_source TYPE TABLE OF rssource.
DATA: l_token_analysis LIKE stokex   OCCURS 0  WITH HEADER LINE ,
      l_statements     LIKE sstmnt   OCCURS 0,
      l_keyword        LIKE rssource OCCURS 0  WITH HEADER LINE .
READ REPORT 'PROGNAME' INTO abap_source.
IF sy-subrc = 0.
  l_keyword = 'CONSTANTS'.
  APPEND l_keyword.
  SCAN ABAP-SOURCE abap_source
       TOKENS     INTO l_token_analysis
       STATEMENTS INTO l_statements
       KEYWORDS   FROM l_keyword
       WITH ANALYSIS
       WITHOUT TRMAC.
ENDIF.
Table l_token_analysis will have contents matching l_keyword. line by line
Table l_statements will have the start and end point and no of fields matced..
have a closer look on l_statements  and l_token_analysis.
Regards,
Ravi.

Similar Messages

  • Display some constant in the input field and allow the user to change it.

    Dear All,
    I have a requirement in WDA to display inputfield with some constant initially and allow
    the user to change that value according to his wish.Currently I am using UI Element
    InputField for this,but I am not able to show the constant initially.
    How can I achieve this pls suggest.
    Thanks,
    Reddy.

    Hi sudhir,
    To display with default values, you need to write your code in wddointi method.
    Check this code..
    * navigate from <CONTEXT> to <INPUT> via lead selection
      lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    * get element via lead selection
      lo_el_input = lo_nd_input->get_element( ).
      lv_ship_point = '1001'.
    * set single attribute
      lo_el_input->set_attribute(
        name  =  `SHIP_POINT`
        value = lv_ship_point ).  // Now ship_point have initial value 1001.
    Cheers,
    Kris.

  • How can I display a constant 1 hour of data in my VI

    I am currently designing a VI which reads data from a spreadsheet which is being updated from another source.
    I currently have my VI reading the information and displaying it on waveform charts.
    I have 13 sample points each of which has a chart of its own. I wish to plot the data and be able to review it whilst it is running which is not a problem as I have activated the scroll bar function within the chart.
    Now the task I wish to achieve next is to only have a certain amount of history data to review eg 1 hour of data.
    So if I have been running the VI for 8 hours there will still only be the previous 1 hours data to review.
    Can anybody help with how to achieve this? Has anybody else needed to do anything like this?
    Thanks in advance

    Hi n_,
    Would this not keep all of the data plotted stored in memory somewhere?
    That depends on how you created/control those buffers…
    I wish to use this to monitor a process constantly over years
    So you need to limit the history length of your charts or use your own buffers…
    (When it needs to run for "years" you should NOT use a Windows PC and you should stay away from any BuildArray function.)
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Why won't YouTube play my Apple TV?  It just displays a constant loading circle.

    I've seen this question asked before with no replies.  Does anyone know?  I have subscriptions that play fine on my iMac, iPad, iPad Air and iPhone, but in the last couple of months I only get the loading circle on my AppleTV.
    Thanks.

    I don't know why, but restarting my Apple TV device worked for me…..General -> Settings -> Restart. 
    And now I remember it worked for me in the past too.  Makes no sense and I'll probably end up forgetting this petty kink in the future, but it's almost like if I don't use my Apple TV for a month or more I it seems to conveniently forgets my Youtube connections.
    Cathy

  • Mac mini display is flicking via HDMI to DVI adapter and DVI cable

    i have received mac mini server (mid 2011) recently. mac mini is connecting the display via HDMI port using DVI cable with a HDMI to DVI adapter.
    the display shows constant flicking. white dots/lines show randomly. it is like those signal noise when watching analog TV.
    the same display works fine and well with macbook pro (early 2008) via DVI port.
    please help. please advise.

    So you know the display is working.
    It seems to me you have a few possible problems.
    1 HDMI-DVI cable is bad
    2 DVI-cable is bad
    3 Connections between cables or computer or monitor are bad.
    4 HDMI port on the computer is bad.
    I assume you've tried #3, and re-connected cables and wiggled inputs.  So then try replacing 1 and then replacing 2 which are cheaper fixes than replacing/fixing 4.........
    FYI, I'm connect my mac mini using the same setup you describe, with no issues....also inspect the cable ends carefully to look for any problems.
    jb

  • Constants reading in abap report

    Hello All,
    i have developed a custom report which is having the feilds like pernr,workdate,time these all fields it is fetching from catsdb table adn displaying it in alv grid display,now my requirement is i need to display a consta called break time with the data 9 to10, how can i
    get that break time field along with the data in the same report in alv grid display fromat,this is very importnat to me,
    by Moderator:PL avoid using forbidden words
    & abide by forum rules.
    Edited by: Suresh Datti on Aug 31, 2009 12:53 PM

    types : begin of ity_type,
        COUNTER type CATSCOUNTE,
        PERNR     type PERNR_D,
       WORKDATE     type CATSDATE,
         GV_FIELD type i,
        end of ity_type.
    data : itab type standard table of ity_type,
              is type ity_type.
    fetch the values from table.
    and in a loop you can pass the value you want to the GV_FIELD as 9 or 10.

  • I'd like to display a particular jpg or gif on-screen

    I'd like to display a particular image (jpg,gif,whatever) on-screen based on the results of a series of calculations. What's the method for having LabVIEW call up an image? Anyone got any experience with this? Thank you for your help.
    -Dan

    On your Front Panel, put a picture indicator found in Controls Palette - Graph - Controls - Picture. If it comes up as a control, change it to an indicator. On your block diagram, wire the jpeg file's path to the Read JPEG File vi (found in Graphics & Sounds - Graphics Formats - Read JPEG File.vi). Wire the image data output to Draw Flattened Pixmap input (found in Graphics & Sounds - Picture Functions - Draw Flattened Pixmap.vi). Wire this output to the picture indicator.
    If you just want to display a constant picture on your Front Panel, just drag the picture file onto the Front Panel.
    - tbob
    Inventor of the WORM Global

  • Package constant in select statement

    In my Package has several consatnt values...
    CREATE OR REPLACE PACKAGE xoec IS
    EXPIRED_DESC CONSTANT VARCHAR2(20) := 'Expired';
    LIVE CONSTANT VARCHAR2(1) := 'L';
    LIVE_DESC CONSTANT VARCHAR2(20) := 'Live';
    CANCELLED CONSTANT VARCHAR2(1) := 'X';
    CANCELLED_DESC CONSTANT VARCHAR2(20) := 'Cancelled';
    END ;
    I want to display the constant in Select statement.
    select xoec.live from dual;
    The above statement through error.
    Please help to fix it.
    Regards
    Mani

    This is one of examples.
    CREATE OR REPLACE PACKAGE xoec IS
      EXPIRED_DESC CONSTANT VARCHAR2(20) := 'Expired';
      LIVE CONSTANT VARCHAR2(1) := 'L';
      LIVE_DESC CONSTANT VARCHAR2(20) := 'Live';
      CANCELLED CONSTANT VARCHAR2(1) := 'X';
      CANCELLED_DESC CONSTANT VARCHAR2(20) := 'Cancelled';
      function get(in_vc varchar2) return varchar2;
    END ;
    CREATE OR REPLACE
    PACKAGE BODY xoec IS
      function get(in_vc varchar2) return varchar2
      is
      begin
        if    upper(in_vc) = 'EXPIRED_DESC' then
           return EXPIRED_DESC;      
        elsif upper(in_vc) = 'LIVE' then
           return LIVE;
        elsif upper(in_vc) = 'LIVE_DESC' then
           return LIVE_DESC;
        elsif upper(in_vc) = 'CANCELLED' then
           return CANCELLED;
        elsif upper(in_vc) = 'CANCELLED_DESC' then
           return CANCELLED_DESC;
        else
           null; -- somthing error raising
        end if;
      end;
    END;
    SQL> select xoec.get('live') from dual;
    XOEC.GET('LIVE')
    L

  • How do I make Crystal report viewer navigation icons display

    Visual Studio 8 accessing Crystal Reports Server 11 r2 using development web server.
    Report renders just fine in viewer but none of the viewer icons seem to find their image - all appear as X. 
    Debugging shows the src for icons is "this.src='/crystalreportviewers11/images/toolbar/(gif name)" such as "this.src='/crystalreportviewers11/images/toolbar/export_over.gif'".   I have such a directory\file in c:\program files\common files\business objects\3.0\crystalreportviewers11\images\toolbar\export_over.gif .
    perhaps related or a different problem: I get java script error when trying to print or export the rendered report: "Microsoft JScript runtime error: Object doesn't support this action" pointing to line: print = false;crystal_postback="<input type='hidden' name='__EVENTTARGET' value='myCrystalReportViewer'><input type='hidden' name='__EVENTARGUMENT' value='export'><input type='hidden' name='__LASTFOCUS' value=''><input type='hidden' name='__VIEWSTATE' etc.
    I see that java src is in the same neighborhood as the missing images: "JavaScript" src="/crystalreportviewers11/js/export.js" and using same hierarchy as above, I find this java file.
    Regarding missing images, how do I make viewer see these?  Where do I copy the images or how do I point the viewer to where they are?
    alan

    Out of the frying pan and into the fire...   I offer the following for other novices like myself and hope that experts will correct any misconceptions.
    My Crystal viewer control still does not display icons or print and now behaves badly when trying to display a report.  I would appreciate any advice.  Details follow.
    We have a Crystal Reports Server XI r 2.  I obtained the installation disks from tech support to install client tools on my development workstation.  These disks installed version 11.0.3300 .  After some research I have come to believe the following:
    Crystal Reports XI r1 = 11.0 = Managed 3.0
    Crystal Reports XI r2 = 11.5 = Managed 3.5
    Crystal Reports 2008 = 12 = Managed 4.0
    So I actually installed release one client tools.  The disks I received were the only installation disks we have, but I believe the server was updated to release 2 via web.  I could not find anywhere on web where I could download the release 2 client tools nor could I find any executable on server installation of release 2 to install the client tools to the development workstation.
    However, I also hold a license to the full blown BOE server at XI r2 release  I installed the client tools from these disks to my development workstation.  This installed version 11.5.3300 .  Based on other messages, I believe I need to get to 11.5.3700, but I am lost as to how to get this version.  The differences in versions may be the sole cause of my remaining problems, but I doubt it.
    To make sure I had no conflicts on development workstation, I removed all vestiges of Visual Studio and Crystal and then reinstalled VS2008, then Crystal designer, then Crystal Server client tools.  I also installed all service packs for these.  Tech Support tells me Crystal Reports Server has all service packs installed.  I noticed that the release one toolset installation created needed .dll's in both a program files\business objects\common folder and a program files\common\business objects folder, but the release two installation created only the former, not the latter - don't know if that matters.
    I had a Crystal viewer app at version 10.5 that worked fine for all reports except those that use the Server business view layer.  I am creating a new web version that can handle all Crystal reports including those using business view layer.  I am following the BOE SDK tutorial for creating a viewer.  I am binding to Crystal Viewer with an infoObject cast as report per one of the tutoral ways of binding. (I wonder if I need to use a different kind of binding though the tutoral indicates this should work.)
    When I was using release 1 tools with release 2 server, the report would render just fine but the navigation icons appeared as X's and the print/export buttons resulted in error of "Microsoft JScript runtime error: Object doesn't support this action".
    Per suggestions, I got everything in sync (to version 11.5.3300 which is only release two version I have available) - all references, viewer control, image handler.  I did have to change the image handler type to "CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandlerPage, to get a successful build because type CrystalImageHandler (no "page" suffix) is not defined in Crystal Decisions.Web version 11.5.3300,  I also had to add a reference to CrystalDecisions.Enterprise,PlugInManager for the constant CePictureState.cePictureThumbnail to be defined.  This reference was not necessary with version 1 toolset and not mentioned in tutoral.  Now I have the following symptoms:
    1.  When I bind to a very simple .rpt file stored in filing system of my workstation (displays a constant), the report will render in viewer but the navigation icons are still X's and print/export buttons still get JScript error message.
    2.  When I bind to this same simple report copied into Server folder using an infoObject cast as report (which used to render fine with release one client tools), I get the message: "The Page Server you are trying to connect to is not accessible. Please contact your system administrator."  This same report in Server folder runs fine using my Crystal Designer client.  I am able to display other attributes of the report object so I know I have a good report object.  So, my upgrade to 11.5.3300 has now additionally broken the report render.
    I would love to get to version 11.5.3700 and see what is still broken (I suspect there will still be some), but haven't a clue how to get this version of client tools.  Upgrading server to 2008 is not an option.  Downgrading Visual Studio to an earlier release is an option if VS2008 is contributing to the problem.  If I have to downgrade VS, what release is recommended?
    Any advice about any of these problems is welcome!
    alan

  • Run photo display and have notification for new emails?

    Thinking about buying an ipod touch - can anyone tell me whether I could run a picture program - just displays selected pictures - and also be notified with a sound when email arrives? Or do I have to shut the photo program down to check email?
    thanks for any help...

    nykije
    I know that I'm able to run the built in photo app, listen to music, browse the internet, and more and I will still get notified that I have a new email. Example I'll be listening to music, and the music will dim and I will hear the notification tone, the music will rase back to my listening volume. Then I'll pull said iPod out of pocket and read new email.
    Also the built in photo app has a slide show, for displaying a constant stream of photos.
    hope that helps,
    Weston

  • Pureview 808 - Need constant screen brightness: Ho...

    On the Nokia 808, even though the screen brightness is set to a predefined brightness and Power Saving mode is Off, the screen brightness can change at times.  The time limit for the backlight is set at 60 seconds, but the LCD screen can dim a bit within that time.  My guess is the brightness changes in response to ambient light changes.
    Its hard to adjust exposure compensation and evaluate photos for proper exposure when the LCD screen brightness changes on me.
    Anyone know how to keep the LCD display brightness constant?
    Thanks in advance,
    Keith.

    Wow, thank you very much!  By downloading the "Brightness" app, the screen brightness is now constant!
    Now I'm able to get a handle on how much exposure compensation to use since the display isn't a variable anymore.
    Also it appears that I'm not losing images when shooting in burst mode anymore.  Perhaps the change in screen brightness operation led to corrumption while the image was being saved.  Before the Brightness app, 1 out of 3 images in a burst would almost always be lost.  Its too early to know for sure.  Only time will tell if the corruption problem has been completely mitigated as  a byproduct of using the Brightness app.
    Thanks again,
    Keith.

  • Database storage of multiple languages for name of a single entity

    Surely I'm not the first person to have this problem, but I can't find many resources on how to solve this. Just some background on what I'm working with, I'm running a web application using the Struts framework with jdk 1.4 on a Weblogic 8.1 server connected to an Oracle 9i database, I'm using DAO for my persistence layer, and I'm not opposed to using any 3rd party software to assist in this task.
    For example, say I have a database of DVDs, My application will retrieve the list of DVDs from the database to display to the user. Depending on the user's Locale I want to display the title of the DVD in that language.
    This is a simple example, but the real-world application is much more complicated. The application is highly configurable meaning that through a configuration application, my internal users can add DVDs at any time, edit the title of the DVD, or add a new language that they want the title to display in, etc. When a customer logs in to the application front-end they will be able to change the language they want the application to display in at any time, and the application will need to reflect that change. The display of constant text like field labels and page text is easy using Struts but its this configurable dynamic text thats a bit more difficult.
    Its obvious to me that I will need to store the multiple languages in the database in some way, I'm thinking of either storage in some xml format, or a new table hanging off the "dvd" table with languages for each dvd. Either of these options would work for my purposes, but I don't want to go reinvent the wheel when this same problem has arleady been solved. If someone could point me in the right direction I would appreciate it

    One common way to handle this is to modify your key for the dvd title to include a locale identifier:
    key dvdtitle
    becomes
    key locale dvdtitle
    Now your db can hold multiple translations of the same dvd title.
    Regards,
    John O'Conner
    Its obvious to me that I will need to store the
    multiple languages in the database in some way, I'm
    thinking of either storage in some xml format, or a
    new table hanging off the "dvd" table with languages
    for each dvd. Either of these options would work for
    my purposes, but I don't want to go reinvent the
    wheel when this same problem has arleady been solved.
    If someone could point me in the right direction I
    I would appreciate it

  • Time Capsule Icon No Longer Appears on Desktop

    Two weeks ago I had AT&T U-verse cable, internet, & phone installed. As part of that installation they installed an AT&T router/wireless combination. The ethernet cable that was previously connected to Time Capsule is now connected to the AT&T device. There is no longer any ethernet connection to Time Capsule. The Time Capsule icon still appeared on my desktop and I manually performed back-ups from my Windows applications to Time Capsule. Time Capsule went from displaying a constant green light to displaying a flashing yellow light. That worked for several days. After about a week of that there appeared on my screen a 'wizard' of some sort recognizing the status of Time Capsule. It said this 'wizard' would eliminate the flashing yellow light. I followed the steps through the 'wizard' and at one point the flashing yellow light turned to constant green. There were a few more steps in the 'wizard' and when it was finished the flashing yellow light reappeared. The next time I tried saving files from Windows I could not connect to my w: drive, and the Time Capsule icon no longer appeared on my Mac desktop. I went into Airport Utilities and there is a box checked that should display the icon properly. Any ideas what's happening? How do I restore Time Capsule so I can back-up my files. Thank you.

    Welcome to the discussions!
    I don't have 10.6.1 yet, but have noticed this happens very occasionally on my MacBook Pro, but not on my iMac. Simply resetting Time Machine on my laptop has done the trick.
    Open System Preferences
    Click on Time Machine
    Click your Time Capsule to highlight it
    Click Use for Backups
    If that does not do it then delete the "com.apple.TimeMachine.plist" file. It's located as follows:
    Macintosh HD > Library > Preferences
    Restart your computer
    Then perform the same steps as above to setup Time Machine again.
    The resets will not affect any of your backups.

  • Header and Line Item reporting (MultiProvider)

    Hello All,
    We have data coming in from a LO Extractor.  There are 2 extractors.  1 for line item the other for Header.  The line item extractor has all the fields for both so we decided to use this extractor (the line item).
    Question is, when extracting this data multiple records come over.  Let's say the order has 2 line items.  It brings over a header record and then 2 line item records.  We have it going to an ODS and then Cube.  The ODS key is order number and item.  Well the header record comes over with item number #, so 3 records hit the ODS.
    How do you handle this?  We saw something about denormalization and make this header record item number a 0.
    Can someone explain to us how to handle this?  We also read about a Constant selection and loading the header record and line item as we are to both the InfoCube, but we just don't understand this solution.
    Please help, Thank you

    Item level will have all fields those are in Header level.Header level data will be a subset of Item level data.Load only Item level and when you require header data remove Item number in that relevant DSO and you can see all the data summarized to header level in overwrite mode.
    This will not be good option if you require some fields that may have different records in the header and the item.
    One better option is create a secondary staging DSO that updated by header, item and schedule line level and you can choose your own data fields and key fields. You can update them in overwrite mode to have summarized records that avoids duplication of records from header and item for same document.
    Constant selection wil be helpful in the report level not during load process.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e7/5f983c1a356858e10000000a114084/frameset.htm
    This will ensure total displayed is constant even after navigation. So it hides repetitive records displaying after drilldown.

  • Internal Software error

    Hi, 
    When I compile my fpga target vi i got an internal software error shown in the attached picture.
    The program I'm working on is somehow complicated and the target file size is about 801KB and I also used 15 target-scoped FIFOs to transfer data within the target. I've also attached the log file. Does anyone know what caused this problem? Thanks in advance.
    Attachments:
    Untitled.png ‏40 KB
    lvlog2011-10-06-13-05-10.txt ‏4 KB

    It is an internal error generated by the application. I think the disc is still ok since the application is still preparing the data for burning to the disc and the actual burning has not yet started. Try running the program again and see if the error is still the same. If it displays a constant error every time you try burning the project, it is either the application can’t handle the size of the data that is going to be burned or there is an error in your system.
    Run a disk check on your computer to see if there is any error that is preventing the application from working properly.
    Right click on drive C and then select Properties.
    Click Tools tab.
    Click Check Now button.
    Check Automatically fix file system errors and then click Start.
    If no error was found try launching the application again. If it’s the same, use other video editing application where you can burn a video also.
    http://www.techyv.com/

Maybe you are looking for