Create a new line in the xml-header structure.

Hi,
Can any one tell me how to create a new line in the xml-header structure.
I am doing a IDOC-XI-HTTP scenario.
Actually my mapping create this file:
<b><?xml version="1.0" encoding="utf-8"?>
<ORDERS05>
  <IDOC BEGIN="1">
    <EDI_DC40 SEGMENT="1"> </b>
The result must look like this.
<b><?xml version="1.0" encoding="utf-8"?>
<ORDERS05>
  <IDOC BEGIN="1">
    <EDI_DC40 SEGMENT="1"> </b>
Thanks and Regards,
Eren

Hi,
thanks for you quick answer.
I found a xsl script.
It works fine.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
   <xsl:template match="*">
      <xsl:param name="depth">0</xsl:param>
      <!-- New line with indenting. -->
      <xsl:if test="$depth > 0">
         <xsl:text>    </xsl:text>
      </xsl:if>
      <xsl:text>&#xA;</xsl:text>
      <xsl:element name="{name(.)}">
         <xsl:for-each select="@*">
            <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
         </xsl:for-each>
         <xsl:apply-templates>
            <xsl:with-param name="depth" select="$depth + 1"/>
         </xsl:apply-templates>
      </xsl:element>
   </xsl:template>
</xsl:stylesheet>
Best regards
Eren

