How to provide date and time stamp to the extracted file.
I 'm downloading data from DB to Flat file using GUI_DOWLOAD. whenever it is executed it is creating with a file name.
if i rerun the program the file is overwriting with the same name.
now based on the requirement how many times i executed, that many times file should be individually created and should be added with date and time stamp.
like
if when i executed at the very first time it should saved with filename, date and time.
say "Address.txt 04/05/2007 07:55:10"
When i executed it for second time it doesn't overwrite the file.
it should create a new file.
like "Address.txt 04/05/2007 07:59:20".
Please guide me the way if possible code.
Thanks in advance.
Hi Vamsi,
Use FM 'F4_PROGRAM' to take file from the user .
In this case user will enter the file name. u can append date & time to that file path.
Refer this code.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SY-REPID
DYNPRO_NUMBER = SYST-DYNNR
IMPORTING
FILE_NAME = P_P_FILE.
concatenate P_FILE '04/05/2007 07:59:20' into V_FILE.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_file
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = i_tab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF sy-subrc = 0.
MESSAGE i002.
ENDIF.
Reward points if helpful.
Regards,
Hemant.
Similar Messages
-
How do you date and time stamp iCal entries? We share an event calendar and need to know when a new event was entered into iCal.
BKBK,
Thank you for your response. That does adequately cover the
client-originated sessions, but still leaves the ability I am
looking for unavailable.
It did serve to definitively answer my most pressing
question, however, with this statement:
Note: ColdFusion cannot create a session if an initiator
application uses a SendGatewayMessage method to start an
interaction with a client, such as an SMS user. In this case, the
sending code must keep track (for example, in a database) of the
messages it sends and their destinations. When a response event
arrives, it can look up the origniatorID to determine whether it
was in response to an outgoing message.
I will play around with the Application scope to see if there
might be a workable solution there.
RLS -
How do you date and time stamp pictures and videos using a EOS Rebel T3?
I am needing to utilize date and time stamping on videos and photos in my work. The pictures and videos must display time, a date, and reference number. I have gone through the cd, owner's manuel and software manuel and I am unclear if I can perform this function.
While this is a relatively common feature on point & shoot cameras -- where the photo is thought of as a snapshot to document a memory in a person's life, among DSLR cameras it's not very common (I don't actually know of a DSLR that does this though I don't doubt that it may exist). DSLR users are usually expecting a higher quality image -- so now the image is thought of more like art and less like a snapshot and the date/time in the corner distracts from the image. Also they tend to be more advanced users who would be able to modify the image themselves so they have little need for such a feature.
The camera does record the date & time... but it's in the EXIF data (information recorded into the image file but not displayed).
SO... there are programs that will just do this. You'll need to do a search (I found several but have never tried one so I can't vouch for them). I think there are Photoshop plug-ins that do this (assuming you have Photoshop). These programs allow you to define the info you want printed (including EXIF data such as date/time) and you get to pick the location, font, size, color, etc. and ultimately the location on the image where you'd like the info displayed. They then add the info visibly onto the image for you and most support "batch" use (e.g. drop a whole folder of images on it and they'll do them all.)
Tim Campbell
5D II, 5D III, 60Da -
Date and time stamp for the file
Hi Experts,
My Requirement is to create a csv file with the name testfile_date×tamp.
If i select add time stamp in the receiver file communication channel the file be as testfile_yyyymmdd_hhmmss_XXX.
The XXX is message id which comes by default by selecting add timestamp option.
but, i don't want the message id displayed in the file name.As i know from the blogs we can reach this requirement as per Michels blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
I am not clear in the mapping. after writing the udf, to which filed i need to map with that udf.
can you please tell me stel by step how how to do mapping and how to achieve the requirement. request you to send the code forthe udf.
Thanks
RahulHi,
you can wirte udf and map it to root element of the target message type. u just need to execute the udf.
UDF:
// UDF havs one input parameter - timestamp
Code:
DynamicConfiguration conf = (DynamicConfiguration) container .getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String OldFileName = conf.get(key);
String newFileName = "";
if (OldFileName != null) {
newFileName = "testfile_" +timestamp ;
conf.put(key, newFileName);
return newFileName;
Mapping:
Date (standard function) [Formmat yyyyMMdd_hhmmss] -> UDF -> MesageType.
Thanks.
Ritu -
I have a iphone 3 and want to know if there is a date and time stamp on the phone for the pictures
is there a date and time stamp for pictures on iphone 3?
Open a one of your pictures in any photo app on your computer and see if the metadata is there. I'd be surprised if it isn't.
-
Date and Time stamp for the archives
Hi,
I'm trying to set up a date/time stamp field for a Documaker archive.
I've added a TIME_STAMP field in my APPIDX.DFD and I populate the field using a DAL script, invoked by a PreTransDAL line in my AFGJOB file. That works fine but, the DAL script being invoked for every transaction, it adds to the processing time.
I do not need an exact date/time stamp for each transaction in the batch, I could use the same one for all the transactions. That would require the TIME_STAMP global variable to be populated once, at the job level, at the beginning of each batch.
Any suggestions?
Thanks.Hi Gaetan,
Try using a BatchBannerBeginScript to populate a GVM with the date/time, and then reference this GVM in your APPIDX.DFD. In this manner the value will be updated at the start of processing for each batch rather than each transaction. Or, consider the possibility of adding the transaction date/time into the extract data and then sourcing from that point. Either should work. In my experience most customers prefer that the archive date/time come from the system of record rather than the time the transaction was archived -- unless of course the customer actually wants to record the time the transaction was archived, in which case the method I've described above should work.
Enjoy!
Andy -
Date and time stamp on dump & log file using EXPDP in HP-UX
Hi All,
Can someone help me with the below issue
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0 , Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
#!/usr/local/bin/bash
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2; export ORACLE_HOME
PATH=/u01/app/oracle/product/11.2.0/dbhome_2/bin; export PATH
mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
ORACLE_SID=PD; export ORACLE_SID
expdp system/0@PD DIRECTORY=prod_exports DUMPFILE=FULL_EXP_PD_${mydate}.
dmp LOGFILE=FULL_EXP_PD_${mydate}.log compression=all schemas=SYSADM991805 wrote:
Hi
Thank you very much for your reply. The problem is the time stamp is not coming on my dumpfile
So what are you getting?
Works for me:
#!/bin/bash
export ORAENV_ASK=NO
export ORACLE_SID=orcl
. oraenv
mydate=`date +%Y_%m_%d_%H_%M_%S`; export mydate
echo mydate is $mydate
expdp system/halftrack directory=data_pump_dir dumpfile=full_exp_${mydate}.dmp logfile=full_exp_${mydate}.log schemas=scott
ls -l /u01/app/oracle/admin/orcl/dpdump
2014-01-03 15:28:36
oracle:orcl$ ll
total 260
-rwx------ 1 oracle oinstall 300 Jan 3 15:27 doit
-rw-r----- 1 oracle asmadmin 116 Jan 31 2013 dp.log
-rw-r----- 1 oracle asmadmin 249856 Jan 3 15:28 full_exp_2014_01_03_15_27_34.dmp
-rw-r--r-- 1 oracle asmadmin 1974 Jan 3 15:28 full_exp_2014_01_03_15_27_34.log -
Date and time stamp with Sony HDR CX7
Hi,
I am trying to figure our how to find date and time stamps for individual clips.
My workflow is as follows: I use disk utility to make a disk image (.dmg) of the memory stick and import the clips from this disk image. Everything works fine, but I am not able to find any date and time information on the imported clips.
I am slowly building a large archive of these disk images and I am wondering whether I need to add some some date an time info manually. I know that this information is recorded on the memory stick as the camera can display them.
Thomas
Config:
Sony HDR CX7
Final Cut Express 4
OS X 10.5
MacBook Pro 2.4GHzI'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
No -
Date and Time Stamp Removal?
Does anyone know how to digitally remove the date and time stamp on the face of the photo once the photos are loaded in Aperture, short of doing re-touch? Working in Aperture 3.
ebigglesworth,
I too am curious about Frank's mention of the date and time removal tool.
As an aside to your comment:
I'd rather just be able to tell aperture I don't want the time stamp on the image, to remove it some how digitally, if that makes sense. You'd think it could just be backed out in some fashion.
That's impossible. Your camera made it impossible. Your camera threw out some pixel data of the real picture in favor of replacing it with yellow, white, and black pixels (or whatever color your timestamp is). Basically, the original photo information is completely lost. All you can do is smudge things (in one way or another) and make the best of it. It will never look completely right unless you use a pixel editor (which Aperture is not) and painstakingly put color in, pixel-by-pixel.
nathan -
Retriving records with the date and time stamp
I need to get all the records that were update between 08:36:06 AM and 8:36:09 AM on the12/15/2009
I am using this query it is giving me the right numbers (I think) because this condition GURMAIL_CPLN_CODE = 'UGAP', I would like something more
precise using the date and time stamp with the dates
12/15/2009 08:36:06 AM
12/15/2009 08:36:07 AM
12/15/2009 08:36:08 AM
12/15/2009 08:36:09 AM
select * from GURMAIL
where
PERMAIL_CPLN_CODE = 'UGAP'
AND TO_CHAR(PERMAIL_ACTIVITY_DATE,'MM/DD/YYYYHH24:MI:SS AM') >= '12/15/2009 08:36%'Thank youYes, but HH24 and AM cannot be used together:
SQL> select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual;
select to_date('12/15/2009 08:36:06 am', 'mm/dd/yyyy hh24:mi:ss am') from dual
ERRORE alla riga 1:
ORA-01818: 'HH24' impedisce l'uso dell'indicatore meridianoUse this:
select *
from gurmail
where permail_cpln_code = 'UGAP'
AND permail_activity_date between to_date('12/15/2009 08:36:06', 'mm/dd/yyyy hh24:mi:ss')
and to_date('12/15/2009 08:36:09', 'mm/dd/yyyy hh24:mi:ss')or this:
select *
from gurmail
where permail_cpln_code = 'UGAP'
AND permail_activity_date between to_date('12/15/2009 08:36:06 AM', 'mm/dd/yyyy hh:mi:ss am')
and to_date('12/15/2009 08:36:09 AM', 'mm/dd/yyyy hh:mi:ss am')Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]
Edited by: Massimo Ruocchio on Dec 23, 2009 12:05 AM -
How to get the most current file based on date and time stamp using SSIS?
Hello,
Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
Thanks
thx regards dinesh vvhi simon
i excuted this script it is giving error..
Microsoft SQL Server Integration Services Script Task
Write scripts using Microsoft Visual C# 2008.
The ScriptMain is the entry point class of the script.
using System;
using System.Data;
using Microsoft.SqlServer.Dts.Runtime;
using System.Windows.Forms;
namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
[System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
#region VSTA generated code
enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
#endregion
The execution engine calls this method when the task executes.
To access the object model, use the Dts property. Connections, variables, events,
and logging features are available as members of the Dts property as shown in the following examples.
To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
To post a log entry, call Dts.Log("This is my log text", 999, null);
To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
To use the connections collection use something like the following:
ConnectionManager cm = Dts.Connections.Add("OLEDB");
cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
To open Help, press F1.
public void Main()
string file = Dts.Variables["User::FolderName"].Value.ToString();
string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
System.IO.FileInfo finf;
DateTime currentDate = new DateTime();
string lastFile = string.Empty;
foreach (string f in files)
finf = new System.IO.FileInfo(f);
if (finf.CreationTime >= currentDate)
currentDate = finf.CreationTime;
lastFile = f;
Dts.Variables["User::LastFile"].Value = lastFile;
Dts.TaskResult = (int)ScriptResults.Success;
thx regards dinesh vv -
How do I find the date and time stamp on pictures?
How do I find the date and time stamp for my pictures?
The Photos app will not do this but other apps will. iPhoto has an icon that when tapped with the photo open will show the EXIF information you are looking for. iPhoto is not free but you can purchase it in the App Store.
There may be other photo apps that provide this information as well.
PhotoForge2 will show the EXIF data as well as the GPS data if it is available. -
How do you edit out the date and time stamp from a photo
How do you edit out the date and time stamp from a photo
You can blur it out with retouch
The built-in "Retouch" brush in "Edit" mode should suffice, if the background is mostly uniform, and if you set the size of the brush to slightly wider than the bar width of the letters. For example, in this picture I removed the year from the date (in the lower right corner) by using the "retouch" brush and following the contours of the letters. (the screen shot is from iPhoto '11, but iPhoto 9 should give similar results).
Regards
Léonie -
How can i get a copy of my ipone messages with the number, date and time stamp?
How can I get a copy of my iphone messages with the number it was sent from and the date and time stamp? Needed for court purposes.
Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
http://www.ecamm.com/mac/phoneview/
http://www.wideanglesoftware.com/touchcopy/index.php
You should probably consult your attorney to see if either of these will be acceptable. -
I have an Iphone 4S and I would like to print my text messages, including the thread and the Imessage date and time stamps. How would I do this?
settings - message - imessage - OFF
Maybe you are looking for
-
T-sql 2012 accept null parameter values
The following t-sql 2012 works fine in sql management studio. However when I place it in a .net 2010 web form application, I am told the sql does not work when the parameter values are null. Thus can you tell me what I can change in the sql below tha
-
ACI - Date Range issue for Sales Details report
I am working on ACI setup for one of my client. I set everything us as per documentation. This is regarding 'Sales Details' (Public Folders > ATG > Commerce > Sales > All Sales) report. Report is being generated if I select 'Date Range' under 'Time P
-
Moving files to Windows Media Player
how do I move music from I-tunes library to Windows Media playlists? It used to be drag and drop.
-
How to keep my personal hotspot on always with no changes to off?
HI,i have two devices and i want to keep the personal hotspot on all the time. How do I have to keep the personal hotspot on all the time and not to be changed In case I want to track it? Thank you
-
I am attempting to set up a guest network on the Airport Extreme Base Station. The Base Station is connected to a DSL Modem. The network is also extended using an Airport Express. When I have attempted to set up the Base Station using DHCP NAT in the