Set field separator for whitespace

Hi,
We have a set of flat files (around 12000) and it need to be load using oracle external table. we have concatenated all the files into one single file and loading the files into oracle database successfully.
But there is a problem, in the flat files we have identified that the field separator is "whitespace" and we gave whitespace as field separator in oracle external table statement. But there are some fields where there is null values for many rows and since the field separator is whitespace so the next field's value is being inserted into the null value field in place of null.
I am stuck in a very hard situation and really do not know how to come out of it. I have little idea that using awk or sed utilities we can set field separator.
Do you have any idea how to set the field separator in this case?
Your assistance is highly appreciated.
Below is the sample of one of those flat files:
051 419040086626885 55407914 P 00016731 01007644 02 Internet 0160638830 11121906182700021 016 00204 I TEST MNC004.MCC419.GPRS 094.124.161.023 094.124.006.197 094.124.006.010 1275741768 99999
Thanks in advance.

Can you clarify some things about your data?
1. The sample data you posted only shows 20 values but the table has 21 columns. Is the last value NULL?
2. The sample data you posted shows 99999 for the last column but that corresponds to LAST_UPDATE_DATE which is a DATE field
Why the descrepancy?
3. Are the records delimited by CRLF or by LF? or by some other whitespace. CR and LF are considered whitespace
>
If TERMINATED BY WHITESPACE is specified, data is read until the first occurrence of a whitespace character (spaces, tabs, blanks, line feeds, form feeds, or carriage returns). Then the current position is advanced until no more adjacent whitespace characters are found. This allows field values to be delimited by varying amounts of whitespace. For more information about the syntax, see Syntax for Termination and Enclosure Specification.
>
so if the first record has one column with a missing (NULL) value the first column from record #2 will be used
as the last column of record #1. The data in the entire file will continue to shift forward causing every record to be wrong.
4. Have you contacted the vendor providing the files to find out how other clients are loading these files into a database?
5. Are there any data columns that cannot be NULL?
In order to properly parse record-oriented data you have to be able to locate the record boundaries; that is determine how many data values there are for each record. Using WHITESPACE alone you will not be able to do that if a NULL value is not represented in the file by some character.
Then for each set of data belonging to one record you need to be able to identify the data that belongs to each column. Using WHITESPACE alone
you will not be able to do that if a NULL value is not represented in the file by some character.
You need to contact the vendor for assistance in having the files produced in a way that they can be properly loaded again. Ask the vendor if they can reload their own files and, if so, what utility they are using to do it. The vendor should be able to use a different delimiter or replace NULL values with a special character so that they are represented in the data.