Similar Messages

  • Create a new line in the smartforms

    Hi Guys,
    Please let me know to create a new line in the smartforms.
    I tried creating a window with the height length is 0 cms.
    It is allowing to create a line.

    Hi,
    First I need to include the LOGO and next line I need to make a line.
    What do you mean by 'making a line '?
    Is it an empty line?
    If it is just a blank line, while creating the text below the logo just give one line space and then type in your text.
    Regards,
    Shailaja

  • File Adapter Write Operation inserts a new line at the end

    Hi,
    I am using the write operation in the File Adapter from BPEL Process. The data is written successfully to the file and file is also created in the location specified in the adapter wsdl. But in the file created, it creates a new line at the end of the file. This new line has to be avoided when writing data to a file.
    Has anyone faced this and solved this ?
    I am SOA 10.1.3.4.
    Cheers,
    - AR

    It is a bug in 10g and will be resolved in one of the versions of 11g.
    Cheers,
    -AR

  • Create a new line item in sales order

    Hi,
    I have to create a new line item in a sales order. The scenario is that if we donot find the desired quantity from a plant. Then we have to go ahead and pick the remaining quantity from another plant and automatically create a new line item.The new plant is picked from a custom table so u need not worry about it.
    According to me I will have to use the BAPI for it but one constraint is that while creating a sales order the order number assignment is not done until saved. So what can be done in the case if its a new document.
    Kindly let me know if there is any appropriate user exit or if someone has worked on a similar requirement.
    thanks
    Varun

    Hi,
    Thanks for your response. I have tried to use these exits already but the problem dat comes here is dat when we try to use the BAPI we donot have any sales document created in the first instance(i.e. while creating an order) so the BAPI returns error and when i tried to populate the itabs in the program directly the new values just wont get processed.
    I think like: in case its a new document and we face this scenario I can just terminate the document creation and create a new document using the BAPI with proper plant assignments.But i am doubtful about the stability of this process.
    Kindly comment.
    Thanks
    Varun

  • Can I create a new folder using the command line interface

    Hi.
    Is there a way to create a new folder in an existing business area, from the command-line?
    We have an application that provides an interface for the user to create a table and load flat file data into the table. After loading the data, the user will verify the loaded data using discoverer. If there is a command line interface to create a new folder, then the script that created the table can also call the discoverer command line to create a new folder for the new table. Is this possible?
    Thanks

    Hi,
    I think I am having a similar question here. I am using Oracle 10g on Windows xp.
    I logged in to Oracle from command prompt. I used command “create directory myFunDir as 'd:/funDir';”. Oracle returns: “Directory created”. But I couldn’t find the directory “myFunDir”! Where is it?
    Thanks.
    Newbie.

  • Handling new line character in XML

    Hi,
    Question : How can we specify new line character in xml ?
    Explaination for use :
    I have a xml structure like :
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_ISO8583_XML_request>
    <TRANSDETAILS>.
    <TRANSACTIONAMOUNT>0000000000000000</TRANSACTIONAMOUNT>
    <SYSAUDITNUMBER>225998394671</SYSAUDITNUMBER>
    </TRANSDETAILS>
    </MT_ISO8583_XML_request>
    I am using Java mapping to convert xml to some satndard flat file format. It works fine for single message.
    To handle multiple message i am using Multimapping split. Multimapping needs xml tags in traget structure also to split the message.
    To achieve it without BPM, I want to take the whole content of my target file to one tag. When i do this i lost all the new line characters aslo. How can i preserve my new line character using XML ?
    Regards
    Kulwinder

    Are you sure, that the nl characters are deleted?
    They are usually not shown in the XML display.
    You can also use an adapter module instead of a Java mapping. So you can do a split in mapping, but the conversion to the flat file in the adapter module. If you have already a Java mapping for this purpose, you can easily create an adapter module based on that Java code.
    Regards
    Stefan

  • How to create a new line in label in Xcode

    How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
    I want to display the lablel like below:
    Hello World
    Good Bye

    I am using Xcode to develop an app for iOS.
    I tried using multi-line label & belwo is my code.
    - (IBAction)change:(UIButton *)sender {
        self.Screen.text = @"\nHello World";
    - (IBAction)newChange:(UIButton *)sender {
          self.Screen.text = @"\nGood bye";
    everytime when i pressed the button, it replacing the whold lable text instead of adding the second line.

  • Creating a new line in tabular form

    Hi all,
    I designed a form which displays employee information like empno,ename,job,sal.
    I created a control item as "create newline" and lov is attached to this item,lov contains values as YES,No. If I select create newline value as YES then a new line is inserted immediately next to the first line and the data corresponding to that empno is automatically populated into the fields. i.e empno,ename,job fields.But "sal" field is displayed as empty and it is able to insert new sal by user.After entering data into sal field the entire row is stored into emp table.I created a when-create-record trigger in
    "create newline" item,but it is not working.
    Could anyone please give me an idea to do this.
    Thanks in Advance.

    Hi Francois,
    I have developed one form which contains emp block.which is a database block.I have taken Empno,Ename,Job and sal as database items and i have created one control item[Create Line] under this block.And Created Lov for that control item(that lov contains YES or No Values).All these fields displayed on the Canvas.
    when I press CTRL+F11 it will display emp details,now my requirement is Suppose For the first record i have selected Create Line as YES from LOV Under this record new line has to be created and Empno,Ename,Job values to be populated in the new line from the above line but sal field is displayed as blank and then we enter the salary and update the record in the database.
    Note:Here I am displaying the fields in the tabular format.
    I have written code in when-create-record trigger in block level as:
    declare
         cursor c1 is select empno,ename,job,sal from emp where empno=:emp.empno;
    begin
         if :emp.CREATE_LINE='YES' then
    for i in c1
              loop     
                        create_record;
                   fnd_message.debug('new line');
                   :EMP.EMPNO:=i.empno;
                   :EMP.ENAME:=i.ename;
                   :EMP.JOB:=i.job;
              end loop;
              end if;
         end;
    Could u please help me.
    Thanks in advance.

  • Creating a new line in PLSQL

    I am trying to create a new line by returning a variable from a function by coding the following which worked for the last version of HTML_DB and understood that after my variable named vlname I wanted a new line
    msg := 'NAME: ' || vlname ||'<br><br>';
    When passing back the value of msg now in Application express. This exact code I repeat worked for the last version of HTML_DB.
    I don't know why but the new version thinks it's literal
    and is displaying the name and then actually prints <br><br>.
    Does anyone have a ny suggestions ?
    Thanks
    Aron

    I just did the following:
    Created this function:
    create function br_test
    return varchar2
    is
    begin
      return '&lt;br>qwerty&lt;br>qwerty&lt;br>';
    end;Created a blank page with a html region. I then created an an item of type Display as Text (does not save state). Item Source type = PL/SQL expression or function and Source value or expression = br_test.
    When I run this qwerty is shown twice on seperate lines. What is different in you case?
    Regards Pete

  • Creating a new line in forms

    Hi all,
    I designed a form which displays employee information like empno,ename,job,sal.
    I created a control item as "create newline" and lov is attached to this item,lov contains values as YES,No. If I select create newline value as YES then a new line is inserted immediately next to the first line and the data corresponding to that empno is automatically populated into the fields. i.e empno,ename,job fields.But "sal" field is displayed as empty and it is able to insert new sal by user.After entering data into sal field the entire row is stored into emp table.I created a when-create-record trigger in
    "create newline" item,but it is not working.
    Could anyone please give me an idea to do this.
    Thanks in Advance.
    Edited by: user9970067 on Mar 19, 2010 6:15 PM

    Hi Francois,
    I have developed one form which contains emp block.which is a database block.I have taken Empno,Ename,Job and sal as database items and i have created one control item[Create Line] under this block.And Created Lov for that control item(that lov contains YES or No Values).All these fields displayed on the Canvas.
    when I press CTRL+F11 it will display emp details,now my requirement is Suppose For the first record i have selected Create Line as YES from LOV Under this record new line has to be created and Empno,Ename,Job values to be populated in the new line from the above line but sal field is displayed as blank and then we enter the salary and update the record in the database.
    Note:Here I am displaying the fields in the tabular format.
    I have written code in when-create-record trigger in block level as:
    declare
         cursor c1 is select empno,ename,job,sal from emp where empno=:emp.empno;
    begin
         if :emp.CREATE_LINE='YES' then
    for i in c1
              loop     
                        create_record;
                   fnd_message.debug('new line');
                   :EMP.EMPNO:=i.empno;
                   :EMP.ENAME:=i.ename;
                   :EMP.JOB:=i.job;
              end loop;
              end if;
         end;
    Could u please help me.
    Thanks in advance.

  • How do i create a new line item (say 20) in reference to line item 10

    Hi all,
    I am trying to map a scenario where i want to create a new line item with reference to an existing line item. Where do i get this option in SD, and how could i go about it?
    Thanks & Regards
    Ravi

    > In ECC6 if u go to VA01 and enter the SP and SH,
    > Press Propose Item Icon, then one window will pop-up
    > asking for Sale Document Number, enter the Number and
    > select- selection list, there  u will get all the
    > line item of the Sale Doc. Select and copy Material
    Hi i am on SAP 4.7. How could be the same handled here?

  • Text file - carriage return, creating a new line

    anyone know how to create a new line in a text file, something which is the text file equivelent of a BR (html) tag.

    in windows it's "\r\n"
    in linux/unix/bsd it's "\n"
    but the best way to do it is
    //this will return the newline character for whatever
    //platform your program is running on
    System.getProperty("line.separator");

  • Add new line in the Flat file based on the field value

    Hi,
    Following is my Flat File -
    Customer   X      Y
    1001          1       2
    1002          0       1
    Based on the X and Y value I need to add new lines in the Flat file. If X>0 then add a new line with repeating row and Y>0 add again a new line with repeating row. If X or Y=0 then no need to add any repeating new line. 
    So, here for the above example I need output as-
    Customer    X    Y
    1001          1      2
    1001         1       2
    1001         1       2
    1002          0       1
    1002          0        1
    Suggest how we can achieve this?
    Regards,
    Tridib Konwar 

    Hi Tridib,
        I tried your scenario and You will have to use the custom xslt to get the expected result.
        Please find bellow the xslt code which you can use in your map.
    <?xml version="1.0" encoding="utf-16" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0" xmlns:ns0="http://PracticeAtul.XYFlatFileSchema">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/ns0:XYComp" />
    </xsl:template>
    <xsl:template match="/ns0:XYComp">
    <ns0:XYComp>
    <XYComp_Child1>
    <XYComp_Child1_Child1>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child1/text()" />
    </XYComp_Child1_Child1>
    <XYComp_Child1_Child2>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child2/text()" />
    </XYComp_Child1_Child2>
    <XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child3/text()" />
    </XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/text()" />
    </XYComp_Child1>
    <xsl:for-each select="XYComp_Child2">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    <xsl:if test="XYComp_Child2_Child2/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    <xsl:if test="XYComp_Child2_Child3/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    </xsl:for-each>
    </ns0:XYComp>
    </xsl:template>
    </xsl:stylesheet>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.
    Atul Toke

  • I put a Favicon on my website, which can be seen in the adress line and the tab header. However, when I add this site to the bookmarks, it doesn't show it's favicon.

    I put a Favicon on my website, which can be seen in the adress line and the tab header. However, when I add this site to the bookmarks, it doesn't show it's favicon. I have tried deleting and creating a bookmark and also refreshing the webpage or clicking on the bookmark. I don't know what else to do. I use Firefox 4.0.1

    I'm getting favicons for most of my bookmarks, so there might be some issue with the coding or the image format.
    Do you use a tag like this in your page?
    <link rel="shortcut icon" href="/path/to/favicon.ico"/>

  • [svn:fx-trunk] 13383: Modify to include the xml header (with encoding) in the DITA xml files.

    Revision: 13383
    Revision: 13383
    Author:   [email protected]
    Date:     2010-01-08 12:04:00 -0800 (Fri, 08 Jan 2010)
    Log Message:
    Modify to include the xml header (with encoding) in the DITA xml files.
    QE notes: None.
    Doc notes: None
    Reviewed By: Pete
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Thats good news.

Maybe you are looking for

  • HT3921 is mini display port to VGA different from mini dvi to VGA

    What is the connector you need to buy to connect Macbook 13 inch(late 2009) to a LCD projector and LCD-HD Television.

  • Installation on a B&W G3 with Stock 16 Meg Video

    This is one of those cases where when you boot off of the installation DVD you get the wonderful greyscale colors. I'm just wondering if there is any fix to this. I do know that if you install 10.3 and then install the 10.3.9 update, the driver is in

  • Apple tv to i pad

    How do i transfer my film I purchase on to my ipad, I brought it on apple TV, its showing in my purchased list but not on my itunes. Do i have download it again

  • Canon Vixia HF100 24p and Final Cut Pro 7

    Hello all, Just got the HF100 and Final Cut Pro 7. New to both. My plan is to shoot everything at 1920x1080 @24p. I've heard though, that the 24p on this camera has 3/2 inserted to make it 60i. My goal is to remove the 3/2 and do all editing and fx a

  • FI Documents Archiving.

    Hello All, Im tryng to Archive some FI document and using the T Code: SARA. When I complete the process I'm getting the following message in the Job Log: The OPEN_DI of BTE 00002910 could not determine any function modules Use of obsolete function mo