ABAP Client proxy Code Error

Hi Experts,
I am working on File To Proxy Scenario. I am writing the below program under the method ZII_MATERIAL_TARGET1_SI~EXECUTE_ASYNCHRONOUS. The program is throwing the Error as "The type ZMAT_TEST is unknown". Please check and do the needful.
method ZIIII_MATERIAL_TARGET1_SI~EXECUTE_ASYNCHRONOUS.
*** **** INSERT IMPLEMENTATION HERE **** ***
  TYPES: BEGIN OF  TY_MAT,
         MATERIAL_NUMBER TYPE  ZMAT_TEST-MATERIAL_NMBER,
         MATERIAL_DESCRIPTION TYPE ZMAT_TEST-MATERIAL_DESCRIP,
    MAINTENANCE_STATUS TYPE ZMAT_TEST-MAINTAIN_STATUS,
    CREATED_BY TYPE ZMAT_TEST-CREATEDBY,
    CREATED_ON TYPE ZMAT_TEST-CREATEDON,
    END OF TY_MAT.
    data:wa_material type ZIIMATERIAL_TARGET1,
        it_material like STANDARD TABLE OF wa_material,
        wat_material TYPE TY_MAT,
        itt_material TYPE  TABLE OF TY_MAT.
  wat_material-MATERIAL_NUMBER = INPUT-MATERIAL_TARGET_MT1-MATERIAL-MATERIAL_NUMBER.
  wat_material-MATERIAL_DESCRIPTION = INPUT-MATERIAL_TARGET_MT1-MATERIAL-MATERIAL_DESCRIPTION.
  wat_material-MAINTENANCE_STATUS = INPUT-MATERIAL_TARGET_MT1-MATERIAL-MAINTENANCE_STATUS.
  wat_material-CREATED_BY = INPUT-MATERIAL_TARGET_MT1-MATERIAL-CREATED_BY.
  wat_material-CREATED_ON = INPUT-MATERIAL_TARGET_MT1-MATERIAL-CREATED_ON.
  INSERT INTO Zmat_test  VALUES waT_material.
endmethod.
Regards,
GIRIDHAR

Hi Giridhar,
Yes you cannot use TABLES in Method.
Request you to use Data-element that you have specified while creating the table.
Use as eg:
TYPES: BEGIN OF  TY_MAT,
         MATERIAL_NUMBER TYPE  MATNR,
         CREATED_ON      TYPE ERDAT,
    END OF TY_MAT.
Regards,
Ganesh Lathi

