Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Process data from 'XI provided proxy structure'

Former Member
0 Likes
495

Hi All,

In this scenario XI will populate proxy structure (suppose zproxy) with company code, account num, amount.

How can I receive and process those data in my function module?

Please provide your suggestions

Thanks in advance.

Anirban.

3 REPLIES 3
Read only

nirajgadre
Active Contributor
0 Likes
464

Hi,

data sent by XI will be available for you inside the Proxy method.

Generate the proxy in sproxy transaction and right the required logic inside proxy method sproxy transaction.

Read only

0 Likes
464

Please provide your responses from ABAp program's point of view.

Read only

Former Member
0 Likes
464

Hi Anirban,

If u r using PI 7.1 then the name of the proxy and name of the inbound proxy name are the same..... u need to wite the reqd. code within that method. The parameter name is input for the method. All the data are present in the INPUT parameter.



METHOD zii_image_link_ib~image_link_ib.

  DATA: l_ar_date  TYPE datum,  "Holds converted date
        l_del_date TYPE datum.  "Holds converted date

  CONSTANTS: c_success(52) TYPE c
  VALUE 'Link in the Content Repository created successfully'.
  "For Success message

l_ar_date  = input-ar_date.
l_del_date = input-del_date.
*FM called to get the data for OUTPUT
  CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
    EXPORTING
      archiv_id             = input-archiv_id
      arc_doc_id            = input-arc_doc_id
      ar_date               = l_ar_date
      ar_object             = input-ar_object
      del_date              = l_del_date
      mandant               = input-mandant
      object_id             = input-object_id
      sap_object            = input-sap_object
      doc_type              = input-doc_type
      barcode               = input-barcode
    EXCEPTIONS
      error_connectiontable = 1
      OTHERS                = 2.
  IF sy-subrc = 0."Successful

    output-archiv_connection_insert_respo = c_success.
    "Send a success message

  ELSE.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                INTO output-archiv_connection_insert_respo.
    "Send a error message

  ENDIF." CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'


ENDMETHOD. "ZII_IMAGE_LINK_IB~IMAGE_LINK_IB

Amitava