Skip to Content
0

How to get errors in item details in error handling tool of AIF

Nov 24, 2016 at 12:51 PM

119

avatar image
Former Member

Hello All,

I need to get error messages in the item section (green-buttons should be replaced by red).

For this I used the below code :

CALL FUNCTION '/AIF/UTIL_ADD_MSG'
EXPORTING
msgty = gs_ers_messages-type
msgid = gs_ers_messages-id
msgno = gs_ers_messages-number
msgv1 = gs_ers_messages-message_v1
* msgv2 = gs_ers_messages-message_v2
* msgv3 = gs_ers_messages-message_v3
* msgv4 = gs_ers_messages-message_v4

parameter = lv_item_struct
row = lv_row
field = 'ALLOC_KEY_ID'
log_handle = s_log
bal_context = ls_bal_context
ignore_trace_level = 'X'
TABLES

return_tab = t_ret.

But still I get the green button only. Could you please help.

Thanks,

aif-error.png (193.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Dec 01, 2016 at 04:45 AM
0

Maintain the Data Link for the Field ALLOC_KEY_ID

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 01, 2016 at 10:27 AM
0

Thanks Ramesh. But how to do that. Any sample code would help me.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 03, 2016 at 12:01 PM
0

Try with

Define Field Mapping -> Field Name for Data Link = "ALLOC_KEY_ID"

Share
10 |10000 characters needed characters left characters exceeded