Date shown with a different format in MS Excel spreadsheet

Dear forumers,
I have quite an odd problem with my report program. In this report, I will need to send an attachment file (.XLS) in an email before displaying the report output in ALV. The FM, 'SO_DOCUMENT_SEND_API1' is used to send the email.
Everything works perfectly except for a strange date format issue (only happens in the attachment file).
Sample Output (see the last line):-
10/22/2009                                                                               
09/30/2009                                                                               
02/23/2009
04/22/2009                                                                               
07/28/2009
03-05-09
In my program logic, I manually format all the dates (via concatenation) from YYYYMMDD to MM/DD/YYYY. And in debug mode, I checked that the last line in the internal table (see above) is also written as "03/05/2009". What could have possibly gone wrong here (the rest of the displayed date formats are fine)?
Please do help. Thanks.
Codes:-
" Create local string variables
  DATA:
  lv_user         TYPE string,
  lv_lockdate     TYPE string,
  lv_new_lockdate TYPE string.
  LOOP AT i_usr02[] INTO w_usr02.
" Get user ID and locked date
    lv_user     = w_usr02-bname.
    lv_lockdate = w_usr02-pwdlockdate.
    IF w_usr02-pwdlockdate IS NOT INITIAL.
" Format locked date
      PERFORM format_date CHANGING lv_lockdate
                                   lv_new_lockdate.
" Insert user ID and formatted locked date
      PERFORM concatenate_append USING lv_user
                                       lv_new_lockdate
                                       c_tab.
    ELSE.
" Insert user ID only
      PERFORM concatenate_append USING lv_user
                                       space
                                       c_tab.
    ENDIF.
" Clear string variables
    CLEAR: lv_user,
           lv_lockdate,
           lv_new_lockdate.
  ENDLOOP.

Further codes (subroutines):-
DATA i_attach       TYPE STANDARD TABLE OF solisti1.
"&      Form  FORMAT_DATE
"       Subroutine to format date ( MM/DD/YYYY )
"      --> PV_DATE        Date ( YYYYMMDD )
"      <-- PV_NEWDATE     Date ( MM/DD/YYYY )
FORM format_date  CHANGING pv_date    TYPE string
                           pv_newdate TYPE string.
" Condense date string first
  CONDENSE pv_date.
" Concatenate portions of date string accordingly
  CONCATENATE pv_date+4(2) pv_date+6(2) pv_date+0(4)
    INTO pv_newdate
    SEPARATED BY c_slash.
ENDFORM.                    " FORMAT_DATE
"&      Form  CONCATENATE_APPEND
"       Subroutine to concatenate two strings and a new line
"       and finally appending it to the internal table
"      --> PV_STR_1     First string variable
"      --> PV_STR_2     Second string variable
"      --> PV_FLAG      Flag (TAB or SPC indicator)
FORM concatenate_append  USING    pv_str_1 TYPE string
                                  pv_str_2 TYPE string
                                  pv_flag  TYPE char3.
" Concatenate two string parameters
  IF pv_flag = c_space.
    CONCATENATE pv_str_1 pv_str_2
      INTO w_attach_tmp
      SEPARATED BY space.
  ELSEIF pv_flag = c_tab.
    CONCATENATE pv_str_1 pv_str_2
      INTO w_attach_tmp
      SEPARATED BY c_htab.
  ENDIF.
" Insert a carriage return + line feed as well
  CONCATENATE c_crlf w_attach_tmp INTO w_attach.
" Append workarea to table before clearing workareas
  APPEND w_attach TO i_attach.
  CLEAR: w_attach,
         w_attach_tmp.
ENDFORM.                    " CONCATENATE_APPEND

