Abap Proxy Sender Configuration

In my test system, (XI 7.0)
Client 001 : XI (Integration Engine)
Client 500 : Business System (Web AS ABAP)
In client 500, I send a message to XI using ABAP Proxy.
During the execution Logon Popup message appears and
ask me user id and password for client 001.
Which configuration should I check to bypass the logon popup?

Thanks All... for the prompt response.!!
I have several RFC destinations (HTTP, ABAP) which have correct user id and password.
However, In SXMB_ADM, I configured IS_URL to like
krdt50057957.mycomany.com:8008/sap/xi/engine?type=entry
That why was system asked me a logon information.
After changing IS_URL to like
dest://XI_INTEGRATIONSERVER  (which is RFC destiniation name in SM59)
Works FINE!!
Thank you all of you!
Message was edited by:
        Ji Hoon Kim

Similar Messages

  • ABAP Proxy sender possible in integrated configuration AAE with PI 7.11

    Hi guys,
    we are running PI 7.11.
    We have serveral scenarios where the senderis an ABAP proxy and the receiver is reached by a jave adapter.
    With Ehp1 the SOAP adapter offers the possibilty to chose XI 3.0 as message protocol.
    We use this feature already in scenarios where ABAP proxy is receiver.
    But is it also possible to use it at sender side?
    Kind regards
    Jochen

    Hi Volker,
    thanks for your help.
    You could also use ABAP proxy at sender side during integrated configuration.
    Prerequisite is to implement SAP note  1349125 and use following url for acessing the PI from SAP backends.
    http://<host>:<port>/XISOAPAdapter/MessageServlet?ximessage=true
    With this URL you could ABAP proxies in normal scenarios where integration server is involved as well as  in integrated configurations.
    Kind regards
    Jochen

  • 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

  • ABAP client proxy send message fialed

    I developed one ABAP client proxy to send msg.  status in SXMB_MONI is error.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <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="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    After I test it  in RWB,I'm sure that IR and ID is right. Then what's wrong?

    > There are two scenarios with the same outbound interface.Is it the problem?
    >
    > ABAP proxy send message, and then there are two route.
    Yes this could be the reason, because at the time of Receiver Determination it tries to send the message to both the interface. Are both the scenario Proxy to XI??
    Try to change the Message Interface in IR and accordingly change in ID also and then try.
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Oct 17, 2008 2:24 PM

  • ABAP Proxy to XI to webservice scenario

    Dear all,
    Can anyone guide me the steps required to configure this kind of scenario?
    ABAP proxy sends some PO data thru SAP ECC system to XI . Then XI has to invoke some webservice of third party tool.
    Can anyone provide me the detailed steps to configure this kind of scenario?
    Thanks,
    Sonal

    Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Configure your WS
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    use those blogs to help configure the scenario.
    Also do some search in SDN and you will surely get more links.

  • Design Clarification : ABAP Proxy (Asynch) --- PI (Synch) -- Mainframe(DB)

    Hi PI Experts,
    We have the following flow:  ABAP Proxy (Asynch) ->PI (Synch) <> Mainframe(DB2)
    1. Client ABAP Proxy sends the data to PI. It is Asynchronous communication. PI validates few mandatory fields, if any mandatory fields are missing then PI will generate the <Error> in PI with custom information. A custom monitoring tool developed using the Webdynpro and configured with PI7.1 to monitor the interfaces.
    2. PI validates few mandatory fields, if successful then triggers the Stored Procedure on DB2 side using JDBC adapter.
    3. PI expects successful or failure or warning message from Stored Procedure on DB2 .
    4. Whatever the response received in PI from Stored Procedure, should not send back the message to ECC. The process should complete in PI after response message is received from  Stored Procedure.
    My Questions are:
    1. Do we need to go with BPM for above requirement?
    2. Can Stored Procedure respond with successful or failure or warning message?
    3. Is it possible to design without BPM?
    4. Can we go with the design: Client ABAP Proxy (Asynch) ---> PI (Asynch: SOAP Receiver Adapter calling SOAP Sender Adapter(QOS:BE) ) > PI <> Mainframe(DB2).
    Thank you in advance.
    Regards
    Masthan

    Thank you for your responses.
    Client requirment is to log all the errors and monitoring is done in PI7.1, using Custom monitoring tool developed using Webdynpro and configured in PI7.1.
    This scenario is not Synchronous from Client ABAP Proxy.
    PI receive the successful/error/warning response from Stored Procedure.
    First Half is Asynchronous that is Client ABAP Proxy to PI.
    Second Half is Synchronous that is PI to Stored Procedure(DB2).
    To Avoid BPM,
    Can i go with the below steps:
    1. Client ABAP Proxy to PI --> Asynchronous call
    2. PI to PI ---> Synchronous call
    3. PI to Stored Procedure (DB2) ---> Synchronous call
    Thank you.
    Regards
    Masthan

  • Synchronous Inbound ABAP Proxy - Manage status in SXMB_MONI

    Hi Gurus!!
    I have a synchronous SOAP->PI->ABAP Proxy. This ABAP Proxy sends a response to the Sender SOAP with the result of the process execution.
    If the execution finishes with an error (by example, the material to change is locked by another user), the ABAP Proxy sends the response with this error to the SOAP Sender, in the response of the message, without exception. In SXMB_MONI the execution of the message is correct. Is there any way to set the status of the message on SXMB_MONI to other status, and continue sending the corresponding response to the SOAP Sender? If is possible without exception handling?
    Thanks and regards,
    MML001.

    Hope I understood your question. You can send the response (happy flow without exception) and fault message (application or business exception) from the inbound proxy response. But in both cases , SXMB_MONI treats the response message is success. Only in the case of system or connectivity between systems, it shows error message. You could handle even using a specific field in the payload whether the message is successful or not rather than thinking about setting status in monitoring level.

  • Double call of abap proxy client

    Hi expert,
    I have a scenario which an abap program will send a data to third party web service via sender abap proxy. I notice some of the message was double in sxmb_moni which should be called 1 time. Any idea why this happen? Abaper said that the abap program only call my proxy client 1 time. Thanks.

    Hi,
    Any possible the abap proxy send double message?
    There is no way for this to happen.
    Either your report for proxy ran twice consecutively or the proxy call method is in loop in report.
    Sice u said that only 1 time it happened, i think th proxy call method is not in loop , and may be report ran twice.
    Please check the ABAP code if any loop is there or proxy called twice in the report..
    Babu

  • JDBC to Synchronous ABAP Proxy

    Hello,
    I have one scenario where i am sending data from JDBC Adapter(Communication Channel 1) to ABAP Proxy(Sync)(Communication Channel 2) and as response ABAP Proxy send back data to JDBC Adapter(Communication Channel 3). So is it possible without BPM?
    And in above scenario in SXMB_MONI of R/3 and PI 7.1 it shows "Type = Asynchronous" and in R/3 it shows Payload in Response but when i check in PI 7.1 SXMB_MONI there is no message in Payload of 'Response' .
    Please suggest me the solution.
    Thanks in advance.
    RP

    YES , WE CAN ...
    We can use JDBC Adapter at your DB Side and At R/3 side we can have RFC or Proxies for Sync
    By default JDBC Adapter dont have the nature of requesting the Ack(Response from the receiver)
    So to make it Sync We have to use BPM
    JDBC Synchronous call  using BPM
    How to uses JDBC Adapter for the following scenario ?
    Steps to be followed for the same:
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH
    ABAP proxies have many advantages for instance; they 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). ABAP proxies supports two different protocols; XI and Web Services. Most important is that they can be used for both synchronous and asynchronous communication (RFC/BAPI is basically only intended for Synchronous comm. which asks much more system resources from your XI system).
    step by step RFC to JDBC scenario
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/step%2bby%2bstep%2brfc%2bto%2bjdbc%2bscenario

  • Error while executing sender ABAP proxy program in ECC

    Hi,
    We have lot of proxy to file scenarios, most of them are working fine. I am having issue with 2 interfaces, when I execute sender ABAP proxy program, we are getting following errors in ECC:
    <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSING">GENERAL</SAP:Code>
    <SAP:Stack>com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=ED1CLNT290;TS=;AN=CustTrPowersellS_Out;ANS=urn:maines-net:OTC_079E:PowersellCustomerTerms; at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:237) at com.sap.aii.af.service.cpa.impl.lookup.CommonLookup.getInboundBinding(CommonLookup.java:167) at com.sap.aii.af.service.cpa.InboundRuntimeLookup.<init>(InboundRuntimeLookup.java:88) at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBinding(AbstractLookupManager.java:519) at com.sap.aii.adapter.soap.web.MessageServlet.getBinding(MessageServlet.java:875) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:439) at   etc etc
    Configuration should be fine because many scenarios are working. Can you please help me where could be the error?
    Let me know if you need more info.
    Regards,
    N@v!n

    Hi Naveen,
    We saw your solution about this issue. We are also facing same issue. I wanted to know where we have to update scenario as simple scenario or integrated scenario.
    And could you please tel me what is the main diff between in these two.
    As we are are using PI 7.31 java stack so for this version what we have to use.
    Thanks,
    Shivdeep Kumar

  • Mail Sender to Abap Proxy Receiver with Attachements

    Hi All,
    Scenario: I need to create a ticket in Solman from a mail. I intend to do the scenario as Mail sender to Abap Proxy receiver asynchronous.
    I have configured my sender mail adapter and am able to get the mails in XI. The attachements also appear in Inbound payload as MailAttachement-1, MailAttachement-2 etc. I have checked use mail packege and keep attachements in sender adapter.
    Transport Protocol: IMAP4
    Message Protocol: XIPAYLOAD
    Queries:
    1. My Inbound Data Type is the mail Package -- ximail30_xsd. Here in sxmb_moni I can see the mail attributes like from, to and the mail body in content. But How can I read the attachements in my message mapping.
    2. How can I pass these attachements to Abap Proxy ( I do not need to alter attachments only pass to proxy ). These attachements have to be attached to the Solman ticket in SOLMAN server.
    Appreciate your kind response to my above queries.
    Thanks.
    Regards,
    Siddhesh S.Tawate
    PS: I have tried using PayloadSwapBean in adapter module but still the content at source remains same.

    Hi,
    Please find below the part of code that might help you. I have given code only responsible for attachements part of the ticket.
    loop at lt_attach into l_attachment.
            count = count + 1.
            if count = 1.
              first_line = 1.
            endif.
            l_type = l_attachment->GET_CONTENT_TYPE( ).
            split l_type at '"' into l_type
                                     file_name
                                     l_name.
            l_name = file_name.
            split file_name at '.' into file_name
                                        file_type.
            l_xstring = l_attachment->GET_BINARY_DATA( ).
            strlen = xstrlen( l_xstring ).
            Compute int = ( strlen div 255 ).
            Compute rem = ( strlen mod 255 ).
            if rem <> 0.
              int = int + 1.
            endif.
            count1 = int.
            if count = 1.
              last_line = count1.
            else.
              if int = 1.
                first_line = last_line.
              else.
                last_line = first_line + count1.
              endif.
            endif.
            wa_APPX_HEADERS-APPXNO = count.
            wa_APPX_HEADERS-DESCR = l_name.
            wa_APPX_HEADERS-FILETYP = file_type.
            wa_APPX_HEADERS-FILENAM = l_name.
            wa_APPX_HEADERS-FILEFM_UL = 'BIN'.
            wa_APPX_HEADERS-FIRSTL = first_line.
            wa_APPX_HEADERS-LASTL = last_line.
            wa_APPX_HEADERS-FILELEN = strlen.
            wa_APPX_HEADERS-LAST_USR = sy-uname.
            GET TIME STAMP FIELD wa_appx_headers-TIMESTAMP.
            append wa_APPX_HEADERS to it_APPX_HEADERS.
            while count1 <> 0.
              count1 = count1 - 1.
              if count1 <> 0.
                wa_APPX_LINES_bin-LINE = l_xstring+0(255).
                shift l_xstring left by 255 places in BYTE MODE.
              ELSE.
                wa_APPX_LINES_bin-LINE = l_xstring.
              endif.
              append wa_APPX_LINES_bin to it_APPX_LINES_bin.
              clear: wa_APPX_LINES_bin, wa_APPX_LINES.
            endwhile.
            first_line = last_line + 1.
            clear: strlen, count1, file_name, file_type, l_type, int, rem, l_xstring, l_attachment.
          endloop.
    CALL FUNCTION 'BAPI_NOTIFICATION_CREATE'
            EXPORTING
              NOTIF_EXT                = wa_NOTIF_EXT
            NOTIF_CRM                = wa_NOTIF_CRM
      IBASE_DATA               =
         IMPORTING
           NUMBER                   = Refnum
           NUMB                     = Numb
           REFNUM                   = Ticket_No
           SYSID                    = SYSID
            TABLES
              NOTIF_PARTNERS           = it_NOTIF_PARTNERS
            NOTIF_NOTES              = it_NOTIF_N_EXT
              NOTIF_SAP_DATA           = it_NOTIF_SAP_DATA
            NOTIF_TEXT_HEADERS       = it_NOTIF_TEXT_HEADERS
            NOTIF_TEXT_LINES         = it_NOTIF_TEXT_LINES
            APPX_HEADERS             = it_APPX_HEADERS
            APPX_LINES               = it_APPX_LINES
            APPX_LINES_BIN           = it_APPX_LINES_BIN
             RETURN                   = RETURN
    Please observe how first and last line of attachement is calculated. That is what created problem for me initially.
    Hope this helps.
    Regards,
    Siddhesh S.Tawate

  • Abap Proxy to Send RFC  data  -- xi - File    ,   how to do - pls help  ?

    Hi Friends ,
                           Our scenario is once in day an  RFC is to be triggered and create flat file .That RFC will return data .
       Using  below likns i have configured the RFC Sender adapter
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    First Activate the ABAP Proxy?
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    How to implement a Client Proxy?
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    My question is
    <b>     1.    Is it possible to use ABAP Client proxy   to achive this ?
          2.   Then do we need to write RFC Call in side this proxy call ?
          3.      If we go for proxy do we need RFC Sender Adpater ?</b>
            I am little confused can you please explain , as how it works ?
    <b>       Is there is any other way to trigger RFC to send data ?</b>
    Regards.,
    Shyam

    Hi sabrish ,
                          Tahnks for ur reply. I was waiting for ur response . i have doubt
    the foloowing code i got from ur blog .
    REPORT Z_TEST_RFC_XI_WEBSERVICE.data: lv_distance type char10.CALL FUNCTION 'Z_WEBSERVICE_TEST_SHABZ' <b>destination 'Z_WEBSERVICE' </b> EXPORTING FROMZIP        = '12222' TOZIP          = '22222' IMPORTING  DISTANCE       = lv_distance.write : 'Distance is : ' , lv_distance.
      <b>           1. i have to generate proxy from Out bound interface right ? inside that proxy class whare i have to in clude the code to call rfc ?
                  2. Can u please tell what is the Destination in that report.  What is z_webservice ?</b>
                  3 . Do we need to use RFC Sender adapter ? It is not related to proxy right ?
    Regards.,
    Shyam
    null

  • Prerequisites to configuration for ABAP Proxy -???

    My scenario is file->XI->R/3(abap server proxy).
    Xi and R/3 are 2 seperate business systems
    -Abap server proxy created on R/3 business system. R/3 client 550
    -Xi client 400.
    -SLD is common for both XI and R/3
    <b>My question is in reference to the below message thread:</b>
    <b>1.I  understand all the below configuartaion has to be done on R/3 business system, tell me am I correct</b>
    <b>2. are these configuartion needed for <u>client proxy as well as server proxy</u> also?</b>
    HTTP_RESP_STATUS_CODE_NOT_OK
    The prerequisites to configuration for ABAP Proxy include: (landscape dependent)
    1. The business systems should be based on SAP Web AS 6.20 and SAP Web AS 6.20 kernel patch level above 1253
    2. You have installed the XI Add-On in each of these business systems as described in the Installation Guide SAP Exchange Infrastructure 3.0
    3. The business systems and your central Integration Server are maintained in the System Landscape Directory (SLD).
    Configuration required on the Business System:
    1. Create HTTP connection in the business system.
    Configuration Details:
    Technical Setting:
    1. Following Inputs are required for technical setting
    1 Connection Type: H
    2 Target Host: System name
    3 Service Number: HTTP Port name
    4 Path Prefix: /sap/XI/engine/?type=entry
    Logon Security
    On the Logon/Security tab page, enter the following logon data:
    1 User: XIAPPLUSER (for example); this user should represent the sending business system (see also the SAP XI Security Guide under Service Users for Message Exchange).
    2 Password: the password you have specified for this user
    3 Client: SAP XI Integration server
    4 Language: Language required
    2. Configuration Business system as local Integration Engine.
    1. Goto Transaction SXMB_ADM
    2. Choose Edit --> Change Global Configuration Data.
    3. Select Role of Business System: Application system
    4. Corresponding Integration server: dest://<HTTPDESTINATION>. Here <HTTPDESTINATION> SAPISU_XID created in step 1. Dest://SAPISU_XID.
    5. Under Specific Configuration Data you can specify additional configuration data
    1.Select the relevant category under Specific Configuration Data.
    2.Choose Change Specific Configuration Data.
    For ABAP Proxies, Add the following configuration:
    1.Category RUNTIME
    2.Parameters: IS_URL
    3.Current Value: dest://SAPISU_XID
    Configuration of the Integration Engine
    3. Connection between Business System and System Landscape Directory
    1. Create RFC destination (TCP/IP) LCRSAPRFC and SAPSLDAPI for the SLD connection.
    1.Execute transaction SM59 in the business system.
    2.Choose Create.
    3.Enter at least the following:
    1.RFC Destination: LCRSAPRFC
    2.Connection Type: T
    3.Description: <your description>
    4.Choose ENTER.
    5.Choose the Technical settings tab page and do the following:
    6.In the Program ID field under Registered Server Program, enter LCRSAPRFC
    7.This program ID must correspond to a program ID specified in the RFC engine settings of the SAP J2EE Engine on the Integration Server host.
    RFC Destination
    2. Maintaining the SAP J2EE Connection Parameters for LCRSAPRFC and SAPSLDAPI in SAP J2EE engine
    1. Goto J2EE Engine
    2. Choose Cluster --> Server --> Services. JCo RFC provider
    3. Under RFC destination specify the following:
    Program ID: LCRSAPRFC
    Gateway Host: <Integration Server host>
    Gateway Service: <Integration Server gateway service>
    Number of process: 3
    4. Under Repository specify the following:
    Application Server: <Integration Server host>
    5. Choose Set.
    3. Maintain SLD access details in Transaction SLDAPICUST
    1. You can reuse this program ID for all Business systems
    2. If there is HTTP error during connection, first run transaction SLDCHECK in the Business system. Also check that HTTP connection is working fine.
    3. In XI Adapter use HTTP connection rather then giving R/3 input details as this is easier to transport and maintenance
    4. One receiver adapter can be used for all Interfaces connecting to a Business system.
    <b>Thanks for your reply in adavnce.</b>
    KK

    2. are these configuartion needed for client proxy as well as server proxy also?
    >>>>
    the configuration is one time thing and your R3 will act as a server or client according to the data being sent or received.
    In R3 a point to be noted is that in SXMB_ADM -> Intg. Engine Confg. -> Role of Business System sud be as a Application System.
    Ref: /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Message was edited by: Shabarish Vijayakumar

  • No messages in SXMB_MONI for ABAP Synch Sender proxy

    Hi,
    I am doing a Scenario which involves ABAP Synchronous sender Proxy and Webservice at the receiver end. On triggering the outbound proxy from a report, i can see no messages in SXMB_MONI of the ECC system neither can i see any message in PI(SXMB_MONI). But on triggering the same after deleting the Receiver Determination in PI Configuration, SXMB_MONI promptly logs the message with error 
    "No receiver could be determined" both in ECC and PI, since there is no receiver determination.
    Note:I am not getting any System fault or Application fault in Sender report neither any response message.
    There is no problem with the Proxy settings since other proxy scenarios are working fine with same ECC system but those are Asynchronous proxy calls.
    Any Clue about this?
    Regards
    Amith

    HI,
        YOur answer is near to my problem . Can i ask you more detailed.
    I am not getting messages in SXMB_ADM. So i configured in Integration server in ECC & XI system.
    IN ECC , i am using two clients, dev & testing - so in which client i have to do configuration ? and What is the role of the business system in ECC ( Integration Server or Application server )???
    IN XI, i am using only one client 100...so i have done. here i have given Role of business system - HUB Integration Server.and corresponding destination http://host:port/sap/xi/engine?type=entry
    And while creating business systems in SLD...
    for XDC...i have given path http://host:port/sap/xi/engine?type=entry
    for EDCClient105...how can i create for proxy ...Adaper XI? is it type -
    WEB AS ABAP?
    pls reply for my mesaages?

  • 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

Maybe you are looking for

  • Question: update firmware to my phone

    If i update me firmware, that will change my IMEI or not? P.S. Nokia N91-4GB

  • Maximum 30s waiting for RPC call, how to resolve?

    Hi, We've face problem on limitation time Channel call procedure for RPC. We always get this message: info = mx.rpc.events.FaultEvent (@2141581)    bubbles = false    cancelable = true    currentTarget = null    eventPhase = 2    fault = mx.rpc.Fault

  • Sudden slow-down: Diagnosis?

    Running 10.4.9 Server, with a lab of 30 Macs doing server-based home dir logins. For the whole school year, logging in all 30 machines at the same time has taken roughly 30-60 seconds. As of a few days ago, it's taking anywhere from 3 to 5 minutes. E

  • X4170 M2 Auto Power On

    Hi, I have some x4170 M2's running intel processors. Currently, if the AC power goes off to the servers and comes back on, we need to power them up manually through ILOM or the button on the front panel. I want the servers to automatically power up i

  • What OC can I reasonably expect?

    Now that the last of my cooling parts and my new Enermax 420w PSU have finally come in, I'm ready to try some OCing on my system, as soon as I get everything installed.  I know it's variable depending on individual components, but approximately how h