Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI - ME_PROCESS_REQ_CUST- Error MEssages

Former Member
0 Likes
2,399
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

2 REPLIES 2
Read only

eduardo_hinojosa
Active Contributor
0 Likes
993

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

Read only

Former Member
0 Likes
993

No replies