on 07-30-2008 10:07 PM
Hi All,
I would like to display exception messages returned by function modules in message manager.
Now the error messages returned by function module are as displaying as a dump which are not user friendly
CALL FUNCTION '/MM/SET_DATA'
EXPORTING
pi_flag = lv_pi_flag
pi_delegateposition = lv_pi_delegateposition
IMPORTING
pe_sflag = lv_pe_sflag
EXCEPTIONS
no_rule_info = 1
update_failed = 2
insert_failed = 3
Please let me know how I would capture the error message returned from the FM and display it no the screen
Thanks for the help
you can check the sy-subrc after the FM.
if sy-subrc = 1.
lv_txt = 'no_rule_info'.
endif.
and then pass the lv_txt to method REPORT_ATTRIBUTE_ERROR_MESSAGE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.