‎2010 Aug 20 8:05 AM
Data: l_msgty TYPE sy-msgty,
l_msgno TYPE t100c-msgnr,
l_null TYPE REF TO if_message_obj_mm.
LOOP AT t_mereq_item_exkn_cj404 INTO w_mereq_item_exkn_cj404.
IF w_mereq_item_exkn_cj404-menge3 > w_mereq_item_exkn_cj404-result.
CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE'
EXPORTING
i_arbgb = 'ZGEA'
i_dtype = 'E'
i_msgnr = l_msgno
IMPORTING
e_msgty = l_msgty.
sy-msgno = l_msgno.
IF NOT l_msgty = '-'.
IF l_msgty = 'E'.
ch_failed = ' '.
ENDIF.
mmpur_message l_msgty 'ZGEA' sy-msgno
w_mereq_item_exkn_cj404-bnfpo w_mereq_item_exkn_cj404-psp_pnr w_mereq_item_exkn_cj404-menge3 w_mereq_item_exkn_cj404-result.
ENDIF.
ENDIF.
ENDLOOP.The above code results error with Four line items in the badi
*ME_process_req_cust~check.*
*But the Error message displays with only one line item.*
*How to populte the four line items in the error message popup.*
Edited by: Muthu MahaRaja on Aug 21, 2010 9:54 AM
‎2010 Aug 24 8:05 AM
Hi,
I think that after one error message, the others are not added. Try it. Solve the first error, and surely after you will have 3 errors, and you will see only one.
Read Note 310154 - ME21N/ME51N: Customer-specific check, generating error log, althouthg it is for other macros, it suggest this. This used to happens with other processes in SAP. You only know the first error. When you solve, if there are more errors, you know them one-to-one (eg: SU54 to know errors in authorizations).
I hope this helps you
Regards,
Eduardo
‎2011 Jan 27 6:42 AM