Date in different formats

Hello All,
I have requirement in SAP script where I need to compare the system date and condition validity date and display the value if todays date lies in validity date. What is the best way to do this , I have tried using a perform statment but the date when being passed into the program is appearing in different formats in dev server (dd.mm.yyyy) and test servers(yyyy.mm.dd), I have checked the user settings and they are similar why is the date being passed in different formats.
Thanks in advance,
ranjan

Hi Ranjan,
or if you want to compare two dates.
use the FM "CONVERT_DATE_TO_INTERNAL " it converts user setting date to internal format YYYYMMDD
then you can compare
USe the FM "CONVERT_DATE_TO_EXTERNAL "  it converts the input date to user setting format it is (dd.mm.yyyy) and test servers(yyyy.mm.dd),
data : formatted_date(10).
WRITE sy-datum  TO formatted_date MMDDYYYY.
Now for all users the date format will appear MMDDYYYY regardless to user setting.
Prabhudas

Similar Messages

  • Looking for best way to filter status or meter data from differently formatted text.

    With the product we design we are able to communicate via RS-232 ports. What I'm trying to do is filter out the data that is given by multiple differnt types of products that will give similar data back, but in a differnt format. Such that in a status command I'm looking for everything to be in a non failed state. But some items will show warning, failure, #.##w(for warning), or #.##f (for fail). But the format of each product is different. Also for a meter command I'm looking for a way to filter out just the numeric value for each phase amplitude, but once again the format will be different for each product. I have been able to pull this data out easy enough for an individual product but not on a wide product range with the same VI.

    "Service is not available at this time
    Try back later"
    Bye...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • VBA:comboboxes to present same date in different formats...ADAPT WITH CHANGE IN DATE

    Hi all, 
    I'm very new to VBA and excel development, so please take that into consideration as you read on.
    I'm trying to create a work form for a database that (should) collect various information in comboboxes, including the date, the weekday, and the month... Note: most of the time, the data will be inserted the day after it's been collected. So, I wanted to create
    one combobox for the date, one for the weekday, and one for the month, because I want columns for each of these in the database (If this is not necessary/efficient, please help! :) ) . 
    Here's what I've got so far:
    'worksheet setup
    Dim ws As Worksheet
    Set ws = Worksheets("LookupList")
    'Date dropdown setup
    Dim cDateToday As Range
    For Each cDateToday In ws.Range("DateList")
    With Me.cboDate
    .AddItem cDateToday.Value
    End With
    Next cDateToday
    'If today is Monday, then set date to last friday, if any other weekday, set it to day before that
    If Weekday(Date - 1) <> 2 Then
    Me.cboDate.Value = Format(DateAdd("D", -Weekday(Date) - 1, Date), "Medium Date")
    Else
    Me.cboDate.Value = Format(Date - 1, "Medium Date")
    End If
    Problem #1: Right now, I am getting the date values from the list
    DateList in the worksheet LookupList...is there a better way of doing this?
    Problem #2: When the user form is run, the correct date and format shows up. However, if I change the date, the dropdown list in the combobox starts from the initial date in given list...is there anyway to bring the list closer to the current
    date? Think Calendar View
    Problem #3: I want the weekday and month values to be directly correlated to the date value discussed above, so hypothetically when the user form is run the correct date, weekday, and month all show up (based on the same date value), then if
    I change the date, the weekday and month automatically update. Is this possible, if so how?
    The reason I want this functionality is so that on a Monday, I can run the work form and it will automatically have Friday's date, weekday, month info as it opens. When I'm done with Friday, I can run it again, switch the date to the Saturday's
    date (weekday and month automatically update), then repeat for Sunday.
    I have tried running the same code for the weekday and month as I have for the date, and they work
    until the date is changed. Once the date is changed, I have to manually change the weekday, which leads to format change, and same for month, which all leads to :( and confusion
    Again, I am very new to vba and don't know much about it all and appreciate any/all help!
    Thanks in advance!
    /Alex

    I can give you a little advice but I don't understand your comment "if I change the date, the weekday and month automatically update" Where do you want them to update?
    I am assuming that your entire question is referring to a Userform with the Combobox. Is this correct?
    The code can be much simpler to populate the combobox list. You already have a named range for the Dates so you can use that directly to populate the RowSource. (RowSource if the combox is on a Userform or ListFillRange for a combobox on a worksheet).
    Then the WorksheetFunction Workday can be used to get the previous workday without weekend days. It also looks after the previous day when the actual date is mid week. Look up the function on the worksheet Help because you can also have a separate list
    of holidays that will be excluded like weekend days.
    If you are new to VBA then a tip about Help. You need to be on the worksheet and click Help to get worksheet help and in the VBA editor you click Help to call the VBA help. Don't just select Help off the taskbar when changing between the worksheet and VBA
    because you will finish up with the incorrect Help file.
    Example of code to assign a named range to the RowSource of a ComboBox. Named range needs to be Global and not scoped to a worksheet otherwise the worksheet name is also required. 
        Me.cboDate.RowSource = "DateList"
    Example of code to assign the previous workday to the combobox value.
        'Following line sets value to previous workday (Mon to Friday)
        Me.cboDate.Value = WorksheetFunction.WorkDay(Date, -1) 
    Then there is another problem with ComboBoxes and dates. If the Dates are real dates on the worksheet (Not Text)  then the dropdown list displays in the same format as the worksheet but when the date is selected, it displays as a serial number. This
    can also be rectified with code but first I need to know what the format of the data is on the worksheet.
    Can you upload a copy of your workbook because it is like a picture is worth a thousand words. Same goes for having a copy of the workbook. If it has sensitive data then create a copy and remove the sensitive data.
    Regards, OssieMac

  • Compare two dates in different format.

    Hi
    I want to compare two dates....one of which is in the timeStamp format ("yyyy-MM-dd HH:mm:ss")
    and the other is in java.util.Date i.e Tue Oct 11 10:22:47 GMT+05:30 2005
    Do I have to tokenise and then compare them.Is there any better approach?
    I want to find out which is greater/smaller one.
    Pls help.
    Regards,
    Sandip.

    I would convert both to Date and compare them. To convert String to Date check java.text.SimpleDateFormat and its parse(...) method.
    HTH
    Mike

  • Extenal table stores data in different format

    I used the following statement I found at
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch12.htm
    exaclty.
    CREATE TABLE emp_load (first_name CHAR(15), last_name CHAR(20), year_of_birth CHAR(4))
    ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_dir
    ACCESS PARAMETERS (RECORDS FIXED 20 FIELDS (first_name CHAR(7),
    last_name CHAR(8),
    year_of_birth CHAR(4)))
    LOCATION ('foo.dat'));
    Alvin Tolliver1976
    KennethBaer 1963
    Mary Dube 1973
    And when I select from table I get three rows, but the format is all wrong.
    SQL> select * from emp_load;
    FIRST_NAME LAST_NAME YEAR
    Alvin Tolliver 1976
    hBaer 196
    Kennet
    Dube 197
    Mary
    Can anybody please tell me what's going on here??

    $ cat foo.dat
    Alvin Tolliver 1976
    Kenneth Baer 1963
    Mary Dube 1973
    $ sqlplus scott/tiger
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Jan 25 11:35:16 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SQL> CREATE TABLE emp_load (first_name CHAR(15), last_name CHAR(20), year_of_birth CHAR(4))
      2  ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_dir
      3  ACCESS PARAMETERS
      4  (records delimited by newline
      5  FIELDS terminated by ' '
      6  )
      7* LOCATION ('foo.dat'))
    SQL> /
    Table created.
    SQL> select * from emp_load;
    FIRST_NAME      LAST_NAME            YEAR
    Alvin           Tolliver             1976
    Kenneth         Baer                 1963
    Mary            Dube                 1973
    SQL>                                                                                            

  • Inserting data from one table to another in different format

    Hello,
    I would like to know what I am doing wrong with the following code when I write a data from one another to another table in a different format. I am now learning PL/SQL and am using this as
    a test problem.
    I have a table called students which has the following columns:
    SQL> desc student
    Name Null? Type
    ----------- ----------------STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(10)
    CREDITS NUMBER(10)
    I have created another table called new_student which has the following structure:
    SQL> desc new_student
    Name Null? Type
    ----------------------------------------- -------- ------------- STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(30)
    CREDITS VARCHAR2(10)
    The data in the student table is:
    SQL> select * from student;
    STUDENT_ID COURSE CREDITS
    1 Science 4
    1 History 3
    2 Science 4
    2 History 3
    2 Math 4
    3 Sociology 3
    3 Psycology 3
    I want to store the STUDENT table data in NEW_STUDENT table as:
    STUDENT ID COURSES CREDITS
    1 Science/History 4/3
    2 Science/History/Math 4/3/4
    3 Sociology/Psycology 3/3
    This is my code:
    DECLARE
    -- Get all the student IDs
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    -- Get the information for each student ID
    CURSOR courses_cursor(nstudentid number) is select course, credits from student where student_id=nstudentid;
    nIndex     INTEGER;
    pltcourses     DBMS_SQL.VARCHAR2_TABLE;
    pltcredits     DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    -- Loop through each student ID from student_rec to get the
    --courses and creditsstudent ID
    FOR courses_rec in courses_cursor(student_rec.student_id)
         LOOP
         nIndex:=nIndex+1;
         pltcourses(nIndex):=courses_rec.course;
    -- Store the course data for each student ID in newcourses
    -- while doing so check if it is null or put a '/' between each course
    loop
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    end loop;
         pltcredits(nIndex):=courses_rec.credits;
    --Store credits data in variable newcredits
    --If the newcredits is not null then put a '/' between each credits
    loop
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    -- Insert student id, newcourses, newcredits into NEW_STUDENT
    INSERT INTO NEW_STUDENT
    (student_id ,
    course,
    credits
    ) VALUES
    (student_rec.student_id,
    newcourses,
    newcredits
    COMMIT;
    -- come out of the student id record and go to the next student --id record
    END LOOP;
    -- come out of the loop
    END LOOP;
    END;
    While doing so I get an error message:
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 23.
    The error is at the line:
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    Can anyone help me by pointing out where the mistake is?
    Thank you for reading this long mail.
    Thank you.
    Rama.

    Hi dude
    there is lot of error in ur pl/sql.
    and u have created table new_student with columns
    student_id number(10),
    courses varchar2(30),
    credits number(10).
    first u need to modify ur table.
    student_id number(10),
    courses varchar2(30),
    credits varchar2(10).
    Now i am writing whole pl/sql block for u. it will work fine.
    DECLARE
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    CURSOR courses_cursor(nstudentid number) is select course, credits from student
    where student_id = nstudentid;
    nIndex INTEGER;
    pltcourses DBMS_SQL.VARCHAR2_TABLE;
    pltcredits DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    newcourses := null;
    newcredits := null;
    FOR courses_rec in courses_cursor(student_rec.student_id)
    LOOP
    nIndex:=nIndex+1;
    pltcourses(nIndex):=courses_rec.course;
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    pltcredits(nIndex):=courses_rec.credits;
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    INSERT INTO NEW_STUDENT
    (student_id,
    course) VALUES
    (student_rec.student_id,
    newcourses);
    END LOOP;
    END;
    and please revert back
    Regards
    Anil

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • I just updated my MAC operating system and when I went to open a recent document in numbers, the document that opened had none of my data and was formatted differently.  Can I get my document with all my information back?

    I just updated my MAC operating system and when I went to open a recent document in numbers, the document that opened had none of my data and was formatted differently.  Can I get my document with all my information back?

    I suggest the easy stuff first:
    1) quite Numbers and restart Numbers
    2) reboot the computer
    After that try opening the same document in another user space

  • Can we write data to different sheets in the same excel output file ?

    Hi,
    I am using XML publisher and generating output in the excel sheet format.
    Is it possible to write the data to different sheets on the same excel file using XMLP?
    Please let me know how to do this.
    Thanks in advance,
    Raj.

    Hi,
    No, it's not possible with 5.6.2. Excel based templates are supposed to be coming but I don't know when the release date will be.
    Thanks
    Paul

  • My experiences of importing different formats into IMovie...!!

    I’ve been through a lot of pain with IMovie for the last 6 months, and cracked it a couple of days ago. I therefore feel the need to write about my experiences.
    I have lots of old footage on:-
    1. DV tape
    2. HI8 tapes
    3. Sony mini-DVDs
    4. DVDs
    5. Sony standard def hard disk camcorder files.
    1. DV tape
    This was a joy to import. OK, so I had to invest a small amount of cash to buy a new cheapie DV camcorder (as my old one broke years ago), but the import itself was easy. Just connect the camcorder, the import window appears, and away to go. Events are imported with the correct date and time, and it even creates a new event for different days imported.
    2. HI8 tapes
    As I’ve only got a few of these, I decided to ‘cheat’, so I’ve recorded them onto DVDs using my domestic DVD recorder sitting under my TV. So the problem is shifted from HI8 tapes onto DVDs.
    3. Sony mini-DVDs
    I’ve been trying to crack this issue for months. Clips are imported in random order, even though they are shown in the correct order in the preview. Hopefully it will get sorted. See the following thread:-
    http://discussions.apple.com/thread.jspa?messageID=9404421&tstart=0
    4. DVDs
    Haven’t tried this yet, until the mini-DVD issue is sorted. I might go down the road of converting the VIDEO_TS folders into DV files using MPEG Streamclip from squared5.com but I’d rather wait and import them ‘properly’ as the software intended.
    5. Sony standard def hard disk camcorder files.
    Now this is the biggie…..
    I had about 1,000 MPEG2 files on my hard disk, that I’ve moved from my camcorder over the years. To my annoyance, when I switched from a PC to the Mac, I needed to buy the MPEG add-on to Quicktime. OK, so no big deal, but even then, all I could get was the video with no sound. After weeks of digging about, I found out that the reason there was no sound is because apparently Quicktime can’t handle MPEG files with AC3 dolby digital sound. As all of my files are recorded in this format, this was a major hurdle.
    I then dug around and discovered that on the Sony CD that comes with the camcorder, there is a utility to down mix the AC3 audio to stereo. But it can only do one file at a time – no good for 1,000 files.
    Even so, I tried a few files, and yes – they now played under Quicktime WITH audio.
    But when doing an import into IMovie 09, the files are greyed out and cannot be selected. So back to the drawing board...
    I then looked into various bits of software, finally deciding to get MPEG Streamclip, in order to convert the files in something more Apple friendly.
    I did lots of experiments over many weeks in converting files to different formats for import into IMovie, and even though some of them looked excellent, when exporting to different sized export files (e.g. IPod, AppleTV), some of them had artifacts and shimmering all over the place.
    Reluctantly I took the helpful advice of someone to convert them into DV files. I say ‘reluctantly’ because the files are HUGE. So much so, I then shelled out (even) more cash on a Drobo to store all the converted DV files.
    Next problem...
    Because MPEG Streamclip converts the files into DV files, the original date and time information is lost. This is a real pain and means IMovie thinks all the files are 2009.
    I then purchased the excellent ‘A better finder renamer’ and ‘A better finder attributes’, to see if I could rename the files. Unfortunately there is no easy way to say ‘change the date/time on the new DV file to be the same as the old MPEG file’ a thousand times over.
    I then approached a company about writing a bespoke automator script to do this for me. But it was going to be expensive.
    I then set about manually changing some of the dates of the files.
    Even then, IMovie was getting confused during the import, and putting some of the scenes in the wrong order. Looks like because MPEG Streamclip is so quick at doing the conversion to DV, that some of the files have the same time stamp, so IMovie gets confused.
    I then looked into software to slow my Mac down, so that MPEG Streamclip would run slower (I wanted to guarantee that each file out of the thousand that it created was created in a different MINUTE to the last file). This was proving fruitless however.
    I then had useful discussions with Appleman1958 - see thread -
    http://discussions.apple.com/thread.jspa?threadID=1979095&tstart=0
    who suggested that I could rename the files with the IMovie notation, i.e.
    clip-yyyy-mm-dd hh;mm;ss.ext
    I even worked out how to do this automatically using ‘a better finder renamer’.
    But there was still one more issue.
    When the files were imported into IMovie, the thousand files would just come in as one event (unlike importing DV tape where it splits into days).
    Being unhappy with this, I had a brain wave and decided to try something else. AppleMan1958 helpfully suggested putting the files into different folders “behind IMovie’s back”, something I was open to doing, but wanted to try something else first...
    I resurrected my old camcorder from my attic, and filmed a few minutes of footage.
    I then plugged the camcorder into my Mac. To my AMAZEMENT, the import window appeared in IMovie (just like it does for DV tapes), AND the audio played as well as the video. I was absolutely staggered.
    I then noticed an ‘archive’ button within the import window, so decided to press it. It then copied the MPEG file from the camcorder onto the hard disk. But it did so in the structure of the original camcorder (i.e. it creates a series of specially named folders, just like on the camcorder).
    I then decided to copy all 1,000 of my MPEG2 files into the new special structure that had just been created.
    All 1,000 files were then accessible using the standard import function!!!!
    (By the way – I’m sure people already know this information – and I’m in no way taking credit for any of it, as it’s probably been suggested by other people in the past).
    I’ve now happily imported all of the files.
    (Interestingly, a couple of times it said ‘Error!’ on importing some of the files. The third time I tried it, it worked. How random!!)
    What amazes me is that now the Mac CAN seemingly handle MPEG video AND ac3 audio, whereas it can’t handle it by double-clicking the files in the finder. I can’t see why this should be the case. Also, it’s really annoying that when importing the files from hard disk, the files are totally greyed out – but it CAN import them by fooling IMovie into thinking it’s a camera archive.
    Ofcourse now I’ve spent all this extra money, it’s time to dust off the old camcorder and use that for a few more years, until I pluck up the courage to go hi-def...
    Hope you enjoyed reading – thought I’d share my experiences incase there are any newbies out there with similar issues. It’s annoying that Apple make it seem like childsplay to connect your new shiny camcorder to IMovie, but seem give little help in the more technical issues.
    Now, if only they’ll fix the mini-DVD import bug too...!
    Brad

    Hi Brad,
    when you use Streamclip to convert media, use the same name for the exported file (only with different extension). Then make a shell script calling
    touch -r origFileName.mp2 newFileName.mov
    This will copy the exact time and date from origFileName.mp2 to newFileName.mov
    The script may look like this (save the file, give an exec permission to it and call it in the right directory):
    #!/bin/bash
    for i in `ls *.mp2`; do
    NEWNAME=$(ls "$i" | sed -e 's/mp2/mov/')
    touch -r $i $NEWNAME
    done
    You may need to adapt the extension names used (in the example above .mp2 is input file to get the date/time stamp from and .mov is the output file to stamp.
    Have fun and cheers

  • Error message downloading OBIEE Report to Excel "is in a different format"

    Dear experts:
    We just upgraded to 10.1.3.4.1 in our Dev environment and are seeing a pecuiliar behavior when we try to download a report to either "Excel" or "Excel 2000".
    After selecting Excel (or Excel 200) from the Download Link, we get the following message that pops up:
    The file you are trying to open 'Period Summary.xls' is in a different format than specified by the file extension. Verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?
    We are then given the choice of Yes, No, or Help
    When I click Yes, the File does open, but why this message? I can see the users complaining about this message.

    I found the link to MSDN site which states that this is a "known problem" and MS will provide a fix at a future date.
    http://blogs.msdn.com/vsofficedeveloper/pages/Excel-2007-Extension-Warning.aspx
    Also, the following metalink documents address this: 780817.1, 759410.1
    This is the expected behavior due to security restrictions implemented in MS Office 2007
    Solution
    The following is the workaround for this issue:
    Client desktops can change the default behavior of the security check using a registry key. The following registry key can be set to alter the behavior of the Excel 2007 client in the following ways:
    Disclaimer from Microsoft: WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
    Key: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security
    Value: (DWORD)"ExtensionHardening" = [0 = Disable check; 1 = Enable check and prompt; 2 = Enable check, no prompt deny open]
    I have searched through OBIEE Oracle docs, but didn't find any mention of this issue.
    Has anyone seen any OBIEE workaround for this?

  • BI Publisher Report Layout Get Distorted when viewed in different format

    Hi Experts,
    I am facing issue while running BI Publisher Report.
    The Report Layout work fine in one output format (PDF).
    But when the same report is generated in different format it get distorted (HTML,EXCEL).
    Could any one please let me know how to resolve this issue.
    Is there any SR raised for this issue.
    Cheers,
    Andy

    Hi,
    I have faced a similar issue, Finally i created a different template for each output type, and tweaked each template through trial and error till the output it provided was what i was looking for in the specified output format, I had a different template for PDF and a different one for HTML. If I used the html optimised template for PDF out, there were all sorts of alignment issues, etc.and vice versa. As for the date format, you can set the parmeter correctly using the word date format properties.

  • Download file in different formats(its urgent)

    Hi experts,
    I have a problem when downlaod a file in different formats.
    File should be downloaded 3 Formats.
    1. DWG
    2. DXF
    3. PDF
    this file is used for CAD Drawings.
    So i required a Functional Modules to generate a file in 3 different formats.

    Hi,
    You can download an internal table data (of report format) into PDF
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    * BIN_FILESIZE =
    filename = i_pfad
    filetype = 'BIN'
    * IMPORTING
    * FILELENGTH =
    TABLES
    data_tab = i_att_cont
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    OTHERS = 5.
    But DWG DXF are third party specific, i think in SAP we don't have functional modules to download in these
    aRs
    Points are always welcome

  • How do you vary the Date/Time stamp format in File Adapters

    In the receiver channel of the File Adapter where you specify the 'File Name Scheme', you do have the option of specifying a 'File Construction Mode' of 'Add Time Stamp'.  How can you specify a different Date/Time stamp format ( eg MM/DD/YY vs YYYYMMDD vs MMDDYY, etc. ) without changing the Date/Time stamp for the entire SAP system?  Also, can you control where the Date/Time stamp appears in the filename?

    Hi,
    There are many threads discussing the same issue. Go thro the following:
    Dynamic file name (Date) in Receiver File Adapter
    Receiver File Adapter - TimeStamp
    Bhavesh's reply in above thread:
    You can use Adapter Specific Identifiers and then change the file name in the mapping. Append the tiem stamp in the format that you want and so on.
    Just use this code in an UDF,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = conf.get(key);
    java.text.SimpleDateFormat dateformat = new java.text.SimpleDateFormat( "yyyyMMdd" );
    dateformat.format( new java.util.Date() );
    String newfilename=SourceFileName+dateformat;
    // change to new file name
    conf.put(key, newfilename);
    return "";
    Regards,
    P.Venkat

  • Exporting Dynamic data to a formatted excel-readable array

    Hi all,
    I am trying to export some data into an excel sheet (csv) by creating a new file in which the data is stored. With the current set up that i have, i keep on running into the following problems:
    1. After every iteration in a single run, a dialogue box pops up and asks me  where to save the data, after i have already specified a file name
    2. The data format in the excel file is not what i wasnt. The data is all displayed as one string while i would like it to store the data in different columns.
    Some background: In the section of the vi that i have attached, i use 2 DAQ assistants. The first is used to obtain the initial voltage value at the 2 piezos which is then fed into the rest of the vi, this needs to be done just once, at the beginning of the vi run. The second DAQ asst is used to monitor and save the voltage as it is gradually increased and applied to the piezos.
    A picture of the section of the vi im having trouble with is attached, along with the entire vi.
    I would appreciate any help you can give me on these problems.
    Thanks!
    Attachments:
    errorvi.JPG ‏50 KB
    Coordinate Writing V2.vi ‏166 KB

    I Cant run your vi at the moment but from what i can see.
    - use the file open vi from the file I/O pallette rather than the Express file open VI you have and supply it with a proper path, not a string.
    - I prefer to use .csv (Commas Seperated) instead of tab seperated as i find it easier to read in a string indicator or similar and is just as easy to open in excell.
    - How many Samples is your 2nd Express DAQ function doing?  If it is multiple you will need to seperate the samples by comma also (or average them out etc).
    - I rarely use dynamic data but i think you would be best to extract the actual data values out from the data type at least to get you up and running (It is coerced at the moment and may not be doing what you expect it to do).
    craigc
    Message Edited by craigc on 05-19-2009 03:24 AM
    LabVIEW 2012

Maybe you are looking for

  • How can I set my y-intercept (b) equal to zero retina macbook 2014

    Hello everyone, I hope you can reply to my question before 11:55p.m. today because that is when my report is due. I graphed my scatter plot and got my trend line, but my professor wants the class to set the y-intercept, the (b) from y=mx+b to zero. C

  • I have a .mov file that plays on my mac but when someone tries to play it on a pc, they get an error 128 message. Help!

    I have a .mov file that plays on my mac but when someone tries to play it on a pc, they get an error 128 message. Help! Please!

  • T500 no display

    My display on my faithful T500 has stopped working.  Connecting an external monitor yields no results either.  Is this a sign the video adapter has passed on?  Is the video adapter embedded on the motherboard or is there a daughter board I can replac

  • Report in PDF Format ?

    I use Oracle9i Report create a new report and run it on Web site and output by PDF format,but have two question : 1. After I input parameter form Data , it will show a blank web form . 2. If not show parameter form , the result will show pdf format o

  • Unexpected PX_TXN insert row Error?

    The following error prints, at random, on my uix page. Has anyone experienced it or know how to redirect it from the Browser: oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 19,028, persistent id -1      vo