Non UTF-8 xml file by Email channel

Hi there,
I am sending an US-ASCII xml file content to B2B receiver. b2b does not identify the doc and gives doc identification error. The issue is the encoding is not mentioned in the xml.
It works if i send it as UTF-8 or specify the encoding in the xml file (<?xml version="1.0" encoding="US-ASCII" ?>)
My que is:
Is it possible for b2b to read an us-ascii xml file over email channel, and identify the associated custom document when the encoding is not configured in the xml file. ?
Is changing the tip.properties as racle.tip.adapter.b2b.encoding = Characterset Name will work? Also wondering where is tip.prop file in 11g?
Can you help me with a solution for this?
Thanks
Ganesh
Edited by: Ganesh on Oct 15, 2010 1:54 PM

Hello Ganesh,
Is it possible for b2b to read an us-ascii xml file over email channel, and identify the associated custom document when the encoding is not configured in the xml file. ?If file is UTF-8 encoded then without encoding configuration in XML b2b should be able to accept and identify the document.
Is changing the tip.properties as oracle.tip.adapter.b2b.encoding = Characterset Name will work? Also wondering where is tip.prop file in 11g?tip.properties file is used in Oracle B2B 10g. In 11g, there is no such file. Few of the properties are part of the product in 11g and rest of them can be set using B2B system parameters in Administration --> Configuration tab. Few properties can also be set using fusion middleware control. Please refer -
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/bb_config.htm#CEGEADFJ
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/app_isags.htm#CIHDFDIC
Regards,
Anuj

