Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Fault message

Hi,

I wrote the below piece of proxy code (for filexi-server proxy). When the user doesn't present in usr01 table I should raise the exception and same should be seen in MONI through fault message structure. I have tested the interface through sproxy (proxy-->testinterface) and able to perfectly see the fault message in "payload after service". When I run it real-time I am not able to see the exception(which comes throught fault message structure) in MONI saying that user doesn't exist.shall I do any configuration to be able to see the fault message (i.e exception) in MONI ?? Below is the piece of code that I worte for server proxy. I request to see for logic and not for format. shall i implement sth in code ??

method ZGKRB_II_MI_IA_NAME_PROXY~EXECUTE_ASYNCHRONOUS.

      • **** INSERT IMPLEMENTATION HERE **** ***

DATA: user TYPE ZGKRB_MT_NAME_PROXY-MT_NAME_PROXY-DATA-NAME,

it_usr01 TYPE TABLE OF usr01,

wa_usr01 LIKE LINE OF it_usr01.

DATA: standard_data TYPE ZGKRB_EXCHANGE_FAULT_DATA2.

user = input-MT_NAME_PROXY-DATA-NAME.

IF user IS INITIAL.

standard_data-fault_text = 'No user in input file'.

standard_data-fault_url = 'www.t-systems.com'.

RAISE EXCEPTION TYPE ZGKRB_CX_MT_FAULT_NAME_PROXY

EXPORTING

standard = standard_data

ELSE.

SELECT SINGLE * FROM usr01 INTO wa_usr01 WHERE bname = user.

IF sy-subrc EQ 0.

ELSE.

standard_data-fault_text = 'No table entry'.

standard_data-fault_url = 'www.t-systems.com'.

RAISE EXCEPTION TYPE ZGKRB_CX_MT_FAULT_NAME_PROXY

EXPORTING

standard = standard_data.

ENDIF.

ENDIF.

ENDMETHOD.

Former Member
Not what you were looking for? View more on this topic or Ask a question