Outbound ABAP Proxy Problem

Hello Friends,
I am trying to do with that a program abap sends data for SAP XI. I got to create the proxy of the type OUTBOUND in my R/3. When I execute the report abap, doesn’t see a Message in SXMB_MONI.<b>Why?</b>
REPORT  ZSW_XI_CLIENT.
data: lo_client_proxy type ref to ZZUCO_MI_HDB_INTMOD_OA,
      wa_ZZUDT_HDB_INTMOD type ZZUDT_HDB_INTMOD,
      wa_ZZUDT_HDB_INTMOD_ITEM type ZZUDT_HDB_INTMOD_ITEM ,
      wa_ZZUDT_HDB_INTMOD_ITEM_TAB type ZZUDT_HDB_INTMOD_ITEM,
      it_ZZUDT_HDB_INTMOD_ITEM_TAB type table of ZZUDT_HDB_INTMOD_ITEM,
      wa_ZZUMT_HDB_INTMOD  type ZZUMT_HDB_INTMOD.
wa_ZZUDT_HDB_INTMOD_ITEM_TAB-object_index = 2.
wa_ZZUDT_HDB_INTMOD_ITEM_TAB-fieldname = 'Susi'.
wa_ZZUDT_HDB_INTMOD_ITEM_TAB-fieldvalue = 'hallo'.
append wa_ZZUDT_HDB_INTMOD_ITEM_TAB to it_ZZUDT_HDB_INTMOD_ITEM_TAB.
wa_ZZUDT_HDB_INTMOD-item = it_ZZUDT_HDB_INTMOD_ITEM_TAB.
wa_ZZUMT_HDB_INTMOD-MT_HDB_INTMOD = wa_ZZUDT_HDB_INTMOD.
create object lo_client_proxy.
                                  CALL METHOD lo_client_proxy->execute_asynchronous
                                    EXPORTING
                                      output = wa_ZZUMT_HDB_INTMOD.
commit work.

Hi Bhavesh
I have tested it;
  <?xml version="1.0" encoding="utf-8" ?>
- <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
- <asx:values>
  <SUCCESS><b>Services Processed Without Error</b></SUCCESS>
  </asx:values>
  </asx:abap>
and Payload was ;
  <?xml version="1.0" encoding="utf-8" ?>
- <ns1:MT_HDB_INTMOD xmlns:ns1="http://ifbAG.com/xi/abap-proxy2rfc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <item>
  <object_index>1</object_index>
  <fieldname>This is a string 2</fieldname>
  <fieldvalue>This is a string 3</fieldvalue>
  </item>
- <item>
  <object_index>4</object_index>
  <fieldname>This is a string 5</fieldname>
  <fieldvalue>This is a string 6</fieldvalue>
  </item>
  </ns1:MT_HDB_INTMOD>

