How to create a flat file without any xml tags in PI 7.0

Hi
I would like to take the content of the tiff-tag and map it to a file, which content is the value of the tiff-tag. How do I do that?
source:
<sourcexml>
   <tiff>dhlflfhlfhjhfjhfakjhfkjhfkjhfahflkhflahfalhfalhfldhflkahflak</tiff>
</sourcexml>
resulting content of file:
"dhlflfhlfhjhfjhfakjhfkjhfkjhfahflkhflahfalhfalhfldhflkahflak"
The point is, the the resulting file should not contain any xml tags but only the plain value of the tiff tag in the source document.
Do I need to specify something in the receiver file adapter?
tiff is an image format.
BR
Mikael

Hi
after the mapping and thus as input to the File receiver  CC the message looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:blob xmlns:ns0="http://dongenergy.dk/pi/zztest/milun">
  <indhold>tiffog dadada</indhold>
  </ns0:blob>
Recordset Structure is set to "indhold,1"
and the "lines" are
indhold.addHeaderLine  = 0
indhold.fieldSeparator = 'nl'
A file is created but it is empty.
Mikael

Similar Messages

  • How to create a flat files and how i used this

    hi Guys and gals,
    I am david. I want to know how to create a flat files. I don't know about it also. pls explain it and also pls help me to create a flat files. If u have any program for creating pls send me.
    I want to know about retrive the datas from flat files and also insert a record into it.
    pls guide me
    i need this immediately
    david

    void newMethod() throws Exception {
         // Reading from a flat file
         String data;     
         BufferedReader br = new BufferedReader(new FileReader("c:\filename1.txt"));
         while ((data = br.readLine()) != null) {
              System.out.println(data);
         // Writing to a flat file
         BufferedWriter bw = new BufferedWriter(new FileWriter("c:\filename2.txt"));
         bw.write("sample data");
         // After writing the data close the file
         bw.close();
    }

  • How we create a flat file on the application server

    hi,
    how we create a flat file on the application servere,this file have the header data and corresponding item data also.
    i.e. how we use the AT NEW and ATEND. statement in this file creation.
    pls send me some code related to this.
    thanks,
    vipin

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

  • Alert Content for text without any XML tag

    Hi All,
    For the XML workflow,
    Need a alert content or select content for the text without any xml tag.
    Please help for my XML job request.
    Regards
    Siraj

    Hi All,
    New to XML, just learning stage only.
    Already I asked and got the coding through forum. It alert text frame ID only.
    But, guide me how to get the
    1. alert or select the contents.
    2. alert the page number or select text frame etc.
    Coding is below:
    #target InDesign
    #include "/Applications/Adobe InDesign CS6/Scripts/Xml Rules/glue code.jsx"
    main();
    exit();
    function main() {
              var myDoc = app.activeDocument;
              var myStories = myDoc.stories.everyItem().getElements();
              var idArray = new Array(0);
              var storyArray = new Array(0);
              // store all stories of the document in an array
              for(var j=0; j < myStories.length; j++) {
                        storyArray.push(myStories[j].id);
    // *** here start the XML-Rules ******************************//
              var elements = myDoc.xmlElements;
              var myRuleSet = new Array(
                        alleObj = new all(idArray)
              __processRuleSet(elements.item(0), myRuleSet);
    // *** here stop the XML-Rules *******************************//
              for (var i=0; i < idArray.length; i++) {
                        for (var k=0; k < storyArray.length; k++) {
                                  if (idArray[i] == storyArray[k]) {
                                            storyArray[k] = -1;
              for (var i=0; i < storyArray.length; i++) {
                        if (storyArray[i] > 0) {
                                  alert(storyArray[i]);
                        }          // if …
              }          // for()
    }          // main()
    // XML-Rule
    function all(idArray) {
              this.name = "all";
              this.xpath = "//*";
              this.apply = function(myElement, myRuleProcessor) {
                var storyId = myElement.parentStory.id;
                        var i=0, found = false;
                        while ((i < idArray.length) && (!found)) {
                                  if (idArray[i++] == storyId) found=true;
                        // store anly the number of the stories which are not stored up to now
                        if (!found) idArray.push(storyId);
                return true;
              }          // this.apply
    }          // all()
    Regards
    Siraj

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • How to create a new user without any sample objects from any other user?

    Question as the title.
    I had the example dababase installed when I installed the Oracle database.
    Every time, when I create a new user, there will be some example objects coming
    with the new user.
    How can I remove these objects from the new user?
    Or, how can I create a new user without the example objects?
    Thanks in advance.

    I think the easiest way for you would be to use OEM.
    Just locate each object that you want to remove and right click->remove. Don't bother doing this for any indexes as these will be removed when you drop the corresponding tables.
    If you want to try command line through sqlplus then identify the objects you want to remove by selecting from the user_objects view while logged in as this user. This will give you the name and type of object. Then issue the relevant drop command.
    It's probably worth making sure you have a valid backup first, just in case things go wrong!

  • Photoshop starts without any issues, you can also create a new file without any problems, but if you

    All of a sudden I am unable to open files from the file "OPEN". I can open from Bridge or open recent document, but not from just File, Open.
    Can anyone tell me what is causing this all of a sudden. My operating system is Mac OS X.
    Thanks

    Dave:
    Thank you! I had the exact problem described, but on a Windows XP box and your suggestion nailed it.
    Mark

  • How to create a java file from an xml file

    anybody who can help me? i'm really trying to get this job in a hurry..thanks

    wondering if velocity template engine can help.
    a. parse XML
    b. construct bean (will XMLBeans help?)
    c. write java files (velocity may have helped here) from predefined template.
    Looking forward to other suitable solution.
    JSP to servlet is, I guess, such example.

  • Creating a flat file in the IDOC format

    Hi everybody,
    Need help.....urgently. Can somebody please tell me how to create a flat file in the IDOC format? I am creating a bill of lading/Documentary payments (EDI 858) and can't figure out a way to write the data generate through the report in a flat file in IDOC format. My deadline is right around the corner and I need help.
    Thanks,
    M

    Hi Minal,
    I still don't understand your question.
    So, you have a report which selects data and puts it into an internal table.  This part looks fine.
    You want to create a flat file?  Ok, to create a flat file on the application server then use the commands OPEN DATASET, TRANSFER, and CLOSE DATASET.  To create a flat file on the presentation server then use the FM GUI_DOWNLOAD (or the GUI class, I forgets its name for the moment).
    In both cases you should build up an internal table which has the exact structure required for your (EDIFACT?) EDI message, and then use the appropriate method to write the file.
    If the following steps are manual then there is nothing more for you to do.
    I don't see any need to use Idoc technology, or make any reference to it in your solution.
    I hope that helps.  If not, please be more specific when asking your questions.
    Brad

  • Create a Flat File like text_io in forms6i

    Hello,
    how i create a flat file (to download or in files system) via apex, like I did in oracle forms using text_io, for example
    employees.txt
    Name                          Last Name Salary
    Fernando                     Medina      5000.00
    thanks in advance
    regard
    Edited by: Fdomedina on Mar 11, 2010 5:00 AM

    Now you have to do it from the database using the UTL_FILE package.
    Or (if it is a report) download it as CSV file, so you can open it in Excel.

  • How to not create File without any payload?

    Hi XI Experts,
    I have the following integration scenario:
    1.  One input file
    2.  One or more output files (up to four files)
    3.  At any given time, I could have one or more files (up to four files) filled with data in the payload.
    Question - there are times where only one file will have data in the payload and three files without any data in the payload (by design).  In this case, I do NOT want to create files that does not have any data in the payload.  Is there any way I can do this without BPM?  The output files that does not have any data in the payload is not going to be 0 byte as it will still have blank XML tags.
    Again, we do not want to use BPM if there is any way around it.  We are running XI 2004s SP7 (equivalent to 2004 SP16).  Any help would be greatly appreciate it.
    Here is the content of the ouput file WITHOUT any data in the payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
    </ns0:entity-data>
    Here is the content of the ouput file WITH data in the payload:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:entity-data xmlns:ns0="urn:dow-com:xi:data:vendavo:10">
        <com.Dow.customer.DCorporate>
            <VName>DCorporate</VName>
            <VLabel>013-ZZ</VLabel>
        </com.Dow.customer.DCorporate>
    </ns0:entity-data>
    Thanks,
    Jay

    Hi Jay..,
    You can achieve this without BPM too.Your input is one file,by doing the Multi Mapping (1: N) you can acheive this.If there is no payload for any of the four files means simply put your four message types occurences as 0..Unbounded.
    Check / Put an condition on your input file payload which field is determining whether data is containg for all or for some of the files.
    So, if your input file containg the data for four files, those files are would be populated otherwise the files are not getting populated.I guess there is no use to create the blank XML structure.
    Let me know your feedback.., It would be work for your case ..
    Cheers
    Tiger woods

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • Create a flat-file upload for a BO XAI Inbound Service?

    Hello all,
    If we don't have a schema defined for a BO XAI Inbound Service, how can we create the XSL and the flat-file upload schema file for it.
    Any advice?
    Regards,
    Kerr

    I don't have problem to create the XSLT mapping.
    But because it is to create a flat-file upload for a Business Object XAI Inbound Service, it doesn't have a schema on the server as to the thread Create Schema for Business Object to use for XAI Inbound Service?
    And I can't create that flat-file upload without a schema on the server.
    Or I can use the BO XAI Inbound Service WSDL instead to create the mapping for the flat-file upload.
    Regards,
    Kerr

  • Export table data in a flat file without using FL

    Hi,
    I am looking for options where I can export table data into a flat file without using FL(File Layout) i.e., by using App Engine only.
    Please share your experience if you did anything as this
    Thanks

    A simple way to export any record (table/view) to an csv fiel, is to create a rowset and loop through all record fields, like below example code
    Local Rowset &RS;
    Local Record &Rec;
    Local File &MYFILE;
    Local string &FileName, &strRecName, &Line, &Seperator, &Value;
    Local number &numRow, &numField;
    &FileName = "c:\temp\test.csv";
    &strRecName = "PSOPRDEFN";
    &Seperator = ";";
    &RS = CreateRowset(@("Record." | &strRecName));
    &RS.Fill();
    &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute);
    If &MYFILE.IsOpen Then
       For &numRow = 1 To &RS.ActiveRowCount
          &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName));
          For &numField = 1 To &Rec.FieldCount
             &Value = String(&Rec.GetField(&numField).Value);
             If &numField = 1 Then
                &Line = &Value;
             Else
                &Line = &Line | &Seperator | &Value;
             End-If;
          End-For;
          &MYFILE.WriteLine(&Line);
       End-For;
    End-If;
    &MYFILE.Close(); You can of course create an application class for generic calling this piece of code.
    Hope it helps.
    Note:
    Do not come complaining to me on performance issues ;)

  • How to create .ctl (control file) to calide excel rows in ssis ?

    In my package i have a requirement to use .ctl control file to valide excel rows. can anyone tell me how to create a .ctl file which will have all of this information. 

    A few assumptions 1st:
    1) I understood the .ctl file can be any ASCII (flat) file of arbitrary format; and that
    2) You will drive the validation rules.
    Since you seem like want to apply the validation as the first step in your package I advocate plugging the Script Transformation task in which happens to expose the "ProcessInputRow" method that in turn allows a developer to intercept each row for inspection.
    This is where you will need to apply much thinking to how to make the validation rules applied in retrospect to the incoming data.
    You drive the code (logic). More through help is a click away here http://www.codeproject.com/Articles/193855/An-indespensible-SSIS-transformation-component-Scr which only covers how to make the row-by-row processing possible.
    If you expected SSIS to have this functionality provided for free - unfortunately this is not happening.
    One of many reason is, what you want to do is extremely laborious.
    Arthur My Blog

Maybe you are looking for

  • My phone won't connect to the internet

    Last night, I was using my blackberry to connect to the internet. It worked. I could browse, I could tweet and reply to them and use the BBM service. When I woke up this morning to check updates, I could not connect to the internet service anymore. T

  • Installing my own copy of Microsoft Office over Trial version

    Just purchased new computer with a trail version of Office.  I would like to install my own CD that I purchased last year for my other computer.  I can install in 3 times and have done it one time.  How should I proceed? Any help will be greatly appr

  • Solution Manager ICM Admin Account user id and Password

    We have upgraded from Solman 3.2 to 4.0(Windows 2003 Server, Oracle 10.2). While trying to access ICM from MMC, it is prompting for ICM admin account user id and password. Please let me know the default user id, password....

  • Adobe Reader X - Menüleisten-Auswahl UNsichtbar!

    Seit ich Adobe Reader X drauf hab kann ich wenn ich in der Menüleiste zB auf "Datei" klicke NICHT mehr sehen was ich da alles anklicken und machen kann! Ich seh zwar die umrandung des Menü`s "Datei" aber den Inhalt nicht. Wenn ich mit der Maus drüber

  • Sync photos with iPhone

    Please, advice how to sync photos to and from iPhone? Thanks in advance