ABAP Proxy caught cx_ai_system_fault but its ErrorText is empty

Hi All,
        I have Proxy->WS Synchronus scenario. I can see both ( Reqest and Response) messages in MONI of both my PI and QA-ECC Server. However my proxy call do no return the result. I debuged my program in QA-ECC system the proxy call code catches exception cx_ai_system_fault. I tried gettext() and get_long_text() methods of class cx_ai_system_fault but they return empty string.
The same proxy are generated on Dev-ECC system and are working fine, but the problem is when i tranport them in QA-ECC they caught exception with empty errorText attribute.
Any help in this regard would be highly appreciated.
Regards,
Kashif

I don't think so but I will check this yet again.
I do think it is something missing for R/3 to get to XI.   When I debug down into this ABAP Trigger
I can see that is stops when attempt to get Business System...this is deep within the PROXY Framework in the method XI_PROXY_ROUTING.
SLD_API_EXCEPTION
  CALL FUNCTION 'LCR_GET_OWN_BUSINESS_SYSTEM'
    IMPORTING
      bs_key_name            = business_system
    EXCEPTIONS
      no_business_system     = 1
      no_rfc_destination     = 2
      no_landscape_directory = 3
      illegal_arguments      = 4
      communication_error    = 5
      ld_error               = 6
      sld_api_exception      = 7
      OTHERS                 = 8.
Then it will  CALL METHOD cl_proxy_runtime_errors=>raise_proxy_exception
It may be that I need to have the R/3 TCP/IP SM59 Destination SAPJ2EE working ?  The connection test on this in SM59 in R/3 does not work.
Could this be why ?
Edited by: Paulie Seikmayt on Oct 20, 2008 9:38 PM

