Imported RFC with problem in converting to XML

Hello,
another nice issue:
I have an aRFC with this import parameter from ABAP:
data: p_data type tab512 occurs 0.
Call function.......
Tables
DATA = p_data
This is the XML source from the mapping test in Int.Rep.
<?xml version="1.0" encoding="UTF-8"?>
<ns:Z_BI_SEND_DATA_512 xmlns:ns="urn:sap-com:document:sap:rfc:functions">
  <SYSID_HOME>AAA</SYSID_HOME>
  <TARGETSYS>BBB</TARGETSYS>
  <DATA>
    <item>test1</item>
    <item>test2</item>
    <item>test3</item>
  </DATA>
</ns:Z_BI_SEND_DATA_512>
This is the payload from SXMB_MONI:
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_BI_SEND_DATA_512 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
  <SYSID_HOME>AAA</SYSID_HOME>
  <TARGETSYS>BBB</TARGETSYS>
- <DATA>
- <item>
  <WA>test1</WA>
  </item>
- <item>
  <WA>test2</WA>
  </item>
- <item>
  <WA>test3</WA>
  </item>
  </DATA>
  </rfc:Z_BI_SEND_DATA_512>
Looks like there is a difference (imported RFC in mapping does not show the work area WA)(so: mapping requires
<DATA>
    <item>test1</item>
but RFC generates
- <DATA>
- <item>
  <WA>test1</WA>
which hinders the mapping from moving the item lines into the destination file because in mapping the WA area cannot be linked as it is not recognized in mapping.
Any ideas are welcome!
Regards
Dirk

Hi everyone
My problem is related to Dirk's one in that I am using an RFC to send XML data from CRM to XI.
I am trying to send the following string:
<TEST>GREG</TEST>
However on XI the payload looks like this:
<xml version="1.0" encoding="UTF-8"?>
<rfc:_-MARS_-CPE_IMPORT_CRM_CATALOG xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<IV_CATALOG>&#60;TEST&#62;GREG&#60;/TEST&#62;</IV_CATALOG></rfc:_-MARS_-CPE_IMPORT_CRM_CATALOG>
As you can see < is converted into &#60;
Where and how do I specify that the content of the parameter must not be interpreted?
Thanks
Greg

Similar Messages

  • Help with Sample on Converting an XML string to a byte stream

    Hello All,<br /><br />I am sure this is something simple, but I am just not figuring it out right now.<br /><br />I am following the sample - "Converting an XML string to a byte stream" from the developer guide since I want to prepopulate just 1 field in my PDF form.<br /><br />How do I reference my form field within my servlet code properly??<br /><br />I have tried a few things now, my field is within a subform, so I thought it would be <root><subformName><fieldname>My data</fieldname></subformName></root>  I have also tried adding <page1> in there too.<br /><br />I am following everything else exactly as given in the sample code.<br /><br />I do have an embedded schema within the form and the field is bound.<br /><br />Thanks,<br />Jennifer

    Well, if you have a schema defined in the form, then the hierarchy of your data must match what is described in the schema. So, can't really tell you what it would look like, but just follow your schema.
    Chris
    Adobe Enterprise Developer Support

  • Strange problem in converting between XML to string and vice versa

    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "&lt;" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

    How do you get the XML document? Do you use XSU? You can use:
    String str = qry.getXMLString();
    to get the result XML document in String.
    XSU will escape all of the < and >. Or the the XML document in
    one of the column will make the result XML doc not well-formed.
    Not quite understand your problem. You can send me your test
    case.
    i have an application that needs to send an XML document
    over the wire. For this reason, I need to convert the
    doc into a String at the sending side and back to Doc
    at the receiving side. This document is stored in a "CLOB"
    column in a table in the database. I use XDK to retrieve
    this entire row (including the CLOB - hence this is an XML
    document which has a column that itself is an xml document in
    string format - this is just the clob read in by XDK).
    Thus the row looks like
    <ROWSET>
    <ROW>
    <col1> A <col1>
    <CLOB_COL> ..clob value of an xml doc..</CLOB_COL>
    </ROW>
    </ROWSET>
    When I convert this document into String and back, one of the "<"
    tags in the clob column document gets changed to "<" and hence
    the parsing fails! I have used the latest label of the XDK build
    to get the latest parser jar but still i have the same problem.
    I am using the following routines for the conversion.
    /* for converting document to string */
    public static String convertToString(XMLDocument xml) throws
    IOException
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    xml.print(pw);
    String result = sw.toString();
    return result;
    /* for converting string to document */
    public static XMLDocument convertToXml(String xmlStr)
    throws
    IOException,SAXException
    ByteArrayInputStream inStream = new
    ByteArrayInputStream(xmlStr.getBytes());
    DOMParser parser = new DOMParser();
    parser.setPreserveWhitespace(false);
    parser.parse(inStream);
    return parser.getDocument();

  • Imported songs with problems.

    My imported songs from my CDs (they are original CDs) aren't 100% ok. They get some sound problems from times to times, as if the CD is scratched.
    But I've tested many CDs so far and this is a general problem. What to do?

    Nevermind, I think I found the problem.
    I was playing the imported songs while I was importing other songs.
    It was too much for my PC
    Only 1 at a time now

  • Import RFC with import table

    Hi,
    We are working on a web dynpro that calls a RFC that has a table as input parameter.
    The possible entries for this table are derived from another RFC.
    In our interface, a user can check these possible entries (CheckBox) thus creating multiple select functionality.
    We manage to create the user interface, but we do not know how to 'connect' of 'bind' the user selected entries to the table (=input parameter).
    Does anyone have suggestions, examples, articles?
    The 'Dynamic UI Generation' tutorial does not answer all our questions.
    Thanks in advance,
    Roelof

    Hi Knibbe,
    It is possible to get the rows/values selected by the user and bind it to the model node. I'm just giving you a pointer/example for doing that.
    <b>/*** Instantiate the RFC which you want **/</b>
    Zb_Pl_Delete_Testproperty_Input delete = new Zb_Pl_Delete_Testproperty_Input();
        wdContext.nodeZb_Pl_Delete_Testproperty_Input().bind(delete);
    <b>/*** iterate through the table in which the user has made multiple entries***/</b>
    for(int i = 0; i < wdContext.nodeCopyOfRequestList().size(); i++ )
    IPrivateProjectPropertiesView.ICopyOfRequestListElement requestElem;
             requestElem = wdContext.nodeCopyOfRequestList().getCopyOfRequestListElementAt(i);
    /*** Check if the row has been seslected (i.e if the check box has been checked)***/
             if(requestElem.getRequestSelected())
                    <b>/*** create a new structure for each of the rows that you want to add to the RFC****/ </b>
                  Zst_Pl_Request request = new Zst_Pl_Request();
    <b>/*** Get the values from the selected row and set to the Structure***/</b>
                  request.setRequest_Num(requestElem.getRequest_Num());
                  request.setStatus(requestElem.getActionForTab1());
                  request.setAppr_By(requestElem.getAppr_By       );
                  request.setSyeng_Id(requestElem.getDelegateTo());
                  request.setCrtd_For(requestElem.getCrtd_For());
    <b>/*** add each structure to the RFC ***/</b>
                  delete.addRequest(request);
    <b>/*** execute the RFC***/</b>
    try
              wdContext.currentZb_Pl_Delete_Testproperty_InputElement().modelObject().execute();
              wdContext.nodeOutput_Delete_Property().invalidate();
         catch (WDDynamicRFCExecuteException e)
              wdComponentAPI.getMessageManager().raiseException(e.getMessage(),false);
    Bala
    Kindly consider rewarding appropriate points to answers on SDN.

  • Converting Oracle XML Query Result in Java String by using XSU

    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

    Hmmm.. Pretty basic just look at the example:
    OracleXMLQuery qry = new OracleXMLQuery(conn,"Select max(ps.datum) from preise ps where match='"+args[0]+"'");
    String xmlString = qry.getXMLString();
    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

  • Problem in mapping xml data with imported RFC parameters

    I am currently working on a senario in which a flat file is generated by an RFID server and placed in FTP server.
    The flat file is picked up from the FTP server using XI and the contents are mapped to the corresponding imported RFC parameters.
    The content of the file which is in text format is successfully converted in XML at the XI side.
    File contains records of 2 fields Functional location and RFID equipment number . In the R/3 side these fields
    are used as Functional location and equipment number of PM module .
    The structure of the FTP message is as follows
    <ns:RFID_MSG_TYPE xmlns:ns="urn://sisl:rfiddemo">
    <RecordSet>
      <Row>
       <FL1>"f1</FL1>
       <FL2>01</FL2>
       <FL3>01</FL3>
       <RFID_NUM>I001"</RFID_NUM>
      </Row>
    </RecordSet>
    </ns:RFID_MSG_TYPE>
    After the mapping program which maps the above structure to the imported RFC is executed the following payload document is generated
    <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    <RECORDS>
      <item>
       <FLOC>f1-01-01</FLOC>
       <RFID_NO>I001</RFID_NO>
      </item>
    </RECORDS>
    </ns:ZRFID_EQUIP>
    The size of FLOC is 30 of type string and RFID_NO is also a string with size 18.
    When the data is brought in R/3 both the fields FLOC and RFID_NO gets mapped in FLOC which is of type char30.

    Hi Naveen,
    In sxmb_moni the content transmitted to the adapter(RFC)is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    - <RECORDS>
    - <item>
      <FLOC>f1-01-01</FLOC>
      <RFID_NO>I006</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-02</FLOC>
      <RFID_NO>I002</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-03</FLOC>
      <RFID_NO>I003</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-04</FLOC>
      <RFID_NO>I004</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-05</FLOC>
      <RFID_NO>I005</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-06</FLOC>
      <RFID_NO>I001</RFID_NO>
      </item>
      </RECORDS>
      </ns:ZRFID_EQUIP>
    At r/3 side the field floc and rfid_no gets mapped to floc which is of char30
    eg floc=f1-01-01I006
       rfid_no=

  • Problem in Importing RFC from ECQ to XIQ

    Hi.....
    I have a problem in importing the RFC from ECC Quality Server to PI Quality Server.......
    When I fill the fields like
    Application Server......
    System Number.....
    UserName
    Password.....
    I am getting a screen Problem.....in which error information is given....
    One of the error is UserName(XXXX) cannot have access to aii.sap......
    Please help me.....
    Thanks,
    Sudheer

    Hi Sudheer,
    Kindly check the user having all authorizations which you are try to importing the RFC's from ECQ to XIQ, check with your basis team and try to provide the required authorizations for that particular user.
    Then you can able to import RFC's and do the design by activating the objects.
    Regards
    Venkat Rao .G

  • Can't import content with '&' in XML element

    I encountered the following error msg when importing the sample XML with '&' in content of an element(for example, a URL with '&' for parameters):
    <?xml version = '1.0'?>
    <ROW_List>
    <ROW>
    ...... <D3_STRU_URL>http://www.ncbi.nlm.nih.gov/mmdbsrv.cgi?form=6&db=t&Dopt=s&uid=14422
    </D3_STRU_URL>
    Error msg said:
    <Line 19, Column 78>: XML-0100: (Fatal Error) Expected ';'.
    <Line 19, Column 78>: XML-0250: (Fatal Error) Missing entity 'db'.
    <Line 19, Column 85>: XML-0100: (Fatal Error) Expected ';'.
    <Line 19, Column 85>: XML-0250: (Fatal Error) Missing entity 'Dopt'.
    <Line 19, Column 91>: XML-0100: (Fatal Error) Expected ';'.
    <Line 19, Column 91>: XML-0250: (Fatal Error) Missing entity 'uid'.
    It seems that '&' is used by XDK for a kind of special purpose.
    Does anybody know how to handle the problem if I really want to import content with '&'?
    Thanks a lot for your help.
    Yihua

    The "&" character is part of the reserved word content.
    Just like: <, &, >, ", ' to use these in an XML file you should
    use:
    <     <
         >&#8220;     &quot;
    &#8216;     &apos;
    like: This is worth < $250K
    will become: This is worth < $250K
    Willem

  • Problem while importing RFC function module in XI. Please Help!

    Hi Experts,
               When I try to import RFC function module in XI I get the following error:
                 **Ready for import**
    Import started...
    YCOP_VALIDATE_GR:
      + com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: connection closed without message (CM_NO_DATA_RECEIVED)
    Import failed with 1 error
    Any idea why is this error? How to resolve this?
    Thanks
    Gopal

    Hi
       The problem still persists.
       This is what I have done:
        1. My FM is RFC enabled. In the "Attribute" tab of the FM I have selected "Remote-enabled module" and "Start immed".
    2.Activated and tested the FM.
    3.Released the FM. In se37, Function Module -> Release ->Release. 
    4.Tried to import this FM in XI under "RFC". Get the same error.
    I have some questions:
    1. After releasing the FM do I have to activate it?
    2. In release there is "Internal Release" Do I have to use that?
    3.Do I have to do "Internal Release" first then "Release"?
    4.The FM i am trying to import makes a call to another FM. Both the FMs are in the same system. Both are remote enabled. The second FM updates data in custom table. the first FM which I am importing validates the data and then calls the second FM for update. Do I have to import both FMs?
    Please help me!
    Thanks
    Gopal

  • HT3345 Importing from xls problems with the date format (mixed european format)

    Hi.
    I made some spreadsheets with Neo Office and saved them in xls format. So I can import them in numbers, doing so in OpenOffice, LibreOffice or even the worst in Mircosoft Office on a PC works just fine. But importing them with Numbers 2.0.4 it just don't work.
    I have Mac OSX 10.5.8 and a PowerPC G4 1,67 GHz.
    The date format in all other programs is " 21.05.2011" and numbers creates "21/05/2011" out of it. Although my international setting is set to 23.05.2012. It defines the cells as my own format and takes than the totally wrong format.
    Does anyone know how to solve this problem, or how to change all the weird own formats in my international setting, which would be correct.
    Best regards.

    Hi Franklin,
    I used to have similar problem with date too. To make my forms and reports work for all date, I used to send the parameter from forms to the report in text format. In the report, I grab that parameter as "Text Format" (I mean the parameter created in Oracle Reports was really as Character in datatype property) then I manipulate them in my SQL to convert that "date" into real date using TO_DATE function. Usually I use DD-MM-YYYY as my date format.
    Hope this help.
    Regards,
    Franko Lioe
    Hello friends at www.oracle.com,
    when I sent some informations to Reports, one of these informations was a date field. Here, the format mask may vary from one computer to another - some computers here are using american date format; however, my computer was using brazilian date format.
    The fact is that I was sending date information to Reports using the mask dd/mm/yyyy, and Reports (in the computer that uses american date format) couldn't recognize it, stating that I was sending an invalid month. So I had to change my date information to dd-mon-yyyy and Reports could run in the other computer, but doesn't run here anymore - fact that obligated me to change my date format to american format.
    Is there any way for me to use a date format mask that's valid to all computers here? If other computers - with other format masks - meet the same problem, the use of this program may become something very complicated.
    Thanks for all answers,
    Franklin Gongalves Jr.
    [email protected]

  • Steps in converting a xml file with an rtf template to a pdf

    Hey all,
    What are the steps in converting a xml file with an rtf template to a pdf using XML Publisher from command line.
    Thanks
    Ravi

    I don't have any code to do exactly what you wish, but it shouldn't be too difficult and http://www.dadhi.com/2007/06/generate-and-store-pdf-file-in-same.html is a good starting point.
    Paul

  • Problems importing AVI with DV codec to Premiere Pro

    Problems importing AVI with DV codec to Premiere Pro  (720x564 px, 32 kHz stereo, 24.4 bitrate)
    I can't import that video. What can I do?

    Svanur,
    I agree with Harm. The specs. do not match up correctly. Where did those AVI files come from?
    I assume that you are working in PAL-land (and not NTSC-land). Is that correct?
    What platform are you working on, Mac, or PC?
    When you attempt to Import those AVI files, what is the exact error message that you are getting?
    Good luck,
    Hunt

  • Importing RFC from 4.5B problem

    Every one,
    I am trying import RFC from 4.5B, I have given all the correct details.
    It is giving an error "Problems to reach R/3 System" and connection to XI server is lost and I have to log-in again.
    Reg,
    -Naveen.
    Message was edited by: naveen chitluri
    Message was edited by: naveen chitluri

    Hello,
    Can any one please help me on this?
    -Naveen.

  • Problems with error-page in web.xml and page caching

    Having a few problems with error pages and web.xml with browsers caching the error pages and strange errors coming out of weblogic.servlet.intenal.WebAppServletContext
    I'm trying to set a web app up so that all http errors and all exceptions are routed thruogh predefined resources. For now, I'm simply send 400 errors to 400.html and the ServletException, IOException and RuntimeException to respective html pages.
    What I'm finding is that the error codes work fine but the exceptions are only be routed to the correct error page for the first call to the servlet after server restart.
    So for example, I have my servlet throwing a ServletException as a test case. The weblogic server log shows that ServletException is thrown, and the correct error page for ServletExceptions is shown.
    If I change the Servlet code to throw IOException in place of SevletException, the weblogic.log shows that IOExceptyion is being thrown (so the servlet has deployed successfully), however the Servletxception error page is shown on the browser.
    I'm using IE6 and I've changed the setting such that a new page is requested every time using the tools-internet options-temp internet files-settings option to "check for new versions of stored pages: Every visit to the page".
    Despite this, the servlet exception error page still appears.
    If you clear the cache from the temp intenet files->delete files IE option, the correct errror page will be shown so it appears that the browser cache is being used after all.
    everytime I delete the temp intenet files I get the correct error page on the first request after but then not after that.
    I have implemented the service method for this test to throw the exceptions - does this make a differecne?
    As a test, I have moved the imlpementation to the doGet method instead bu I now get a strange eror from weblogic comlpaining about an arrayOutOfBoundsException because eror codes in the web.xml are not supported! - see error above.
    Any help is appreciated

    After further investigation: -
    There are no problems with error pages based on error codes, only error exceptions.
    As a test case, I have a service method in a servlet throwing either one of the three exception types that servlets can throw (Runtime, Servlet & IO) the following rules apply. The exception to be thrown is hardcoded and is changed and the web app rebuilt each time. The correct web.xml has been deployed to the app server (checked through console). the webapp is being redeployed correctly - this can be seen in the weblogic log, where the correct exception is reported.
    I am using WLS 8.1, Servlet 2.3, JDK 1.4.1_02
    In all cases, the weblogic log reports that the servlet is throwing the exception as expected.
    Despite having set error-page for exception javax.servlet.ServletException, the exceptions are diverted to the error page that has been set up for http error code 500
    The error page for ServletException is therefore never reached.
    I have the browser set to request pages every time it is asked.
    Once the servlet has thrown an IOException, the only way to get the browser to report an IO or Runtime exception error-page is to clear the browser cache. Restarting the server has no effect.
    Once the servlet has responded with ANY exception, it is not possible to get it to report a ServletException (which is incorrectly reported as a 500 anyway) unless the cache is cleared. Restarting the server has no effect.
    In the case where the servlet throws ServletException, it has no root exception. The servlet 2.3 spec states that if ServletException is thrown but cannot be found in the error pages, the root excpetion will be extracted and the error page list traversed again. Knowing that the RuntimeException error page is correct shown when RuntimeException is throwm, I have nested this inside the ServletException, however error page for http error 500 is still shown.
    I don't believe this is a WLS 8.1 problem, as the console shows that the correct exception is thrown each time. this is backed up by the fact that the correct exception page is thrown when the cache is cleared regardless of what exception was previousdly thrown by the servlet. This excludes ServletException which is always incorrectly thrown as a 500.

Maybe you are looking for

  • Trouble installing Windows 8.1 with Boot Camp

    I'm having an issue installing Windows 8.1 under Boot Camp on one of the new MacBook Pros (late 2013).  After sever troubles (and not a few tribulations) fighting with the stupid Windows installer program (couldn't Microsoft just let me download a fr

  • Can't download file from Steve Muench not yet documented examples

    I'm trying to download example 64 - Recalc Sum of Salary at the view object level but the link is broken? Can someone provide me the file? Thanks.

  • How to get a thread dump from Weblogic 9.1

    Hi All, Can someone please walk me through how to configure a WLS9.1 server to generate thread dumps. Ideally I'd like to do this via the admin console. I read about the MagicThreadDumpFile property, but can't see where/how to set it. Many Thanks Stu

  • Wrong email setting

    I inadvertently entered my email incorrectly when setting up my new iPhone.  Now I don't know how to change it, can't get any upgrades, because my "account" isn't recognized.  Can't get any apps because I can't get into my iCloud account.  I saw this

  • How to authorize report developer to access role(Save reports in role)

    Dears,   I created a role and assigned it to a report developer. This role is restricting the reeport developer the Display Data of InfoCubes and ODSes, and the full authorization for report development. However, when saving the new report, the role