Problem in calling Client proxy using ABAP Report

All Your inputs and various threads were really helpful . i have followed this blog as well /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
Now after all while trying to pass values to proxy i have an issue : in the above blog there is a small pinch of code for referencing the proxy through an abap report.
i.e. &----
*& Report  ZBLOG_ABAP_PROXY
REPORT  zblog_abap_proxy.
DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
CREATE OBJECT prxy.
DATA it TYPE  zblogemp_profile_msg.
TRY.
    it-emp_profile_msg-emp_name = 'Sravya'.
    it-emp_profile_msg-empno = '80101'.
    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
now instead of the DT being in this way : i.e. :
EMPProfile_MSG       OCCURENCE
  EmpNo                 1
  EmpName               1
  DeptName              1
Instead if the DT / MT for which the proxy is generated is in this format for table data input then whats the way ?
EMPProfile_MSG       OCCURENCE
.....Item            0..Unbounded
...........A              1
...........B              1
...........C              1
...........D              1
Please advice,
Krishna

Hi,
Did you create a Data type,message type and Message interface and generated the proxy in trnx SPROXY?
If so, then a class gets created like ZCO...........
under which, structure gets created as you did in IR of XI.
Need to implement a BADI and Ztable on the Abap stack.So you get the values dynamically to your proxy.
For each change in your emp details,there will be a record in Ztable.
Hope you understand this.
Regards,
Joslyn

