XML Template formatting

I am trying to create a template for XML output from Oracle in PDF. I have a good start but I am having trouble with the "summary information"
The document is a Sales Order Acknowledgment. I have my header information (customer address, order num, etc), and each line of the order in a repeating field (rep_field) format.
However, now I want to have the summary information (order total, total tax, etc) print only on the last page. Right now the information is printing on the bottom of each page ofa multiple page order. This is obviously not a problem if the order has one or two lines on it but when it spans pages I don't want the customer to have to decipher what is going on with the totals.
Any help would be appreciated.
Todd

in the next time use appropriate forum - Forum: BI Publisher - BI Publisher
>
The data comes out of the E-Business suite using the comma as a decimal separator. For example: 123,99
My goal is to have the period as the decimal separator. For example: 123.99
>
use
<?xdofx:replace(VAL,',','.')?>where VAL is tag with 123,99

Similar Messages

  • The file should be in XML-DATA-TEMPLATE format

    Hi,
    When I am trying to upload the Data Definition file in XML publisher with EBS 11.5.10.2, I got "The uploaded file GLPAYBDXDO.xml is invalid. The file should be in XML-DATA-TEMPLATE format". I have tried changing the file name to different names including XML-DATA-TEMPLATE but I could not succeed. I appreciate for any help.
    Thanks,
    Ram.

    What is the content of your xml file. Is this sample xml file or Data Template.

  • Data template is invalid. Should be in XML-DATA-TEMPLATE format.

    Hi,
    I am trying to create & upload a Data Template for a Data Definition in XML Publisher. When I try to upload my data template, it shows me the error :-
    " The uploaded file PAFPURUP_TEMPLATE.xml is invalid. The file should be in XML-DATA-TEMPLATE format. "
    Can any please suggest me a possible resolution to this error? Below is my data template content :-
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="PAFPURUP_TEMPLATE" description="Data template for PAFPURUP" defaultPackage="PA_PAFPURUP_PKG" version="1.0">
    <parameters>
    <parameter name ="count" dataType="character" defaultValue="10"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT BUDGET_VERSION_ID, VERSION_NAME FROM PA_BUDGET_VERSIONS WHERE ROWNUM <= :count]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReport" source="PA_PAFPURUP_PKG.beforeReportTrigger"/>
    <dataStructure>
    <group name ="G_BUDGET_VERSIONS" source="Q1">
    <element name="Budget_Version_Id" value="budget_version_id"/>
    <element name="Version_Name" value="version_name"/>
    </group>
    </dataStructure>
    </dataTemplate>
    Many Thanks,
    Niranjan

    Hi Fred,
    Thanks for your response. The issue was actually with the xml format. I had missed '?' at the end of 1st line of the xml.
    Regards,
    Niranjan

  • Using XSL-XML template to convert name value pairs into XML elements

    Hi,
    I have a xml document in the format:
    <?xml version=”1.0”?>
    <body title="Mr" firstName="Joesph" middeNames="George Harry" lastname="Smith" countrycode="GBP"/>
    I need to convert this using a XSL-XML template in BI publisher to return XML in the following format, while doing some conversion, e.g. converting countrycode from GBP to UK:
    <?xml version=”1.0”?>
    <body>
    <title>Mr</title>
    <firstName>Joseph</firstName>
    <middleNames>George Harry</middleNames>
    <lastname>Smith</lastname>
    <countrycode>UK</countrycode>
    </body>
    Would appreciate if anyone could point me in the correct direction.

    Hi Sweta,
    Why MTB??? Message Transformation bean is used to change the format of the message... If you are planning to call any XSLT or java mapping through that then you can give it a try..
    >>how to get the last and first 3 special characters in the output text using MTB?
    Put them in message mapping itself and write it in File
    Regards
    Suraj

  • Working with Flash content in XML template

    My knowledge base of html and DWCS3 is limited. My knowledge of Flash CS3 is better and have built a web site using it.
    This is a newbie DW question. Am working on an XML template, which contained the following folders:
    site_flash folder containing:  main_v8.swf, tfile_main.xml, style.css, index (firefox doc) (+gallery stuff)
    flash folder containing: main_v8.swf, main_v8.fla, tfile_main.xml, AC_RunActiveContent (JSS file) (+gallery stuff)
    I was told by the template people to use the site_flash folder but there are no visuals (Design views), to work with and could not access Flash through DW to alter the files in Flash. When I can get a Design view in DW, all I get is the f symbol. In all the tutorials I've watched on DW, there is a Design view to work with.
    SO, I used the flash folder and adjusted the main layout in the .fla file to suit my needs, and worked on the tfile_main.xml document in DW and they seemed to be 'talking' as my changes were recognized. When I test the file from either Flash or DW, it is perfect. But when I run it from my test folder through the server, the page formatting is off (page pushed down, menu buttons squashed, etc). There is no style.css sheet in the flash folder.
    Am willing to go back and start over with the site_flash folder with CSS page if this will resolve things, but don’t know how to edit the flash layout through DW. I need a Design view…am very weak in the html side of things.
    Test run:  http://www.mackenziemode.com.au/test.html
    Any advice you can give would be helpful.
    The Not-feeling-so-Handy Ma'am  

    In followup to my own frenzied query, in case anyone else is having the same problem, the solution to the 'squashed'
    web site (that's works perfectly on testing outside the browser) is to upload the main.xml file in binary mode.

  • Post data to XML template in Agentry app

    Hi Community,
    Is there a way to post data from object/transaction properties to XML template in Agentry?
    From the below link, it appears we can do it using an update rule, but I couldn't understand how? Any other information on this would be helpful.
    How to configure Agentry to format and post an xml document to a url using transaction data - SAP Mobility - SCN Wiki
    Thanks
    Narasimha
    Tags edited by: Michael Appleby

    Narasimha,
    That article is just suggesting that it could be done with an update rule.  This would still be a completely manual process where you would need to create the XML using CONCATENATE statements in the rule to build the XML by hand.  The update rule would be tied to a transaction property.  You would then use the Java or SQL backend to pass the generated XML to your backend system.
    To have Agentry build the XML transaction data for you via template, you need to use the XML backend and create XML backend steps.  The XML backend is used primarily for communicating with web services.  Within the step, you set up your base XML template with placeholders for the transaction properties.
    Here are a couple links to help get you started with the XML backend:
    Configuring HTTP-XML Back-end Connections for Agentry Applications - Administrator - SAP Library
    SyBooks Online
    Jason Latko - Senior Product Developer at SAP

  • How do you export APEX report results to XML template

    Hello all,
    I would like to export the results of a report to an XML template(CSV removes leading zeroes which doesn't work for us) Where do you store the template and how do you export the report results to it?
    Thanks

    Hello, since you say it's just a question of formating why you want to use xml instead of csv maybe you wanna have a look at this thread:
    CSV Download Changing Text to Number
    There they are discussing the aspects of leadings 0.
    Regards, Tine.

  • Can Dynamic xml templates be used in interactive form callable objects?

    Hi,
    We are trying to implement Offline adobe forms using guided procedures (Impersonalized forms).
    We have no problem while creating the callable object using the normal xdp template. But whenever we try to use Acrobat 7/8 dynamic xml template, the following error occurs and the template is not picked.
    "Could not retrieve template fields: Wrong document format or adapter mismatch from adapter"
    Cant we use dynamic xml templates for adobe forms in GP? If we can, how to resolve this? Please let me know.
    Version:
    Netweaver SAP 2004s Sp15
    Adove Live Cycle desginer 7.0

    Closed

  • Error with Dynamic XML template in interactive form callable objects :GP

    Hi,
         We are trying to implement Offline adobe forms using guided procedures (Impersonalized forms).
    We have no problem while creating the callable object using the normal xdp template. But whenever we try to use Acrobat 7/8 dynamic xml template, the following error occurs and the template is not picked.
    "Could not retrieve template fields: Wrong document format or adapter mismatch  from adapter"
    Cant we use dynamic xml templates for adobe forms in GP? If we can, how to resolve this? Please let me know.
    Version:
    Netweaver SAP 2004s Sp15
    Adove Live Cycle desginer 7.0
    Edited by: Subramanya Srinivas Mullapudi on Oct 25, 2008 1:31 AM

    Hi Srivinas,
    take a look on that [docu dynamic forms|http://help.sap.com/saphelp_nw70/helpdata/en/44/bca11fc60b7006e10000000a155369/content.htm] and let me know if this is solving your problem.
    In addition also consider [integrating offline and form-based activities|http://help.sap.com/saphelp_nw70/helpdata/en/44/d44bea51103ee1e10000000a114a6b/content.htm] and the mentioned sublinks.
    Best regards
    Berndt

  • How do you delete an  XML template?

    Does anyone know how to remove a custom XML template? I'm using 11.5.10 Rollup 2. I created an RTF template for AP Checks. But I've discovered that using a PDF template will be better suited to our needs. I can not change the template type to PDF. I deactivated the template, and tried to create a new template using a different template name , and code. I also created a new data definition using the new code. But when I try to save the new template I receive an error: "A template file already exists for this language/territory combination. Please use the update file option." I dont see an 'update file' option on this screen. I went back and tried to update the template by deleting the sample file, but it says "Delete button disabled". Does this mean, that I can only assign one template for the English/United States combination?! This is not a seeded template. How do I go about removing this template, so that I can set up a new one using the desired format. I've searched the net, but can't find any answers... Thanks in advance for any help. Thanks!

    Hello Dan.
    I never figured out how to delete a template.
    However, now that I think about it, you may be able
    to get around it. But you may have to jump through a few hoops first :)
    Using System Administrator..
    Try making a copy of the Concurrent Program.
    (Go to Concurrent >> Program >> Define)
    Query the existing program, then click the 'Copy To' button.
    Change the Short Name slightly.
    Be sure to check the "include parameters" and "include incompatible programs" boxes.
    You will also need to make a copy of the actual rdf file and rename it slightly.
    (In a subdirectory of $APPL_TOP i.e. /?/oracle/visappl)
    Then you would register your new report executable (Concurrent >> Program >> Executable).
    Once the new report executable has been registered, you can go back to your
    new Concurrent Program, and change the executable name to the one you just registered.
    Also, be sure to assign your new report to the same responsibility report group as the original
    (Concurrent >> Security >> Responsibility >> Request).
    Now, essentially you have cloned the original report, and you should be able to create a new RTF template for it. If you need more detailed steps, I may have some documentation for customizing reports somewhere.
    Good Luck!
    Mark K

  • PO XML Template

    Hi,
    My name is James Shieh. Does anyone has a PO XML template out there? I want to take the standard Oracle PO report (rdf file) and make it a XML report. Does anyone has a XML template already setup to go? Please advice.
    Thanks.

    The template is in XSL-FO format rather than RTF format.
    You can use an XML editing tool such as 'XMLSpy' to modify this template and add logos, additional fields, layout as required:
    http://www.altova.com/products/xmlspy/xml_editor.html
    Yes - it is very frustrating that Oracle Development created this template in XSL-FO format rather than using Word or RTF or something that is easier to manipulate! However, XSL-FO isn't that hard to learn if you put in a day or so of background study ;-)

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • ABAP to XML file - Formatting problem and UTF-8 requirement

    Hi Everyone,
    Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
    The file format we get is this:
    Example 1:
    <?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
    <RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
    teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
    les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
    Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
    ></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
    <Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
    However, the format need to look like this as in Example 2 below.
    We also need help in how to get  " encoding="UTF-8"?> " as part of the file format.
    Example 2:
    <?xml version="1.0" encoding="UTF-8"?>                
    <FDXLMDProdRcpt>                                      
        <FXNHdrLp>                                        
            <CrtDtTm>20070612151817</CrtDtTm>             
            <SessID>26796</SessID>                        
            <MsgTyp>861</MsgTyp>                          
            <MsgSubTyp>WRE_A</MsgSubTyp>                  
            <PrcsingPrty>5</PrcsingPrty>                  
            <SndTPQualCD>ZZ</SndTPQualCD>                 
            <SndTP>FSCS</SndTP>                           
            <RcvTPQualCD>ZZ</RcvTPQualCD>                 
            <RcvTP>EIB</RcvTP>                            
            <SndSrc>YANTRA</SndSrc>                       
            <RcvSrc>EIB</RcvSrc>                          
            <UsrID>VAR</UsrID>                            
        </FXNHdrLp>                                       
        <ProdRcptHdrLp>                                   
            <ShpID>VAR20070612NCHIC1</ShpID>              
            <ShpTyp> </ShpTyp>                            
            <ShpActnCD>00</ShpActnCD>                     
            <InTransMrgTyp> </InTransMrgTyp>              
            <ShpVolUOM>CI</ShpVolUOM>                     
            <ShpWgtUOM>LB</ShpWgtUOM>                     
            <ShpTotVol>310022.00</ShpTotVol>              
            <ShpTotWgt>861.00</ShpTotWgt>                 
            <DtTmLp>                                      
                <DtTyp>050</DtTyp>                        
                <DtTmQual>501</DtTmQual>                  
                <DtTm>2007-06-12T15:07:41-04:00</DtTm>    
            </DtTmLp>                                     
            <AdrLp>                                       
                <EntTyp>RC</EntTyp>                       
                <EntIDQual>93</EntIDQual>                 
                <EntID>NCHIC</EntID>                      
                <EntNm>NCHIC</EntNm>                      
                <AutoCrtTrdPar>0</AutoCrtTrdPar>          
                <AutoCrtTrdParRole>0</AutoCrtTrdParRole>  
                <AutoUpdtTrdPar>0</AutoUpdtTrdPar>        
            </AdrLp>                                      
            <ProdRcptTptLp>                               
                <TptIDQual>BOL</TptIDQual>                
                <TptSCAC> </TptSCAC>                      
                <TptID> </TptID>   
    Thanks and Best Regards
    Sitaraman

    You could try to use the following coding:
    *& Report  ZUS_SDN_UC_XML_TO_UTF8_TRANSF
    REPORT  zus_sdn_uc_xml_to_utf8_transf.
    define local data
    CONSTANTS:
      gc_encoding           TYPE string VALUE 'UTF-8'.
    DATA:
      gd_result             type string,
      go_ixml               TYPE REF TO if_ixml,
      go_stream_factory     TYPE REF TO if_ixml_stream_factory,
      go_encoding           TYPE REF TO if_ixml_encoding,
      go_resstream          TYPE REF TO if_ixml_ostream.
    DATA:
      gt_knb1    TYPE STANDARD TABLE OF knb1,
    gd_xml     TYPE string,
      gt_xml     TYPE TABLE OF string.
    START-OF-SELECTION.
      SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
          WHERE bukrs = '1000'.
      go_ixml = cl_ixml=>create( ).
      go_stream_factory = go_ixml->create_stream_factory( ).
      go_encoding = go_ixml->create_encoding( character_set = gc_encoding
                                            byte_order = 0 ).
      go_resstream =
                  go_stream_factory->create_ostream_cstring( gd_result ).
      CALL METHOD go_resstream->set_encoding
        EXPORTING
          encoding = go_encoding.
    XML Transformieren
      CALL TRANSFORMATION id_indent
        SOURCE     itab = gt_knb1
        RESULT XML go_resstream.
      APPEND gd_result TO gt_xml.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         BIN_FILESIZE              =
          filename                  = 'C:\temp\xml_to_utf8.txt'
         FILETYPE                  = 'ASC'
         APPEND                    = SPACE
         WRITE_FIELD_SEPARATOR     = SPACE
         HEADER                    = '00'
         TRUNC_TRAILING_BLANKS     = SPACE
         WRITE_LF                  = 'X'
         COL_SELECT                = SPACE
         COL_SELECT_MASK           = SPACE
         DAT_MODE                  = SPACE
         CONFIRM_OVERWRITE         = SPACE
         NO_AUTH_CHECK             = SPACE
         CODEPAGE                  = SPACE
         IGNORE_CERR               = ABAP_TRUE
         REPLACEMENT               = '#'
         WRITE_BOM                 = SPACE
         TRUNC_TRAILING_BLANKS_EOL = 'X'
       IMPORTING
         FILELENGTH                =
        CHANGING
          data_tab                  = gt_xml
        EXCEPTIONS
          file_write_error          = 1
          no_batch                  = 2
          gui_refuse_filetransfer   = 3
          invalid_type              = 4
          no_authority              = 5
          unknown_error             = 6
          header_not_allowed        = 7
          separator_not_allowed     = 8
          filesize_not_allowed      = 9
          header_too_long           = 10
          dp_error_create           = 11
          dp_error_send             = 12
          dp_error_write            = 13
          unknown_dp_error          = 14
          access_denied             = 15
          dp_out_of_memory          = 16
          disk_full                 = 17
          dp_timeout                = 18
          file_not_found            = 19
          dataprovider_exception    = 20
          control_flush_error       = 21
          not_supported_by_gui      = 22
          error_no_gui              = 23
          OTHERS                    = 24.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    END-OF-SELECTION.
    However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
    ...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
    Using a HexEditor the special character (0x0A) is displayed as a dot.
    Also Check with FM - TREX_TEXT_TO_UTF8
    Reward Points if it is helpful
    Thanks
    Seshu

  • Error while trying to update the XML template using XML Publisher Administrator

    Hello Folks,
    We are on R12.1.3
    I changed a condition in a report and trying to upload the new XML template using XML Publisher Administrator.
    when i click the Apply button, it is throwing an error 'Bad Request'
    Navigation : XML Publisher Administrator > Data Definitions > query the report
    Click on the name of the report > click 'Update file' besides Data Template > Choose file > Click Apply
    I am getting the below error
    Bad Request
    Your browser sent a request that this server could not understand.
    Now, i could not upload a new XML template.
    Am I doing anything wrong.
    regards,
    Kris

    user10163762 wrote:
    Thank you Eugen and Hussein.
    The problem is not with the template.
    It seems to be a problem in that particular instance.
    Uploaded it in a different instance.
    However once i run the program, i cannot view the output as the browser window flashes and disappears.
    My colleague says , it is to do with the trusted site to download something from the browser.
    Can you please guide me on how to fix this ?
    http://bit.ly/1k8e2vi
    Thanks,
    Hussein

  • How to sort Data in XML template (rtf) file?

    Hi, I have an oracle 11i custom report (rdf) with an xml output to a PDF. There is a formula column in the report. Now I need the data to be sorted on this formula column. As we cannot sort on formula column, i have decided to find a way to sort it in the data in the XML template. But I don't really know how to sort and also where to specify the sort tag in the rtf file. I appreciate your response.
    Databse version : 9.2.0.8.0
    E-Biz Version : 11.5.10.2
    Oracle Reports Version : 6.0.8.27.0
    Oracle BI version : 10.1.3.2.1
    Note : I posted this question under : XML General forum also. But did not get any response. I assumed that may be thats not the right place to post it as my report is in e-Biz environment.

    Hi
    As long as you don't have your ^field commands grouped inside a ^group the order in the .dat file is not important. Your last command
    ^field BG_DOC_LN__LN_AM
    246624.12
    should populate field BG_DOC_LN_AM wherever you place it on your form. Obviously you need to name the fields according to your ^field commands and not just use tab (move to next field).
    Shout if this was not what you are asking.
    Stale Sodal

Maybe you are looking for