Similar Messages

  • How can I keep my text format after pasting a text with a different format?

    No matter when and where I start to write some text (whether it is a SImpleText, E-Mails, or anyother application's doc), if I have to cut and paste a text from a different source that is formatted differently than my original text (ie. the one I am already using ), once I have pasted the differently formatted text in my doc, the typeset changes while it continues to type with the same formatt used in the text I just pasted.
    How can I continue typing with the same text formatt used before pasting the new text, after pasting the new text, without having to change size, font style etc. Is there a short cut?
    What I have been doing to avoid this problem is: I usually type my entire text content (whether it is an E-Mail, or other doc) then, once I am done typing, I paste the text that was cut from a differently formatted document, so that my text remains with the same formatt in its integrity, while the pasted text stands out differently, but it is a bit complex doing that , because I not only have to remember to paste the other text when I am done typing (I run the risk of forgetting to paste the text I need to insert--which has happened already) or I keep struggling with my formatt change after the pasting of the new text, so my document text starts looking like the same text as the one which was just pasted.
    Thanks for your time reading this!

    KerrBr wrote:
    How can I continue typing with the same text formatt used before pasting the new text, after pasting the new text, without having to change size, font style etc. Is there a short cut?
    (1) First, let's make sure we're talking about the same thing. By "SImpleText, E-Mails" you mean TextEdit and Mail, right?
    (2) Some apps (TextEdit, Mail) use the text engine provided by Mac OS X. By and large, these apps will behave in a similar manner. Others (eg, MS Word) use their own text engine, and their behaviour can be quite different. For such an app you need to consult its manual.
    (3) In TextEdit, if you want the pasted text to adopt the current style, then use kurt188's tip.
    (4) However, if you may want the pasted text to retain its own attributes, while you continue to type in the previous style. I don't know of any shortcut or command that will achieve this. However, you can try to work around it.
    (4.1) TextEdit has the Copy Style (⌘⌥C) and Paste Style (⌘⌥V) commands. If you haven't yet used it, ⌘⌥V will insert the default style. So type, paste, ⌘⌥V, then continue typing. If you have used, it will insert whatever style was copied. You can, type, ⌘V, click somewhere before the pasted text, ⌘⌥C, click after the pasted text, ⌘⌥V, and continue typing.
    (4.2) Alternatively, type your text. Then type one more character, eg, "x". Then ←, ⌘V, ⇧→, and start typing. The new text should adopt "x"'s format. (This should work in Mail, too. I don't know, because IMHO e-mail should always be plain text.)

  • Working with many different formats/codecs/frame rates within one Sequence.

    Good Afternoon,
    As an editor for an ad agency I am being tasked with cutting a demo reel together. Nothing too difficult.
    The reel is to include video footage of past projects, going back a couple years or so. The footage that I will be given will undoubtably be in a variety of formats, codecs, frame sizes, frame rates, etc (all SD, though). Delivery is SD DVD.
    My question is this:
    What is the best way to set up my timeline for a barrage of clips with differing specs?
    Do I encode all the media assets FIRST to conform to my Sequence Settings? Or do I just deal with the large amounts of timeline rendering as I work with different formats and codecs? Or do I....?
    I am running FCP 5.1.4, so I don't have the Open Timeline feature going for me.
    I appreciate any advice and tips you can offer!
    Thanks!

    Your final format is NTSC SD DVD, so you're going to have to go to 720x480 at some point. This is what I would upscale to. Make sure your "client" knows that the 320x240 wmv's may not look to good in the final production.
    Personally I use MPEG Streamclip (an excellent FREE application that's part of many a pro's arsenal) for this kind of conversion and/or upscaling. It's not particularly intuitive (especially for upscaling) so read the manual.
    You may need to get hold of Flip4Mac or Episode for the wmv conversions.
    I would tend to convert to a lossless codec like Apple Uncompressed or Animation. You could try going to NTSC-DV but you're going to lose some quality initially and again when you do the final mpeg2 compression.
    Experiment.

  • How do I show/refresh data from an Access Web App in an Excel spreadsheet saved in a Document Library on Sharepoint 2013 online

    I have an Access 2013 Web App in my Sharepoint 2013 online website. It contains a query to report on its data (several, actually, but let's keep it simple). I want to connect an Excel spreadsheet to the query, visualise the data in pivot tables/graphs/whatever,
    save the spreadsheet in a Document Library, and let other team site Sharepoint users open the spreadsheet (preferably in Excel online, but with Excel client if it has to be) and see/copy the data, refreshed with the latest information from the Access Web App.
    Simple, surely!
    The way I'm doing it at the moment is to create an ODC file to connect to the cloud-based Access 2013 database, save that ODC in a Data Connection Library in the SP site, and use the saved ODC file as data source in the Excel spreadsheet. This works and
    successfully keeps everything 'in the cloud' but I can't get it to refresh in Excel Online, and if I open the spreadsheet in Excel Client I have to enter the database password every time to refresh it. I don't really want to issue this password to everyone
    who might want to view the data. There must be a better way than this ODC method, I suspect.
    Googlings on this have led down various blind alleys - Excel Services, PowerPivots, Web Parts - but I'm stuck on which to follow through. Please, someone, point me to an article/book/website that explains how to do this step-by-step in simple language..
    thanks
    Jonathan

    I don't see any quick way of achieving it - at least there's no such functionality exists in SharePoint. All you can do, develop an event receiver that will update the fields in the list item once the excel file is added/updated. You can use OpenXml API
    to manipulate the excel file.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Can a website built with adobe muse interface with a database such as an Excel spreadsheet?

    Is it possible for a website built in Adobe Muse to  interface with a database?  I need to turn a rather robust excel spreadsheet into an easy-to-use website that links to a database that can be updated easily and regularly.  Thanks.

    Hi,
    Muse is a designing software. You can design websites in Muse and host it on any server of your choice. There is no native feature in Muse to convert a spreadsheet into a website. If you are good with coding, you can develop it outside Muse and call it in Muse site using iframes, if at all it is helpful to you.
    Regards,
    Aish

  • Help with KM Document IView pointing to Excel Spreadsheet

    Hi, I created a KM Document IView that points to an Excel Spreadsheet that is stored in a KM Folder.  When I execute the IView it prompts me to save the "Unknown File Type" instead of just opening it up for me.  
    What do I have to do to get this to open up directly in the IView?
    Thanks,

    Hi,
    Check if the excel extension is in uppercase, if so then change it to lowercase.
    Check Mime Handler Service , where you can set property to have both uppercase and lowercase:
    http://help.sap.com/saphelp_nw04/helpdata/en/07/b6b0d706fb44caab64750a0bdaba09/frameset.htm
    If this is not your problem, then check if your mime type is properly registered here:
    http://help.sap.com/saphelp_nw04/helpdata/en/19/14dfeed7b67a4d9b8406b0a56ebe37/frameset.htm
    Regards,
    Praveen Gudapati

  • 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

  • Render and Replace Different Format In Same Sequence

    Is there any way to keep the Interpret Footage settings after make Render and Replace option?
    I have a sequence setting in 1080 50p with two different formats  50p 720 (interpret in 25p) / 1080 25p, I did a render and replace of the total. And the result was that the rendered footage doesn´t  respect me the interpret settings.
    Thanks.

    Render and Replace is currently designed to transcode the clip and keep the Interpret Footage settings applied to the clip (not burned/rendered in). There is a feature request to burn/render in Interpret Footage (and other effects) to the transcoded clip.
    Not ideal, but a possible workaround would be to export the clips with "Import into project" selected in Export Settings, then Replace with Clip to get your desired outcome.

  • Data Guard with diff Oracle Versions??

    Hi,
    I have one query on Data Guard.
    Can I config. data guard with two different Oracle versions?
    i.e Primary=> 8i
    stand by=> 10g
    OR either way. Pls post your comments
    JAI HIND
    Darshan

    Some of the parameters that you need to have with Physical standby database are :
    *.background_dump_dest='/ford/app/oracle/admin/xchbot1/bdump'
    *.compatible='9.2.0.7'
    *.control_files='/home30/oradata/xchange/xchbot1/control01.ctl','/home30/oradata/xchange/xchbot1/control02.ctl','/home30/orad
    ata/xchange/xchbot1/control03.ctl'
    *.core_dump_dest='/ford/app/oracle/admin/xchbot1/cdump'
    *.db_block_buffers=1024
    *.db_block_size=8192
    *.db_file_multiblock_read_count=8# SMALL
    *.db_files=1000# SMALL
    *.db_name='xchbot1'
    *.global_names=TRUE
    *.log_archive_dest_1='LOCATION=/home30/oradata/xchange/xchbot1/archivelog'
    *.log_archive_dest_2='SERVICE=standby'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='arch_%t_%s.arc'
    *.log_archive_start=true
    *.log_buffer=16384000# SMALL
    *.log_checkpoint_interval=10000
    *.max_dump_file_size='10240'# limit trace file size to 5 Meg each
    *.parallel_max_servers=5
    *.parallel_min_servers=1
    *.processes=50# SMALL
    *.rollback_segments='rbs01','rbs02','rbs03','rbs04','rbs05','rbs06','rbs07','rbs08','rbs09','rbs10'
    *.shared_pool_size=67108864
    *.sort_area_retained_size=2048
    *.sort_area_size=10240
    *.user_dump_dest='/ford/app/oracle/admin/xchbot1/udump'

  • How do I format a linked Excel file in InDesign and maintain formatting when the Excel is modified?

    I'm in CS5.5 . I have no problem placing an Excel spreadsheet with the cell range I want and applying cell formatting in InDesign. I am trying to build eight similar documents that will pull data in several tables from a document specific Excel spreadsheet. The only difference is the data itself. I want to build one master InDesign document (master.indd) that links to a corresponding master Excel file (master.xlsx). I'll then do all the table formatting in master.indd once before saving as the eight individual files I need (doc1.indd, doc2.indx, etc.). Soon I'll receive the specific Excel files (doc1.xlxs, doc2.xlsx, doc3.xlxs, etc.) and I will open each InDesign file and relink master.xlxs to the appropriately numbered and corresponding Excel spreadsheet.
    My problem is all the formatting of the imported tables is stripped away when I relink. There are at least 60 tables being imported. I'd prefer to format 60 tables versus 480. I've tried importing the Excel as formatted, unformatted, I've applied cell styles in Excel and InDesign but can't catch a break. Can anyone help?

    Or alternatively, do all the formatting in Excel and place as a formatted table.
    Bob

  • 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

  • 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

  • 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

  • SSIS project - read multiple flat files with different formats

    hi all,
    i need to import multiple flat files with different formats into different tables of the sql server database and not able to figure out the best way out in ssis to do so...
    please advise the possible methods in ssis to do so and if possible the process which can be dynamic as file names or columns might change in future.

    Hi AK1987,
    To import flat files with dynamic columns, we can use Script Task inside a Foreach Loop Container to parse the first row of the flat file to get the columns names and save them into a .NET variable, then, we can create “Create Table” script based on this
    variable, and then store the script into a SSIS package variable. After that, we create a staging table based on the package variable, load the flat file data to the staging table. Eventually, we load data from the staging table to the destination table. For
    the detail steps, please walk through the following blog:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Date column with format mask 'hh12:mi pm'

    let's say the user input record as shown below :
    trip At01 At02
    1 9:30 AM 12:30 PM
    At02 & At02 are date column with format mask 'hh12:mi pm'. When the user input 9:30 and tab to next item, the column will display as 09:30 AM. Then when user input 12:30 at AT02, it will display as 12:30 PM.
    Anyway, if I enter 1:00 at AT02, it will display as 01:00 AM. Actually I want to display as 01:00 PM. I still can go back to the field to edit it manually but is there a way that I can do as mentioned ?
    Please advise.
    Thanks,
    Shu Wen

    You are going to have to write your own validation logic to do this - You'll have to decide what point AM shoudl be defaulted and what point PM should be used. I don't think that there is a format mask that provides this functionality.

Maybe you are looking for

  • Windows media player for 9300i

    Hi, I tried to play Live Radio at http://www.bloomberg.com/tvradio/radio/# It gave me the message that i would need windows media player. what do you recommmend I should do. Thank you for your help Andonny

  • Watch The New James Bond Movie For Free

    The reelz channel is offering their risk free movie offer once again where their offer is that if you rent a movie that they are recommending and if you do not like it they will refund you the amount that you paid for the on demand rental. The offer

  • Business Catalyst & Adsense

    Anyone her use Adsense with BC sites? Any tips on how to go about it with modules, tags, apps? Thanks

  • Alias Hard Drives out of the blue and Trash removal

    In advance , Thank you ! You guys are doing a great service All of a sudden I have two hard drives and two external drives on my desktop. They have the little arrow on the bottom left corner and I think they are Aliases . They just appeared after bei

  • Play cd audio labview

    Bonjour, J'ai trouvé sur le forum un VI permettant de lire les pistes d'un CD audio avec LabView et ça fonctionne très bien (merci à son auteur). Cependant, j'aimerais aussi avoir comment récupérer des informations sur la lecture en cours, notamment