Similar Messages

  • Problem in attaching a xml file in Email Notification

    Hi,
    I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
    Edited by: friendsforever on Oct 6, 2010 1:05 AM

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

  • Javascript request on non well-formed xml file in Safari

    Hi,
    I make an AJAX request to get a non well-formed xml file. On Internet Explorer (domNode is empty) and Firefox (domNode is not empty but a tag "parsererror" is present), I can know if the document is non well-formed but on Safari the request seems to be ok, I get a part of the non well-formed file (until the error).
    I would like to say if I can make the difference between a well-formed xml file and a non well-formed xml file (with an AJAX request) on Safari.
    Thanks
    Julien

    I have built a desktop application that can use these
    calls to check if the xml contained in the document
    called "file" is well formed.
    Ok. So, the application works fine then?
    DocumentBuilderFactory domFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder domBuilder =
    lder domBuilder = domFactory.newDocumentBuilder();
         domBuilder.parse(file);
    They are part of the javax.xml.parsers.*; package.
    Problem is that to serve this I need to put it in an
    applet but since I have to write the xml string to a
    file local to the server the applet is not working.
    Huh? You lost me there. Are you getting security exceptions from the applet? If yes, you need to sign the applet. Otherwise, what is not 'working' in the applet compared to the application? Also, why do you need to first write it to a file?
    My question is if anyone knows of some classes in the
    API that will allow me to check if a String of XML is
    well formed or not.
    If the document is not well-formed, the parse() call will throw an exception. Catch this and process as needed.
    I basically need to get a string from a field in a
    data base in XML format and be able to test it
    without first writing it to a document so I can get
    the applet to work.
    If you want to access an external database from an applet, you will need to sign the applet. You should not need to first write it to a file before parsing. Rather, simply use a stream (either InputStream or Reader) and wrap it in a StreamSource object.
    If anyone knows something on this or has an
    alternative suggestion please do tell.
    Thanks.- Saish

  • Form suddenly returning xml file via email instead of pdf

    I've got a form online that has been working the way I wanted for at least several months which is to send a completed pdf form (job application)as an attachment via email. Now I just received an email with an xml file instead of the pdf file. When I go to the website and test the online form it sends it as a pdf. So what could have caused one specific form to come back as an xml file? Could it be the type of browser, lack of Reader? Thanks for any assistance.

    I know I set up the form with the extended reader rights, I would guess that both reader and acrobat were being utilized for this form. It seems strange to me that out of the blue the form sent in this manner if the permissions haven't been modified since it was setup nearly 6 months ago. Thanks for the feedback!
    JACKSON

  • Data in XML files from emailed PDF form

    I have set up a form based on a template andam having problems with the resulting XML. When I click on the e-mail to test it and I open the XML file in Excel, I get multiple rows of data - it's almost like it stores the data from previous completions of the form. What am I doing wrong?

    Are you clicking the Send Email button while previewing the pdf form?
         -> If yes, have you specified preview data on Form Properties panel?
                    -> If yes, does your form contain Table or repeatable subforms?
    If all the above point are true, you will get multiple data in your xml.
    Nith

  • XMl File into email attchements with Email package

    Hy All,
    I have to send email from XI with .xml attachments. For this scenario i have to use Mail package because of the meail adresse of the recevier is depending on the content of the .xml File.
    At the moment it send the email to right email adresse (Mapping executed) but the attachment is empty.
    Could anyone help me.
    I look at all the entries in SDN but i cannot find a clear response of my problem.
    Thank you

    Hi,
    Have a look on these links.
    1. http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
         2. http://help.sap.com/saphelp_nw2004s/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    3. /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4360. [original link is broken] [original link is broken] [original link is broken]
    Regards
    Aashish Sinha

  • Parsing a non-standard (LabVIEW) xml file

    I inherited an xml file which does not use the normal LabVIEW schema, where the types would be defined for each value and the number of elements would be defined for an array.  Although a schema file xsl is listed in the xml header, no such file exists.
    Below is a example of the file's contents.  It is a much much shorter version of the actual file.  As I look at the file and start to implement code to support it, I am wondering if I am creating an oversized monster better known as Rube Goldberg code for this task.  Below is the snippet for the latest attempt that I started (obviously unfinished).   It is obvious that I am not an expert at dealing with xml files, which is why I posted this thread.  In other words, I am seeking advice on the appropriate approach to extract values from an exl file that contains code similar to that below.
    The LabVIEW code will need to do 2 things:  
    1. parse the file and populate clusters with the data (I am trying to avoid a giant cluster)
    2. allow to edit the values and write them back to the xml file, while retaining the original format (this is where it becomes tricky).
    I have tried a couple of other approaches that I was not happy with.  Below is the snippet for the latest code that I just started.  I'm trying to avoid falling into the rabbit hole.
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="myschema.xsl"?>
    <calibration>
      <header>
        <hash>bogus123</hash>
        <version>15</version>
        <date>Dec-2-2014</date>
        <author>Me</author>
        <description>Calibration data.</description>
        <comments>new auto-generation</comments>
    <unit-serial-number>007</unit-serial-number>
    <unit-assembly-number>A01.00</unit-assembly-number>
    <base-serial-number>533</base-serial-number>
    <module-serial-number>788</module-serial-number>
    <di-serial-number>001</di-serial-number>
    <di-assy-number>123-01</di-assy-number>
      </header>
      <content>
        <data>
          <name>Power</name>
          <description>Output power vs Frequency</description>
          <params>
            <param name="RFFlag">TRUE</param>
             <param name="Temperature">38</param>
            <param name="BaudRate">115200</param>
          </params>
          <table>
            <params>
              <param name="Frequency">5551212</param>
            </params>
            <header>Pout (dBm), RF_GAIN</header>
            <rows>
    <row>0,0x05</row>
    <row>0.5,0x08</row>
    <row>1,0x0A</row>
    <row>1.5,0x0C</row>
    <row>2,0x1F</row>
    <row>2.5,0x12</row>
    <row>3,0x16</row>
    <row>3.5,0x1A</row>
    <row>4,0x1E</row>
    <row>4.5,0x23</row>
    <row>5,0x28</row>
    <row>5.5,0x2D</row>
            </rows>
          </table>
          <table>
            <params>
              <param name="Frequency">9993333</param>
            </params>
            <header>Pout (dBm), RF_GAIN</header>
            <rows>
    <row>0,0x05</row>
    <row>0.5,0x08</row>
    <row>1,0x0A</row>
    <row>1.5,0x0C</row>
    <row>2,0x1F</row>
    <row>2.5,0x12</row>
    <row>3,0x16</row>
    <row>3.5,0x1A</row>
    <row>4,0x1E</row>
    <row>4.5,0x23</row>
    <row>5,0x28</row>
    <row>5.5,0x2D</row>
            </rows>
          </table>
        </data>
        <data>
          <name>Loss</name>
          <description>loss vs frequency</description>
          <params>
            <param name="Temperature">34</param>
          </params>
          <table>
            <header>Frequency, Loss</header>
            <rows>
              <row>5551212,0.8</row>
              <row>6661313,0.8</row>
              <row>7771414,0.8</row>
            </rows>
          </table>
        </data>
          <name>Attenuation</name>
          <description>RF vs attenuation</description>
          <table>
            <header>index, DAC</header>
            <rows>
              <row>1,  0xCCC</row>
              <row>2,  0xCCC</row>
              <row>3,  0xCCC</row>
              <row>4,  0xCCC</row>
              <row>5,  0xCCC</row>
              <row>6,  0xCCC</row>
              <row>7,  0xCCC</row>
            </rows>
          </table>
        </data>
        <data>
          <name>Current</name>
          <description>current vs Pout</description>
          <table>
            <header>ADC, current</header>
            <rows>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x2,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
              <row>0x3,  0x66</row>
            </rows>
          </table>
        </data>
       </content>
    </calibration>
    Attachments:
    xmlTry.png ‏64 KB

    Ray.R wrote:
    Hi Darin.
    How have you been?  Wishing you a belated Happy New Year!
    I like your expression:  "step away from the mouse".  Very much to the point.  
    Thanks for the advice.  I'll check out XPath.
    Cheers,
    RayR
    Doing well, Thanks.  Wishing you an early Chinese New Year.  (that's going to get bleeped). [Edit:  Yay, no more bleeping Chinese]
    Be a little careful with XPath.  Some people have been known to wrap C++ libraries to have access to XPath 2.0 and an XSLT engine for awesome search and replace capabilities.  Others have been known to find ways to program XPath graphically:

  • XSLT and non-well formed XML file

    All,
    I am getting some "XML" feeds from some old lab equipment, however the XML isn't well formed.  Really it isn't even XML it is just a formatted text file.  So I will get a feed like the following:
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:20 PM" />
    <CarbonAvg Label="Carbon Avg." Value="116 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002301 1" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 11:46 AM" />
    <CarbonAvg Label="Carbon Avg." Value="43.5 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002302 2" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 11:53 AM" />
    <CarbonAvg Label="Carbon Avg." Value="44.4 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002303 3" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:00 PM" />
    <CarbonAvg Label="Carbon Avg." Value="42.6 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002322 1" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:07 PM" />
    <CarbonAvg Label="Carbon Avg." Value="32.3 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002323 2" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:14 PM" />
    <CarbonAvg Label="Carbon Avg." Value="35.8 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="2015002324 3" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:27 PM" />
    <CarbonAvg Label="Carbon Avg." Value="32.4 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:33 PM" />
    <CarbonAvg Label="Carbon Avg." Value="123 ppm" />
    </SampleSet>
    As you can see, this isn't well formed and when I try to process this via XSLT I run into all kinds of problems.  So outside of writting a program to watch for files, picking them up with a c# program, wrapping the XML to make it well formed then pass
    it to the XSLT file, is there a way that I can wrap the file using XSLT instead of having to create a separate program to make it well formed? Any help is appreciated.

    Hello katghoti,
    >>however the XML isn't well formed.  Really it isn't even XML it is just a formatted text file
    Firstly, we should know that a text file actually does not know a XML format, so I suggest that you could save the text file to a XML file. And if you provided XML is the whole content, it is not an invalid XML file because the XML document must have one
    and only one root element. You have to add root element, so a valid XML file with these SampleSet elements should be similar with below:
    <?xml version="1.0"?>
    <SampleSets>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:20 PM" />
    <CarbonAvg Label="Carbon Avg." Value="116 ppm" />
    </SampleSet>
    <SampleSet Label="Sample Set">
    <Name Label="Name" Value="CQS6" />
    <AnalysisDate Label="Analysis Date" Value="3/13/2015 12:33 PM" />
    <CarbonAvg Label="Carbon Avg." Value="123 ppm" />
    </SampleSet>
    </SampleSets>
    I am not sure how you want the XML be formatted, my usual approach to format a XML file is to open the file in Visual Studio and use ctrl K+D keyboard shortcuts to format the XML file.
    >>is there a way that I can wrap the file using XSLT instead of having to create a separate program to make it well formed?
    XSLT is used to process XML file, while you provided file is a text file, it does not recognize it.
    If I misunderstand, please feel free to let me know.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Email XML file as attachment in 4.6c

    Hi,
    I have a requirement to generate an XML file and email it.
    I am using Class CL_IXML to create the xml requirement.  The code is listed below
    When I download the file to the PC, i am able to open the file and the XML format is ok, but when
    I email the file using SO_NEW_DOCUMENT_ATT_SEND_API1, the attachment is still in the Binary format. Does anyone know how to send the file as an XML attachment.
    We are using SAP R/3 ver 4.6c.
    Load the class definition
      CLASS cl_ixml DEFINITION LOAD.
          Creating a ixml factory
      l_ixml = cl_ixml=>create( ).
          Creating the dom object model
      l_document = l_ixml->create_document( ).
    Message
      l_element_message  = l_document->create_simple_element(
                    name = 'Message'
                  parent = l_document ).
    Message Header
      l_element_message_hdr  = l_document->create_simple_element(
                        name = 'MessageHeader'
                      parent = l_element_message ).
    Sender Id
      l_element_dummy = l_document->create_simple_element(
                 name = 'SenderID'
                value = 'ABCDE'
               parent = l_element_message_hdr ).
    Receipient Id
      l_element_dummy = l_document->create_simple_element(
                 name = 'RecipientID'
                value = 'ZZZZZZZZZZZ'
               parent = l_element_message_hdr ).
    Prepared
      l_element_dummy = l_document->create_simple_element(
                 name = 'Prepared'
                value = '2009-03-31T14:30:00'
               parent = l_element_message_hdr ).
    Msg ID
      l_element_dummy = l_document->create_simple_element(
                 name = 'MessageID'
                value = '1234567896'
               parent = l_element_message_hdr ).
    Msg type
      l_element_dummy = l_document->create_simple_element(
                 name = 'MessageType'
                value = 'MANIFEST'
               parent = l_element_message_hdr ).
    Msg ver
      l_element_dummy = l_document->create_simple_element(
                 name = 'MessageVersion'
                value = '02'
               parent = l_element_message_hdr ).
      Creating a stream factory
      l_streamfactory = l_ixml->create_stream_factory( ).
      Connect internal XML table to stream factory
      l_ostream = l_streamfactory->create_ostream_itable( table = l_xml_table ).
      Rendering the document
      l_renderer = l_ixml->create_renderer( ostream  = l_ostream
                                                           document = l_document ).
      l_rc = l_renderer->render( ).
      Saving the XML document
      l_xml_size = l_ostream->get_num_written_raw( ).
    Thanks
    ND

    Hi,
      I have one program conerts data to xml format.
    TABLES:
      MAKT,                                "Mat description
      MARC,                                "Material / plant
      T001W,                               "plant name
      BHDGD.                               "Batch heading
    Internal tables
    DATA:
      BEGIN OF GT_MARC OCCURS 0,
        WERKS LIKE MARC-WERKS,
        MATNR LIKE MARC-MATNR,
      END OF GT_MARC,
    Table to be downloaded as xml. Each line stores start and end tags
    and the value
      BEGIN OF GT_XML OCCURS 0,
        LINE(120),
      END OF GT_XML,
      G_MAKTX(120).
    User-input
    SELECT-OPTIONS:
      S_WERKS FOR MARC-WERKS,
      S_MATNR FOR MARC-MATNR.
    START-OF-SELECTION.
    Extract all required data
      PERFORM MAIN_PROCESSING.
    END-OF-SELECTION.
      SORT GT_MARC BY WERKS MATNR.
      LOOP AT GT_MARC.
        AT FIRST.                          "First tag must be root
          CLEAR GT_XML.
          GT_XML-LINE = ''.
        APPEND GT_XML.
        CLEAR GT_XML.
    display data
        FORMAT COLOR 2 ON.
        WRITE :/ GT_MARC-MATNR, MAKT-MAKTX.
        FORMAT COLOR 2 OFF.
      ENDLOOP.
    The last tag must be the root closing tag --*
      GT_XML-LINE = '</LOCATIONS>'.
      APPEND GT_XML.
      CLEAR GT_XML.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                FILENAME = 'C:PLANT1.XML'
                FILETYPE = 'ASC'
           TABLES
                DATA_TAB = GT_XML.
    TOP-OF-PAGE.
      MOVE SY-TITLE TO BHDGD-LINE1.
      MOVE SY-REPID TO BHDGD-REPID.
      MOVE SY-UNAME TO BHDGD-UNAME.
      MOVE SY-DATUM TO BHDGD-DATUM.
      MOVE '0' TO BHDGD-INIFL.
      MOVE '132' TO BHDGD-LINES.
      FORMAT INTENSIFIED ON COLOR COL_HEADING.
      PERFORM BATCH-HEADING(RSBTCHH0).     "report header
    Form READ_PLANT
    FORM READ_PLANT.
    Get plant name
      CLEAR T001W.
      SELECT SINGLE NAME1
        INTO T001W-NAME1
        FROM T001W
       WHERE WERKS EQ GT_MARC-WERKS.
    ENDFORM.                               " READ_PLANT
    Form MAIN_PROCESSING
    FORM MAIN_PROCESSING.
    Material and plant basic data
      SELECT WERKS MATNR
        INTO TABLE GT_MARC
        FROM MARC
       WHERE WERKS IN S_WERKS
         AND MATNR IN S_MATNR.
    ENDFORM.                               " MAIN_PROCESSING
    Form READ_DESCRIPTION
    FORM READ_DESCRIPTION.
    Material name
      CLEAR G_MAKTX.
      SELECT SINGLE MAKTX
        INTO G_MAKTX
        FROM MAKT
       WHERE MATNR EQ GT_MARC-MATNR
         AND SPRAS EQ 'E'.
    Replace special character
      DO.
        REPLACE '&' WITH '*ù%;' INTO G_MAKTX.
        IF NOT SY-SUBRC IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '*ù%;' WITH '&amp;' INTO G_MAKTX.
        IF NOT SY-SUBRC IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '/' WITH '&#47;' INTO G_MAKTX.
        IF NOT SY-SUBRC IS INITIAL. EXIT.ENDIF.
      ENDDO.
    ENDFORM.                               " READ_DESCRIPTION
    END OF PROGRAM Z_DOWN_XML ************************
    *******For sending data to mail check the following link*****
    http://itknowledgeexchange.techtarget.com/itanswers/is-there-an-xml-function-module/
                                              (OR)
    search in sdn.sap.com for mail data(xml)

  • Can someone help me export a XML file from my project file?

    hey guys,
    I need someone to help me if possible, i was working at school with final cut pro and forgot to export it in xml format and only saved it in final cut pro format... i need to work on this at home and i have a pc.. because there are no lab hours and its due tommorrow, if anyone can help that would be great, thanks!!
    Winston

    i believe it was final cut pro 5, and i have premiere pro cs4 and it says itll read any xml file from final cut pro.
    if anyone wants to help me... here is my fcp file
    http://rapidshare.com/files/208267210/abstract.fcp.html
    you can just email me back the xml file to [email protected]
    i really appreciate it if someone can help me out!!
    Message was edited by: WinstonWong

  • Errors in XML file

    I have a problem: I work in two locations. When I export an XML file, send it by mail and import it in FCP in my other computer: Various parameters like center positions from stills are changed, and have huge values.
    Does somebody know how to solve this? Thanks in advance !
    Ton
    dual G4   Mac OS X (10.3.9)   two identical systems in two locations

    How are you attaching it to your email?
    You should not be attaching the .xml file (most email system suspect those to be viruses, so they garble the values). To avoid that, zip the file, then attach the zip to your email.
    Prior to attaching the XML file via email...
    Navigate to the file while in the Finder
    Control-click on the file, then select Create Archive of "FileNameHere" from the contextual menu. A .zip file will be created in the same folder.
    Attach the FileNameHere.zip to your email
    Or is your problem beyond that?

  • Edit XML file with VB Script

    Hi There1. There is a config.xml file on each computer2. Here is an short example of the xml file:
    1000
    [email protected]
    1
    1
    1
    \\mediasrv\user1\extension
    3. I need to write a vb logon script that need to do the following :
    - Change \\mediasrv\user1\extension to \\mediasrv2\users\user1\extensionI am still busy learning Vb script ect.Can someone please point me in the right direction on what to do in the script?
    This topic first appeared in the Spiceworks Community

    Hi There1. There is a config.xml file on each computer2. Here is an short example of the xml file:
    1000
    [email protected]
    1
    1
    1
    \\mediasrv\user1\extension
    3. I need to write a vb logon script that need to do the following :
    - Change \\mediasrv\user1\extension to \\mediasrv2\users\user1\extensionI am still busy learning Vb script ect.Can someone please point me in the right direction on what to do in the script?
    This topic first appeared in the Spiceworks Community

  • 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

  • How to encode an output XML file to UTF-16

    Hi,
      My target is a file system and the output is XML file. I need to encode the same in UTF-16 instead of default UTF-8. I am not using XSLT mapping
    1. How can I do this dynamically by adapter specific message attributes?
    2. Or can I achieve this by some module parameters in communication channel?
    thanks
    francis

    Use the XMLAnonymizerBean for this.
    http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm
    Regards
    Stefan

  • Receiver File channel for XML files: with carriage return

    Hi all,
    we are using a receiver FILE channel to generate an XML file that is sent to an external partner.
    The XML file looks good in a parser (IExplorer). But in fact there are not carriage return / line feeds between the XML tags
    of the XML payload in the file.
    Our partner now requires the XML file in a more vertical structure which means: for every tag a separate line (like it is displayed in a parser)
    Does anybody know a more general way to convert to a vertical XML structure (so with carriage return line feed).
    There is one entry in the SDN dealing with this topic but suggesting using an UDF. I think this is a very specific way.
    I don't think it is a good way to change/enhance the message mapping just because of a general formating change.
    Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    any experiences? suggestions? examples?
    Thank you very much
    best regards
    Hans
    examples:
    original by XI receiver FILE adapter
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus><type>BS</type><header><message><messageSender>SENDER</messageSender><messageDate>20090723143720</messageDate> ... and so on
    required:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_batchStatus>
    <type>BS</type>
    <header>
    <message>
    <messageSender>SENDER</messageSender>
    <messageDate>20090723143720</messageDate>
    ... and so on

    >
    Hans Georg Walter wrote:
    > Is it better to use an XSLT mapping as a second step in the interface mapping or a JAVA adapter module to convert ?
    > any experiences? suggestions? examples?
    In such a case, the best is to write an generic XSLT or Java mapping that will attempt to do the pretty printing/formatting of the xml.
    The advantage of a generic one is that you can reuse the same class/jar for many other scenarios.
    so the flow will be as below in your interface mapping;
    1. your specific source to target mapping
    2. the generic formatting class

Maybe you are looking for

  • Error when starting

    Hi I keep getting the following error when I start Itunes. I have reinstalled many times and keep getting the same error everytime I start ITunes. "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are m

  • Strange User account called "other" appeared

    Hi there, I've got a question. Since several weeks when I start my mac and type my account password I can see an user account called "other" (andere in German/using OS X in German) I never created such an user account but it's there. When I try to op

  • How do I turn "ringer off" back on

    I cannot hear my phone ring - I see "ringer off" on the screen when I have a call coming in but cannot find how to turn it back on. Very frustrating missing most of my calls. Can anyone help. Thankx in advance.

  • Regards SD in BI --- 0SD_C01/2LIS_01_S001

    I need some details about following cube. Cube: 0SD_C01 Data source: 2LIS_01_S001 0INVCD_CST-----> Data-source Field -UMWAVWR Underlying field for object 0INVCD_CST in datasource is UMWAVWR. I know that, but what I want to know is how the value for t

  • Exporting and compressing iMovie to QT Movie

    I just downloaded Quick Time Pro and have tried to export a short video (4 minutes) I created in iMovie into different formats. I exported it to MPEG-4, and it worked just fine. I tried to export it as a QT Movie with H.264 compression and it took ho