Similar Messages

  • ABAP client proxy   401 error

    Hi i have generated a ABAP client proxy in my ECC system and sending an outbound message to XI.  i get the following error.
    HTTP response contains status code 401 with the description Unauthorized Error while sending by HTTP (error code: 401, error text: Unauthorized)
    I have tested the following.
    1) My sld and ECC system have the integration engine and pipeline  settings for the XI Server: http://server:8000/sap/xi/engine?type=entry
    2) logon to the URL http://server:8000/sap/xi/engine  with user XIAPPLUSER and pwd in the browser because of the error 'Der Aufruf der URL http://server:8000/sap/xi/engine wurde aufgrund fehlerhafter Anmeldedaten abgebrochen'
    any sugestions ?  using a proxy as target works fine

    Hi ,
    You seem to have a problem with the XIAPPLUSER logon. Can you check that the user has the appropriate authorizations? Maybe the user is locked? Maybe the password has been incorrectly entered?
    XIAPPLUSER should have the role SAP_XI_APPL_SERV_USER.
    Also, check that the XI engine service has been activated.
    Transaction SICF. Default_host->sap->xi Activate the entire node with all subtrees.
    Cheers
    Manish

  • ABAP client proxy create error

    Hi,
    When I try to create a client proxy web service (se80), I get the error "Error when creating HTTP client: URL: Error:Connection Parameters (Host or Service) Not Availa Message no. SPRX137"
    I want to consume a web service (by reading a wsdl from an url) from my own network. the ICM seems to work fine.
    Any ideas?
    thanks,
    Raymond Does

    Hi Praveen,
    Actualy I am not using XI. I would like to connect to the web service by creating a client proxy and then calling the web service with an ABAP program.
    I that case, do I have to do the SPROXY settings as well?
    While debugging the creation of the client proxy I saw that the urls to the wsdl and xsd files (my wsdl is refering to them) did not have the complete http://..etc.. text but only the last part (like 'SystemGetInfo.wsdl'). It seems that the client proxy generation program cannot handle this url data.
    Please let me know what to do.
    Regards,
    Raymond

  • Error With ABAP Client proxy

    Hi All,
       I am trying to use ABAP Client Proxy(Sync). I am getting the error.
    1. Message from SXMB_ADMIN on Business system.
    <b>  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="400" p2="ICM_HTTP_CONNECTION_FAILED" p3="" p4="">HTTP.HTTP_CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:Text language="EN">Error during http receive: Error code: 400 Error text: ICM_HTTP_CONNECTION_FAILED</SAP:Text>
      </SAP:ErrorHeader></b>
    2. No message On XI server.
    3.Went through the Ravikumar Allampallam's blog
    on ABAP ClientProxy .
    4. Went through the  vijaya kumari's " How do you activate ABAP Proxies?"
    5. created connections (sld)and one http connections in SM59. Tested the connections.
    6. Went throught the Forms.
    Any help would be appriaciated.
    Thank you
    Ganges Leaves.

    Vijaya Kumari,
       1. I have checked it. For XI server these are the values.
        Business System Role  : Integration Server.
        Pipe Line url : http://server:8000/sap/xi/engine?type=entry.
    8000 is the http port which i see in the SMICM+shift F1.
    Thank you
    Ganges Leaves

  • 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 Client proxy message not reaching AAE

    Hi Experts,
    I am facing a strange issue in one of my proxy interfaces. ABAP client Proxy is used to post message to AAE in SAP PI 7.3. The messages are being generated and pushed out of ECC successfully. I can see them in the SXMB_MONI t-code with checkered flag. These messages are reaching the Integartion Engine instaed of the Adapter Engine.
    I have configured the following:
    1. Sender / Receiver ID  in SXMSIF:
    2. Configured the corresponding Runtime parameter in SXMB_ADM
    I have few other such ABAp client proxy i/f's which work fine and their message are being sent to the Adapter engine. Howveere, only this one interface is posing a problem. What can be the issue?
    Please advice.
    Thanks in advance.
    Elizabeth.

    Hi Elizabeth,
    It will be great if you could please let me know all the user profile configured in userID of Logon&Security tab of SM59 for connecting ECC system to post the message via AAE.
    I have used
    SAP_XI_APPL_SERV_USER
    SAP_XI_DEVELOPER_J2EE and
    SAP_XI_IS_SERV_USER
    profiles in my UserID for Basic authentication.
    Currently I am doing the same scenario what you have done with integrated configuration.The message is getting failed in ECC with 403 Forbidden error.
    Please help me.
    Thanks
    Ray...

  • How does ABAP client proxy determine the sender business system

    When we use ABAP client proxy to send a message in XI-SOAP format to the integration engine, how does the client proxy determine what is the sender business system, i.e. how does it know what value it should insert in the sender service field in the SOAP envelop.
    For example, at first, the business system X8A_105 corresponds to the technical system X8A_105, so when the client proxy sends out a message, the sender service is X8A_105. Then I delete the business system X8A_105 in the SLD, and create a new business system that is associated with the technical system X8A_105.when the client proxy sends out a message, the sender_service is still X8A_105, why?

    Hi Annie,
    Execute the following function module in your business system and see what name it returns..
    LCR_GET_OWN_BUSINESS_SYSTEM.
    You can always debug the code inside the above FM to find out how it gets the business system name...
    I think the issue should be related to cache. I would also suggest you to logoff from your business system and then login again.
    Regards,
    Sumit
    Message was edited by:
            Sumit Khetawat

  • ABAP client proxy to File scenario

    Hi,
    I am doing ABAP client proxy to File scenario.
    I have followed Ravikumar allampallam blog i.e https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1387. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    My abap proxy has successfully created 4 objects:
    1)ABAP Class ( ZCO_ MIOA_ABAP_PROXY).
    2. Structure for the message type in ABAP Data Dictionary (ZMT_PROXY).
    3. Structure for the data type in ABAP Data Dictionary (ZDT_PROXY_SRC).
    4) Table type (ZSTRING_TAB).
    can u tell me how can i fetch data from database table into structure?

    Hi,
    see first create the data type,msg type, msg interface and go to R3 instance of Xi and use SPROXY transaction , locate your SWCV,namespace, intreface ( outbound) and create the proxy , later give the name starts with z, later in ABAP program create the internal table of type of the Structure for the message type in ABAP Data Dictionary (ZBLOGEMP_PROFILE_MSG )
    so follow the code and explained about each ob, structure of Msg ..
    Regards
    Chilla

  • Problem in ABAP Client Proxy

    Hai All,
    I am working on ABAP Client Proxy to RFC.
    Here i generated the proxies and wen i execute it i am able to see in sxmb_moni but its showing in Green color which is still in process.but i was unable to find the the receiver business system and receiver interface.
    I hope some HTTP connection problem.
    Can anyone explain me in detail how to create the http connection as i confused here.
    Lets say XI(sender) to R3(Receievr)
    where proxy is been created in XI system itself and also generated in XI system only.
    Can anyone suggets me here as this interface is totally asynchronous.
    Thanks,
    Kalyan.

    Hai Seshagiri,
    Thanks a lot.
    Am giving you points buddy.Its working.
    Cud u plz give me ur Email id.
    This is fine but i want implement this interface to further there i am getting errors.So that i can send u the screenshots of those.
    Thanks,
    Kalyan.
    Please read the Forum's Rules of Engagement,
    i.e.,
    [/thread/117188 [original link is broken];
    and refrain from using email correspondence as the main objective of the Forums is to share knowledge.
    SDN PI/XI Forum Moderator

  • Outbound ABAP Client Proxy

    Hi,
    Scenario - Client Proxy to JDBC.
    I am getting Purchase order details out of Client proxy which goes and updates multiple tables at JDBC. I am doing this via single service interface to update multiple tables ( multiple statement element in JDBC target structure ).
    Client Proxy
    PO HEADER
    PO DETAIL
    PO TEXT
    PO ITEM
    JDBC tables
    tbl_HEADER
    tbl_DETAIL
    tbl_TEXT
    tbl_ITEM
    Detail and ITEM tables from SAP has too many entries. When I tested in development for 14 PO header it had 1500 detaills, 500 text and 800 items.  So i am thinking of breaking down of these PO headers in abap client proxy to trigger the abap proxy for every 50 PO header. So that it would not end up with huge PO details and text.
    I am thinking of modifyin the abap code to send 50 PO header each time in client proxy.
    loop on PO headers.
    if lv_counter is 50.
    call method to send via client proxy.
    then next 50 records. so that we are sending in chunks. 
    PI would receive in multiple messages with consisting of 50 PO header and many item details. Does update/insert on JDBC table would affect. what precautions shd i take in PI considering update on JDBC
    Kindly suggest with any inputs. 
    Thanks in advance.

    Hi,
          You can use the update_insert option of the receiver jdbc canonical structure.
    This would ensure that rows already existing would be updated and only the delta would be inserted into the tables.
    Regards

  • Fault message handling in abap client proxy

    Hi experts,
    i have scenario like this SAPECC---XI---WEBservice
    i was decided to using the ABAP CLIENT proxy in sender side and soap adapter communication in receiver side
    i will be get the wsdl file form client
    problem is i am in bit of confusion like  am i need to create fault message for this asychronous scenario?
      how can i create the fault message for this scenario(that WSDL) and how the abaperwill  handle those error
    thanks in advance

    Hi.
    You can use fault message but it won´t return a error to your ABAP Proxy because your interface is ASSYNC. The fault message generated will stop in Adapter Engine.
    If you need a return of the error, you have to change your interface to Sync mode.
    To get more information, follow the link below:
    Fault Message Type
    http://help.sap.com/saphelp_nwpi711/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
    Best Regards.
    Bruno

  • ABAP client proxy from WSDL

    I have 2 problems in creating abap client proxies using wsdl
    1.when i try to create client proxy by giving RPC style wsdl(generated by SAP itself for a RFC) the system throws an error and not allowing to create the proxy
    2.The client proxy which i have created for a wsdl(either SAP created document type/any wsdl from commercial websites) gives an error "No receiver could be found"
    could somebody please clarify and help me to solve the problem.
    Thanks in advance.
    Vasanth.

    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

  • ABAP client proxy With Receiver JDBC Adapter

    Hello Experts,
    I am working on a scenerio ABAP client proxy With Receiver JDBC Adapter.
    The client proxy program will fetch the master data related to equipment in plant maintenance module and  will update the sql database through Receiver JDBC Adapter .
    my requirement is if the equipement is created in sap then the  scheduled job has to trigger the client proxy program and send the message with status 'created'  to sql data base.
    if the equipment is modified in sap then the scheduled job has to trigger the client proxy program and send the message with status 'modify' to sql data base.
    please let me know how can i write the logic/code for this scenerio in client proxy program.
    Tables for equipment master i am using  is EQUI and fields are   ERDAT and AEDAT which is created date and modified date.
    fields for scheduling start date is tbtcp-sdldate.
    Thanks in advance.
    Ram.

    Hello Ram,
       Here you can check if updated date field is not empty then send status as created and if this field is not blank then send status as modified record.
    Monica

  • ABAP client proxy wildcard/unicode problem

    Hello,
    i have an abap client proxy. The target system is a non sap system. For one input field of the request, a wildcard search is possible (with sign %, field type = string).
    If i exceute the proxywith the wildcard sign '%' i get following error message:
    SOAP:1.001 CX_SXML_PARSE_ERROR...Error in conversion from UTF-8 to type C or
    type CSTRING: 48696C6673736368FC747A65 is not a
    valid UTF-8
    If i call the target system directly (for examle with jmeter), i get a response even with wildcard sign '%'.
    It seems that there is a generell conversion problem at the sap client proxy. Do you have any ideas?
    Is the problem maybe the transformation of the request, or the calling of the target system?
    Thanks a lot!

    any idea?

  • Abap client proxy to xi - no data found

    Hi experts
    I m working on abap client  proxy to file scenario where in I m sending data from R/3 system to legacy system via xi , but after doing all the configurations and running the abap program for triggering client proxy , i dont find any data on the receiver side ,
    I have activated client proxy as per Vijay Kumaris Blog
    I checked sxmb_moni on the R/3 system but shows no data selected , so no question of data being found on xi server ,
    i m really sutcked up ....dont know hwat to do , pl help
    rgds
    mojib

    Hi,
    Have u used commit work at the end of the code.
    Can you please tell me what all configuration u have done.
    U have referred the ABAP Proxy configuration:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Refer the below log for Client Proxy -
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Chirag

Maybe you are looking for