JCA polling DB Adapter current time for MarkReadValue
Hi,
For future debugging I would like to use current time (in whatever format) for MarkReadValue in a logical delete polling DB Adapter.
I understand that complex expressions such as ${weblogic.Name}, ${IP}, ${instance} work with the system properties. Is there a complex expresion for getting current date and time (in whatever format)?
Thanks,
--cb
Hi Manish,
Can you copy paste your .jca file?
I think the problem is with the name 'pollingStrategy'. Verify if the property used in the .jca file is PollingStrategy (Use Capital 'P').
Regards,
Neeraj Sehgal
Similar Messages
-
Contacts - would like current time for every person.
I cannot find where to put this question, either here or on the feedback page. I would like a feature on Contacts which shows the current time for a contact.
I have contacts in many parts of the world. It would be nice to simply display the current time for each contact.Feedback would be the place. We're just users here and can't do anything about the software.
I like the idea, though. -
Use of current time for polling Database Adapter query
I am writing a simple BPEL process with a Polling Database Adapter and a Recieve. The idea is that we are polling an XE database for any entries in a TRIP table which have an expiration date/time field that has passed.
The Adapter was build using JDeveloper 10.1.3.2 (with Oracle Application Server patched to 10.1.3.3.0) as a "Poll for New Changed Records in a Table" Operation type with a STATUS field (0 for live, 1 for expired) as the Logical Delete Field.
I was unable to find a way to generate a SELECT query expression with the wizard that would allow me to use current/system time as an attribute, so I finished the wizard and edited the Toplink Descriptor to use a custom SQL expression for the query. This resulted in the following code in the toplink_mappings.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<opm:name>ExpiredTripPoller</opm:name>
<opm:class-mapping-descriptors>
<opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
<opm:class>ExpiredTripPoller.Trip</opm:class>
<opm:alias>Trip</opm:alias>
<opm:primary-key>
<opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
</opm:primary-key>
<opm:events xsi:type="toplink:event-policy"/>
<opm:querying xsi:type="toplink:query-policy">
<opm:queries>
<opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
<toplink:timeout>0</toplink:timeout>
<toplink:call xsi:type="toplink:sql-call">
<toplink:sql>SELECT ID, LPN, START_TIME, EXPIRY_TIME, STATUS FROM TRIP WHERE ((STATUS = '0') AND (EXPIRY_TIME < SYSDATE)) ORDER BY EXPIRY_TIME ASC</toplink:sql>
</toplink:call>
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:cache-usage>primary-key</toplink:cache-usage>
<toplink:lock-mode>none</toplink:lock-mode>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</opm:query>
<opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
<toplink:timeout>0</toplink:timeout>
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:cache-usage>primary-key</toplink:cache-usage>
<toplink:lock-mode>none</toplink:lock-mode>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</opm:query>
</opm:queries>
<toplink:does-exist-query xsi:type="toplink:does-exist-query">
<toplink:existence-check>check-database</toplink:existence-check>
</toplink:does-exist-query>
<toplink:read-all-query xsi:type="toplink:read-all-query">
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</toplink:read-all-query>
</opm:querying>
<opm:attribute-mappings>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>id</opm:attribute-name>
<opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
<opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>lpn</opm:attribute-name>
<opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
<opm:attribute-classification>java.lang.String</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>startTime</opm:attribute-name>
<opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
<opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>expiryTime</opm:attribute-name>
<opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
<opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>status</opm:attribute-name>
<opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
<opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
</opm:attribute-mapping>
</opm:attribute-mappings>
<toplink:descriptor-type>independent</toplink:descriptor-type>
<toplink:caching>
<toplink:cache-type>weak-reference</toplink:cache-type>
<toplink:always-refresh>true</toplink:always-refresh>
</toplink:caching>
<toplink:remote-caching>
<toplink:cache-type>weak-reference</toplink:cache-type>
</toplink:remote-caching>
<toplink:instantiation/>
<toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
<toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
<toplink:tables>
<toplink:table name="TRIP"/>
</toplink:tables>
</opm:class-mapping-descriptor>
</opm:class-mapping-descriptors>
</toplink:object-persistence>
To test I used the above custom SQL at the command line and it filtered the records by EXPIRY_TIME as expected.
When deployed, the polling process updates the STATUS file dof table entries, but all entries with status 0 regardless of EXPIRY_DATE. My modification appears to be being ignored. I was unsure as to whether the QUERY was being determined in some other way so I modified the descriptor (with the toplink expression editor) to compare against a literal time value, producing the following modified toplink_mappings.xml:
<?xml version="1.0" encoding="UTF-8"?>
<toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<opm:name>ExpiredTripPoller</opm:name>
<opm:class-mapping-descriptors>
<opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
<opm:class>ExpiredTripPoller.Trip</opm:class>
<opm:alias>Trip</opm:alias>
<opm:primary-key>
<opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
</opm:primary-key>
<opm:events xsi:type="toplink:event-policy"/>
<opm:querying xsi:type="toplink:query-policy">
<opm:queries>
<opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
<opm:criteria operator="lessThan" xsi:type="toplink:relation-expression">
<toplink:left name="expiryTime" xsi:type="toplink:query-key-expression">
<toplink:base xsi:type="toplink:base-expression"/>
</toplink:left>
<toplink:right xsi:type="toplink:constant-expression">
<toplink:value xsi:type="xsd:date">2007-07-30</toplink:value>
</toplink:right>
</opm:criteria>
<toplink:timeout>0</toplink:timeout>
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:cache-usage>primary-key</toplink:cache-usage>
<toplink:lock-mode>none</toplink:lock-mode>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</opm:query>
<opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
<toplink:timeout>0</toplink:timeout>
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:cache-usage>primary-key</toplink:cache-usage>
<toplink:lock-mode>none</toplink:lock-mode>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</opm:query>
</opm:queries>
<toplink:does-exist-query xsi:type="toplink:does-exist-query">
<toplink:existence-check>check-database</toplink:existence-check>
</toplink:does-exist-query>
<toplink:read-all-query xsi:type="toplink:read-all-query">
<toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
<toplink:container xsi:type="toplink:list-container-policy">
<toplink:collection-type>java.util.Vector</toplink:collection-type>
</toplink:container>
</toplink:read-all-query>
</opm:querying>
<opm:attribute-mappings>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>id</opm:attribute-name>
<opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
<opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>lpn</opm:attribute-name>
<opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
<opm:attribute-classification>java.lang.String</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>startTime</opm:attribute-name>
<opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
<opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>expiryTime</opm:attribute-name>
<opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
<opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
</opm:attribute-mapping>
<opm:attribute-mapping xsi:type="toplink:direct-mapping">
<opm:attribute-name>status</opm:attribute-name>
<opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
<opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
</opm:attribute-mapping>
</opm:attribute-mappings>
<toplink:descriptor-type>independent</toplink:descriptor-type>
<toplink:caching>
<toplink:cache-type>weak-reference</toplink:cache-type>
<toplink:always-refresh>true</toplink:always-refresh>
</toplink:caching>
<toplink:remote-caching>
<toplink:cache-type>weak-reference</toplink:cache-type>
</toplink:remote-caching>
<toplink:instantiation/>
<toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
<toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
<toplink:tables>
<toplink:table name="TRIP"/>
</toplink:tables>
</opm:class-mapping-descriptor>
</opm:class-mapping-descriptors>
</toplink:object-persistence>
On deployment, this version of the BPEL process behaved as expected - only modifying the records with EXPIRY_TIME less thatn the literal time specified. (Also, I can't really pass in the time as a parameter as this is a polling model).
Can anyone shed any light on what is happening or suggest how I might go about polling in the desired way?
CheersPlease take a look at this article which states SYSDATE is not supported in a
where clause.
http://www.oracle.com/technology/pub/articles/bpel_cookbook/qualcomm-bpel.html
Excerpt from the article:
Here are three important things you should do in implementing the above design:
Have the status of the record being processed stored in the database. The status includes the process state, next process attempt time, and processing attempt count.
Create an updatable view that exposes only records that are ready to be processed. A view is needed because the database adapter cannot handle a where clause that compares against SYSDATE.
Design logic that determines if a process instance that has faulted should be retried and when the retry should occur. This information will be updated in the database by use of a stored procedure. This can also be done with an update partner link and additional logic in BPEL.
mahalo,
a iii -
Current time for the X-axis in the wave chart
I understand that the "attribute node" function is edited to show the current year/month/day/hour/minute/sec in my waveform chart. However, the default year is 1904 and trying the "attribute node" still fails. Please anyone show me the step-by-step procedure to do it.
- An awl trying to learn L/V.My L/V is Ver.5.0. Referencing your suggestion, on the panel I click X-scale -->, Formatting --> X- Scale Formatting. Then I arrive at "Scaling Factors". Here I see year "1904" and modification is impossible. I can not find any place to put value 7 as you suggested. Your suggestion to use ENUMS does not seem to be clear to impliment. Trying "Attribute Node" in the Diagram leads me to "X scale info", but further try does not make it. And I can not find "Offset and Multiplier" and "Get Date/Time" as you showed. Sorry to say that still I am not successful. This might be due to the version differences.
As a reference, I here attach the panel and diagram of my work.
Attachments:
jks.llb 252 KB -
How to calculate current time in mp3 player.
Hello friends
i am developing a small mp3 player in flex3.it is working fine but i need to find current time for its slider movement.i already calculated th length of song .but could not calculate the current time so that i can move pthumb of slider for my song.
i know its very simple but i m not getting any clue. so please help me out.
Thanks and regards
vineet oshomathsssss
http://www.mattlefevre.com/viewExample.php?tut=flex&proj=Basic%20MP3%20Player -
JCA Polling Adapter not picking up records
Hello All
I have been trying to configure a JCA polling adapter to pick up records from the Database, the first time I configured it, it read a whole bunch of records. Now I have configured the following in the database and am getting no records being polling.
1. Poll for new or changed records
2. Update a field in the table F40g02 for logical delete
3. Read value = READ, UNREAD value = UNREAD, Reserved value = RESERVED
4.Polling interval 5 seconds, Database XROWS per xml document 1, Database Rows per Transaction 10
I ran the SQL specified in the adapter and I get a record. Does anyone have any idea.
I have seen this warning in the EM
Database Adapter <oracle.tip.adapter.db.inbound.IPAddrPollingService getUniqueMarkReservedValue> The markReservedValue of distributed polling might not be a unique value. To make it so, you can add the last x digits (default = 2) of the host IP address using this format for the MarkReservedValue: [original_val]${IP[-x]}
RegardsHello
The problem I am facing is I can't get the records that are processed (already READ) to not poll again despite the value being changed to the READ value configured, if I set the READ value in the configuration it will poll every record all the time despite the fact it is equal to the READ value. Then if I set the READ value and any other value no records will poll.
Consider 4 records in the DB (currently in test I have 431 but I have used distributed locking and ReturnSingleResultSet to limit it)
ID = 1, STATUS = PROCESSED
ID = 2, STATUS = UNPROCESSED
ID = 3, STATUS = UNPROCESSED
ID = 4, STATUS = OTHER
Config 1: If READ = PROCESSED records 1,2,3,4 will poll
Config 2: If READ = PROCESSED, UNREAD = UNPROCESSED no records will poll
Config 3: If READ = PROCESSED, UNREAD = UNPROCESSED, RESERVED = OTHER no records will poll
Config 4: If READ = PROCESSED and TOPLINK STATUS not equal string "PROCESSED" then records 1,2,3,4 will poll
What I want is Record 2 and 3 to poll which I believe is config 3 should do. However I believe there have been some changes that relate to distributed polling for clusters in 11.1.1.3 onwards which means in jdeveloper (11.1.1.6) when I go to re-config the db adapter after setting the RESERVED value it disappears from the editor .
JCA properties obviously with a MarkReservedValueand MarkUnreadValue column jumping in.depending on which config I am trying
<property name="DescriptorName" value="dbPollBlockRecords.F40G02"/>
<property name="QueryName" value="dbPollBlockRecordsSelect"/>
<property name="MappingsMetaDataURL" value="dbPollBlockRecords-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="STATUS"/>
<property name="MarkReadValue" value="PROCESSED"/>
<property name="PollingInterval" value="700"/>
<property name="MaxRaiseSize" value="1"/>
<property name="MaxTransactionSize" value="10"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="true"/> (This property has been manually configured, will unfortunately poll all records that match without it)
Regards -
A JDBC adapter specific time polling setup
Hi All
I am looking for a way to setup a JDBC Sender adapter to poll at a certain time of day, like 18h00. I have tried to set it up for polling every 60000 seconds and starting that adapter at 18hoo but due to Maintenance weekends, the adapter engine gets restarted and reset my polling time, so I need setup the adapter to poll at a specific time. Can anyone help me with this problem?
Thanks in advance
ClintonHi Clinton,
you can go over JDBC receiver adapter and use a BPM with a wait step, where you can put a certain time. If you send only once a day a message, performance of BPM cant be a bottleneck.
Regards,
Udo -
Message Created time past the current time even accounting for set clock sk
I'm getting the following when sending a message to a WebLogic 10.3 Web Service through OWSM security padding.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<faultcode>wsse:InvalidSecurityToken</faultcode>
<faultstring>Security token failed to validate. weblogic.xml.crypto.wss.SecurityTokenValidateResult@39b53a[status: false][msg UNT Error:Message Created time past the current time even accounting for set clock skew]</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>
On server side's TCP/IP Monitor I see the message received has <wsu:Created>2010-07-30T19:34:17Z</wsu:Created> in security header, the timestamp of TCP/IP Monitor showing time of request is 2010-07-30 12:32:51PM.
Seems like the sender's clock is two minutes ahead of server.
How do I adjust to lax the clock precision between client and server. Which side do I set the properties and what are the properties I need to set? ThanksPam,
from what i have gathered while trying to set mine up, the Time Capsule doesn't like other things broadcasting a wireless signal while it is trying to do the same... or at least, the other computers in the area can only recognize one at a time.
So, in your case, you are using your MacBook Pro to wirelessly share the AirCard connection, right? If so, your computer is acting as a router, which means you have two devices trying to connect your computers to the same network wirelessly. I think this is why your computer isn't able to "see" your time capsule wirelessly. What i would recommend for you is to hook up your aircard to a computer that is not used very often, and (if it has a wireless adapter), turn the wireless adapter off. This way, you have only one device doing the wireless connecting (the Time Capsule in Bridge mode), which will direct internet traffic through ethernet to the connected computer.
So, in conclusion, i just don't think it's possible to do what we want to do completely wirelessly. -
See block labeled ''digital data'' in my attachment for reference. Currently, only the digital data point for the current time step can be seen (it is deleted before the next one appears). However, I would like it display all the samples in the table like in the example found at this link under ''Digital Waveform Control'':
http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/fp_controls_indicators/
Many thanks for any suggestions! I am new to Labview, so I appreciate your help.
Solved!
Go to Solution.
Attachments:
myproject.vi 220 KBHey westerman111,
If you're looking to produce have your display include the solution information from previous solver steps, you will need to buffer the previous data. The way to implement this in a Control Design & Simulation Loop is using the Memory.vi found under Control Design & Simulation > Simulation > Utilities > Memory.vi. It will allow you to save previous information generated in the simulation environment for letter solution steps.
I've attached an example that should get you started in using the Memory.vi.
I would also make sure that what you're looking to accomplish is suitable for the Control & Simulation Loop. I know you mentioned you were new to LabVIEW so I wanted to make sure you were heading off in the right direction. Is there a particular reason why you are using the Control & Simulation Loop instead of a standard While or For Loop? The Control Design & Simulation loop is unique in that it calculates the solution of a dynamic system at a prescribed time step and ODE solver. It also provides the tools to interact with the model you are solving during execution. However, if you are simply looking to perform data acquisition and measurements (instead of dynamic model simulation) I would recommend using standard LabVIEW functions.
Here are some useful references for getting start with both LabVIEW and the Control Design and Simulation Module.
Tutorial: Getting Started with Simulation (Control Design and Simulation Module)
http://zone.ni.com/reference/en-XX/help/371894G-01/lvsimhowto/sim_h_gs/
Getting Started with LabVIEW
http://digital.ni.com/manuals.nsf/websearch/ba2fb433a7940e7a862579d40070cc2c
Tim A.
National Instruments
Attachments:
myproject_edit.vi 249 KB -
APPLE [see Apple Support's Article HT 3669] says Mac OS X 10.7 (Lion) has drivers for this Printer.
But, every time I've tried installing it to my Mac Book Pro (which came with OS X 10.7), it does recognize that the Printer (connected via USB cable) is HP LaserJet 1300 -- in fact, right below, this statement appears: "The drivers for this Printer are available...". But, when it comes to the actual process of downloading, the "Add Printer" window -- after 20+ minutes of its "searching" for the drivers -- always ends with the message: "Currently drivers for this printer are UNavailable... contact the manufacturer."!!! (Can you imagine? Apple says it's available... but its own "Add Printer" process says it's UNavailable!)
I went to HP's support site, and it, too, says that drivers for this Printer are available! -- see the 2 links:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01664444&lc=en&cc=us&dlc=en &product=4152639
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915680&tmp_track_link=ot_ faqs/top_issues/en_us/c02915680/loc:4&cc=us&dlc=en&lc=en&product=4152639#N507
Can somebody help me? Would very much appreciate it.You haven't installed any of the Photoshop updates for CS5.
Go download and install the updates. -
How to increase the waiting time for response in Adapter Engine not in IE
Hi Experts,
It is a SOAP to Proxy Synchronous interface. SOAP system is sending the request to PI, PI sending the same request to ECC system, After execution of some logic response back to PI in 7 minutes. In ABAP Stack(sxmb_moni) processing the response message also successfully with success flag after completion of these 7 minutes. But exactly 5 minutes later getting the error at Java Stack RWB- in communication channel monitoring i.e
com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message bd2bf8d0-b2c2-11e0-c383-001cc4fb5cb7(OUTBOUND) expired. We have set the "runtime-HTTP_TIMEOUT" parameter as 3600. thats why in Integration engine it is processing successfully.
kindly suggest me how to increase the waiting time for response in Adapter Engine. Exactly after 5 mins getting the above error in rwb, but in Integration Engine getting successful flag after 7 mins until then it is waiting for response with status flag Log version.
Thanks & Regards,
Srihari.Hi,
Please see
How To... Investigate Timeouts In Synchronous XI/PI Scenarios
It will answer all your queries
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747?QuickLink=index&overridelayout=true -
Formula Variable for Current Time
Friends,
Is there any standard formula variable available to display Current Time in Report??..like we have 0F_ADAY to display current date..
Thanks in advance..
Regards,
YogI am not sure that standard fomula variable existed for the current time. But
you can create a formula variable with customer exit processing type. Then write an exit with SY-UZEIT. you will get the current time.
Hope it helps.
Veerendra. -
Close to the "current time indicator" there's a lighter gray section. What is it for?
Close to the "current time indicator" there's a lighter gray section. What is it for?
This is the correct answer.
1. Re: What mean Light GRAY COLOR near CTI?
Todd_Kopriva
That is answered in After Effects Help:
After Effects Help | Assorted animation tools -
iMac 10.5.8 ... Time machine died. Bought new Time Capsule2TB. Ordered 10.6 ... Not recommended to install 10.6 w/o prebackup ... Current utility for airport won't do with the new Time Capsule. ... What to do?
You are in the typical catch22.. you cannot use the TC without setting it up.. you cannot set it up without Lion.. so you can install the latest utility.
Do you have any reasonably current iOS devices.. they can run the iOS version of the utility.. that will allow you to set up the TC.
Or invite a friend with a laptop running at least Lion
Or take the TC back and get a plain USB hard drive and backup to that. -
QUERRY FOR LAST 20 MINUTES FROM THE CURRENT TIME
hi i need to query one database table for the last 20 minutes from the current time, please let me know how to write the logic for this...
thanks for your helpHi Sudhir,
You will have to consider couple of cases here.. for example you execute the report at 00:10 am of a day.. The date is already changed and if you will only code for the logic, then you will get wrong results..
Do as below:
MOVE sy-uzeit TO w_time.
IF w_time LT '002000'.
w_time1 = '235959' - w_time.
w_date1 = sy-datum - 1.
SELECT xxx
FROM yyy
INTO zzz
WHERE ( time GT w_time1
AND date EQ w_date1 )
OR ( time LT w_time
AND date EQ sy-datum ).
ELSE.
w_time1 = sy-uzeit - '002000'.
SELECT xxx
FROM yyy
INTO zzz
WHERE time GT w_time1
AND date EQ sy-datum.
ENDIF.
Thanks and Best Regards,
Vikas Bittera.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
Maybe you are looking for
-
HTTP 500 - Internal server error when trying to run simple HelloWorld.jsp
Hello, I've searched the forum for a related issue and have not been able to resolve this error. I have created a simple HelloWorld.jsp and continue to receive the Internal server error. I have tried using the host as well as the ip address to access
-
o meu antivirus bloqueia o itunes e nao deixa desbloquear
-
Halo artifacts in text overlays
I am using overlays for text in my menus. The menus have been created in Photoshop CS3. In Photoshop, I am creating 720x480 images. I have the pixel aspect ratio view turned on...which I believe helps deals with the rectangular vs. square pixel issue
-
Yet another cordless phone thread?
Hey, all-- I recently switched out an old cordless phone for a new one, and instantly began experiencing interference (I know it's the cordless phone because the airport goes from solid green to blinking amber every time I make or receive a call). I'
-
I have the Snow Leopard installation disc and my aunt has a PowerBook G4 12 in. and we were wondering if the installation could affect in something. I'm not sure but she has Tiger.