DATA: i_smesg TYPE tsmesg WITH HEADER LINE.


   i_smesg-msgty = 'E'.
   i_smesg-arbgb = '00'.
   i_smesg-txtnr = '001'.
   i_smesg-msgv1 = 'test1'.
   i_smesg-msgv2 = '箱码未扫描装车'.
   i_smesg-msgv3 = ''.
   APPEND i_smesg.

 IF i_smesg[] IS NOT INITIAL.
   CLEAR i_smesg.
   i_smesg-msgty = 'E'.
   i_smesg-arbgb = '00'.
   i_smesg-txtnr = '001'.
   i_smesg-msgv1 = '下列箱码未扫描装车'.
   INSERT i_smesg INDEX 1.

   CALL FUNCTION 'FB_MESSAGES_DISPLAY_POPUP'
     EXPORTING
       it_smesg        = i_smesg[]
     EXCEPTIONS
       no_messages     = 1
       popup_cancelled = 2
       OTHERS          = 3.
   IF sy-subrc <> 0.
     RETURN.
   ENDIF.
 ENDIF.

 

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2022-02-27
  • 2021-10-07
  • 2022-02-13
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2021-05-26
  • 2021-12-07
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案