Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 950

Re: How to give a message in output if the same role already exists ?

$
0
0

SELECT * INTO CORRESPONDING FIELDS OF TABLE IT_T_AGR_define FROM AGR_define.

 

   IF NOT IT_T_AGR_define IS INITIAL.

     IF NOT T_FILE_ITAB IS INITIAL.

 

         LOOP AT T_FILE_ITAB.

         READ TABLE IT_T_AGR_define INTO WA_T_AGR_define WITH KEY AGR_NAME = T_FILE_ITAB-ROLE.

         IF sy-subrc eq 0.

           DELETE T_FILE_ITAB WHERE ROLE = T_FILE_ITAB-ROLE.

         ENDIF.

         IF sy-subrc eq 0.

           t_report-text   = text-l02.

           t_report-lights = '2'"Yellow if duplicate

         ENDIF.

       ENDLOOP.

       ENDIF.

       ENDIF.


***********************************************************

T_AGR_define - Structure for the table AGR_define.


Viewing all articles
Browse latest Browse all 950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>