Inbound Proxy Structure

Hi,
How to create ABAP Inbound Proxy Structure with two ztables.
Regards,
Syf

hi,
Check the link
http://help.sap.com/saphelp_nw04/helpdata/en/ab/585f3c482a7331e10000000a114084/frameset.htm

Similar Messages

  • ABAP inbound proxy deep structure

    Hello Experts,
    This is regarding ABAP inbound proxy structures.
    I have a structure in XI which looks like this
    <Bill of Material> (0:unbounded)
       <Material>     (0:unbounded)
       </Material>
    </Bill of Material>
    When I generate a proxy structure for this message, a similar structure will get generated in proxy with table types for 0:unbounded types.
    Here, how can I loop through the structure and extract the materials associated with each Bill of materials? I have to call BAPI for creating material first if not exists and then BOM for each BOM in the structure.
    Any help with sample coding is really appreciated.
    Thanks
    Ricky

    Hi Ricky !
    Try with something like this:
    LOOP AT your_bill_of_material_object.
        WRITE: your_bill_of_material_object-material_field.
    END-LOOP.
    where the outer object is the bill of material and inside the loop make a reference to the current fields of the bill of material record. You may need another loop inside this one to recover each material record once your are pointing to the current bill of material.
    Regards,
    Matias.

  • Cardinality changes are not reflecting inbound proxy

    Hi Experts,
    while doing a syncronous senario in BPM with inbound proxy. i was required to change the cardinality from the existing request(source)  structure in inbound service interface,
    once i did the cardinality changes in the request(source) External definition,i could able to see the changes in PI. Then proxy is regenarated to see the new changes of the cardinality. But it reflects to the both input(request) and output(response) of the inbound proxy structure cardinality.
    Please help in this regard.
    Regards,
    Sasi

    Hi Vijaya,
    Thanks for your input, i did the same,but still its not reflecting in the output structure of the inbound proxy.
    Please provide some input to solve this issue.
    Regards,
    Mahakrishnan T.

  • How to being the coding inside an inbound proxy class for a given structure

    Hi.
    i have been assigned a task to write a code to post a GL for which i am using a BAPI but as the mapping is done in XI the structure has been provided, where the structure in nested in first table type and then line type and above all the proxy structure, so i was wondering how would i start with the coding part as it would have been easy if i had to access the structure directly from the DB table but now i have to make use of the structure provided by XI.
    can any one help to start with the coding logic, where in afterwards in can implement the rest of the logic myself,
    Thanks in advance,
    Robert.

    You should run an application in the "debug" mode. Just put "&analyze=X" at the end of the PCUI application' URL in the browser.
    Sometimes it's necessary to turn off buffering:
    • Call up the 'User maintenance' transaciton (SU01)
    • Call up the change mode for the desired user
    • Go to the 'Parameters' tab
    • Create parameter CRM_URL_BUFFER_OFF if this does not exist
    • Enter parameter value 'X' for parameter CRM_URL_BUFFER_OFF
    • Save

  • SAP PI CSV to Proxy Structure

    Hi All,
    I have scenario wherein I will be getting data from external PI system to my PI system through XI adapter so at external PI end receiver adapter will be XI adapter and at my end sender adapter will be XI adapter.
    Now through XI adapter i will be getting CSV data in single field which i have to update in my SAP. For this I flow would be as follow
    External PI to MY PI , my PI to my SAP ECC.
    Since data coming through XI adapter would be in single field and of CSV format, I will have to convert this data into a structure say ABC having 30 odd fields. I have made inbound and outbound interface for same. Now once i have xml structure i will like to map this xml structure to my proxy structure which will hit my SAP ECC. Now the issue I am facing is there are 2 scenarios now 1st  Converting CSV data to XML structure using Java/ABAP mapping and second is XML structure mapping to proxy structure. Both these interfaces are independent of each other. Whereas I want that once I have got CSV data field it should be converted into xml and then proxy structure.
    Please suggest how this could be achieved? Also if i will use ABAP mapping can i call second outbound interface inside it?

    Hello,
    Both these interfaces are independent of each other. Whereas I want that once I have got CSV data field it should be converted into xml and then proxy structure.
    I'm not sure if I get your question correctly. You can actually link these two in your operation mapping:
    1. Specify the csv structure as your Source Interface
    2. Specify the proxy structure as your Target Interface
    3. Use two mappings in this order: Java/ABAP Mapping, then normal message mapping. Take note that in your operation mapping ,you can add additional mappings by clicking the add icon.
    Hope this helps,
    Mark

  • Data is not showing in R/3 ztable whlie creating XI inbound proxy.

    Hi experts,
        I am creating an XI inbound proxy for zxx_stockyard_price_ib_dt ,
    I created Ztable(this structure contains both filename and data structure)  in R/3 and i am writing  a code in sproxy to fetch the data from XI to R/3, R/3  is to fill and store the data in a ztabe .
    XI data file is ok, however , when executed ,the input file of XI is not reflecting in the R/3 Ztable,
    I need a help in this scenario,
    here is the peice of  code,
    METHOD zxx_ii_stockyard_price_ib_mi~stockyard_price_ib_mi.
      DATA : it_zxx_stockyard_price_ib_dt        TYPE  table of zxx_stockyard_price_ib_dt ,   " input batches from file
             wa_zxx_stockyard_price_ib_dt        TYPE zxx_stockyard_price_ib_dt         ,
             i_zrva_trv_interfa                  TYPE  TABLE OF zrva_trv_interfa ,
             wa_zrva_trv_interfa                 TYPE  zrva_trv_interfa.
    ******fill input internal table from XI
      wa_zxx_stockyard_price_ib_dt = input-stockyard_price_ib_mt.
    *fetch the records from XI.
      LOOP AT it_zxx_stockyard_price_ib_dt INTO wa_zxx_stockyard_price_ib_dt.     " looping input data of XI nd moving the data to R3.
        MOVE-CORRESPONDING wa_zxx_stockyard_price_ib_dt TO wa_zrva_trv_interfa.
        APPEND wa_zrva_trv_interfa TO i_zrva_trv_interfa.
       Modify zrva_trv_interfa FROM WA_zrva_trv_interfa.
      ENDLOOP .
      IF NOT i_zrva_trv_interfa IS INITIAL.
        LOOP AT i_zrva_trv_interfa INTO wa_zrva_trv_interfa.
          MODIFY zrva_trv_interfa FROM wa_zrva_trv_interfa.
          CLEAR wa_zrva_trv_interfa.
        ENDLOOP.
      ENDIF.
      FREE i_zrva_trv_interfa.
    ENDMETHOD.
    when execute and debugged i found the values are not showing in internal table i_zrva_trv_interfa (loop at i_zrva_trv_interfa), where i am going wrong?

    > here is the peice of  code,
    >
    > METHOD zxx_ii_stockyard_price_ib_mi~stockyard_price_ib_mi.
    >   DATA : it_zxx_stockyard_price_ib_dt        TYPE  table of zxx_stockyard_price_ib_dt ,   " input batches from file
    >          wa_zxx_stockyard_price_ib_dt        TYPE zxx_stockyard_price_ib_dt         ,
    >          i_zrva_trv_interfa                  TYPE  TABLE OF zrva_trv_interfa ,
    >          wa_zrva_trv_interfa                 TYPE  zrva_trv_interfa.
    >
    > ******fill input internal table from XI
    >   wa_zxx_stockyard_price_ib_dt = input-stockyard_price_ib_mt.
    >  
    I think here at this place you have problem. As per your code you have moved the input-stockyard_price_ib_mt to wa_zxx_stockyard_price_ib_dt BUT you have not appended to the internal table it_zxx_stockyard_price_ib_dt.
    If I am wrong then make sure it_zxx_stockyard_price_ib_dt is filled correctly before you loop on it.
    also add the below check befor looping.
    IF NOT it_zxx_stockyard_price_ib_dt is INITIAL.
    > *fetch the records from XI.
    >   LOOP AT it_zxx_stockyard_price_ib_dt INTO wa_zxx_stockyard_price_ib_dt.     " looping input data of XI nd moving the data to R3.
    >     MOVE-CORRESPONDING wa_zxx_stockyard_price_ib_dt TO wa_zrva_trv_interfa.
    >     APPEND wa_zrva_trv_interfa TO i_zrva_trv_interfa.
    > *    Modify zrva_trv_interfa FROM WA_zrva_trv_interfa.
    >   ENDLOOP .
    ENDIF.    "IF NOT it_zxx_stockyard_price_ib_dt is INITIAL.
    >
    >   IF NOT i_zrva_trv_interfa IS INITIAL.
    >     LOOP AT i_zrva_trv_interfa INTO wa_zrva_trv_interfa.
    >       MODIFY zrva_trv_interfa FROM wa_zrva_trv_interfa.
    >       CLEAR wa_zrva_trv_interfa.
    >     ENDLOOP.
    >
    >   ENDIF.
    >
    >   FREE i_zrva_trv_interfa.
    >
    > ENDMETHOD.
    >
    >
    > when execute and debugged i found the values are not showing in internal table i_zrva_trv_interfa (loop at i_zrva_trv_interfa), where i am going wrong?
    Regards,
    Sarvesh

  • Upload data from abap program to abap inbound proxy

    Hi,
    I have requirement to upload flat file data to an internal table and call Inbound proxy abap class and pass all the internal table data to tha proxy clas method structure.
    So could any one help me how to send/pass data to class, Please give some e.g.
    thanks
    bobby
    Edited by: Bobby G on Nov 18, 2009 4:35 AM

    hi;
    you may follow the following ways
    1. create a report and by using GUI_upload, give the path as default , you can convert the flat file's data into internal table.
    2. call that report in proxy method by returning parameter as a table, this table can use further in the proxy.
    Another way, you have
    1.  Create a transparent table and by using the GUI_Upload in report,  you may  store the data.
    2.  from step 1, you may use data in the proxy.
    Regards
    Shashi

  • File-2-Proxy: Get file name in the inbound proxy?

    Hi,
    I need to know the file name in the inbound proxy. After a search I found that's possible mapping the file name to the target structure as it's explained in that link: [http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1731350750DB00274596951164745615End?blog=/pub/wlg/2664]
    But I need to know if there is another way to access the file name in the inbound proxy without modifying the mapping.
    Thanks.

    this is possible by a dynamic configuration (there is no other easy way)
    some references -
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1159980350DB00296046510040545862End?blog=/pub/wlg/13704
    the idea is to get the file name in runtime using the dynamic conf code and poulating it to any field that will be part of the proxy message

  • Aysnch Proxy calling from Inbound Proxy

    Hello Experts,
    My scenario:-
    Legacy sending File to Inbound proxy and from Inbound proxy I am calling the outbound proxy method to send the data back to Legacy system.
    Its like File request -Inbound Proxy- Outbound Proxy Response- File.
    FileRequest-Inbound Proxy----message in R3 as well in XI moni is successful.
    File Outbound response-File-----message in R3 is coming as empty and because of this the message fails in Xi moni.
    I tried to debug the scenario using test tab with the moni payload, I am able to see the data populated in debugging mode, But after the Outbound method is called the response message is coming is empty. commit work is also used inside outbound method.
    I tried every possible ways,but not getting any clue.
    chirag

    Hi,
    Just check...........in the inbound proxy code, the structure of the response msg is updated as the current structure of response msg.......may be you are filling the data in the old structure of response msg and then asssinging it in the outbound proxy call.......you need to fill the data in the new structure of response msg in your inbound proxy code.
    Regards,
    Rajeev Gupta

  • Synchronous Inbound Proxy: Request Responce Type

    Hi,
    I am new to ABAP and i have to work on a inbound proxy which is synchronous
    ie a request-responce scenario has to be implemented.
    Can some one guide me how to initiate.
    Regards,
    vickey
    Any replys will be highly appreciated and rewarded.

    hi
    check with this wiki page:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/09/19/request-responseSCENARIOININBOUNDPROXY 
    If there is a scenario in which the request coming from the other system and based on that request, a response is to be send from ABAP to that system, inbound proxy with Synchronous method is used.
    The class is created by the XI and in the method execute_synchronous, the ABAP code is written.
    The XI provides the input and output structures.
    The ABAP side receives the request from the input structure and sends back the response to the output structure. We will go through these steps one by one. If clearly understood the whole concept is very easy.
    Step1: To declare the internal table/work area of the type of input structure:
            wa_input like input-mt_get_notification-message_payload.
    (Here we have given the whole path as highlighted through ovals in the figure above)
    Step2:  To move the data coming from the input structure to the defined workarea/internal table:
           move input-mt_get_notification-message_payload to wa_input.
    Now the input data is in the desired internal table /work area which can be used to fetch the desired values and send the result back to XI through output structure.
    2) To send the data to XI through output structure.
    Step1: Like input structure, the naming convention for output structure also follows the
    whole path
    call method me->get_notif_or_task_details
            exporting
              p_input         = wa_input
            importing
              p_output        =
           output-mt_notification_response-message_payload-sapresponse
            changing
              it_l_bapiret2   = it_bapiret2
            exceptions
              errors_occurred = 1
              others          = 2
          if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
    (Code Snippet for Method)
    Here this method fetches the required data in the table p_output and assign it to the internal table
    SAPRESPONCE of the output structure which goes to XI.
    In this way, the synchronous method can be used for inbound proxy in case of request-response scenario.
    regards
    Manish

  • Inbound Proxy Error - JDBC to PROXY Scenario

    Hi experts,
    I am getting the following error while activating Inbound Proxy.
    Error when creating service node. [unknown]You are not authorized to use function Netzwerkadministration
    Exception of class CX_SRT_WSP_ICF
    Regards,
    Sudheer

    Hi Experts,
    Thank you for your replys.....Problem got solved......:)
    Some authorisation was missing...Now it was fine and I can activate Inbound proxy......:)
    Once again Thank you for your replys.....:)
    Regards,
    Sudheer

  • Issue while inserting a BDC program in Inbound Proxy.JDBC-- PI-- SAP.

    The scenerio is jdbcsender-sappi-inboundproxy(ECC6.0).
    The issue is related to SAP Plant Maintenance Module where  We have a requirement for creating Maintenance item
    programmatically from (SQLDatabase)Legacy Data for one of the interface.
    since there are no standard BAPIS/Idocs or function modules available from SAP side for creating the maintenance item. So I
    have written BDC program and with the help of submit statement in inbound proxy program, I am calling BDC program for
    creation of the maintenance item.
    When I tested the program independently on proxy side  the Maintenance Item is getting created successfully but when I
    executed from end-to-end ie.  SQLDATABASE->SAP PI-->SAP. The message is getting strucked into the queue and queue  got stopped on SAP.
    ECC side and the status of the message is scheduled state  on SXMB_MONI  transaction of SAP ECC.
    As the message  is in scheduled state multiple number of Maintenance Items are getting created with the same values.
    Has any one of our SAP friends, encountered this type of issue while inserting a BDC program in inbound proxy, please help 
    in fixing this issue. FYI... I am using sap pi7.0 with service pack 24 and ecc6.0
    Waiting for your kind expert guidance...
    cheers,
    Ram

    Raj,
    Thanks for the reply. I have tried registering the queues but still the same problem. the message got stuck in the queue of ECC and showing below message in queue.
    function module                                    StatusText
    SXMS_ASYNC_EXEC                  connection closed (no data)
    I have checked in the forums especially  for this issue but no one has provided the answer for this.
    Thanks and Regards
    Ram

  • Special character " (quote) in inbound proxy

    Hi folks,
    We have a scenario in which inbound proxy is implemented on SAP side. I am getting following error:-
    Error during XML => ABAP conversion (Request Message; error ID: CX_ST_DESERIALIZATION_ERROR; (/1SAI/TXS9457077FA0DEC03F30D0 XML Bytepos.: 988 XML Path: MT_SLM_INT30_LUPReviewFromLUPS(1)Title(16) Error Text: Data loss occurred when converting PROPOSED 8" U/G HRDH & ROUTE Kernel ErrorId: CONVT_DATA_LOSS)) An error occurred when deserializing in the simple transformation program /1SAI/TXS9457077FA0DEC03F30D0 Data loss occurred when converting PROPOSED 8" U/G HRDH. KHUFF GAS WELL-1050 & COMMUNICATION ROUTE FOC TO HRDH RH-K6}
    Could you please suggest me what is wrong in the data PROPOSED 8" U/G HRDH & ROUTE. I guess it is due to the use of " in the data. Could you please help me in this?
    Regards,
    Sami.

    Hi,
    The problem was with the length of that field. That field was created in XI with max length 80. During proxy generation, corresponding abap field was created with 80 char. In the message, data for that field was 81 characters At runtime, when proxy runtime tried to map the xml to corresponding abap object, it failed.
    While testing in Sproxy transaction when tried to execute after removing quote(") it was successful, as length was reduced to 80. So i went under impression that it is not working because of quote(").
    Thanks for your rersponses.

  • How to find out the number of fields in generated proxy structure?

    Hi All,
    Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
    i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
    Thanks in advance.
    Regards,
    Ujwalkumar

    U mean u want to know at runtime?
    Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
    Of course, you'll have to treat the header fields separately.
    Regards,
    Henrique.

  • Program code for inbound proxy

    Hello,
    I would like to ask for your help. I am creating an abap program for an inbound proxy to update tables.
    It doesn't get the value listed in the file. In the method section, I have created the following codes:
    DATA:  receipt TYPE zgiserdata-receipt,
                material_slip TYPE zgiserdata-matslip,
                plant TYPE zgiserdata-plant,
                material_number TYPE zgiserdata-matno,
                new_serial TYPE zgiserdata-new_serial,
                old_serial TYPE zgiserdata-old_serial,
                warrex_date TYPE zgiserdata-warrexdate,
                posting_date TYPE zgiserdata-postdate.
    Convert input parameters
      receipt = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-reciept.
      material_slip = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_slip.
      plant = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-plant.
      material_number = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-material_number.
      new_serial = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-new_serial.
      old_serial = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-old_serial.
      warrex_date = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-warrex_date.
      posting_date = input-GOODS_ISSUE_SERIALIZED_CREATE-GOODS_ISSUE-posting_date.
    Debugged on 'receipt', the value I got is 'This is a string 1' instead of the record that is in the file.
    'This is a string 2' for 'material_slip', so on and so forth.
    Checked on the XI side that the records in the file is being transmitted without any errors. I tested this through SPROXY. Got the message that is executed with no errors, however, I got the values mentioned above instead of the values in the file being sent to XI.
    Can you please help me what needs to be checked in order to have the values that are in the file being sent to XI?
    Thank you.

    Hi Jho,
    >>>Debugged on 'receipt',
    How did you try to debug the proxy? I belive you tried debugging the proxy using SPROXY transaction code. If you use SPROXY transaction code by default the values are filled as 'This is a string 1 .. n so on..
    I would suggest you to copy the xml payload from XI and then in SPROXY transaction code paste the payload and then trigger the proxy in debugging mode.
    Or search in sdn how to debug proxy. You can use that guide to debug proxy real time. Guide is also available in some SAP Note. Dont remember the Note number.
    If there is anything else you want to know let us know.
    Regards,
    Sumit

Maybe you are looking for