Replacing the Header in rule file without changing source file(header defi)

hi,
i am loading the data using header in the Source file (.xls).
I need to load the same file but for diff header (say instead of A1 i need A2) without any changes in source file.
can someone please provide information that how to change the header in source file without opening/changing source file.
Thanks in advance
Anubhav Bisht

HI SM,
thanks for reply.
the Problem is that there is two members in header defined in the source file that i need to change while loading the data.
the load rule is picking header from the Source file, so replacing in the field is not working..
do you have any other option/Suggestion.
Regards
Anubhav

Similar Messages

  • How can I rearrange the pages in a PDF without changing the assigned paged numbers.

    How can I rearrange the pages in a PDF without changing the assigned paged numbers? These correspond to the original document folio numbers.

    In theory it would be possible to 'record and play back' the page numbers using a folder-level script, but it's far from trivial. You would have to use the doc.movePage() function - presumably driven by a dialog box - to do the page shuffling so there was a way to track what was being done, then swap the page 'labels' of the two affected pages. That's where it gets messy.
    We have functions in the JSAPI which can read and write the page label, but they don't do things in a logical way. The 'getPageLabel()' function simply returns a string, but the 'setPageLabel()' method expects to be told the numbering scheme, prefix, etc. You'd have to parse the string and work out what scheme it was implementing.

  • Replace the header line in the o/p file

    My scenarion is to generate a xml file,the xml file contains a header line <?xml version="1.0" encoding="utf-8"?>
    and this lineis  to be relaced with <XYZ>.
    it is multi message mapping -- splitting of messages 1:n, i cannot add any extra fields to the target structure to pass the header
    I wrote a abap mapping program and included that in the second step of my interface mapping.
    the code for abap mapping is as below.
    method IF_MAPPING~EXECUTE.
       data: lv_new_str  type string,
             lv_old_str type string,
             lv_string type string.
    ***Convert the XSTRING to STRING
    CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
      EXPORTING
        im_xstring        = source
    *   IM_ENCODING       = 'UTF-8'
    IMPORTING
       EX_STRING         = lv_string .
    **Pass the Values
    lv_old_str = '<?xml version="1.0" encoding="utf-8"?>'.
    lv_new_str = '<!XYZ>.
    REPLACE ALL OCCURRENCES OF lv_old_str in lv_string with lv_new_str.
    ***Convert the STRING to XSTRING.
    CALL FUNCTION 'ECATT_CONV_STRING_TO_XSTRING'
      EXPORTING
        im_string         = lv_string
    *   IM_ENCODING       = 'UTF-8'
    IMPORTING
       EX_XSTRING        = result
    *   EX_LEN            = .
    endmethod.
    But iam not able to get the desired output.
    Please suggest me how to make this work?
    Thanks
    Srinivas

    Hi Srinivas,
    Can you please see the java mapping as given by suraj in this thread:
    How do I remove xml encoding?
    Regards,
    ---Satish

  • How can I use most of the features of firefox 5 without changing the appearance of my browser?

    I just downloaded the new version of firefox, and everything seems great except for the new layout and the change in general appearance. It is less streamlined and more distracting. I do not like the blocky look of the buttons or the lack of division between sections. Is there a way to keep the changes in the way firefox 5 works without the change in appearance?
    If there is not, how can I reload the old version of firefox until one I like better is released?

    See items 1- 10 in
    You can make Firefox 4.0.1 and '''Firefox 5.0''' look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]
    I would try to stick with the silhouette gray/black buttons, but since it already bothers you at least stick to a theme or style limited to the ones on the toolbars (not the dialogs, which would be too wasteful) see item #48
    * [https://addons.mozilla.org/firefox/addon/strata-xp/ Strata XP] (Theme (buttons), 13.3KB), replaces silhouette toolbar icons with color. Icons are smaller and perhaps less distinguishable.

  • How to replace the string in a file

    Hi, I have a file which contains the following data
    File.dat
    <file>
    <filenum>
    W10
    </filenum>
    <hello>Heading </hello>
    </file>
    I need to replace the contents of file.dat
    database sequence value (for example xx_seq.nextval)
    Can some one please tell me how to search this <filenum>
    W10</filenum>
    and replace this with xx_seq.nextval
    and write the entire contents of the file to new file
    I am doing some thing like this
    suppose if my database value returns 11 from the above sequence then
    the output should be in file2.dat as
    <file>
    <filenum>
    11</filenum>
    <hello>Heading </hello>
    </file>
    declare f_in utl_file.file_type;
    s_in varchar2(10000);
    string1 varchar2(32000);
    x number;
    begin
    f_in := utl_file.fopen('SAMPLEDIR','input.txt','R');
    f_in1 := utl_file.fopen('SAMPLEDIR','input1.txt','W');
    select xx_seq.nextval into x from dual;
    loop
    begin utl_file.get_line(f_in,s_in);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    string1:= string1 || s_in;
    utl_file.put_line( (f_in1,s_in);
    end;
    end loop;
    utl_file.fclose(f_in);
    end;
    In this case it is reading and writing as it is, but unable to replace the sequence value
    Can some one please tell me how to do using replace function
    Thanks

    Hi, I have tried this but getting error
    step 1: create table test_dept(dno number, dname varchar2(20))
    insert into test_dept values(10,'10-Sourcing dept');
    insert into test_dept values(20,'20-Audting dept');
    insert into test_dept values(30,'30-Computer dept');
    select * from test_dept;
    DNO DNaME
    10     10-Sourcing dept
    30     30-Computer dept
    20     20-Audting dept
    step 2:
    create table test_web (name varchar2(60), xml_col xmltype) ;
    step 3:
    create sequence test1_seq start with 100 increment by 1
    step 4:
    test.out has the following contents (it is not .xml file) and i dont have <?xml version="1.0" ?> tag at the begining
    <File>
    <File_Type>Type1</File_Type>
    <File_Header_Record>
    <file_num>WP10</file_num>
    </File_Header_Record>
    <Transaction>
    <Transaction_Type>TR 1</Transaction_Type>
    <Amount>
    <Amounts>100</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Sourcing</Dept_Type>
    <Dept>10</Dept>
    </Depts>
    </Transaction>
    <Transaction>
    <Transaction_Type>TR 2</Transaction_Type>
    <Amount>
    <Amounts>200</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Auditing</Dept_Type>
    <Dept>20</Dept>
    </Depts>
    </Transaction>
    <Transaction>
    <Transaction_Type>TR 3</Transaction_Type>
    <Amount>
    <Amounts>300</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Computer</Dept_Type>
    <Dept>30</Dept>
    </Depts>
    </Transaction>
    </File>
    step 5:
    DECLARE
    v_check_file_exist BOOLEAN;
    v_file_length NUMBER;
    v_block_size NUMBER;
    v_file_path VARCHAR2 (100);
    v_file_name VARCHAR2 (100);
    v_file_type UTL_FILE.FILE_TYPE;
    v_str varchar2 (32760);
    v_cnt number;
    v_seq number;
    --check whether file exists and has data in it
    BEGIN
    v_file_path := '/usr/tmp';
    v_file_name := 'test.xml.out';
    -- initailise the variables
    v_cnt := 0;
    UTL_FILE.FGETATTR (v_file_path,
    v_file_name,
    v_check_file_exist,
    v_file_length,
    v_block_size);
    if v_check_file_exist
    then
    DBMS_OUTPUT.put_line (' File exists');
    IF v_file_length > 0 AND v_block_size > 0
    THEN
    BEGIN
    select test1_seq.nextval into v_seq from dual;
    insert into test_web values(v_seq,v_file_name);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    DBMS_OUTPUT.put_line ('No data found '||SQLERRM);
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('others '||SQLERRM);
    END;
    commit;
    ELSE
    DBMS_OUTPUT.put_line ('No Data in File');
    END IF;
    ELSE
    DBMS_OUTPUT.put_line (' File Not Available');
    END IF;
    END;
    I am getting below error
    File exists
    others ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML
    processing
    LPX-00210: expected '<' instead of 't'
    Error at line 1
    My requirement is to replace the
    1. contents of the file WP10 from <file_num>WP10</file_num>
    with sequence value 'WP101' because sequence is starting at 100
    2. Replace all Dept tag <Dept>30</Dept> with Dname value from test_dept table
    for example
    <Dept>10</Dept> should be replaced with <Dept>10-Sourcing dept</Dept>
    update the
    when i say select * from test_web;
    It should contain this row
    101 <File>
    <File_Type>Type1</File_Type>
    <File_Header_Record>
    <file_num>WP101</file_num>
    </File_Header_Record>
    <Transaction>
    <Transaction_Type>TR 1</Transaction_Type>
    <Amount>
    <Amounts>100</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Sourcing</Dept_Type>
    <Dept>10-Sourcing dept</Dept>
    </Depts>
    </Transaction>
    <Transaction>
    <Transaction_Type>TR 2</Transaction_Type>
    <Amount>
    <Amounts>200</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Auditing</Dept_Type>
    <Dept>20-Audting dept</Dept>
    </Depts>
    </Transaction>
    <Transaction>
    <Transaction_Type>TR 3</Transaction_Type>
    <Amount>
    <Amounts>300</Amounts>
    </Amount>
    <Depts>
    <Dept_Type>Computer</Dept_Type>
    <Dept>30-Computer dept</Dept>
    </Depts>
    </Transaction>
    </File>
    Can you please check
    Thanks

  • Replacing the text in a file

    I am having sql loader control file. In that, the value for INFILE is 'C:/MYDATA_<YYYY>_<MM>_<DD>.txt'. The filename changes daily based on sysdate.
    Since there is some limitation in sql loader, I am planning to run the PL/SQL scheduled program in apps which will read the control file and replace the infile with the correct file name (exa: MYDATA_2010_09_23.txt).
    The control file <test.ctl> is:
    LOAD DATA
    INFILE 'c:/mydata_<yyyy>_<mm>_<dd>.txt'
    BADFILE 'c:/mydata_<yyyy>_<mm>_<dd>.bad'
    DISCARDFILE 'c:/mydata_<yyyy>_<mm>_<dd>.dsc'
    APPEND
    INTO TABLE interface_stg
    FIELDS TERMINATED BY '|' TRAILING NULLCOLS
    A_DATE DATE "YYYY-MM-DD",
    USER_NAME,
    DESCRIPTION,
    NAME
    Please help me to achieve this.
    Thanks in advance.

    ok. In that case, write a Shell script, in which you can generate the file_name as per current date and pass it to SQLLDR command that you use in shell script.
    Now register the Shell Script as an executable in oracle applications, and schedule the concurrent program as per your requirements which becomes automated with no manual interventation.
    Edited by: AP on Sep 23, 2010 9:23 AM

  • Why doesn't this replace the XML in my file?

    I am trying to write some code that replaces some XML in a file. The first part works (opening the file, locating the XML, replacing it). When I save the file, it contains the original XML not the modified XML.
    I used the Get XML method to retrieve the text I wanted to change, Setting the Value property of the node doesn't seem to work but I don't know what else to try - I need the equivalent of a 'Set XML' invoke node but I haven't found it.
    Any ideas? Am I even close?
    (I'm new to XML and manipulating it in LabVIEW and I'm glazing over now so ideas which don't involve reading another 20 documents would be really appreciated, thank you  )
    Attachments:
    Replace XML in file snippet.png ‏70 KB

    Well, Darin was first and I had same idea with XPath... So I'll post it anyway, just for the sake of effort taken
    Actually, using XPath does not require "20 documents", it is quite easy, so I'd recommend you to take a look at it if you're going to use XML.

  • How to edit the cube with new fields without changing historical  in BI 7.0

    HI,
    I have requirment that need to edit cube with new fields and without changing historical data on it.
    Please some one can advise me abt the above scenario.
    Note:I am using BI7.0

    hi Krish,
    In BI 7.0,
    we cannot add a characteristic to an existing dimension if the data is not deleted from the cube.
    It can go to a new dimension and that will not change the existing structure of the cube tables, but will just add to it (as another dim table).  or use remodeling.
    for more details, please seach threads.....
    with hopes
    ARS

  • Error while loading data on to the cube : Incompatible rule file.

    Hi,
    I am trying to load data on to essbase cube from a data file. I have a rule file on the cube already, and I am getting the following error while loading the data. Is there any problem with the rules file?
    SEVERE: Cannot begin data load. Essbase Error(1019058): Incompatible rule file. Duplicate member name rule file is used against unique name database.
    com.essbase.api.base.EssException: Cannot begin data load. Essbase Error(1019058): Incompatible rule file. Duplicate member name rule file is used against unique name database.
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.essMainBeginDataload(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMainMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect._invokeProtected(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin.essMainBeginDataload(Unknown Source)
         at com.essbase.api.datasource.EssCube.beginDataload(Unknown Source)
         at grid.BudgetDataLoad.main(BudgetDataLoad.java:85)
    Error: Cannot begin data load. Essbase Error(1019058): Incompatible rule file. Duplicate member name rule file is used against unique name database.
    Feb 7, 2012 3:13:37 PM com.hyperion.dsf.server.framework.BaseLogger writeException
    SEVERE: Cannot Load buffer term. Essbase Error(1270040): Data load buffer [3] does not exist
    com.essbase.api.base.EssException: Cannot Load buffer term. Essbase Error(1270040): Data load buffer [3] does not exist
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.essMainLoadBufferTerm(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMainMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect._invokeProtected(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPluginEmbedded.invokeMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin.essMainLoadBufferTerm(Unknown Source)
         at com.essbase.api.datasource.EssCube.loadBufferTerm(Unknown Source)
         at grid.BudgetDataLoad.main(BudgetDataLoad.java:114)
    Error: Cannot Load buffer term. Essbase Error(1270040): Data load buffer [3] does not exist
    Thanks,
    Santhosh

    " Incompatible rule file. Duplicate member name rule file is used against unique name database."
    I am just guessing here as I have never used the duplicate name functionality in Essbase, nor do I remember which versions it was in. However with that said I think your answer is in your error message.
    Just guessing again.... It appears that your rule file is set to allow duplicate member names while your database is not. With that information in hand (given to you in the error message) I would start to explore that.

  • Can you change the color of an image without changing it in photoshop first?

    I have created a link for Indesign using Photoshop. It is basically a plain black graphic that is placed over an aerial to highlight the represented water. It is possible to change the color of this graphic without actually going back into photoshop?

    Another option is to make a path around the image, so that you have a vector shape with full control over fill and transparency.
    You can do the path in Ps, save as clipping path, bring into InD, position, convert clipping path to frame, select and delete content, fill, fade...
    It may be easier to do the path in InD, but perhaps accurate positioning over the area you're after would be an issue.

  • How do i "when the ACPI mode is enabled (by default) under Windows 2000. To fix the problem, replace the gpibpci.sy​s file on your machine" Where do i go to do this?

    I keep getting an error message on the blue screen of death. Beginning dump of physical memory. To fix it a messgae board said "when the ACPI mode is enabled (by default) under Windows 2000. To fix the problem, replace the gpibpci.sys file on your machine with the one that is attached below and then reboot the machine." Where do i go to add this file?

    I will get this error randomly, once when I was opening a file on another computer on my network, once when I was logging onto to my bank website on the internet, and another when I was searching through my d drive. Nothing to difficult, I do not even have other programs running when it happens sometimes. Thanks for any help!

  • What can replace the hit counter - preferably one without ads - an html code?

    I'm looking for some html code for a hit counter to replace the one from iweb.
    The free sources all have ads associated with them.

    Statcounter is kind of overkill for most websites much like Google Analytics.
    You will get a link to a whole bunch of simple hit counters on this page...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Statistics.html
    Am I the only person on the planet that uses the web server stats like Webalizer? No code required and even I can make sense of them!

  • How to replace the end of a file name

    I have a seriously dumb question...
    I have a row of thousands of file names (top-down, row a), these names are, for example, "photo-1.jpg" and I need to change the .jpg to .nef. How can I accomplish this?
    thanks!!

    Or just use this 'Find Replace in Selection' Automator Service (Dropbox download) without having to fuss about taking columns out to another app, fiddling with them there, and bring them back in.
    It is just a short AppleScript that, after a quick installation, will look like this in your menu:
    Select the cells where you want to make the replacement, choose 'Find Replace in Selection' from the menu, and enter the find-replace values when prompted. In your case you will see something like this:
    Hit OK and you're done.
    One-time installation is just a doubleclick on the .workflow package.
    Depending on your settings you may have to go to System Preferences > Security & Privacy and click 'Open Anyway'.
    'Install' simply moves the script to your Library > Services folder so it will show up in your Numbers menu.  It doesn't do anything to the innards of your computer.  If you want, you can check out the script first by choosing 'Open with Automator'.
    Since this (obviously) changes values in your document you might want to test it first to make sure it is working as you want.
    If you need to get rid of it then in Finder hold down the option key, choose Go in the menu and navigate to Library > Services, where you can trash it the way you would any other file or package in Finder.
    SG
    Edit: use jpg and nef rather than .jpg and .nef.

  • How to modify/replace the content server(UCM) file/image?

    Hi All,
    I want to modify the content/file of the Oracle UCM server. Do we have any Oracle UCM/IPM's webservice for this?
    For example, content server has a document/file which named as "a.doc". I want to replace this file with "b.doc" without altering any of the meta data.
    Kindly let me know if anybody have a solution for this.
    Thanks in advance!!
    Edited by: 902526 on Mar 20, 2012 1:58 PM
    Edited by: 902526 on Mar 20, 2012 2:02 PM

    Hi All,
    I want to modify the content/file of the Oracle UCM server. Do we have any Oracle UCM/IPM's webservice for this?
    For example, content server has a document/file which named as "a.doc". I want to replace this file with "b.doc" without altering any of the meta data.
    Kindly let me know if anybody have a solution for this.
    Thanks in advance!!
    Edited by: 902526 on Mar 20, 2012 1:58 PM
    Edited by: 902526 on Mar 20, 2012 2:02 PM

  • How can i change the tempo of a track without changing pitch?

    I did this before but for the life of me can't figure out how i did it. Usually when I change the tempo (BPM), the recorded tracks sound warbly. But on some of my projects, this doesn't happen even though they're "real" sound recordings.
    Both projects are using Groove Fix and under "Pitch" I have "Follow tempo and pitch" checked off. Why is one project
    changing tempo seamlessly while the other project is warbling along? Automatic tuning is not the issue because neither project is enabled for that.
    Thanks,
    Steve

    The reason some files sound funny and others don't is because audio is handled a few different in Garageband depending on it's source (audio your recorded vs Apple Loops vs non Apple Loop pre recorded audio). Each of these have different color regions with different properties.  I just found this thread that might better explain it:
    http://hintsforums.macworld.com/archive/index.php/t-67538.html
    I hope that helps!

Maybe you are looking for

  • How do i use my number for imessaging instead of my email

    how do i use my number for imessage instead of email

  • Unforce HTTP headers in WL Servlets

    Is there a way to force the Servlet to not set the "Content-type" header, or any           header for that matter? I am having problems printing cookies and setting a           location. Whenver I use setHeader or sendRedirect, I no longer can send  

  • I can't find my podcast...

    The feed is working in Itunes but I can't locate it in the directory. How do I direct listeners to subscribe to it? The feed itself is: http://massachusettsmatters.com/feed/podcast/ Thanks

  • Barker Models in Forward Engineering: Supertypes aren't generated

    Hi, System: PD 16.1 with the latest EBF. For construction of conceptual models I preferably use Barker Notation. When I create a physical model based upon a Barker notated model, Supertypes aren't generated. I dont have the opportunity to check the "

  • Correct dimensions for Power POint Slides

    What would you all recommend for dimensions for Power Point slides so that they fill up the screen with no border. My customer is cramming too much text on each slide and it is beyond title safe, going to near edge of TV screen upon viewing. I have s