Coding of Server proxy

Hi all,
where Can I see the Server Proxy code in XI if already implemented or not.  Where we can develop the server proxies and client proxies in XI. Please give the good suggisions.
thanks in advance.
Regards,
Anjaneya

<i>where Can I see the Server Proxy code in XI if already implemented or not</i>
U can see it only in receiver R3 system
<i>Where we can develop the server proxies and client proxies in XI. Please give the good suggisions.</i>
Client proxy created at sender R/3. Seerver proxy at receiver R/3 .
These are not developed on XI
/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
/people/siva.maranani/blog/2005/04/03/abap-server-proxies
Regards,
Prateek

Similar Messages

  • Sync ABAP Server Proxy - Attachment in Response possible ?

    Hi I need to send an attachment in a synchronous ABAP Server Proxy.
    I proceeded as follows:
    1. design sync inbound interface in PI
    2. generate abap server proxy
    3. implement this abap proxy
    4. tried to attach file to response like this:
        data server_context type ref to if_ws_server_context.
        data attachment_prot type ref to if_wsprotocol_attachments.
        data attachment          type ref to if_ai_attachment.
        data attachments         type prx_attach.
        data lo_protocol         type ref to if_wsprotocol.
        data lo_payload_protocol type ref to if_wsprotocol_payload.
        try.
            server_context = cl_proxy_access=>get_server_context(
            attachment_prot ?= server_context->get_protocol( if_wsprotocol=>attachments ).
            attachment = attachment_prot->get_attachment_from_binary(
                data       = lv_xdata
                type       = if_ai_attachment=>c_mimetype_pdf
                name       = 'my attachment'
            append attachment to attachments.
            attachment_prot->set_attachments( attachments ).
          catch cx_ai_system_fault .
            output-mt_get_documents_resp-fault-fault_text = 'cx_ai_system_fault'.
            output-mt_get_documents_resp-fault-fault_url = 'ERR001'.
        endtry.
    However I cannot see any attachment in the response.
    Q1: is it possible at all to create attachments in sync server abap proxy?
    Q2: if it is, what is wrong with my coding?
    cheers
    simon:)

    Veronica,
        Unfortunately, this was not possible, due to the system EHP state.
    First after upgrade this functionality will be possible ( ECC 6.0 EHP5 - corresponding to NW AS EHP2 )
    For an example, as Stefan pointed out, you might want to open OSS if your system is up-to-date and you need one.
    best regards
    Simon:)

  • Extended xml handling in asynchronous inbound (server) proxy

    Hello,
    I want to activate extended xml handling on an asynchronous inbound server proxy.
    looking at online help:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/73/3f5c3c3906b006e10000000a11402f/frameset.htm
    this should be the code:
      lo_server_context   = cl_proxy_access=>get_server_context( ).
      lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
      CALL METHOD lo_payload_protocol->set_extended_xml_handling( abap_true ).
    However the controller tables remain empty when executing a scenario to the application system.
    Also adding a static attribute extended_xml_handling does not have the correct result.
    any suggestions???
    Regards,
    Emile

    Hello Emile,
    do you have a solution regarding your problem? If not, here is a good one.
    I think you have inserted the code inside the generated proxy method. Within this method it is a little bit tricky to get the controller structures filled. This could be done by parsing the input data once more... Here is an code example for this:
    ls_input_data-name = 'INPUT'.
    GET REFERENCE OF input INTO ls_input_data-value.
    APPEND ls_input_data TO lt_input_data.
    lo_server_context = cl_proxy_access=>get_server_context( ).
    lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
    lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
    lo_payload_handler = lo_payload_protocol->get_payload_handler( '<Name of structure data element>' ).
    lo_payload_input = lo_payload_protocol->get_sent_request_payload( ).
    lo_payload_handler->get_request_data_from_payload(
      EXPORTING
        payload = lo_payload_input
      CHANGING
        request_data = ls_input_data ).
    But a much easier and better way is to insert the following coding within a constructor of the generated Proxy class.
    lo_server_context = cl_proxy_access=>get_server_context( ).
    lo_payload_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>payload ).
    lo_payload_protocol->set_extended_xml_handling( extended_xml_handling = 'X' ).
    As in each standard ABAP class, you can insert your own constructor within proxy classes. If you do so and insert the code in it the controller table will be filled with the needed information.
    Best Regards,
    Lars

  • Synchronous server proxy trigger

    Hi All,
    i have a interface  like webservice <--> SAP XI <--
    > SAP (Synchronous).
    we decided to go SOAP ---Proxy interface is it correct way?
    if it is correct then how we trigger the SAP report when we got the input from the webservice it should online.
    when ever user enter the input it should come to SAP and based on that input SAP will provides the inforamation related to that input.
    please let me know about do we need to do any ABAP coding for trigger?
    thanks In advance

    >> i have a interface like webservice <--> SAP XI <--
    > SAP (Synchronous).
    >> we decided to go SOAP ---Proxy interface is it correct way?
    Yes
    >> if it is correct then how we trigger the SAP report when we got the input from the webservice it should online.
    You don't need to trigger anything( XI will take care of it at runtime )
    >> when ever user enter the input it should come to SAP and based on that input SAP will provides the inforamation related to that input.
    User will provide input which will be pushed to XI via SOAP adapter. XI will push the input to SAP via proxy
    >> please let me know about do we need to do any ABAP coding for trigger?
    You need to do ABAP coding for the server proxy i.e you need to do coding for the business logic( converting input to output as per requirement); no coding for trigger etc
    You could proceed as follows:
    1. Built two service interfaces in XI - one outbound( for SOAP) and another inbound( for Proxy)
    2. For the inbound interface, generate the proxy in the SAP system
    3. Within this proxy, embed ABAP code for business logic
    4. Do configuration for adapters
    5. Generate the WSDL from outbound interface and provide it to the user
    rgds

  • Debugging a server proxy with attachments

    Hello,
    Although there are other questions posted about debugging server proxies, I can't figure out how I can debug my server proxy that receives attachments. If I debug the program, because there's no attachment at that point, I get other errors.
    There's an unhandled exception in the coding. When receiver SAP system receives the message, the queue is stopped. Can I somehow restart and debug afterwards this erronous message that does carry the attachment?
    Thanks,
    Gökhan

    Hello Gökhan,
    did you try inserting an endless loop in the server proxy and start debugging the program from the SM50? This is the way I usually catch processes crossing system borders.
    Regards,
    Jörg

  • 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

  • In a server proxy how can I use a INCLUDE STRUCTURE?

    Hi people!!, how can I put an internal table with an INCLUDE statement in a server proxy in abap. If I put the next code the system present me this error: Within classes and interfaces, you can only use "TYPE" to refer to ABAP     , Dictionary types, not "LIKE" or "STRUCTURE".
    The problem is that I need the STRUCTURE to make a APPEND.
    Thanks for the help.
    DATA: BEGIN OF bdc_tab .
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.

    Hi Carlos,
    Yes. It mainly accepts TYPE statements.
    You can use this as:
    DATA: BDC_LINE type bdcdata.
    DATA: BDC_TAB type table of bdcdata.
    When you want to use,
    Fill the BDC_LINE.
    Then:
    Append BDC_LINE to BDC_TAB.
    Or:
    Loop at BDC_TAB into BDC_LINE.
    Cheers,
    Bhanu

  • My iPhone gets a "web server proxy error" connecting to wifi @ home

    Ever since installing Comcast Xfinity with Motorola SB6121 and Apple Extreme 5th generation, my iPhone 4 gets a web server proxy error or similar message for any apps seeking to go online.  My iPod Touch 3rd generation works as does my MacBook Pro.
    I've reset the router, harangued Comcast (no help - it's your phone, sir), rebooted the iPhone, checked all my settings (VPN - what's that? it's not connected), Proxy in the VPN settings is set to off. The phone will show the signal and it will check Apple Mail but Safari, Google APP anything needing web access will either hang or give the proxy error message.  Apple Customer Care said call Comcast, Comcast said call Apple & I'm surprised to find little help on the web.
    Here's what I found to work on a MacForum sight from 2 years ago.
    1.
    Settings->WiFi->under choose a network, click the blue arrow (on the right of the network nameyou use)->DHCP
         *now check the IP address with the one on your iPod Touch or computer to see if they are in sequence
         *scroll down to HTTP Proxy & make sure it is off
         -> renew lease may work
    It was the making sure the IP address was correct/in sequence which I moved to the STATIC tab and input all the same information (use a screen shot to remember it - home button and on/off button at the same time, it will store in your pictures folder) and give that a shot.
    The problem appears to be where multiple machines or devices are using the same router. The iPhone 3GS assigned an IP Address in order of preference, therefore 192.175.1.1 and then 192.175.1.2 etc. The iPhone 4 will assign a strange IP address which the router will not accept. You therefore need to look at the other devices linked and see what number is next in the sequence. Then go to static on the top tab and type in the IP adress manually followed by the Subnet mask, router and DNS details. Once you have completed the info press the DHCP button and HTTP Proxy as off - this is important.
    2.
    This is how i fixed the wifi problem...(i used my mac)
    So basicly I created a new WiFi hotspot on my iMac, then I connected my iphone to it and it WORKS!
    1. open System Preferences (Apple -> System Preferences) and click Sharing.
    2. select Internet Sharing at the left side.
    3. Then check off AirPort.
    4. Then creat a newtwork name, and password
    5. VOILA! look at the Wifi connections on your iPhone and it should be there!
    (IF YOU HAD ANY PROBLEMS GO TO THIS LINK..
    http://maketecheasier.com/create-wif...s-x/2009/10/20
    THIS SITE SHOWS YOU HOW TO SET IT UP)
    3.
    reset Network
    Same problem, but none of the above worked for me. Finally went to Settings/ General/ Reset/ Reset network settings. Saw this in a different thread.
    Hope these help.
    Cheers,
    cs

    This has solved loads of people who have this issue and have used an alternate DNS setting.  Below are instructions for both iPhone OTA and on you Mac
    If you are getting the error message "Unable to check for update" when you try an OTA (over the air update)
    Change DNS Servers
    Settings -> Wi-Fi
    Click the blue arrow on your connected network
    Delete everything in DNS and replace it with 208.67.222.222, 208.67.220.220
    Try again
    If this works, you will probably want to remove the WiFi network using "Forget This Network" and then reconnect to it to get your original DNS servers back. Alternatively, make a note of the original DNS servers before deleting them and replace it after you are done.
    If you are getting the error message "Unable to check for update" when you try through iTunes
    On your Mac
    Choose Apple menu > System Preferences, and then click Network.
    Select the network connection service you want to use (such as Wi-Fi or Ethernet, unless you named it something else) from the list, and then click Advanced.
    Click DNS, and then click Add at the bottom of the DNS Servers list. Enter the IPv4 address for the DNS server.
    You can use OpenDNS
    208.67.222.222
    208.67.220.220
    or
    You can Google Public DNS if you want
    8.8.8.8
    8.8.4.4
    I have actually repointed my routers DNS so all my devices now point to OpenDNS servers

  • 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

  • Creation of Server Proxy for  Message interface with External Defination

    Dear All,
    I am getting a problem while generating a server proxy for the inbound interface . The request message used in the inbound interface is a external definition which is uploaded using a XSD file. The XSD file was supplied by a third party which is having very high complex strucuture and used lot of abstract data types in the design. When i tried to generate the proxy in the R/3 system (Transaction SPROXY) for the inbound interface i am getting following error.
    Interface uses external and internal message definitions
    Message no. SPRX122 *
    Diagnosis
    In a message interface you can use messages from different sources:
    Message types and fault message types edited in the Enterprise Services Repository
    Messages imported into the Enterprise Services Repository (external definitions, RFC, IDoc)
    In the current message interface, message types from different sources have been used. Since messages from these different sources must be handled differently during proxy generation, such a mixture of messages within a message interface is not possible.
    System Response
    The interface cannot be generated.
    Procedure
    Change the interface definition accordingly in the Enterprise Services Repository.
    Please guide me, how to generate the proxy for the interface with external defination message. I could nt geneate manullay, because it is having very high complexity and its a big structure.
    Is there is any way to generate the proxy for interface with external definition
    Regards
    Vijayanand

    Hi,
    i.       Import your message schemas from external definitions, or RFCs or IDocs from SAP systems. These definitions already contain data types.
    ii.       Create a message interface and reference the messages of the external definition, or the RFC or IDoc message.
    Check this, it may help you
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/01623c4f69b712e10000000a114084/content.htm
    REgards
    Seshagiri

  • 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)

  • Pass a value of a file to a variable in a server proxy.

    I need to pass a value of a file to a variable in a server proxy and the system tell me that:
    Field "INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN-VERSION" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.
    Thanks for the help.
    This is my code:
    DATA: bdc_line TYPE bdcdata.
    DATA: bdc_tab  TYPE TABLE OF bdcdata.
    DATA: opt TYPE ctu_params.
    CLEAR bdc_line.
      bdc_line-program = 'SAPLKPP0'.
      bdc_line-dynpro  = '1000'.
      bdc_line-dynbegin = 'X'.
      APPEND bdc_line TO bdc_tab.
      CLEAR bdc_line.
      bdc_line-fnam = 'KPP0B-VALUE(01)'.
      bdc_line-fval = input-entrada-item-zco_budgt_mi_in_zbapi_kp06_en-PER1.
      APPEND  bdc_line TO bdc_tab.
      CLEAR bdc_line.
      bdc_line-fnam = 'KPP0B-VALUE(02)'.
      bdc_line-fval = input-entrada-item- zco_budgt_mi_in_zbapi_kp06_en-PER2.
      APPEND bdc_line TO bdc_tab.
    CALL TRANSACTION 'KP06' USING bdc_tab
                              MODE 'A'
                              UPDATE 'S'.

    Hi,
    The 'input' normally is a field with nested structures.
    That may be the case here.
    You can you the following code instead:
    data: LS_LINE like line of INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN.
    or if you have a different nesting, try:
    data: LS_LINE like table of INPUT-ENTRADA-ITEM,
          LS_ITEM like line of <LS_LINE>.
    or other suitable declaration
    Then, in the code:
    loop at INPUT-ENTRADA-ITEM-ZCO_BUDGT_MI_IN_ZBAPI_KP06_EN into LS_LINE.
    ENDLOOP.
    or,
    loop at INPUT-ENTRADA-ITEM into LS_LINE.
    loop at LS_LINE into LS_ITEM.
    endloop.
    endloop.
    if you still have questions, let me know the structure of the 'input', with the table types involved.
    Cheers,
    Bhanu

  • Doubt on server proxy and file to idoc scenario

    Hi,
         I could able to solve most of my doubts from this forum, many regards to all who assisted me.Here are some simple doubts plz help me in solving them.
              1.In FILE to PROXY scenario is it necessary to create rfc destination on IS and receiver system? becoz in some blogs it is written to create RFC dest only in case of CLIENT PROXY,since we XI adapter to connect receiver syst in case of server proxy?
              2.In FILE to IDOC scen at receiver side is it necessary to formalities in SM59,WE21,WE20 or just configure in WE20 to maintain partner profile?
              3. In case of single SLD for DEV,CON,PROD while transferring from DEV TO CON using file system how do we move file in EXPORT DIRECTORY TO IMPORT DIRECTORY of cons system?
              4.for transporting IR objects we can use TRANSPORT LIST or CHANGE LIST which will be more preferable?
              Plz kindly answer to any of questions u know ?
              Points will be rewarded for valuable answers.
                                                                                    Regards,
                                                                                    Smitha.

    > 1.In FILE to PROXY scenario is it necessary
    > to create rfc destination on IS and receiver system?
    > becoz in some blogs it is written to create RFC dest
    > only in case of CLIENT PROXY,since we XI adapter to
    > connect receiver syst in case of server proxy?
    You need to maintain the setting on your R3 system to connect to XI for the Transaction SPROXY as shown in the blog "How to Activate ABAP Proxies".
    Apart from that as you are doing a file to proxy via XI, XI would need to send data to the R3 system . For this, you can either key in the Details of the R3 system in the XI adapter directly or you can maintain a HTTP destination on your XI in SM59 and use this in the XI adaper.
    > 2.In FILE to IDOC scen at receiver side is
    > it necessary to formalities in SM59,WE21,WE20 or
    >  just configure in WE20 to maintain partner profile?
    Just the partner porfile. SM 59 and We 21 are used for port and RFC destination and as it is XI that is posting the Idoc these steps are not needed on R3
    > 3. In case of single SLD for DEV,CON,PROD
    > while transferring from DEV TO CON using file system
    > how do we move file in EXPORT DIRECTORY TO IMPORT
    >  DIRECTORY of cons system?
    You have to go to the Folder Level / OS level of your XI server, copy the files from the Export DIrectory and move these manually to the import folder of the CONS server. This is for both IR and ID objects.
    > 4.for transporting IR objects we can use
    > TRANSPORT LIST or CHANGE LIST which will be more
    >  preferable?
    If you perfrom File Transport, the imported objects will be available under the Import Change List and you need to activate this Import Change List.
    Regards
    Bhavesh

  • 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

  • Error handling in server proxy - triggering email

    Hi,
    i have WS->XI->CRM scenario.
    i am using server proxy at CRM side.
    I want to hadle errors in ABAP server proxy.
    i am using fault message and collecting and raising the error.
    Everything is fine.
    But to know the error i have to come SXMB_MONI of CRM.
    But in real scenario how it works. some one will not come and see every time.
    How to notify ( may be triggering  email ) some one in the organization if some error occurs in SXMB_MONI.
    Is there any automatic method?? if yes, how to do that.
    Thanks in advance...

    Configure alerts
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b
    U may also use CCMS monitoring
    /people/sap.india5/blog/2005/12/06/xi-ccms-alert-monitoring-overview-and-features
    Regards,
    Prateek

Maybe you are looking for

  • New Mac mini won't connect with monitors stating 'unsupported Mode'

    Hi I'm new to Mac and just purchased a Mac Mini. The guy in store gave me an adapter so I can use my current screen. However when I first tried it the screen was very large however I put this down to needing to change the settings on the screen. Alth

  • Changing your iCloud email address

    How do you change your iCloud email address

  • Diffenrence between sh ip bgp & sh ip route

    I am reading up on BGP and a bit confused as to the difference between sh ip bgp & sh ip route...Does BGP maintain its own table? - if it does, how does it correlate with the routing table? Thanks

  • Songs stop half way???

    Ive purchased a couple of albums and have downloaded them all. However, when I play some of them they only play for between 20 to 60 seconds and then skip to the next songs. I have no authorised devices on my apple id so thats no the issue. Please he

  • ALV Drag&Drop - Action before Drop

    Hi experts, short question: I have 2 ALVs with an implemented Drag 'n' Drop behavior. Now I want to check BEFORE i drop the element if this element will fit to the Drop-target. (Example: my element has the length of 10, now I want to check if I have