Similar Messages

  • Set Field Selection for Completion Confirmation

    I want to change the indicator of one field from "ready to input" to "required"..But i couldnt understand exactly the hierarchy under "Set Field Selection for Completion Confirmation"  tab in SPRO. there are 3 parts under that tab;
    1-PM: Confirmation - initial screen
    2-PM: Confirmation - list and detail
    3-PM: Confirmation - parameter
    and i also couldnt find the name of my field which is about "codes for causes"..
    Thanks...

    Russ,
      I don't think it could be accomplished through configuration or through Transaction variants.
    I think the simplest way to accomplish this would be by using one of the below user exits according to your needs.
    CONFPM02: Customer-specific entry checks 1
    CONFPM03: Customer-specific check by operation selection
    CONFPM04: Customer-specific entry checks 2
    The other option would be to use the Implicit enhancement functionality(If you are in EC C6.0 or above)  to modify the table control field attributes dynamically.
    Regards
    Narasimhan

  • ALV Grid OO : Set Field editable for  selected rows

    Hello ABAPers,
    I used object  cl_gui_alv_grid to created ALV grid and i succed to set an editable
    field for all rows. However my request is to set it for and only for selected rows
    I could get the row index but i didn't know how to use it
    Thanks in advance
    Amine

    Hi Amine,
    I think the standard SAP sample program might help you, BCALV_EDIT_02.
    I will tell the procedure to make the selected rows editable on ALV.
    1. Add a additional field of type LVC_T_STYL in the internal table that you are displaying in the ALV. LVC_T_STYL is a actually a table type.
    2. Place a button on the ALV toolbar for EDIT/DISPLAY.
    3. Once you press the EDIT button after selecting the rows, loop through the records which you have selected (you have already said that you have the index of selected records).
    4. The table type LVC_T_STYL has fields for FIELDNAME and STYLE.
       If you have 10 fields in the internal table, then all these ten fields name should be appended to the newly added field in the internal table (LVC_T_STYL) and their style should be populated with value cl_gui_alv_grid=>mc_style_enabled.
    Regards,
    Rahul MB

  • Field selection for Notification type

    Hi all,
    I have a configured  a notification type. I want to hide unwanted fields . I checked for " Set Field Selection for Notifications" in spro but  i am not able to find these fields.
    The Fields are under below tabs
    location Data Tab
    1.Room-ILOA-MSGRP
    2.Plant section-ILOA-BEBER
    3.Business Area-ILOA-GSBER
    Please guide  how to hide  theses fields
    Anil Kumar

    Hi Anil
    I have not checked in SAP, butif the hiding of the fields in not possible through SPRO, then an easy way to hide fields is to use GUixT, which comes with std. SAP.
    Regards
    Manish Bansal

  • Set maximum size in Text Form Field Options for a field in bi publisher RTF

    Hi All,
    How to set maximum size in Text Form Field Options for a field in bi publisher RTF.
    I have a RTF whch is having a field in that i need to add some validation condition but after adding certain condition in Add help text tab ,it is not accepting after certain length, how i can increase the length to unlimited,please help me on this
    Thnaks

    Form fields have some restrictions if your are using version lower than 11g.
    They can accommodate only 393 chars. You can add the text in both status bar and help key, which can in total consume 393 chars.
    If your code logic is more than that, it can be split into multiple form fields as Avinash suggested or you can use sub template logic and handle coding over there. Again in sub template code can be within/outside form fields.
    So there is no option for user to increase the size of form field.

  • How to set parameter id for a field, which is in disable mode ?

    Hi,
    I Have to set parameter id for field ledger for transaction FAGLB03, which is in disable mode, i have to set it through program,please let me know how to set it.
    Thanks.

    Say i have 5 rows then
    for(int i=1;i<=5;i++){
    String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
    web.text_area(Newpath).setText("Text to be set")
    Below function is used to update my path
    public String updatepath(String path,int i) throws exception {
    String FPath = "";
    if(i<2) {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    } else {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    return Fpath
    anyother way to update path and set the fields in mutiple block is appreciable
    thanks
    Suresh

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • Field selection for G/L account 893010 not set up

    Hi,
    when iam creating a purchase order with reference of purchase requisition it is showing error as field selection for G/L account 893010 not set up,
    Thanking you,
    sukumar.P

    Hello,
    The field status are set up in two places.
        - on G/L account ( Tcode: FS03 - display, Tcode: OB14 Maintain )
        - on account assignment category in purchasing (Tcode: OME9)
          Both settings must fit to each other. If not, you receive error message ME 045 says that G/L account cannot be used.
          'Earmarked fund' should never be 'Req. Entry in G/L account's field status group setting.
          Because the MIGO document will not store 'earmarked fund' therefore no earmarked fund in accounting document either.
    For further information and guidance, take assistance of FI consultant in your team.
    Thanks & Regards
    JP

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • UDF - Set Valid Values for Field

    I have a UDF created in Marketing Docs / row level called UOM_Ordered (alphanumeric, length 2) using Set Valid Values for Field.  Values are:
    CS
    IN
    DZ
    PC
    Above are CS abrev for Case, IN abrev for Inner, DZ abrev for Dozen .................
    If possible could I have say for example "IN" not to appear in the drop down if the value in OITM (UDF called U_Inner_Qty) is either NULL or a Zero?  It's would be a way to stop mistakes when orders are inputted.
    Any help on this would be appreciated.
    Thks - Scott

    Hello
    You could try the following:
    Insert a formatted search on the field, which contain conditions, ie whether the condition that the value is 0 or null, then bring the required data, while if it is not the case, applies the search formatted with the available data.
    On the other hand, leave the form with all the options for disabled users. The latter through additional authorizations for users
    I hope it will help
    Best regards,

  • Is there any way to set a property for all existing Form Fields of a particular type (Che

    In versions of Acrobat prior to version 9, selecting a particular form tool (Textbox, Checkbox), etc. would only display Fields of that particular type in the Acrobat Designer (not LiveCycle).
    If one wanted to change a particular property of all check boxes for example, one would select the Checkbox Tool, Click Edit>Select All>Right Click one of the Checkboxes and Set the Property for all of the Form's Checkboxes.
    Selecting a particular form tool in the Acrobat (not Lifecycle) Designer in version 9 appears to no longer filter the display to that particular form field type. Is there any way to display only 1 particular form field type in or set a particular property for all existing Form Fields of a particular type (Check Box, Text Box, etc.) in Acrobat 9?

    Thanks for the tip..Am aware of this option and have used JavaScript to batch change properties in the past...
    Am looking for a way to replicate the interactive procedure available in previous versions.  Also, want a way to only display certain Form Field types (use this when analyzing forms which I didn't create).

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • "Created By" field to set up defaults for vlookups/dropdowns

    Hello,
    I am working on my firm's sharepoint 2013 site and have a custom list that I am trying to make easy for users to use. One of the things I am trying to do is to set default values for some of the dropdown/vlookup columns based on the user who is creating
    the new entry.
    So let's say I create a list in the site that will contain these two columns:
    User    Business Unit
    A         Accounting
    B         Manufacturing
    The user column will match my big list's created by names that are automatically generated. In the big list I will have a Business Unit column that will be matching the values from above. The users should be able to select for which Business Unit they are
    doing the work for but majority of the time they will have a default one. 
    My goal is to have user A, when creating a new entry to have Business Unit automatically set to Accounting, but also for that user to be able to change it to Manufacturing if needed. This should only apply for creating the item. 
    Any ideas how this can happen if at all? I searched all over for this, but can't find an example of how exactly to do it. As a side note, I cannot install any add-ons since I don't have permissions but can write script web parts if that is needed. 
    Thank you in advance

    Hi,
    Per my understanding, you might want to set default value for the “Business Unit” column by looking up to another list.
    You can apply
    JavaScript with Client Object Model to the NewForm.aspx page to meet your requirement.
    A possible solution can be like this: When user opens the NewForm.aspx page of the current list, the custom JavaScript will be executed to get information about the
    current user, then query the other list for the default value, set the value to the drop down list of the “Business Unit” column dynamically. The JavaScript can be added into a Content Editor Web Part and insert into the NewForm.aspx page.
    The links below would be helpful for implementing this scenario:
    About how to
    select an option of drop down list using JavaScript:
    http://www.imranulhoque.com/javascript/javascript-beginners-select-a-dropdown-option-by-value/
    About
    how to use JavaScript Client Object model to access SharePoint list:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    Here are two links about how to
    add code into SharePoint page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Sender File Adapter - FCC - No incoming field separator - How to do FCC?

    Hi,
    I have a sender File adapter and I need to do the File Content Conversion but there apparently no incoming field separator and the file ocntains just running text - no data records but just information.
    For example the incoming file is something like:
                                    The Hongkong and Shanghai Banking Corporation Limited                      27JAN2009       PAGE 1
                                    Incorporated in Hong Kong with limited liability
    ABC IAL LIMITED                                                               ABU DHABI, UAE
    ABC MIDDLE EAST                                                               Account No.     001-8888888
    ABU DHABI                                                                       Payment Set     AAA
    BBB MAIL BOX NO.99                                                             Contact Person  ABC LIMITED
                                                   7777777777                      Telephone
                                                     AUTOPAY LIST - PROCESSED
                                                     (AUTOPAY-OUT SALARY)
    Payment Date           27JAN2009
    First Party Narrative  .                             66666666
    Second Party Narrative .
    The Message type that I am mapping to contains:
    MT_XXXX
         WA
              Item
              Item2
              Item3
    This is so that the information can be mapped to different field areas and send across to the Receiver Mail Adapter. In the mail i receive, i get the running text. I tried giving the field separator as '0x09' but it is not working.
    I have also tried WA..fieldContentFormatting to nothing but again no luck.
    I have tried with Recordset Sequence with Ascending and variable and have also tried Recordsets per Message with * and blank - but it did not help.
    Please advice.
    Regards,
    Archana

    Hi,
    I assumed that it was tab but when I made the change in FCC, it did not work.
    I would still like to have a output where it looks like below if more than 2 types of information in 1 line as below:
    ABC IAL LIMITED                     ABU DHABI, UAE  
    ABC MIDDLE EAST                  Account No. 001-9999999999999  
    and not something like:
    ABC IAL LIMITED ABU DHABI, UAE   
    ABC MIDDLE EAST Account No. 001-999999999999
    I am not sure what to do here.
    Help please.
    Regards,
    Archana

Maybe you are looking for

  • Photos open in Preview, won't import to iPhoto

    iMac G5 MAC OS X 10.3.9 iPhoto 5.0.4 After coming home from college I noticed that the iPhoto on my family's home computer wasn't opening at all. After following the different instructions on the discussion boards with no success, I found the only th

  • Can't drag&drop music from explorer into iTunes

    Hey everyone, I recently got a new computer and copied over my iTunes library from my old computer and installed a fresh copy of the latest iTunes onto my new computer. The problem is I can't drag and drop files from an Explorer window into iTunes li

  • What do I need on webservice (IIS) to connect to db?

    Hi all, I am a newbie and not sure what component do I need to install on the webservice server to connect to Oracle DB. I basically have vs2010 and ODP.net on my local Win7 machine to do the webservice development work. But the code will be deployed

  • Photo Book Requirement

    Do I need to have a .MAC account in order for me to purchase a photo book? Message was edited by: GS24

  • Help needed.....FAQs

    hi. i haf two qns.....firstly, is there a method that will help mi clear all the inputs the user key in using textfields?? Coz now mi hardcode all the textfields to set as null when mi click the clear button. Secondly, i have been working on Jtable u