‎2010 Sep 23 10:20 AM
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.
‎2010 Sep 23 10:27 AM
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.
‎2010 Sep 23 10:52 AM
Please provide your responses from ABAp program's point of view.
‎2010 Sep 23 11:29 AM
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