ABAP Server Proxy: Mapping XSD to ABAP

Dear all,
has anyone faces the follwoing problem?
I make a  conversion of a field (length is 2) during a file content conversion of a sender file adapter. However in most cases the field is filled with only one character and a subsequent blank. The conversion cuts the space, so in my taret XML structure I will have a field of length 1 or 2, right?
When I generate the corresponding inbound proxy (i have file to proxy scenario), the xml field of length 1-2 has to be mapped to a char array in ABAP. How long will this array be? I suppose it will have length 2. But what happens in the case that the subsequent blank has been **** during the conversion? Will the ABAP field be filled up was a blank again? (leading or subsequent?)
Isn't it better in that case not to make any restrictions to the length of the string in the xml structure? In that case, i think in ABAP these field will have to be interpreted as dynamic string, right?
What would you prefer?
Kind regards
Florian

Hi Mahi,
in that case i could also just prevent xi from trimming using that parametter:
NameA.fieldContentFormatting
○       Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
○       Specify nothing to ensure that the value remains unaltered.
However, id like to trimm those blanks, but i want to know how i can send them to the proxy without getting "new blanks"

Similar Messages

  • ABAP server proxy- parser-item missing error

    Dear all,
    I am working on File to proxy scenario (ABAP server proxy).
    When I executing my scenario, I am getting following error at call adapter pipline step .
       < SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
      <SAP:P1>Envelope</SAP:P1>
      <SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
    I checked my message payload after message mapping it containing the perfect SOAP Envelop.
    What may be the reason for the error?
    Regards,
    navneet.

    navneet
    is your path determined ok.
    /sap/xi/engine?type=entry
          for SAP systems based on SAP BASIS 6.40 (XI 3.0 message protocol).
    /sap/xi/engine?type=receiver
          for SAP systems based on SAP BASIS 6.20 (XI 2.0 message protocol).
    http://help.sap.com/saphelp_nw04/helpdata/EN/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Sorry forget my message, this is not applicable for you
    Greets
    Edited by: Patrick Pot on Feb 25, 2009 10:42 AM

  • Server Proxy in back ground mode in ABAP?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • How to pass XML(Binary) to Server Proxy in ABAP report

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Sarvesh,
    The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
    Just in case you have not seen this
    regards
    Vijaya

  • Problem with Consuming ABAP Server Proxy WSDL in InfoPath

    Tried to design a InfoPath (MS Office 2003) form from a WSDL file of a web service generated from an ABAP Server Proxy in a NW2004s SP10 system.  InfoPath rejected this WSDL with error “InfoPath cannot use the selected Web service method for receiving data because the method does not provide valid XML data”.  Tried other WSDL files from other web services from ABAP Proxy with InfoPath, all got rejected.
    Validated the WSDL file with XMLSPY, no error.  Tried to import the WSDL into XI 3.0, no error.  Also tried the WSDL in .NET C#, also worked fine.  It seemed only InfoPath does not like this WSDL from ABAP Proxy. 
    Created a similar web service in XI 3.0 and InfoPath had no problem with its WSDL.  Then I compared the two WSDL files.  There are differences.  After try and error on changing the differences, I have nailed down to the XML tag that caused the problem.  Please see the extracted WSDL line attached at the end.  In the XI 3.0 generated WSDL the wsdl:message and the wsdl:part have the same name.  In the ABAP Proxy generated WSDL the wsdl:part has the name “Parameters” which is different from the wsdl:message.  After I copied the wsdl:message name to the wsdl:part name, InfoPath accepted the WSDL file without any problem.
    I know the fix but I like to find out the root cause.  Is this a known issue?  Did we miss some configuration setting that’s causing this issue?  Any help will be much appreciated.
    WSDL from NW2004s SP10 ABAP Proxy
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="Parameters" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name=" Parameters" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>
    WSDL from XI 3.0 Interface
    <wsdl:message name="RegionR3GetList_Req_MT">
        <wsdl:part name="RegionR3GetList_Req_MT" element="tns:RegionR3GetList_Req_MT"/>
    </wsdl:message>
    <wsdl:message name="RegionR3GetList_Resp_MT">
        <wsdl:part name="RegionR3GetList_Resp_MT" element="tns:RegionR3GetList_Resp_MT"/>
    </wsdl:message>

    Anne Tarnoruder has pointed out to me that her SDN article "Consuming SAP Enterprise Services in a Microsoft Office InfoPath Form" has described the the cause and workaround of this issue on page 9.  I am extracting it below and mark this thread as answered.  Thanks to Anne but not sure how I can award point to her.
    Currently SAP supports only the Document style of WSDL, and not the Microsoft-specific RPC style, which causes a problem when consuming SAP services in the Microsoft environment. In this example, you need to apply a workaround that involves a minor correction of locally-stored WSDL files:
    a. In the Project Explorer toolbar, click the Show all files icon and expand the Web reference folder.
    b. For each Web reference in the project, perform the following steps:
    c. Open the WSDL file, replace all instances of <wsdl:part name="parameters" with <wsdl:part name="parameter" (remove the s in parameters) and save the file.
    d. Right-click the Reference.map file and choose Run Custom Tool to invoke a utility that generates code for XML Web services. This recreates the local proxy.

  • Server proxy in background mode using abap?

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Malik,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    If you think about this, it hasnt sense, a server always need to be alive wainting a communication. If you want to stop the server reception, the middleware system (in this case PI) would need to store the messages for a future server availability, then this would work only with async messages. I dont see right now the utility of this, may be don't overload the ECC system in a work hours, is this the problem?
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Are you talking about to do this conversion in a java mapping inside the PI? aren't you?
    Regards.

  • Internal table in ABAP Server Proxy

    Hi Experts,
        I have developed a JDBC to ABAP Proxy scenario.
    I have a problem. In my ABAP server proxy I have to import the values into an internal table and pass them to a BAPI for GR creation.
    I get an error like. OCCURS 0 is not allowed in OO concept.
    Can anyone give me examples on declaring internal table in an ABAP Proxy(OO Concept).
    Thanks
    AK

    Hi
    Check this out.
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb3660358411d1829f0000e829fbfe/frameset.htm
    Cheers

  • ABAP client-to-server proxy through XI in same system

    Hello,
    I have one XI system (NW70 SPS16) and 2 clients: 400 which is configured as Integration server and 500 which is application system.
    In repository there are 2 messages interfaces, and in SPROXY of clnt 500 two classes are generated.
    Is it possible to call server proxy from client one in XI system through XI Integration Engine? I tried it, but failed on receiver side (server proxy class). Here the message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="OUTBINDING">CO_TXT_CHANNEL_PASSWORD_ERROR</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read user password from communication channel of type Error when accessing the secure store (access ID = DD8C8D14F0C07AF1B67B003048343629) Error while reading from the secure store: ERROR_UNKNOWN: Cannot find entry in secure store (SECSTORE,023)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Any sapnotes which described this error aren't helped, because they are outdated or mismatch my version.
    So is it possible to use abap server proxy on XI side?

    Your scenario is possible. As the error says, check the password on the receiver XI adapter.
    VJ

  • Schedule Abap Server proxy in background job in SAP r/3

    Hi all,
    My scenario is File XI Proxy Interface inbound to SAP...
    My requirement is to schedule the proxy in the background job every night.
    How can I acheive this?
    <removed_by_moderator>
    Read the "Rules of Engagement"
    Thank you,
    Mili.
    Edited by: Juan Reyes on Oct 21, 2008 3:04 PM

    Hi ,
    U don't need to schedule a server proxy ...as the proxy will kick in automatically as soon as the message is processed by file adapter .
    Since yours is File to proxy scenario...
    and you want to execute it overnight ..
    You will have to control when the file is processed by XI file adapter.
    Here what you can do ..
    Let's just say your file gets placed in a Folder 'A' ...and your file communication channel is configured to pick files from folder B.
    Write an abap code on xi box ..(or you can use a V.B. script)
    which will move the file from folder A to Folder B.This code can easily be scheduled..so that it you can get files in folder B from where XI processig will kick in .
    (job scheduling can be done sm36 ..use the wizard)

  • ABAP server proxy as web service provider ??

    Hi friends,
    I am wondering that if is possible to expose an ABAP server proxy as a web service on NetWeaver ABAP. I tried that, but failed to call it.
    I generated a ABAP server proxy by using the PI inbound interface. I can call the ABAP server proxy by PI. From SOAMANAGER of the beckend system, i saw that this just generated ABAP server proxy is a service. Then i curious if this generated ABAP server proxy can be exposed as the web service like other RFC function modules on the same beckend system. So i generated a ABAP client proxy by using the binding WSDL of the ABAP server proxy. But the testing of the generated ABAP client proxy failed.
    So my question is if it is possible  to expose an ABAP server proxy as a web service on NetWeaver ABAP?
    The beckend system is SAP ERP 6.0 EHP4. The PI is 7.11.
    Thanks!

    In other words, is it possible to consume a server proxy by client proxy? If yes, how to consume it?
    Edited by: Chris Xu on Jan 16, 2011 8:59 PM

  • ABAP Server Proxy OR RFC - for attaching a file

    Hello ABAP gurus,
    Just to give a brief background, systems involved are ERP and PI
    Certain Files (3 files to be exact) are generated in the ERP directory/file system
    I need to transfer these files to PI "without" using the readily available FTP/NFS adapters (this is a limitation - no use of direct FTP is allowed)
    Making the directory as a "shared" directory between ERP and PI is also not an option.
    With the scenario above, I though of using an RFC or an ABAP Server Proxy to attach the said files to send them to PI
    Which is the better way to do it?
    I've seen a documentation for the ABAP Server Proxy that makes it possible to attach files to the proxy message, but for RFC I don't know if this is possible?
    Your expert advise is highly appreciated

    hI,
    Use class CL_PROXY_CLIENT in the program and method IF_PROXY_CLIENT~EXECUTE.
    You can refer documentation of this class as well as if you will search on any search portal using name of this class, you will get the briefe idea with the refernce procedure too.
    Unfortunately I am unable to post you few links but try search on it, hopefully you will get it.
    try below link.
    <link to blocked site removed by moderator>
    Edited by: Thomas Zloch on Oct 7, 2011 10:37 AM

  • ABAP Server Proxy development for creation of IDOC

    Hi all,
    I am working on JDBC to ABAP Server Proxy where i need to populate fields and then i need to mapp to the standard IDOC ie, SHIPMENT_CREATEFROMDATA01 which will create shipment idoc this is my requirement.Can anyone provide me the proxy development part  for creation of IDOC.
    Regards,
    Bhoj

    Hi,
    Create server proxy at the receiver end and deploy it using the following links:
    ABAP Server proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Debugging of Inbound ABAP proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    File to R/3 via ABAP Proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    How to push data from BI to XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    How to push data into BW from XI using proxy
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9
    http://help.sap.com/saphelp_nw04s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/11/e2bc3d9ecc6b3be10000000a114084/frameset.htm
    Server proxy part1 and part2:
    /people/sap.user72/blog/2005/12/08/integration-builders-through-proxy-server-part--1
    /people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
    Regards,
    Vinod.

  • ABAP server proxy help required

    Hello,
    I want to make two simple ABAP server proxy scenarios
    1. File to ABAP server proxy (async scenario)
    2. File to ABAP server proxy (sync scenario)
    Pls send me the blogs/docs for the above scenarios.
    Regards

    Henry,
    Please go through the below links.
    <b>File to R/3 via ABAP Proxy with good example</b>
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    <b>Synchronous Proxies:</b>
    <b>Outbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    <b>Inbound Synchronous Proxy</b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Also go through this, if you have problems in your proxy connection.
    <b>How to Activate Proxy.</b>
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Regards,
    Sarvesh

  • Abap Server Proxy acknowledgment

    Hi All,
    Typicall scenerio FILE->PI->ERP(abap server proxy).
    is there any possibility(excluding BPM) to request acknowledgment from erp to be sent to pi and fill second column in sxi_monitor. similar situation to aleaud in idoc processing..
    BR
    Maciej

    is possible
    take a loko to this.
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/frameset.htm
    Acknowledgment Types
    SYSTEM_OK
    Positive system acknowledgment.
    The receiver was reached successfully. For server proxies, this means that the implementing class for the server proxy was found and that the method for inbound processing could be called.

  • ABAP Server Proxy Issue

    Guys,
    For a scenario i am using ABAP Server Proxy.
    I have successfully generated the proxy object but when i want to put some logic in server proxy by double clicking on execute_synchronous, i am getting nothing and when i am trying to use the toggle button to bring the proxy in editable mode i am getting the message that " you can't edit proxy objects ".
    What is the solution....
    Regards,

    As sheetal said  "Have you activated the proxy object properly ".
    no i didn't ...
    I went to SE24 and selected the class with my interface and activated it..
    Process should be : Under Proxy Objects choose your interface and test .
    It will show you the class needed to be activated..Finally i activated the class..
    and get the ball rolling..
    Thanx to Sheetal.
    Regards,

Maybe you are looking for

  • Need help in writing a .jsp page

    Hi Guys, I am new to JSP. My requirement is " I have a link on my webpage. When the user clicks that link, a HTML page is displayed which has parameters to be entered (for ex: from_date , to_date). When the user clicks the submit button, a jsp page s

  • SMS taking forever to open and navigate!!!

    My SMS applications takes upwards of 60 seconds to open, switchh between massages and contacts and it's constant. Anyone else experiences these delays? I have read a few forums where people are complaining about 10 or 20 second delays but mine is muc

  • Assets report------urgent

    Hi all Gurus, I am new to Assets. I am trying to run the reports for Assets. 1.Asset balances 2.depreciation 3.asset history I am getting an errror"fiscal year not maintianed for the Company code aaaa" can any one let me know what i should do solve t

  • Upload and read binary files

    I have created ADF form with input file item for initiator human task ( to upload a binary file) In the second form, I want see link of the file uploaded and I want open the file in other window ( to see the content of the binary file) How can I do?

  • resource-env-description can't be set in weblogic.xml

    hi guys , i've been troubled with this configuration problem. i am trying a very simple example to send messages from a servlet to a weblogic queue, but i cant configure the weblogic.xml properly. i've been reading a lot of information but i cant fin