on 02-12-2007 2:08 AM
Hi,
i am testing fault message(inbound server abap proxy - sync), but
i do not know what do i set class name on exception_class_name
on CALL METHOD CL_PROXY_FAULT=>raise.
data : uname type ZXIUSER_NAME_DT_DATA1-name.
data : f1 type ref to ZXICX_FAULT_DT1.
create object f1.
data : return1 type ZXIUSER_NAME_R_DT-result.
data : standard_data type ZXIEXCHANGE_FAULT_DATA2,
detail_data type ZXIEXCHANGE_LOG_DATA2.
uname = input-USER_NAME_IB_MT-DATA-NAME.
output-USER_NAME_R_IB_MT-result = 'S'.
if uname = 'null'.
standard_data-fault_text = 'An Exception has occured'.
standard_data-fault_url = 'www.test.net'.
detail_data-severity = 'High'.
detail_data-text = 'No user filed value found from legacy'.
detail_data-id = '01'.
detail_data-url = 'Usernull'.
APPEND detail_data TO standard_data-fault_detail.
CALL METHOD CL_PROXY_FAULT=>raise
EXPORTING
exception_class_name = f1. *********************** f1 - syntax error
CL_PROXY_FAULT=>SHOW.
thanks
dennis.
Hi,
I am also working on a similar scenario.
I have one doubt here...What is to be send in these fields :
standard_data-fault_text = 'An Exception has occured'.
standard_data-fault_url = 'www.test.net'.
detail_data-severity = 'High'.
detail_data-text = 'No user filed value found from legacy'.
detail_data-id = '01'.
detail_data-url = 'Usernull'.
What is severity, fault_text,fault_URL,data_text,......?
Plz help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As suggested use,
RAISE EXCEPTION TYPE <Name of Exception Class>
EXPORTING
standard = l_standard_data
addition = l_additional_data.
Alternatively try the below option.
Give the class name of Exception class generated due to FaultMessage Type in XI.
Go to SPROXY. Go to ur NameSpace. Choose faultMessage type. There will be an exception class generated for this FaultMessage. Use that Exception class name in ur call.
Regards,
Sudharshan
Message was edited by:
Sudharshan Aravamudan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i got syntax error as below ;
"Statement "CL_PROXY_FAULT=>SHOW is not defined. check your spelling"
please let me know what is wrong.
my scenario java proxy to abap proxy sync.
data : uname type ZXIUSER_NAME_DT_DATA1-name.
data : f1 type ref to ZXICX_FAULT_DT1.
data : return1 type ZXIUSER_NAME_R_DT-result.
data : standard_data type ZXIEXCHANGE_FAULT_DATA2,
detail_data type ZXIEXCHANGE_LOG_DATA2.
uname = input-USER_NAME_IB_MT-DATA-NAME.
output-USER_NAME_R_IB_MT-result = 'S'.
if uname = 'null'.
standard_data-fault_text = 'An Exception has occured'.
standard_data-fault_url = 'www.test.net'.
detail_data-severity = 'High'.
detail_data-text = 'No user filed value found from dd.
detail_data-id = '01'.
detail_data-url = 'Usernull'.
APPEND detail_data TO standard_data-fault_detail.
RAISE EXCEPTION TYPE ZXICX_FAULT_DT1
EXPORTING
standard = standard_data.
CL_PROXY_FAULT=>SHOW.
endif.
null
Hi,
check the Signature of the method. It has got Importing and export parameters. You need to provide correct Import and export to that method.
For Example.
data: app_fault type ref to CX_AI_APPLICATION_FAULT,f_DISPLAY type ref to CL_PROXY_FAULT_DISPLAY, container type ref to CL_GUI_CONTAINER.
CALL METHOD CL_PROXY_FAULT=>SHOW
EXPORTING
FAULT = app_fault
CONTAINER = container
IMPORTING
FAULT_DISPLAY = f_display
.
http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
Read that link - it specifies how to fill in the details ... and also note,
<i>In the synchronous case, you can integrate a format of this type into your application on the caller side by using the method CL_PROXY_FAULT=>SHOW.</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of CALL METHOD CL_PROXY_FAULT=>raise ...... can you try,
<i>RAISE EXCEPTION TYPE zcx_dt_fault
EXPORTING
TEXTID =
PREVIOUS =
AUTOMATIC_RETRY =
CONTROLLER =
NO_RETRY =
standard = standard_data
.</i> >>>> Ref. my weblog - /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1 for the same.
I hope it might help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check is the definiton of f1 is compatioble with exception_class_name.
i hope this blog will help very useful. check this and keep us posted on the result.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm</a>
and also
<a href="/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1 Message Types - A Demo</a>
PS: award poitns for helpful replies.
regds
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.