Dynamic variable Time for Select

Hi,
I try to develop some scripts but always I have the same problem , when I try to put in a Select instruction the variable Time, it doesn´t work correctly (for example):
*SELECT(%example%,"ID","TIME","[ID]='%TIME_SET%' ")
It doesn´t read correctly the variable Time_Set.
Have you got any idea to try to do selects using dynamic variable?
Thanks for all.

Hi,
Dynamic variables like %TIME_SET% do not interact very well with the compiled default logic (LGX files) when it is run after a data send. If you look at the Default.LGX file, you will notice that your *SELECT statement does not appear there because that *SELECT statement has already been compiled. That is why the logic works when it is run via the debugger (because the LGF file is getting executed at run time) and it does not work when it is run via a data send (because the LGX is being executed).
What you will need to do is:
1. Create a another logic file (for example: Calculation1.LGF) and copy the text from the Default.LGF to this new logic file.
2.  Place the following text in the Default.LGF file:
*RUNLOGIC
*LOGIC=Calculation1.LGF
*ENDRUNLOGIC
3. Validate and save the Default.LGF file
Now try running the logic after a data send and see if that works.
Good luck,
John

Similar Messages

  • Hard time for selecting Startup Disk (partition) in Mac Classic II.

    Dear coleagues, I'd like your help to understand and solve a tricky trouble. I'm sorry for the long text, but the issue is probably living in a small detail.
    The issue regards a Mac Classic II with internal and external HDDs. Internal HDD has two partitions, a smaller with System 7.1 (first) and a larger with System 7.5.3 (second). This one is installed there since 5 years ago, working fine.
    The (just installed) external HDD has 6 partitions (because of its size 9 Gb). It has been formated runing VCP in this Classic II itself and all partitions are initialized with HFS. It is intended to be a backup for my Classic II as well as my Mac Plus. I've started Installing System 7.5.3 in its third partition. Other partitions remain still empty.
    Using only internal HDD I can already perceive that "Startup Disk" control panel is unable to change the boot partition attribute between partitions in the same drive. When I open "Startup Disk" it usualy both partitions of internal HDD are highlighted. I can select a Zip Drive, for instance, and it will boot from Zip. But, when I switch it back to HDD, doesn't bother wich partition I select, it will always boot with the same partition (usually 7.5.3). Then, If i open Startup Disk CP again, both partitions are again highlighted.
    To switch between partitions in the same drive, I use Lido 7.5.6 PMount and there I select the boot partition. Then every time I select my HDD, that'll be the default boot partition.
    My conclusion is that in Mac Classic II the Startup Disk CP is unable to set a partition within a drive, it selects the drive only. The boot will obey the drive's partition table flag. That's why I can do it whith Lido, writing directly at HDD's flags.
    Now, attaching the external HDD, I can see all its partitions in Startup Disk CP and then I select one of them (the 3rd, with 7.5.3). Before rebooting, I close and open again the Startup Disk CP, then I can see all its 6 partitions highlighted. Just like I've been doing with the internal HDD, probably the solution to set a specific boot partition would be through Lido 7.5.6 PMount again. But Lido is unable to handle this drive. It appears gray in the drives list.
    What does it sound to you? What would you recommend to test? Is there an alternative for Startup Disk CP?
    Thank you.
    Regards, Ciro (Brazil)

    Dear Jan, good Evening.
    Thank you for your time.
    In fact I can select a specific partition, but by closing and reopenning Startup Disk CP I realize that the selection has been attributed to the physical drive (all partitions highlighted).
    I have tried Startup Disk CP in both System 7.1 and System 7.5.3. They do the same way.
    Internal HDD has been formated, partitioned and initialized with Apple HD CS Setup.
    This external HDD in a different way. Apple HD SC Setup hasn't been able to "see" it, probably because of its prior format system. Lido neither. That's why I went to VCP. Moreover, as it is too big for 68030, I had to format it attached to a Performa 6360. After formating, I've let VCP make set the partitions in HFS mode (partitions with 512, 1024 and 2032 Mb).
    I've mounted VCP in Mini VMac to get some screenshots for you:
    Bringing it back to Mac Classic II, it could be mounted with Lido, but System 7 has asked to initialize all partitions again. I've accepted, installed system 7 on it, and it didn't boot. Then I've repeated the partitioning and initializing procedures using Apple HD SC Setup (since now there's a Mac HDD with "small" logical drives). Nothing changed.
    I'm following your tip about System Picker. I've downloaded the sit file and read about it. It seems to be able to overlay the problem. I'm gonna try it and report back here.
    But I feel still uncomfortable not to be able to do things the regular way. As far as I know, the boot partition is an attribute of a drive partition in partition map, just like the "Active Partition" found in FAT systems. I should be able to write there as I can do with Lido in internal HDD.
    Thank you, Jan.
    Best regards,
    Ciro Bruno.

  • Variable screen for Selective Retraction

    Dear All,
    We are planning for selective retraction using user defined variables assigned at planning level. We want to have a front end to be given to the user other than BPS0 tcode to execute this.
    We have tried to create tcode using SAP standard  function module 'API_SEMBPS_FUNCTION_EXECUTE' . This does not provide for inputing variable values upon execution.
    Kindly advise in this regard.
    Regards,
    Saritha.

    Hi !
    I think you can manage this using the BPS API:
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/260a8563b111d4b2ea0050dadfb23f/frameset.htm
    Did you have had a look at it ?
    Cheers,
    Philipp

  • Slideshow issues with variable time for each picture

    Hi all,
    I've migrated from AS1 to AS3, and boy, a lot has changed...
    Anyhow, to learn and understand AS3, I'm modifying a slideshow I found through thetechlabs. I want it to play SWF as well as JPG. These files are passed through an XML file. I added an element called <delaytime> to the XML file that replaces the standard time a photo is shown in the slideshow.
    I modified the onSlideFadeIn() function as follows:
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    However, when I run it, I get this error message:
    ## [Tweener] Error: [object Sprite] raised an error while executing the 'onComplete'handler.
    TypeError: Error #1010: A term is undefined and has no properties.
    at slideshow_fla::MainTimeline/onSlideFadeIn()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/::updateTweenByIndex()
    at caurina.transitions::Tweener$/::updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    It stops at the first picture of my slideshow. When I push the 'next' button it displays the next pic, but I get the same error message again.
    When I comment out this line:
    slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
    the slideshow runs OK, but without the delaytime specified in the XML file.
    I'm lost here, what am I missing?
    Any help to get me back on track is highly appreciated!
    Thanks a bunch in advance,
    Dirk
    Here is the complete AS, should you need it:
    // import tweener
    import caurina.transitions.Tweener;
    // delay between slides
    const TIMER_DELAY:int = 5000;
    // fade time between slides
    const FADE_TIME:Number = 1;
    // flag for knowing if slideshow is playing
    var bolPlaying:Boolean = true;
    // reference to the current slider container
    var currentContainer:Sprite;
    // index of the current slide
    var intCurrentSlide:int = -1;
    // total slides
    var intSlideCount:int;
    // timer for switching slides
    var slideTimer:Timer;
    // slides holder
    var sprContainer1:Sprite;
    var sprContainer2:Sprite;
    // slides loader
    var slideLoader:Loader;
    // current slide link
    var strLink:String = "";
    // current slide link target
    var strTarget:String = "";
    // url to slideshow xml
    var strXMLPath:String = "slideshow-data2.xml";
    // slideshow xml loader
    var xmlLoader:URLLoader;
    // slideshow xml
    var xmlSlideshow:XML;
    function initSlideshow():void {
         // hide buttons, labels and link
         mcInfo.visible = false;
         btnLink.visible = false;
         // create new urlloader for xml file
         xmlLoader = new URLLoader();
         // add listener for complete event
         xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
         // load xml file
         xmlLoader.load(new URLRequest(strXMLPath));
         // create new timer with delay from constant
         slideTimer = new Timer(TIMER_DELAY);
         // add event listener for timer event
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         // create 2 container sprite which will hold the slides and
         // add them to the masked movieclip
         sprContainer1 = new Sprite();
         sprContainer2 = new Sprite();
         mcSlideHolder.addChild(sprContainer1);
         mcSlideHolder.addChild(sprContainer2);
         // keep a reference of the container which is currently
         // in the front
         currentContainer = sprContainer2;
         // add event listeners for buttons
         btnLink.addEventListener(MouseEvent.CLICK, goToWebsite);
         btnLink.addEventListener(MouseEvent.ROLL_OVER, showDescription);
         btnLink.addEventListener(MouseEvent.ROLL_OUT, hideDescription);
         mcInfo.btnPlay.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnPause.addEventListener(MouseEvent.CLICK, togglePause);
         mcInfo.btnNext.addEventListener(MouseEvent.CLICK, nextSlide);
         mcInfo.btnPrevious.addEventListener(MouseEvent.CLICK, previousSlide);
         // hide play button
         mcInfo.btnPlay.visible = false;
    function onXMLLoadComplete(e:Event):void {
         // show buttons, labels and link
         mcInfo.visible = true;
         btnLink.visible = true;
         // create new xml with the received data
         xmlSlideshow = new XML(e.target.data);
         // get total slide count
         intSlideCount = xmlSlideshow..image.length();
         // switch the first slide without a delay
         switchSlide(0);
    function fadeSlideIn(e:Event):void {
         // add loaded slide from slide loader to the
         // current container
         addSlideContent();
         // clear preloader text
         mcInfo.lbl_loading.text = "";
         // check if the slideshow is currently playing
         // if so, show time to the next slide. If not, show
         // a status message
         if(bolPlaying) {
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
         } else {
              mcInfo.lbl_loading.text = "Slideshow paused";
         // fade the current container in and start the slide timer
         // when the tween is finished
         Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:onSlideFadeIn});
    function onSlideFadeIn():void {
         slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide);
         slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
         slideTimer.addEventListener(TimerEvent.TIMER, nextSlide);
         if(bolPlaying && !slideTimer.running)
         slideTimer.start();
    function togglePause(e:MouseEvent):void {
         // check if the slideshow is currently playing
         if(bolPlaying) {
              // show play button
              mcInfo.btnPlay.visible = true;
              mcInfo.btnPause.visible = false;
              // set playing flag to false
              bolPlaying = false;
              // set status message
              mcInfo.lbl_loading.text = "Slideshow paused";
              // stop the timer
              slideTimer.stop();
         } else {
              // show pause button
              mcInfo.btnPlay.visible = false;
              mcInfo.btnPause.visible = true;
              // set playing flag to true
              bolPlaying = true;
              // show time to next slide
              mcInfo.lbl_loading.text = "Next slide in " + TIMER_DELAY / 1000 + " sec.";
              // reset and start timer
              slideTimer.reset();
              slideTimer.start();
    function switchSlide(intSlide:int):void {
         // check if the last slide is still fading in
         if(!Tweener.isTweening(currentContainer)) {
              // check, if the timer is running (needed for the
              // very first switch of the slide)
              if(slideTimer.running)
              slideTimer.stop();
              // change slide index
              intCurrentSlide = intSlide;
              // check which container is currently in the front and
              // assign currentContainer to the one that's in the back with
              // the old slide
              if(currentContainer == sprContainer2)
              currentContainer = sprContainer1;
              else
              currentContainer = sprContainer2;
              // hide the old slide
              currentContainer.alpha = 0;
              // bring the old slide to the front
              mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
              //Van hier
              if (currentContainer.numChildren > 0) {
                   var slideObjRef:DisplayObject = currentContainer.getChildAt(0);
                   currentContainer.removeChildAt(0);
                   slideObjRef = null;
              //Tot hier
              // delete loaded content
              clearLoader();
              // create a new loader for the slide
              slideLoader = new Loader();
              // add event listener when slide is loaded
              slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeSlideIn);
              // add event listener for the progress
              slideLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
              // load the next slide
              slideLoader.load(new URLRequest(xmlSlideshow..image[intCurrentSlide].@src));
              // show description of the next slide
              mcInfo.lbl_description.text = xmlSlideshow..image[intCurrentSlide].@title;
              // set link and link target variable of the slide
              strLink = xmlSlideshow..image[intCurrentSlide].@link;
              strTarget = xmlSlideshow..image[intCurrentSlide].@target;
              mcInfo.mcDescription.lbl_description.htmlText = xmlSlideshow..image[intCurrentSlide].@desc;
              // show current slide and total slides
              mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " + intSlideCount + " Slides";
    function showProgress(e:ProgressEvent):void {
         // show percentage of the bytes loaded from the current slide
         mcInfo.lbl_loading.text = "Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%";
    function goToWebsite(e:MouseEvent):void {
         // check if the strLink is not empty and open the link in the
         // defined target window
         if(strLink != "" && strLink != null) {
              navigateToURL(new URLRequest(strLink), strTarget);
    function nextSlide(e:Event = null):void {
         // check, if there are any slides left, if so, increment slide
         // index
         if(intCurrentSlide + 1 < intSlideCount)
         switchSlide(intCurrentSlide + 1);
         // if not, start slideshow from beginning
         else
         switchSlide(0);
    function previousSlide(e:Event = null):void {
         // check, if there are any slides left, if so, decrement slide
         // index
         if(intCurrentSlide - 1 >= 0)
         switchSlide(intCurrentSlide - 1);
         // if not, start slideshow from the last slide
         else
         switchSlide(intSlideCount - 1);
    function showDescription(e:MouseEvent):void {
         // remove tweens
         Tweener.removeTweens(mcInfo.mcDescription);
         // fade in the description
         Tweener.addTween(mcInfo

    Thanks, but no luck so far...
    With the debugging publish setting on, I get the following error message:
    TypeError: Error #1009: Cannot access a property  or method of a null object reference.
    at  slideshow_fla::MainTimeline/slideshow_fla::frame1()[slideshow_fla.MainTimeline::frame1:12 3]
    Line 123 says:
    trace(xmlSlideshow..file[intCurrentSlide].@time);
    However, when I comment out the trace() line it gives another error  message:
    ## [Tweener] Error: [object Sprite] raised an  error while executing the 'onComplete'handler.
    TypeError: Error #1010: A  term is undefined and has no properties.
    at  slideshow_fla::MainTimeline/onSlideFadeIn()[slideshow_fla.MainTimeline::frame1:118]
    Where line 118 is:
    slideTimer = new  Timer(Number(xmlSlideshow..file[intCurrentSlide].@time));
    Now, according to my Flash manual I bought, I need to 'instanciate' things.  Did I forget this?
    Just can't get my head around this OOP stuff...
    Thanks a bunch for helping me!

  • Reducing the time for select query

    Hi
    Please advise why the query is taking too much time to execute when the cost involved in the joins is less.
    Here is the explain plan for the same
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 4989 | 984K| | 295K (1)| 00:59:09 |
    | 1 | SORT ORDER BY | | 4989 | 984K| 2120K| 295K (1)| 00:59:09 |
    |* 2 | FILTER | | | | | | |
    |* 3 | HASH JOIN | | 4989 | 984K| | 12975 (1)| 00:02:36 |
    |* 4 | HASH JOIN | | 4989 | 862K| | 11943 (1)| 00:02:24 |
    | 5 | TABLE ACCESS FULL | tedy_hf | 993 | 22839 | | 17 (0)| 00:00:01 |
    |* 6 | HASH JOIN | | 4989 | 750K| | 11925 (1)| 00:02:24 |
    |* 7 | TABLE ACCESS FULL | tedy_hf453 | 145 | 2465 | | 7 (0)| 00:00:01 |
    |* 8 | HASH JOIN | | 4989 | 667K| | 11917 (1)| 00:02:24 |
    |* 9 | INDEX SKIP SCAN | tedy_ehf33 | 4987 | 116K| | 4992 (1)| 00:01:00 |
    |* 10 | TABLE ACCESS FULL| tedy_7nl | 43367 | 4785K| | 6925 (1)| 00:01:24 |
    | 11 | TABLE ACCESS FULL | tedy_hfeei | 89616 | 2187K| | 1032 (1)| 00:00:13 |
    |* 12 | TABLE ACCESS FULL | tedy_hf455 | 2 | 32 | | 113 (0)| 00:00:02 |
    --------------------------------------------------------------------------------------------------

    Because the cost is internally calculated by the Cost Based Optimizer using the data available when parsing the query (tables, columns, constraints, cardinalities, etc...). If you feed it bad information (stale statistics, not using NOT NULL constraints, check constraints, foreign key constraints, etc..) it chooses inappropriate access methods.
    Based on what you've posted, not much help is possible.
    When your query takes too long ...
    and
    HOW TO: Post a SQL statement tuning request - template posting
    Will get you started on providing meaningful information with which we can help you.

  • Calling Dynamic Variable within a select

    Hi
    Trying to build up a dynamic proc and can't see to figure out why I can re use variable  If I specify within the select what the code is then its fine but when I add in the variable doesn't workany help would be great !
    create table basetable (id int, code varchar(15))
    insert into basetable values (1,'SAP'),(2,'REG'),(3,'NRI')
    create table Transactiontable (id int identity(1,1), baseid int, Product varchar(15))
    insert into Transactiontable values (1,'AAAA'),(1,'BBBB'),(1,'CCCC'),(1,'DDDD'),(1,'unknown'),(2,'AAAA')
    DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2 NVARCHAR(max);
    SELECT * FROM basetable
    SELECT * FROM Transactiontable
    DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2 NVARCHAR(max), @Code NVARCHAR (3) ;
    SET @CODE = 'REG'
    ;WITH mycte0
         AS (SELECT ROW_NUMBER()
                      OVER(
                        partition BY baseid
                        ORDER BY id) rn
             FROM   transactiontable ),
         mycte
         AS (SELECT DISTINCT rn
             FROM   mycte0)
    SELECT @Cols = STUFF((SELECT ', ' + QUOTENAME(rn)
                          FROM   mycte
                          ORDER  BY rn
                          FOR XML PATH('')),
                         1,
                         2,
                         ,@Cols2 = STUFF((SELECT ', ' + QUOTENAME(rn) +' as [Product'+ cast(rn as varchar(5)) +']'
                          FROM   mycte
                          ORDER  BY rn
                          FOR XML PATH('')),
                         1,
                         2,
    SET @SQL = 'select code,'+  @Cols2+' from (select b.code, t.Product, row_number() over(partition by t.baseid order by t.id) rn
    from transactiontable t inner join basetable b on b.id=t.baseid where code = '+ @Code + ' --- ''REG''
    ) src PIVOT (max(Product) For rn In ('
               + @Cols + ')) pvt'
    EXEC (@SQL)
    DROP TABLE transactiontabledrop ;
    DROP TABLE  basetable;

    but when I add in the variable doesn't workany help would be great !
    DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2
    NVARCHAR(max);
    SELECT * FROM basetable
    SELECT * FROM Transactiontable
    DECLARE @SQL NVARCHAR(max),@Cols NVARCHAR(max),@Cols2
    NVARCHAR(max), @Code NVARCHAR (3) ;
    Within a batch the declare variable name must be unique,you can not (or don't Need to) declare it twice, like here @SQL, @Cols, @Cols2...
    In the second declaration part just declare @Code and remove the other; they already exists.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Dynamic Variable Naming for Sound Object

    Is it possible to dynamically name a variable? I'd like to
    create a new Sound Object on the fly, so that I can use the
    Sound.load() method multiple times. I would simply like to create
    and name the variable and add a number to the end of the name
    (i.e.; var "audio_1":Sound). I'm sure that this is possible.
    However, I can't seem to get it figured out.

    This code worked great! However, how can I set a global
    variable equal to the newly created Sound Object so that it is
    available globally via a reuseable reference?
    Here's an example of how I attempted to do this. Please note:
    audioObject is a global variable that I am trying to use to
    reference the new Sound Object in various places.
    audioObjectCount is a global variable that I am using to set
    or get the next number to use when dynamically creating the next
    new Sound Object

  • Dynamic Variable name (for int/long) from a String variable

    Hi,
    I want to give a int/long variable name from a String.
    for ex.
    String str = lookup + "Id";
    lookup is a String variable coming from XML. Now, for instance lookup="name". So str = "nameId".
    Now I want to create a int/long variable by nameId.
    Could anybody tell me the way how to do. Please don't tell to use MAP.
    Edited by: Shah on Dec 5, 2007 3:26 PM

    Well you can't. Use a Map.
    The compiler translates variable names into slot numbers, either within an object or withing the local "stack frame" and these slot numbers are assigned names at compile time. No new slots can be created at run time. Java is not Basic.
    Reflection allows you to find existing field names and methods (not local variables), so it's possible to map, for example, XML attribute names to field names or setters in an object but the names have to be known at compile time.

  • Performance Tuning -To find the execution time for Select Statement

    Hi,
    There is a program that takes 10 hrs to execute. I need tune its performance. The program is basically reading few tables like KNA1,ANLA,ANLU,ADRC etc and updates to Custom table. I did my analysis and found few performance techniques for ABAP coding.
    Now my problem is, to get this object approved I need to submit the execution statistics to client.I checked both ST05 and SE30. I heard of a Tcode where we can execute a select statement and note its time, then modify and find its improved Performance. Can anybody suggest me on this.
    Thanks,
    Rajani.

    Hi,
    This is documentation regarding performance analysis. Hope this will be useful
    It is a general practice to use           Select  *  from <database>…     This statement populates all the values of the structure in the database.
    The effect is many fold:-
    •     It increases the time to retrieve data from database
    •     There is large amount of unused data in memory
    •     It increases the processing time from work area or internal tables
    It is always a good practice to retrieve only the required fields. Always use the syntax      Select f1  f2  …  fn  from <database>…      
    e.g.     Do not use the following statement:-
         Data: i_mara like mara occurs 0 with header line.
         Data: i_marc like marc occurs 0 with header line.
         Select * from mara
              Into table i_mara
              Where matnr in s_matnr.
         Select * from marc
              Into table i_marc
              For all entries in i_mara
              Where matnr eq i_mara-matnr.
         Instead use the following statement:-
                                       Data: begin of i_mara occurs 0,
                                            Matnr like mara-matnr,
                                                  End of i_mara.
         Data: begin of i_marc occurs 0,
              Matnr like marc-matnr,
                                            Werks like marc-werks,
                                                 End of i_marc.
         Select matnr from mara
              Into table i_mara
              Where matnr in s_matnr.

  • Cfloop time for select

    For some reason I just can't wrap my brain around this one. I
    want to be able list a series of times in a form select following
    these guidlines:
    Starting: 10:00 am
    Ending: 8:00 pm
    Frequency: Every 15 minutes
    Display Format: hh:mm tt
    Value Format: Must be compatible with createDateTime()
    Any help would be greatly appreciated.

    Another method where you loop a date range and set the step
    increment to a time span.
    cfset startTime = "8:00" />
    <cfset endTime = DateAdd('h',8,startTime)>
    <select name="myTime">
    <cfloop from="#startTime#"
    to="#endTime#"
    index="i"
    step="#CreateTimeSpan(0,0,30,0)#">
    <cfoutput>
    <option> #TimeFormat(i, "hh:mm
    tt")#</option><br />
    </cfoutput>
    </cfloop>
    </select>

  • Dynamic variant create for select option High value

    Hi ,
    I would like to set a dynamic variant for Date filed in selection screen as lower limit as 01/01/2009 and Last day of previous month as hiher limit. For examplae: Lower limit = 01/01/2009 and higher limit as 02/28/2011.
    Please help me in creating dynamic variant as mentiond above.
    Thanks & Regards,
    Venkat N.

    Hi,
    Thank you for your reply and could you please provide if you have any code.
    Thanks & Regards,
    Venkat N.

  • Dynamically generating Ok_Code for select option of HUMO t-code

    Hi Gurus ,
    I have used BDC call transaction method in my program to call the HUMO t-code and populating the handling unit in the select option . The ok_code of the select option is written in the program as :
    PERFORM bdc_field USING 'BDC_OKCODE'
                            '=%00120100000003011'.
    Now these ok_code value is changing inside the ECC landscape , In all Non-production system the value remains same but in the production system the ok_code value is different , because of this program is successfully executing in non-production but not in production .
    If anyone of you have come across situation like this , please help me how to help hold of this ok_code or can we generate in dynamically . For temporary solution i have coded it based on the system like shown below but I am looking for a permanent solution
    IF syst-sysid = 'EWP'.
        PERFORM bdc_field USING 'BDC_OKCODE'
                            '=%00120100000003011'.
      ELSE.
        PERFORM bdc_field USING 'BDC_OKCODE'    
                          '=%00120100000718796'.               
      ENDIF.
    Regards
    Anshuman

    Hi Gurus ,
    I have used BDC call transaction method in my program to call the HUMO t-code and populating the handling unit in the select option . The ok_code of the select option is written in the program as :
    PERFORM bdc_field USING 'BDC_OKCODE'
                            '=%00120100000003011'.
    Now these ok_code value is changing inside the ECC landscape , In all Non-production system the value remains same but in the production system the ok_code value is different , because of this program is successfully executing in non-production but not in production .
    If anyone of you have come across situation like this , please help me how to help hold of this ok_code or can we generate in dynamically . For temporary solution i have coded it based on the system like shown below but I am looking for a permanent solution
    IF syst-sysid = 'EWP'.
        PERFORM bdc_field USING 'BDC_OKCODE'
                            '=%00120100000003011'.
      ELSE.
        PERFORM bdc_field USING 'BDC_OKCODE'    
                          '=%00120100000718796'.               
      ENDIF.
    Regards
    Anshuman

  • Dynamic Variable - Time/Date

    I am trying to update a standard query and make it less manually intensive. The issue at hand is that the way the query and data is structured, we need to go into the query each quarter and then add another quarter column at the end.
    I am not sure how to write the query using a dynamic date variable that we can add which would automatically pull the trailing 12 quarters data, without having to manually change the query columns.

    Here's the SQL. I broke it up into modules so you can see what each step does.
    TIMESTAMPADD(SQL_TSI_DAY, DAY_OF_QUARTER(CURRENT_DATE)*-1,CURRENT_DATE) gives you last day of previous quarter.
    TIMESTAMPADD(SQL_TSI_DAY,1, TIMESTAMPADD(SQL_TSI_DAY, DAY_OF_QUARTER(CURRENT_DATE)*-1,CURRENT_DATE)) gives you first day of current quarter.
    TIMESTAMPADD(SQL_TSI_QUARTER,-12, TIMESTAMPADD(SQL_TSI_DAY,1, TIMESTAMPADD(SQL_TSI_DAY, DAY_OF_QUARTER(CURRENT_DATE)*-1,CURRENT_DATE))) gives you 12 quarters ago.
    Use the last SQL statement as a filter in your query using the operator "greater than or equal to" and you will get all the dates from 12 quarters ago to current date.

  • Dynamic variant - time variable

    Hello!
    I want to create a variant for an IDoc housekeeping program (rbdmani2) and I want to save the following in a program variant:
    For the current date (I have managed to use a dynamic variable for this) and IDocs created in the past hour, i.e. the select option for Creation time should be "from"='current time-1hour' and "to"='current time'.
    How can I express current time minus 1 hour and the current time respectively?
    Please advice. Thanks!
    ::Ellen

    hi,
    You can't perform the dynamic calculation on the TIME selection fields. That is possible only for DATE fields. So you may have to write a custom wrapper program with same selection screen as RBDMANI2 and then call program RBDMANI2 using SUBMIT from your custom program.
    In your custom program, you can set the time values in the Initialization block as
    S_TIME-low = sy-uzeit - 60.
    s_time-high = sy-uzeit.
    In the variant you are going to create, for the time field select as P - "Save Field without values". This way the values maintained in the initialization blcok won't be overwritten by the variant. Hoep this helps
    But you still need to consider the issue raised by Rob for the past midnight run scenario. Whatever we do, we can't handle the midnight scenario, unless you want to break it as two runs, one for prior to midnight and another for after midnight. This can be possible by putting some logic in the custom program to check time and call the RBDMANI2 twice.
    Hari

  • How do i filter the records in analytic view by using variable/parameter for a time range

    i have a analytic view which has a output column as date type. i want the user who use this view have the control to decided the output records based on a time range (from x to y).
    i tried to create 2 variables, 1 for start_time, 1 for end_time. Ideally, i should have a expression for filtering data like this:
    $$start_time <= date_column <= $$end_time
    However, the variable windows doesn't seem to be feasible for the expression as above.
    Does anyone has the same problem and get it solved?
    Thanks!

    just figured out by my own. So the answer is using "variable" with "range" option.
    Making a variable, then set the "selection type" to "range".
    When preview the data, the variable input window pops up with operator on default "equal", use dropdown list to swtich it to "between", then you can enter the start_time and end_time as a range filter.

Maybe you are looking for

  • Macbook Pro slow startup Mavericks (bootlog included)

    Hello I have the following MBP: MacBook Pro 15-inch Early 2008 Processor  2.5 GHz Intel Core 2 Duo Memory  4 GB 667 MHz DDR2 SDRAM Graphics  NVIDIA GeForce 8600M GT 512 MB Software  OS X 10.9.3 (13D65) My Startup time has increased a lot since the mo

  • Wierd clicking when i plug in 2nd display

    I have a powermac G5 dual 1.8 ghz with an ATI Radeon 9800 XT. I have a new 23" Cinema HD display connected, no problem. I just tried connecting an older 23" Cinema display (the one with the plastic enclosure, not aluminum) to the 2nd video out port.

  • Siri doesn't work when held next to head as advertised, how do I fix this?

    I just bought the iPhone 4s.  It's said that Siri will work when held next to head. How do I get this feature to work?

  • Restore "Out-of-the-Box" settings?

    I recently bought a used 8830 WE and the Brick Breaker game and Memo Pad are both gone.  Is there any way to restore these?

  • Creating class instances at different depths

    I have a custom class called line that takes two sets of co ordinates and draws a line between them. The class uses _root.createEmptyMovieClip() to make a container to draw in to but I need it to draw in to other movies on the stage in a similar way