Similar Messages

  • Consuming stateful web service via ABAP proxy

    Hi all,
    I´ve got the following scenario. I´ve a ABAP proxy generated based on a WSDL file. The provider is a WebService provided by a tomcat server. (no PI etc. as middleware). The problem i´ve now is that the webservice is stateful so I need a stateful communication between my ABAP report (client) and the Web Service.
    I´ve already found the possibiliy to switch on the feature "Session-Oriented Communication" on "Preconfiguration Tab" of the ABAP Proxy Screen. But unfortunately it´s not working.
    Anybody knows whether general system settings has to be changed for this. Or anybody has other tips.
    I´m currentliy working on the SAP Discovery System v3 which is a Netweaver 7.0.
    Many thanks in advance for your answers,
    Andy

    Marcelo  Almeida wrote:
    > You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:
    >
    > TRY.
    >
    > CREATE OBJECT my_proxy
    > EXPORTING
    > logical_port_name = 'LP01'.
    > CATCH cx_ai_system_fault.
    > ENDTRY.
    >
    > TRY.
    > input-airline_id = p_carrid.
    > input-connection_id = p_connid.
    > input-flight_date = p_fldate.
    >
    > CALL METHOD my_proxy->flight_get_detail
    > EXPORTING
    > input = input
    > IMPORTING
    > output = output.
    > CATCH cx_ai_system_fault.
    > CATCH cx_ai_application_fault.
    > ENTRY.
    >
    > Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).
    Hi,
    thanks for your answer. It´s working!
    Cheers,
    Andy

  • ABAP Proxy ABAP Mapping

    Hi All,
    The use of ABAP Proxy is nothing but the Adapterless implementation,as per my assumption.But is there any other reason for prefessing ABAP Proxy over the Adapter while the practical implenentation is done?
    Also,for ABAP Mapping ,I have a qustion that when is ABAP Mapping preferred over other Mappings that is Graphical Mapping and Java Mapping while practical implementation?
    Thanks and regards,
    Amol

    Hi Shweta,
        To answer your first question, we prefer ABAP proxies over RFCs due to the reason that the communication happens directly between the Integration Engine of sender sap R/3 system and the IE of the XI system. It elimintes the need for Adapter Engine(On the sender side).
    However, when there are standard IDOCs avaialble, then we use IDOCs instead of proxies due to the various other advantages of IDOCs like monitoring, reprocxesing etc.
    But, in case the sender is not a SAP R/3 system, then obvious we can not use ABAP Proxy.
    Refer this article to choose the best integration option amongst Proxy,RFC,Enterprise Services.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0e7ae66-be6d-2a10-d385-92e6e67dee10
    Regarding your second question,
    ABAP mapping is least preferred due to issues like Performance, Non-Portability (We cannot use the abap mapping in any other Open-source middleware).
    The only time we go for it is if we have people with only ABAP skills..:)
    Regards,
    Ravi Kanth Talagana

  • Issue with FM 'STATUS_CHANGE_EXTERN'  using ABAP Proxy

    Hi Experts,
    I am using the FM 'STATUS_CHANGE_EXTERN'   & 'STATUS_CHANGE_INTERN'  to change the user status & system status using ABAP Proxy.
    But SAP is updating the system status using ABAP Proxy through ''STATUS_CHANGE_INTERN'' but not updating the User stauts 'STATUS_CHANGE_EXTERN' using ABAP Proxy but when run the same in foreground then it's working fine..
    I have already used the External Commit for the same.
    Please help me in this case.
    Thanks in Advance
    Sachin

    After call of CRM_STATUS_CHANGE_EXTERN you need to call BAPI_TRANSACTION_COMMIT.
    call function 'CRM_STATUS_CHANGE_EXTERN'
        exporting
            objnr               = iv_guid
            user_status         = iv_status
        exceptions
            OBJECT_NOT_FOUND    = 1
            STATUS_INCONSISTENT = 2
            STATUS_NOT_ALLOWED  = 3
            OTHERS              = 4
    if ( sy-subrc = 0 ).
        call function 'BAPI_TRANSACTION_COMMIT'
            exporting
                wait  = ABAP_TRUE
    else.
        "!+ Handle error
    endif.
    Best regards,
    Tomas.

  • Exception when calling ABAP Proxy modelled in SAP PI: CL_SOAP_RUNTIME_ROOT

    Hi,
    We have a scenario where we:
    1. Modell an interface in SAP PI
       This interface contains a complex type from a different namespace
    2. Use it to create an ABAP proxy in backend system
    3. Configure it with SOAManager
    4. Call the ABAP proxy ws directly from a third-party system (biztalk)
    We're currently testing calling the ABAP proxy from soapUI, but get a strange exception thrown by the SOAP framework in ABAP backend.
    The test in soapUI is setup by importing the WSDL acquired from SOAMANAGER.
    The error message we in the SOAP response is:
    CX_SY_REF_IS_INITIAL:Exception CX_SOAP_ROOT occurred
    (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally,
    nor declared in a RAISING clause.Dereferencing of the NULL reference
    It is a very low level error from the CL_SOAP_RUNTIME_ROOT program and not a descriptive error message at all.
    We've checked the user and the authorizations it has, we've redone the SOAManager config but the problem persists.
    We find no dumps in the ABAP proxy since the request never reaches it.
    For a limited time I'll make WSDL and SOAP response available
    WSDL (some values anonymized) available at http://dl.dropbox.com/u/4379928/SOAP/project.wsdl
    Complete SOAP response is available at http://dl.dropbox.com/u/4379928/SOAP/soap_data.xml
    Any ideas on where to look?

    Hi,
    We've now managed to implement a workaround.
    The workaround was to create the endpoint in PI as well.
    So that the traffic goes from third-party solution->PI-> WS-enabled ABAP Proxy
    When we did this initially, we got some errors related to the asynch method of this call, but this was resolved by changing the channel from "best effort" to "Guaranteed delivery". 
    Still we don't know what the root cause of the initial problem was, but we assume it is related to the asynch nature of the service (though we have other asynch proxies that work without problems).
    Regards
    Dagfinn

  • ABAP Proxy error during runtime but success for manuall test ?

    Hi,
    I got scenario using inbound ABAP proxy. The problem is when i test the inbound proxy manually, it was sucessfully, but then if i run directly from sender got problem :
    Error during proxy processing An exception with the type CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither handled locally, nor declared in a RAISING clause The function call of ZPSCD_CTRACCOMOBJECT_CREA failed; a field may have been assigned to the parameter ZCOM_COMPDHDR whose type is not compatible with this parameter
    Please help
    Regards

    Fernand,
    As stated in the exception, there is a compatibility issue between source and target fields, but without further details (msg definitions etc), we can't tell you exactly what's wrong ...
    What's the ABAP type of ZCOM_COMPDHDR field in your RFC function module ?
    Rgds
    Chris
    PS : also check the msg content to make sure generated field is compatible with the expected type (manual test was successful because you set it to the suitable value, whereas in "real" situation there is discrepancy)
    Edited by: Christophe PFERTZEL on Apr 28, 2008 1:22 PM

  • Exception handling in outbound ABAP proxy

    Hi All,
    i need to catch exception in outbound abap proxy in two cases:
    1. if RFC dest in R3 which is pinging to XI goes down.
    2. IF xi server is down.
    in both the cases i need to catch the exceptions.
    now i written the code in this way:
    DATA: v_exceptions TYPE REF TO cx_ai_system_fault.
    TRY.
    CALL METHOD zirco_o_msg_if_as_req_details=>execute_asynchronous
    EXPORTING
    output = s_reference.
    COMMIT WORK.
    CATCH cx_ai_system_fault INTO v_exceptions.
    WRITE: 'Exception CX_AI_SYSTEM_FAULT caught'.
    WRITE: / v_exceptions->errortext.
    WRITE: / v_exceptions->code.
    but this code is not working.
    can anybody tell me how can i acheive this?

    Hi All,
    I need to log the error when receiver syatem is down.
    Its like this:
    Outbound proxy >>>XI>>>File adapter..
    Now if xi goes down....means message is succussefully sent from ISD and get stuck in XI then i need to catch this exception in ISD.
    Is it possible?? if yes then how??
    Kunaal

  • ABAP Proxy - No message in PI

    Hi experts,
    We are developing a scenario using ABAP Proxy to send an assynchronous message to PI 7.3.
    The problem is that the message is sent by ABAP code, but is not shown at SXMB_MONI.
    The routing objects were created at Integration Directory, but seems that PI is not processing the message sent by the proxy.
    Any idea about what may be wrong?
    Edited by: David Tiago Conceição on Jan 5, 2012 2:13 PM

    Hi David,
    you should catch exceptions and print them out like:
    data: l_sys_exception type ref to  cx_ai_system_fault,
          l_error_text type string.
    CATCH cx_ai_system_fault INTO l_sys_exception.
            l_error_text  = l_sys_exception->errortext.
            write l_error_text.
    In addtion monitor the ERP / PI queues at SMQ1/SMQ2 - may be will find the message there.
    Depending from the results we go further, may be the destination to PI does not work or proxy configuration is wrong or something else.
    Regards,
    Udo

  • Error Handling for ABAP Proxy sender

    Hello Everyone,
    I am trying out a scenario of SAP R/3 to Oracle database (ABAP Proxy to JDBC).
    I have the following code and it works fine.
    CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    I know that the above Catch block would be used to handle system errors on the sender side.
    Please tell me what kind of errors could these be and what I can do to test these errors. ie. I want to  create error situations explicitely and see how they are handled.
    Thanks and Regards,
    Ashwin

    Thanks guys, this was useful.
    My scenario is for Asynchronous communication.
    I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
    Have i got this right?
    I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
    The following receivers support acknowledgments:
    ABAP and Java proxies (XI 3.0 SP1 for the latter)
    Integration processes
    IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
    Receiver adapters support system acknowledgments but not application acknowledgments
    My Receiver is JDBC. So I guess I cannot use acknowledgements either.
    Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
    I'll tell you abt what happened earlier.
    My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
    I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
    Thanks and Regards,
    Ashwin

  • Problem sending xls file in an attachment via ABAP proxy

    Hello,
    I have in tmp directory a xls file, I tranfer such file to a table, and afterwards I send in an attachment via ABAP proxy, here is the code:
         l_attachment        TYPE REF TO if_ai_attachment,
            lt_attach           TYPE prx_attach,
            l_name              TYPE string,
            lx_string           TYPE xstring,
            l_string            TYPE string,
            l_type              TYPE string,
            des                 TYPE string.
      CLASS cl_ai_factory DEFINITION LOAD.
      DATA:    BEGIN OF itab OCCURS 0,
               raw(255) TYPE x,
             END OF itab.
      DATA: l_controller TYPE REF TO if_ai_posting_controller.
      DATA: it TYPE zhcm_mt_segur_out.
      CREATE OBJECT prxy.
      OPEN DATASET orig FOR INPUT IN binary MODE.
      READ DATASET orig INTO itab-raw.
      WHILE sy-subrc = 0.
        APPEND itab.
        READ DATASET orig INTO itab-raw.
      ENDWHILE.
      CLOSE DATASET orig.
      LOOP AT itab.
        CONCATENATE lx_string itab-raw INTO lx_string in byte mode.
      ENDLOOP.
      L_NAME = 'Segur.xls'.
      L_TYPE = CL_AI_ATTACHMENT=>IF_AI_ATTACHMENT~C_MIMETYPE_EXCEL.
      TRY.
          L_ATTACHMENT =
            CL_AI_FACTORY=>CREATE_ATTACHMENT_FROM_binary(
                      P_DATA = LX_STRING
                      P_TYPE = L_TYPE
                      P_NAME = L_NAME ).
          APPEND L_ATTACHMENT TO LT_ATTACH.
          L_CONTROLLER = CL_AI_FACTORY=>CREATE_CONTROLLER( ).
          L_CONTROLLER->SET_ATTACHMENTS( LT_ATTACH ).
          CALL METHOD PRXY->EXECUTE_ASYNCHRONOUS
            EXPORTING
              CONTROLLER = L_CONTROLLER
              OUTPUT     = IT.
          COMMIT WORK.
        CATCH CX_AI_SYSTEM_FAULT .
          DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .
          CREATE OBJECT FAULT.
          WRITE :/ FAULT->ERRORTEXT.
      ENDTRY.
    I am using a Mail receiver channel, I receive a mail, with to attachments, one .xml and the other one .bin, I save it to my computer and I change the extension to .xls and when I try to open it, the file is not valid and can be opened after being repaired. What Im doing wrong? I would like to receive a valid xls file, what i should change?
    Thanks a lot,
    Luis

    Hi,
    yes I know, I have used the MessageTransformBean module, and the PayloadSwapBean module. But which parameter I should use for leaving only one attachement in the e-mail. I did this configuration:
    1
    localejbs/AF_Modules/MessageTransformBean
    Local Enterprise Bean
    <b>trans</b>
    2
    localejbs/AF_Modules/PayloadSwapBean
    Local Enterprise Bean
    <b>swap</b>
    3
    localejbs/AF_Modules/MessageTransformBean
    Local Enterprise Bean
    <b>trans1</b>
    4
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    Local Enterprise Bean
    mail
    <i><b>Module configuration</b></i>
    trans
    Transform.ContentDisposition
    inline
    swap
    swap.keyName
    payload-name
    swap
    swap.keyValue
    Segur
    trans1
    Transform.ContentDescription
    Segur
    trans1
    Transform.ContentDisposition
    attachment;filename="Segur.xls"
    trans1
    Transform.ContentType
    application/vnd.ms-excel;name="Segur.xls"
    In the e-mail I get one attachement without name .xml and another one Segur.xsl, and I want only one attachment, the last one. What I should change in my configuration??
    Best regards,
    Luis

  • ABAP Proxy outbound not showing in sxmb_moni

    Hi All,
    All my ABAP proxy scenarios are inbound, however I need to do a outbound ABAP Proxy scenario.
    So, I created a Assyn interface in Integration Builder and created a proxy on outbound message interface in SPROXY. (ZCO_ITF_FILE_***).
    R/3 --> SQL server
    In my simple example I created a program in se38 as shown below
    DATA prxy TYPE REF TO ZCO_ITF_FILE_***.
    CREATE OBJECT prxy.
    DATA it TYPE ZMTP_FILE_***.
    TRY.
        it-MTP_FILE_***-id = '12'.
        CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
    commit work.
    CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.
    I want to send just one field called ID.
    The program works fine, the "commit work" is called but It doesn´t reach the XI. It doesn´t appear in SXMB_MONI.
    As I said before I have Inbound Abap Proxies interfaces, so, I got the sxmb_admin configured.
    What am I missing ?
    Thanks
    Diego

    Hi
    Thare are no error in SMQ2. The message shwon is
    Cl     | User      | Func. Module             |  Queue       |  Date          | Time      | Status Text 
    310    ABAP01  SXMS_ASYNC_EXEC   XBTS0005     26.05.2009  11:23:59  Transaction recorded
    When I press F6 the message goes to XI. the message reach the sxmb_moni in XI.
    But in XI I am facing with another error (the receiver could not be determined).
    Thanks
    Diego

  • Send message with abap proxy client

    I'm trying to send message to XI, but no message in sxmb_moni.
    I have created logical port with LPCONFIG.
    ABAP code
    REPORT  Z_HTTP_SEND.
    DATA:
    * Reference variables for proxy and exception class
      lo_clientProxy     TYPE REF TO ZPCO_MI_COMPANY_OB,
      lo_sys_exception   TYPE REF TO cx_ai_system_fault,
    * Structures to set and get message content
       ls_request         TYPE ZPMT_COMPANY_ID,
       ls_response        TYPE ZPMT_COMPANY_DETAILS.
    *Complete the structure ls_request for the request message.
    *DATA: zmt_id type ZPMT_COMPANY_ID,
    *zdt_id type ZPDT_COMPANY_ID,
    *z_id_tab type ZPCOMPANY_ID_TAB,
    *z_id type ZPCOMPANY_ID.
    *z_id-COMPANY_ID = '3000'.
    *append  z_id to z_id_tab.
    *  zdt_id-RECORD = z_id_tab.
    *zmt_id-MT_COMPANY_ID = zdt_id.
    DATA tab TYPE ZPCOMPANY_ID_TAB WITH HEADER LINE.
    tab-COMPANY_ID = '3000'.
    APPEND tab.
    ls_request-MT_COMPANY_ID-RECORD = tab[].
    TRY.
    * create proxy client
    *CREATE OBJECT lo_clientProxy( u2018LOGICAL_PORT_NAMEu2019 ).
        CREATE OBJECT lo_clientProxy.
    * do synchronous client proxy call
        CALL METHOD lo_clientProxy->execute_synchronous
                 EXPORTING output  = ls_request
                 IMPORTING input   = ls_response.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
    *   Error handling
    ENDTRY.
    Any ideas? Thanks very much,

    Hi,
    Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
    ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
    If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
    In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
    CLIENT PROXY:
    A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
    SERVER PROXY:
    You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.
    s refer these doc about ABAP proxy ..
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    ABAP Server Proxies
    How do you activate ABAP Proxies?
    ABAP Proxies in XI(Client Proxy)
    File to R/3 via ABAP Proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
    Smarter Approach for coding ABAP Proxies
    regards,
    Surya

  • Outbound interface using ABAP Proxy

    Hi Guys,
    I am trying to create an interface between a Z table and XI using ABAP Proxy. I suggested file based interface, but client is insisting using ABAP proxy. Z table is in IS-Retail side.
    I will appreciate is somebody can share a program to do this.
    Any advise/guidance is appreciated.
    Thanks,

    Hi There
    From your  subject line i can see that you want to develop an outbound proxy which means you want to send data to XI from your SAP custom table. That means you need to extract all the information from your Z-table and send it to XI via  proxy.
    If my understanding is correct then what you need to do is :
    1.Ask your XI team team to generate a message interface for you of type 'outbound' and include the structure in the way they want you to send data to them. 
    2.Once the message interface is created by them , you can generate the same in transaction SPROXY .  Search for your interface namespace and then right click
    on it and say 'CREATE' . Give the appropriate package and prefix to it.Generate the proxy, save and activate
    3. Now you can create a report and then according to the structure generated by XI , you can popluate your internal table to be passed back.
    4. Call the method of the proxy in your report and send the data to XI.
    I can give you an example of how to do this:
    suppose you have built up an internal table by extracting data from your Z-table .Lets say it is tbl_output.
    In your report you need to trigger the proxy method as follows:
    Note: i am assuming i am triggering an asynchronous proxy method from my report:
    DATA:lo_senddata  TYPE REF TO CL_DATA_OUT,
                      lo_system_fault TYPE REF TO cx_ai_system_fault,
                      lo_root         TYPE REF TO cx_root.
    ls_output-output_file-data[] = tbl_data[].
    CREATE OBJECT lo_senddata
    TRY.
    * call the asynchronous method of the proxy and send the data
              CALL METHOD lo_senddata->execute_asynchronous
                EXPORTING
                  output = ls_output.
    * get the system exceptions and display the error text
            CATCH cx_ai_system_fault INTO lo_system_fault.
              WRITE:/ 'System Error:'(E01),
                      lo_system_fault->errortext.
              RETURN.
    * get the root exception and display the textid value
            CATCH cx_root INTO lo_root.
              WRITE:/ 'System Error:'(E01),
                      lo_root->textid.
              RETURN.
          ENDTRY.
    COMMIT WORK.
    <b>Note:</b> 1. CL_DATA_OUT is the message interface class.
                      2. ls_output is the output structure to be sent back to XI and data 
                         is an internal table with the same structure as tbl_data.
                      3. It is very imp to catch exceptions as i have shown u above.
    Please let me know if you are a little clear or you need some more clarifications on this.
    cheers
    shivika

  • ABAP PROXY CLIENT PROBLEM TO CREATE

    Hi,
    I am trying to create an ABAP PROXY of the type OUTBOUND SYNCH in my R/3. We already made the configuration according to the manual of the page 26. When I select my interface and I click in the button to create proxy, a screen appears for me to choose the package. I select the package $TMP and a screen appears of registering object. 
    I am trying to create an ABAP PROXY for the interface Z_MI_TESTE_XI_ABAP_PROXY_OU but when I will create the proxy for the transaction sproxy the screen it appears of registering the object "CO_Z_MI_TESTE_XI_ABAP_PROXY_OU." I already researched some documents in that the proxy begins with the letter "Z." How do I do for in the generation of my abap proxy the same nominated "ZBLOGCO_Z_MI_TESTE_XI_ABAP_PROXY_OU comes? 
    How do I do to register the object above? 
    Which are the steps to create an abap proxy?

    Hi,
    Thanks for all the response.
    I followed step by step the document http://weblogs.sdn.sap.com/pub/wlg/1387. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] I created the proxy and the program abap. When I execute the same for the transaction SE38, it doesn't appear anything. No message is passed for SAP XI and it doesn't also happen any mistake. Is it necessary more some configuration type? Does creating only the proxy the same take charge of doing the communication with SAP XI? In the moment of the creation of the proxy how do I associate my R/3 to the XI? It follows the code used abap below:
    *& Report  ZCO_TESTE_XI_ABAP_PROXY_OUT
    REPORT  zco_teste_xi_abap_proxy_out.
    DATA prxy TYPE REF TO zco_mi_teste_xi_proxy_out.
    CREATE OBJECT prxy.
    DATA it TYPE  zzmt_teste_xi_proxy.
    TRY.
        it-z_mt_teste_xi_abap_proxy-empname = 'Sravya'.
        it-z_mt_teste_xi_abap_proxy-empno = '80101'.
        it-z_mt_teste_xi_abap_proxy-departmentname = 'NetWeaver'.
        CALL METHOD prxy->execute_synchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.

  • ABAP proxy code

    Hi,
    i need to write a report program to trigger client proxy
    input parameters for the report company code and based on company code FM extract information which is defined in tables option.
    how do i map the proxy table to FM table.
    below mentioed are reference details.
    class: ZSVCO_FILE_BR_OUT_ASYNC
    Message Type: ZSVFILE_BR
    proxy Table: BR_DETAILS
    i am following the blog by ravikumar .
    REPORT  Z_BR_RECON                              .
    DATA prxy TYPE REF TO ZSVCO_FILE_BR_OUT_ASYNC.
    CREATE OBJECT prxy.
    DATA it TYPE  ZSVFILE_BR.
    TRY.
        it-BR_DETAILS-field1= map to functoin module table
        it-BR_DETAILS-field1= map to functoin module table
        it-BR_DETAILS-field3= map to functoin module table
        CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    ENDTRY.

    Hi-
    Check out this blogs,hope its helpful to you...
    ABAP Proxy
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Client Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Proxy code
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

Maybe you are looking for

  • YTD(year to date) Sales [List Price/ Gross Sales ]

    How to create YTD(year to date) Sales [List Price/ Gross Sales ] depending on the selection in filter

  • Unable to load custom trust store in cluster

    Weblogic 9.2 cluster with three nodes. Each is configured to use custom trust store. The same jks is copied to every node. On node1 ssl works perfectly but on node2 and node3 certificate validation fails. Interesting is the stack that is thrown after

  • Not able to assign map in Syndicator

    Hi all, I am using Syndication Server of MDM 5.5 SP05 Patch 2 to create an export from my MDM repository into a flat file. My plan is to define a map and assign it to a repository port for scheduled output. But I am confused on how to create the map

  • Printer icon in iPhoto 11

    In the bottom menu bar there is no print icon to print or setup printing.  Does any one else miss this?

  • Present iviews to be changed to different bcakend system

    Hi, Presently in portal sandbox we have iviews which are connected to BW sandbox (S28). Our requirement is to use the same iviews and change the connectivity to a newly created BW sandbox (ie S29).Can any one brief me the process to do so. Thanks, Sa