Similar Messages

  • Calling a proxy from ABAP Report

    Hi All,
    Can any one gimme some idea about calling a XI proxy from ABAP Report.
    I need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
    Thanks in advance.
    Tnx,
    Joe.

    Hi Meetjoe,
      We have to design the required interface in PI ,that is used to hold the report data when tigerred a proxy and generate the proxy based on the interface if the Proxy is based on the Outbound side its called client proxy  or if the proxy is genereated on Inbound interface we call it server proxy.
    need to gather data in my internal table and after that i need to trigger a proxy which is going to do a outbound processing.
      In your case its gonna be the client proxy refer the follwing links for your better understanding
    For concepts on Proxies:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/content.htm
    To enable Proxy connections:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a
    Smaple scenarios on Proxy:
    Proxysettings /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Server Proxy /people/siva.maranani/blog/2005/04/03/abap-server-proxies 
    ABAP Client Proxy /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy 
    Thanks,
    Ram.

  • Advice on client proxy generation (ABAP and SAP PI)

    Hi,
    I've set up an ABAP client proxy using the wizard in transaction SE80 in the backend system, released it using transaction SOAMANAGER and tested that it works.
    I now want to compare this technical approach against the same scenario using a proxy generated from a SAP PI outbound synchronous message interface.
    I have hit the following issues:
    1) When I upload the WSDL file (saved from the test web service I exposed from one of our SAP systems) into the Integration Repository, I receive the following error:
    "Check Result for Object GetDOB_WSDL Document check found errors  Cause: Unable to recognize the loaded document as valid WSDL  Tag Policy is not permitted at position portType".
    I can remove this error by deleting the tag policy but don't have an answer why this is not supported and whether this is the right approach - this error occurs regardless of which option I choose when saving the WSDL (i.e. portType or binding) or which upload option I select.
    2) When I create the proxy in the backend system based on the message interface the objects are all created successfully and generate/activate correctly.  As I don't need the PI runtime (no mapping, queuing etc) I go to create the logical port in transaction SOAMANAGER and I receive the error:
    SRT Framework exception: The WSDL document is not compatible with proxy class "ZPROXCO_ZFUNC_UPDATE_ADDRESSHI": "Operation(s) Missing ZFuncUpdateAddresshistory"
    even though the external operation does exist and is called ZFuncUpdateAddresshistory.
    I have no clues as to why this doesn't work other than the generated WSDL file in the ABAP client proxy has the same name for the portType and operation (ZFuncUpdateAddresshistory).
    3) Can someone please explain the value at design time over creating the client proxy in SAP PI versus using simply the wizard in the backend ABAP system - is it simply that the interfaces can be held centrally in the IR if desired or the WSDL might already be there and could be used to quickly generate a message interface?
    Thanks,
    Alan

    Hi,
      As far as I know, we follow the top down approach in proxy scenarios.
    meaning, we first create the interfaces in XI IR and then go to the back end to implement them.
    So, you should create a message interface (Probably Manually rather than importing the wsdl from R/3)
    in IR and then go to the ERP backend to implement the proxy using the SPROXY transaction.
    Coming to your 3rd question, In PI 7.1 you might be knowung that we have something called ESR(Enterprise Service Repository), which has all the services in a single place.This gives us an option of collating all the different enterprise services scattered all over different systems to be in a common repository.
    Regards,
    Ravi Kanth Talagana

  • Creating client proxy in ABAP failed

    Hello,
    I tried to create a client proxy for a WebService and got the same error like in this thread: [Error when create client proxy in ABAP; "Exception occured in library handler".
    I've got only a little of knowledge about SOAP that's why I cannot edit the WSDL File. But I think there is no mistake in the WSDL. I used one in Visual C# and it works.
    Is it possible to change settings of the proxy generator to ignor non-SOAP bindings?
    Thanks for your help.
    Frank
    Edited by: Frank Staudte on Jan 20, 2009 9:17 AM

    Hi,
    Search in SDN you can find many links.
    Client Proxy -
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Regards,
    Phani

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

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

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

  • Use abap report program to print bar code instead of smartforms

    Do anyone know how to use abap report program to print bar code?

    Hi Celina,
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci839063,00.html
    I hope this will help, also it depends on the barcode type like ARTNR-code 128...
    Regards,
    Sudhi

  • Save a attachment file in the shared folder of receiver using ABAP report

    Hi all
    Is it possible to save an attachment file in the folder of receiver's desktop using ABAP report?
    I am using the standard mail sending code to mail the excel file as an attachment.
    Consumer wants that file to be stored automatically in the folder of a shared drive he is using.
    Is it possible?

    You can do that via class CL_GUI_FRONTEND_SERVICES method gui_download. But this is not working in background. Reports running in background cant reach presentation servers.
    If you have XI/PI in place you can set up a scenario for that.

  • Client Proxy : How to Call Outbound Generated Proxy in ABAP report ?

    Dear SDNrs.
    I have already created a  Scenario for Client/ Outbound Proxy in XI .
    I have already Generated Client/ Outbound Proxy in ECC .
    Now Question is How to call this generated Proxy in report ?
    Please Guide ..... I dont have any idea ...
    1. before calling any proxy in report what information needs to collect from generated Proxy ?
    2. How to call this generated Proxy in report ?
    Regards
    Prabhat Sharma.

    Hi Prabhat
    You have to use your knowledge about ABAP OO for this.
    It's simple. You created your Proxy Object throught SPROXY transaction, right? Now, you have to instance your class (information avaliable in  SPROXY-> Proxy Objetc -> Class Name) and to use the method displayed there.
    Follow an example:
    DATA: wa_backfeed      TYPE zibrsapglbackfeed_sapgl, 
               wa_output            TYPE zibrsapglrequest,        
               lo_clientproxy       TYPE REF TO zibrco_sapgl_out,   
               lo_sys_exception TYPE REF TO cx_ai_system_fault.
      TRY.
          CREATE OBJECT lo_clientproxy.
          CALL METHOD lo_clientproxy->sapgl_out
            EXPORTING
              output = wa_output.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
                   lo_sys_exception->if_message~get_text( ).
      ENDTRY.

  • Problem Calling a Client Proxy from ABAP which is based on an extension

    I'm trying to create an Asset in Salesforce from SAP using ABAP.
    I have exported the enterprise WSDL from Salesforce, generated a client proxy and have coded the login call and passed the session id to the create call.
    The problem I am having is the create method references sobject however asset is an extension of this.
                <complexType name="Asset">
                    <complexContent>
                        <extension base="ens:sObject">
                            <sequence>
                            <element name="Account" nillable="true" minOccurs="0" type="ens:Account"/>
                            <element name="AccountId" nillable="true" minOccurs="0" type="tns:ID"/>
                            <-- many more fields here -->
                            </sequence>
                        </extension>
                    </complexContent>
                </complexType>
    I need to pass something like this (tested and working using SOAPUI)
             <urn:sObjects xsi:type="urn:Asset"
                       xmlns:ns3="urn:sobject.enterprise.soap.sforce.com">  
                   <urn:AccountId>001A000000HoyKZ</urn:AccountId>
                   <urn:Name>JWSOAPTEST Asset3</urn:Name>    
                            <-- many more fields here -->
            </urn:sObjects>
    I tried modifying the WSDL so sobject referrs to Asset
                <!-- Create Message Types -->
                <element name="create">
                    <complexType>
                        <sequence>
                            <!-- element name="sObjects" type="ens:sObject" minOccurs="0" maxOccurs="unbounded" -->
                           <element name="sObjects" type="ens:Asset" minOccurs="0" maxOccurs="unbounded"/>
                        </sequence>
                    </complexType>
                </element>
                <element name="createResponse">
                    <complexType>
                        <sequence>
                            <element name="result" type="tns:SaveResult" minOccurs="0" maxOccurs="unbounded"/>
                        </sequence>
                    </complexType>
                </element>
    However other types it referred to weren't populated.
    The other approache may be to manually populate the xml similar to what I had to do in the header (this link gives a good overview on this Consume web service in ABAP proxy with SOAP header )
    Any recommendations or advice would be appreciated.
      Ideally some sample code if someone has done this or a recommendation on how to modify the WSDL.
    Regards,
    John

    Hi John,
    Calling SFDC.com from PI, is detailed out here. probably will give some tips:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50a76cfa-4966-2d10-aba7-da496d9b5bcf
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f8d03-9282-2d10-52b4-f9446e077099
    Regards, Moorthy

  • Problem in XML Message creation using ABAP Proxy

    Hi,
    I am trying to send the data from ECC to CRM when post goods issue is done for a delivery from ECC side using ABP Proxy. I called my proxy method in BADI : DELIVERY_PUBLISH.
    And after calling the method, I used commit work also.
    But the problem is, some times it is working fine. and some times the XML messages are not getting created. When I go in debug, looks everything is fine.
    I am unable to understand why this inconsistency.
    Could you please help me out, do I need to take any more precautions.
    Thanks,
    Sandeep

    Hi,
    There is no problem in the proxy. Some small problem in the database update.
    It is solved.
    cheers
    san

  • Exception when creating ABAP client proxy using WSDL

    Hi Experts,
    I tried to create a client proxy on the CRM system for a web service URL (where the WSDL exists), in the transaction SE80.
    When I tried creating this, i got exception as follows.
    Exception occured in communication framework:error in HTTP framework:404 conn failed http://inld50054696a:8080/clearspace/rpc/rest?forumservice?wsdl
    Please let me know, how to tackle this problem.
    What are all the settings that needs to be done in this regard.
    Regards
    Lakshman

    Hi Vasanth,
    There are many threads and blogs on this topic.
    Choose the search Forum on the Forum page and select "All categories" in the Category field and enter your topic "ABAP client proxy from WSDL" in the search field.
    Rgds,
    Sam Raju

  • Problems with 'COMMIT MISSING' - when using ABAP client proxies

    Hi
       We have a requirement - wherein while SAP std inbound IDOCs are being processed in the R/3 system- we need to monitor the processing of idocs - by sending relevant information out of the R3 system to a monitoring dashboard - outside of the R/3 environment.
    Inorder to accomplish the above, we generated a async. client proxy class in the R3 system by pointing to a XI o/b message interface and that interface mapped on to DB calls - from which the dashboard was bringing up status of idocs being processed in R3
    We made a call to the async class method from within the idoc user exit that lies  within IDOC_INPUT_ORDERS FM . The user exit chosen to make the call was - after the salesorder processing for the inbound idoc was done in the above FM. We have not given any COMMIT WORK statement after the async client proxy method call within the user exit - since the call was being made from within user exit and we did not want to upset SAP std processing flow.
    Now, when the inbound idoc processing is being done by using SAP std program rbdapp01 using parallel processing option of packets, the outbound message generated is in 'COMMIT MISSING' status - whereas - when rbdapp01 is executed in normal mode - the proxy message is sent out ok out of the R3 integration engine.
    The program rbdapp01 has a COMMIT WORK statement after each IDOC packet is processed - but still with the parallel processing option - the proxy message stays in th R3 box - with the status 'COMMIT MISSING'
    Any thoughts/ pointers on this is appreciated....

    Hi Karthik,
    I don't think you can get this to work using an asynchronous proxy - except perhaps by spawning an update task to send the data.
    Perhaps you can re-cast this as a synchronous interface?
    Regards,
    Thorsten

  • Problems creating a client proxy for a WS

    I've tried creating a client proxy from a wsdl but I've had no luck getting it to work.
    First of all I created the client proxy in se80 with instructions from a teched lecture. The proxy seems to be generated as intended. When I create the default logical port for the proxy in lpconfig, it doesn't get any URL at all by default in the Call Parameters tab. Atleast in the teched demo the logical port got the default URL straight away.
    Therefore I opened the wsdl file with notepad and put the address that was specified in the soap:address element as the location attribute. After saving and activating both the logical port and the client proxy I tried testing the proxy. All the methods give the same following error message:
    Sap Fault Code 1:
    Found 0 operation definitions using keys...
    The WS works fine from the WS Navigator test page though. If I change the logical port URL I get an "Unsupported xstream found" error message. Thus I assume the URL that I took from the wsdl should be correct. Can I assume the wsdl is somehow broken? As I look closer at the wsdl, it seems to consist of several wsdl's that are imported to the main wsdl.

    Hi Evan,
    I don't think the wsdl is broken. I assume your webservice is deployed on WAS. Typically the SAP wsdl consist of 3 files, main wsdl file and 2 other files for binding and porttypes.
    When all three files are appropriately available then only the proxy gets generated.
    Since in your case the proxy is generated and you could activate it, means there is no problem in the wsdl.
    Are there any further details in your error?
    Does your service methods require any input and you are providing the input appropriately?
    Regards,
    Vandana.

  • Calling IP function in ABAP report

    Hi guys,
    I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS....
    Regards
    Stefan

    Hi Stefan,
    I think there is no way to call a planning function of IP in a report. But we can call planning sequences using the program
    RSPLS_PLSEQ_EXECUTE.
    In your case, you can create a planning sequence which contains the planning function and filter, and in your ABAP report, call the program RSPLS_PLSEQ_EXECUTE using the statement SUBMIT.
    Also, you can use the statement SUBMIT VIA SELECTION-SCREEN which will prompt you to give the Planning Sequence name at run-time of the execution of the ABAP report.
    Hope this helps.
    Please revert if unresolved.
    Regards,
    Srinivas Kamireddy.

  • Status change of Single correction using Abap report

    Hi Experts,
    I have a requirement to change the status of Single correction CR's to "completed" and also set the preceding document to appropriate status . I am using the function module CRM_ORDER_MAINTAIN followed by ORDER_SAVE to do so.
    But this does not change the status.
    Please let me know if there is anything that has to be done while changing the status of CR through an ABAP Report.
    Thanks in advance for ur help.
    Rithesh

    Use function CRM_STATUS_CHANGE_EXTERN and also CRM_ORDER_SAVE and commit at the end.

Maybe you are looking for

  • After upgrading to Mountain Lion, my trackpad is erratic and glitchy

    I've gotten the Macbook Pro with Retina Display for about a month now and I immediately upgraded to Mountain Lion. After about a few weeks, Mountain Lion was working well. Nothing was going on. Then about a few days later, my trackpad is possessed. M

  • My Day With Adobe CC

    Well I've had a [expletive deleted] of a day with your Adobe Creative Cloud. Let me tell you about it: 1) Had to replace a single bit of video footage in Premiere project I was working on. It was eported as an FLV originall, as it was a Flash file or

  • Payment file formats CDFF and DFT russia   in 4.6c

    We are trying to implement APP for our russian client. Our client uses CITIBANK formats DFT and CDFF. These are not supported by the standard system. We use R/3 4.6C. Thier is one note: 1093165 which implements above requirement in ECC6.0 but  the sa

  • SAP Query : additional field

    Hi, in my HR query i need to add a new field in infotype specific 9016 to be calculated by ABAP code. I perform the following steps : - transaction SQ02, i modify my info-set, in the node of my infotype i add a new field, i give a new name and a LIKE

  • NOKIA N8 + WEP = FAILURE ?

    Hi there ! I have a big problem that makes me crazy, hoping to get help here... My Nokia N8 REFUSES to connect to my home network. I have a netgear router that connects perfecly to a galaxy tab, 2 computers and a printserver. My Nokia can connect to