Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

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

    Maintain the Data Link for the Field ALLOC_KEY_ID

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 01, 2016 at 10:27 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 03, 2016 at 12:01 PM

    Try with

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

    Add comment
    10|10000 characters needed characters exceeded