Similar Messages

  • CX_BGRFC_INVALID_DESTINATION during outbound abap proxy call on 7.1

    Hi guys,
    I'm trying to set up a scenario with outbound abap proxy call using the new WS adapter and when I execute the report with the proxy call I'm getting the CX_BGRFC_INVALID_DESTINATION exception.
    I've generated proxy w/o problems, I've set up everything in SOAMANAGER.
    Have you experienced this issue?
    Thanks for your help,
    Olian

    Hi guys,
    so my connection to SLD works fine now and I'm still getting the error. Any other ideas?
    Just in case:  this is my proxy code. Is this correct for using with 7.1 and WS adapter?
    REPORT  Z_PI_PROXYTEST.
    data sender_object type ref to ZCO_PROXYTEST_OUT.
    data out type ZMT_PROXYTEST_OUT.
    data lo_sys_exception  TYPE REF TO cx_ai_system_fault.
    data err_result type string.
    out-ZMT_PROXYTEST_OUT-data = 'sample'.
    try.
        create object sender_object
          EXPORTING
            logical_port_name = 'PROXYTEST'.
        call method sender_object->PROXYTEST_OUT
          EXPORTING
            output = out.
        commit work.
      catch cx_ai_system_fault into lo_sys_exception.
        call method lo_sys_exception->IF_MESSAGE~GET_TEXT
          RECEIVING
            result = err_result.
        write err_result.
    endtry.
    write 'Data has been sent to PI'.
    Thanks for your help, Olian

  • User-exit/BADI during outbound ABAP proxy call

    Hello,
    I want to introduce certain check during outbound ABAP proxy calls to PI. This is a generic check, failure of which would stop the proxy call to proceed and raise an exception.
    I would like to place this at the generic place which is called for all the outbound ABAP proxy calls, rather than coding this in each and every outbound proxy class as the check is generic.
    Is there some user-exit/BADI where i can introduce this? Maybe within class CL_PROXY_OUTBOUND or somewhere else where i can introduce this check.
    Any help in this regard would be appreciated.
    Best Regards,
    Gajendra.

    Dear Gajendra ,
    i agree with sabrish, you must be having a z report on the application system that must be calling that outbound proxy...may be if the check is generic it may not be related to a proxy so you can code a FM and then call it before you call that proxy in the z report
    Giving points is another way to say thanks

  • 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

  • Can we edit SOAP Header for an Outbound ABAP Proxy message?

    Hi,
    Can we add some information such as dynamic configuration to the SOAP header for the outbound ABAP Proxy from ABAP report in SAP Application System?
    Regards,
    Praveen Gujjeti.

    Hi Praveen, have you found soulution for this? Can you share it with me?
    From here http://help.sap.com/saphelp_nw70/helpdata/EN/d6/49543b1e49bc1fe10000000a114084/content.htm
    The help described that:
    Set logging in the message header. This means that this message is logged even if logging is deactivated explicitly in the configuration. The logging information is part of the message header:
    ¡        <SAP:Logging>1</SAP:Logging>
    Activates logging explicitly.
    ¡        <SAP:Logging>0</SAP:Logging>
    Deactivates logging explicitly.
    So it means that we can edit SOAP header for outbound ABAP proxy. But i haven't find the correct method to do that.

  • HTTP to ABAP Proxy - Problem with "Current User" parameter

    Hi experts,
    We have a HTTP to ABAP proxy sceario, where I used an HTTP Destination to connect to the proxy.
    We're trying to use the option "Current User" in that destination in order to login to ECC with the same user that in PI adapter plain.
    The user exists i both systems, PI and ECC, with the same password.
    Checking that parameter we get the following error:
    <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>INTERNAL.UNAUTHORIZED</SAP:Code><SAP:P1>401 </SAP:P1><SAP:P2>Unauthorized</SAP:P2><SAP:P3>(See attachment HTMLError for details)</SAP:P3></SAP:Error>
    We think that PI is not getting the password.
    Does aybody know how to do this?
    Thanks and regards,
    LUIS B.

    Hi Chirumamilla,
    If we put user and password in SM59 (unchecking "Current User") the commuication works without problems.
    We don't want to leave a user set there, beacuse we are looking to access to PI with different users and login to ECC with the same user.
    Thanks,

  • XI ABAP Proxy problem

    Hi all,
    I am trying to develope an itegration scenario as follows:
    ABAP System ---> XI -
    Java System
    For communication between ABAP System and XI there is a Proxy, however it is not working out.
    The message from ABAP system does not go to XI.
    I got the following message in SXMB_MONI of ABAP Sytem:
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="PARSER">ITEM_MISSING</SAP:Code>
    <SAP:P1>Envelope</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>XML element Envelope missing in SOAP message header (SAP XI Extension)</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Someone has solved a problem like that?
    Regards
    Fabio

    Hi Fabio,
            I would request to to check for two things,
    1. Whats ur was version? Is it 640? else can you try to change the Commumnication channel in xi adapter to message protocal as xi2.0 ,, i think you used it as xi3.0
    2. retest it.
    3. If it still gets the same error refer the thread,
    XI Proxy Problems
    All the best,
    Anirban.

  • File to ABAP Proxy (problem with inbound queues in R3)

    Hi,
    In File-XI-ABAP proxy scenario, XI is successfully picking up file and sending it to R3.
    But in R3, an inbound queue is created in SMQ2 transaction code and I solved the same to automatically process the Queue by registering that in SMQR transaction code. But even though the inbound queue doesn't appear in SMQ2 (which means that it is processed successfully) it doesn't call the method EXECUTE_ASYNCHRONOUS. Can anyone help me whether I need to do any settings to run that method?
    Also can anyone help me, after the inbound queue is successfully processed in SMQ2 transaction, what would be the next step to watch what exactly that queue has done?

    Hi,
    Please check the program code for Server ABAP proxy.
    This will show you the trigerring of Proxy on inbound side.
    ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    For Queues, you can go to SMQR and check for the register queue. Select and double click on it. If anything is stuck up then you can see in it. Even same with SMQ2
    Thanks
    swarup

  • ABAP Proxy problem

    Hi all..
    We are sending data from SRM to ECC through XI
    We are using ABAP proxy...
    And teh software component we are using is SRM server 5.5 and the data types are all standard..
    But they added some more Z datatypes in Datatypes in XI ... But the class generated is         CO_BBPX1_SUSDDN_OUT ( standard ) and the feilds are not viosible in that proxy class..
    If i want to regenrate that class . there is no option.....
    I dont want to change the name but all that feilds need to be come into taht proxy class..
    Regards,
    Ashok
    Edited by: ashok ugar on Dec 19, 2008 11:48 AM

    Perform a usage dependency of the SRM SWC to you individual SWC. After this import your SWX in IR and you could see a "Basis" tag under which all SRM objects could be seen. There you may edit the SRM objects. and then regenerate the proxy.
    Regards,
    Prateek

  • How to trigger Outbound ABAP proxy from PI

    Hi Guru's,
    We have one scenario in which we want interface to be run at 5 minute interval in PI but it has to get data from R/3 via RFC or ABAP Proxy (No file interface). Is there any way to trigger PI interface to get data from R/3 and after mapping send it via AS2.
    Thanks in Advance.

    Hi Gyaneshwar,
    What Phani said is correct. Better you go with ABAP proxy, where you can validate the data with the condition, if fails you can raise an alert mail.
    The code something looks like:
    CALL FUNCTION 'Z_UTL_SENDMAIL'
            EXPORTING
              i_email       = gv_sender
              i_toemail     = ''
              i_subject     = gv_subject
            IMPORTING
              e_return_code = gv_subrc
            TABLES
              it_text       = git_text
              it_emails     = git_emails.
        ENDIF.
      ENDIF.
    There is no option to do it from PI.
    Thanks,
    Edited by: Hareenkumar on Feb 24, 2011 10:08 AM

  • Outbound ABAP proxy stops working

    Hello experts,
    We have an interface, which sends data from SAP to PI via outbound proxy. It worked before and at some point it stopped working in dev. But it still works in QA and production. I tried to make sure that the related objects in IR and the ABAP sender program are the same between DEV and QA and regenerated the proxy in SPROXY. However it did not work. No message could be found in SXMB_MONI and in the debugging mode, the exception of CX_INVALID_TRANSFORMATION raised when calling EXECUTE_ASYNCHRONOUS.
    The attribute INTERNAL_SOURCE_POS showed red in variable L_TRANSFORMATION_ERROR, which references to cx_transformation_error.
    Some of the called methods are listed below.
    outbound_handler_execut -> CALL_EXECUTE_OUT -> xi_call_outbound( ) -> xi_process_payload( ) -> CALL METHOD cl_ws_payload_handler=>data_render
    It is appreciated if you could shed some lights on this.
    Thanks in advance for your help,
    Shawn

    Hi.
    When you execute Proxy program check in ECC any message created in SXMB_MONI in ECC, of messages were found then shcek the status.
    if no messages then problem with Proxy program , take help from Abaper.
    Regards,
    Raj

  • Bpm send abap proxy problem

    BPM send abstract interface sd025proxy (bapa proxy).
    in sproxy only message interface outbound and inbound can create proxy, abstract interface can't  create proxy.
    so how can I handle this in ID?

    Proxy communication needs direction....abstract interface does not have any direction.
    BPM send abstract interface sd025proxy (bapa proxy).
    BPM will send abstract interface...fine....however when you run config wizard for BPM --> SAP communication include the inbound message interface corresponding to your proxy wherever there is a reference for target(receiver) MI....create a new MI in IR accordingly.....this is the only option available.
    Regards,
    Abhishek.

  • ECC ABAP Proxy Problem

    Hi,
    In ECC i did the follwong configuration for Client Proxy
    1. Create RFC destination XI_INTEGRATIONSERVER type H (with target host, service no-50X00 and path prefix), test it and getting HTTP Response 500. I am using PIAPPLUSER and this user have role SAP_XI_APPL_SERV_USER
    2. Went to SXMB_ADM select change global configuration select Applicatio Server and dest://XI_INTEGRATIONSERVER
    3. Create RFC destination SAP_PROXY_ESR type H (with tager host, service no-800X and path /rep), test it getting HTTP Response 200 OK.  I am using PIAPPLUSER and this user have role SAP_XI_APPL_SERV_USER
    when i go to the SPROXY tcode their it ask for user and ID for Resource rep, enter the PIAPPLUSER and password, it ask for user id mutliple time then it throws "No Authorization for Repository"
    I do not know what is wrong
    With Regards
    Sunil

    Sorry solve the problem.
    My bad...RFC SAP_PROXY_ESR must be type G instead of type H, problem fixed

  • Outbound abap proxy class

    Hi,
    I previously succeeded in importing a standard software component for e-recruitment into PI. I was then able to associate this with my own software component in the SLD and create datatype enhancements for the standard SWC in my SWC.
    After that I was able to re-generate a standard proxy class in the e-recruitment system to contain my datatype enhancements.
    I did this a while back and now I have some additional datatype enhancements I want to do and then re-generate the proxy class.
    Here the problem is: When I try to do this again, I get prompted for a SSCR key for the standard class.
    Any suggestions? I was previously able to do the datatype enhancements without any SSCR key needed.
    Thanks,
    Dan

    hi
    You might be trying to change some standard sap objects thats why sscr key is required.
    you can refer to SAP Note 33154 for sscr details.
    re: sap notes and sscr
    Re: how to get the access key
    regards,
    ujjwal kumar

  • Use EOIO on Sender RFC and outbound ABAP proxy calls

    In the comm channel of SOAP and FILE there is a simple flag to set for QOS = EOIO
    In Plain HTTP adapter a QOS parameter can be supplied.
    IDOC uses control record tricks or a Receiver adapter option.
    But what about the RFC and XI adapters.
    The docu states QOS of EOIO for RFC and XI adapters is possible.
    How is set for sender RFC and Sender XI adapters?
    regards
    Phil

    Phil,
    I was discussing with Michal about this.
    I suppose it is not fully EOIO, because you don't send directly from the outbound queue to the inbound queue. The AE service may not have a specific queue for that message, until the queue is associated in adapter module. Maybe (just maybe), if you get unexpected extra processing in the initial AE reception of the message (and hence, before the queue is set, in adapter module), you may have some inconsistencies with the processing order in sender system.
    But again, that is just a speculation.
    I'm not sure what is the behavior it'll have.
    And even if what I speculated is right, it is a really short amount of time.
    But again, EOIO would not be 100% guaranteed (maybe 99% hehe).
    But sometimes (most of the times) that is not enough.
    Regards,
    Henrique.

Maybe you are looking for

  • Firefox wont open, because of multiple copies? !

    I uninstalled and reinstalled Firefox. Now when i open the new firefox i get an error message: "Close Firefox. A copy of firefox is already open. Only one copy of Firefox can be open at a time." Ive uninstalled again, empied the trash, searched the c

  • TS1368 Cannot access itunes store - Forefront TMG not working since iTunes 10.6.

    I'm assuming that they have added additional ip addresses/ports/url sets that need to be put in the ISa rules. Any ideas? Thanks!

  • Authorization object L_LGNUM

    Dear colleagues, I am trying to restrict a user from doing a certain 'thing' and am looking for your help. In Warehouse Management we are confirming Transfer Orders in Two steps. I want the user that does the first step, not to be able to confirm the

  • Cannot print CD labels on D5160 with Windows 7

    i am unable to print onto CD/DVD using my recently purchased Windows 7 computer. I do not appear to be able to get that part of the software which allows it. Any advice please?

  • IPod Nano - Does not connect

    My iPod nano - 2nd gen doesn't connect to the computer. When I connect to the USB port, the iPod gets charged but the computer does not recognise iPod (when I try to open through 'My COmputer" it gives a device error). Thus iTunes doesn't connect to