Skip to Content
avatar image
Former Member

proxy to file scenario

Hi,

i have created a scenario of client proxy.In sxmb_moni on ecd side it is showing me data is successfully send .But i am not able to see any message in pi.

my code for calling client proxy is below:

&----


*& Report ZPROXY

*&

&----


*&

*&

&----


REPORT ZPROXY.

TABLES:

y85emp.

DATA:

PRXY TYPE REF TO ZICO_SI_PROXY,

FS_EMPLOYEE TYPE ZIDT_PROXY,

T_EMPLOYEE TYPE table of ZIMT_PROXY with header line.

  • FS_EMPLOYEE_MT type .

data: name type string.

DATA: BEGIN OF Itab OCCURS 0,

fname type string,

lname type string,

id type i,

end of itab.

CREATE OBJECT PRXY.

*SELECT-OPTIONS:

  • abc FOR y85emp-first_name.

START-OF-SELECTION.

*SELECT first_name

  • last_name

  • emp_id FROM y85emp

  • INTO TABLE itab

  • WHERE emp_id = 1.

t_employee-MT_proxy-fname = 'karan'.

t_employee-MT_proxy-lname = 'singh'.

t_employee-MT_proxy-id = '10201'.

  • LOOP AT itab.

*

*

  • FS_EMPLOYEE-fname = abc.

  • READ TABLE itab WITH KEY fname = FS_EMPLOYEE-id.

  • IF SY-SUBRC EQ 0.

  • FS_EMPLOYEE-fname = itab-fname.

  • fS_EMPLOYEE-lname = itab-lname.

  • FS_EMPLOYEE-id = itab-id.

  • APPEND FS_EMPLOYEE .

  • ENDLOOP.

TRY.

  • FS_EMPLOYEE_MT-mt_proxy = T_EMPLOYEE.

CALL METHOD prxy->si_proxy

EXPORTING

OUTPUT = T_EMPLOYEE.

please help me out.

COMMIT WORK

.

if sy-subrc = 0.

write: 'data send '.

endif.

CATCH CX_AI_SYSTEM_FAULT .

DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .

CREATE OBJECT FAULT.

WRITE :/ FAULT->ERRORTEXT.

endtry.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 21, 2010 at 07:56 AM

    Hi,

    Please check if you have correctly configured your proxy communication setup .

    for reference please chk:

    [proxy-settings;

    [http://www.scribd.com/doc/13290530/SAP-XI-ABAP-Proxy-Communication-Client-Proxy]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 21, 2010 at 08:38 AM

    create connections between your ecd system & pi system.

    On ecd system, create HTTP RFC Destination type H in SM59

    On ecd system in sxmb_adm set ecd system as application system &

    On Pi system in sxmb_adm set pi system as integration system.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 21, 2010 at 09:13 AM

    When you execute your program it is genarating message in SAP ECC Moni??check trasction SXMB_MONI in SAP ECC,and check the status of message.if it is successfull then you will able to receive message in PI,I hope you alredy done necessary configurations in SAP ECC and PI.

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 22, 2010 at 10:39 AM

    chk sm58 of ecc ...

    Add comment
    10|10000 characters needed characters exceeded