Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Module pool

$
0
0

Dear all,

How to validate old and new entries in Table control.When i try to update in new entries.it is showing cannot edit old entries.

How to correct this.Please help me.

 

LOOP AT it_demo INTO demo_conn.

           IF demo_conn-fldate >= sy-datum.

             MOVE-CORRESPONDING demo_conn TO wa_zsflight_sa.

             MODIFY zsflight_sa FROM wa_zsflight_sa.

             IF sy-subrc = 0.

               MESSAGE 'Flight Details successfully updated' TYPE 'S'.

             ENDIF.

           ENDIF.

 

           IF demo_conn-fldate < sy-datum.

             MESSAGE 'Cannot Edit Old Entries' TYPE 'S'.

           ENDIF.

          ENDLOOP.

          REFRESH CONTROL 'TC' FROM SCREEN 9220.

 

Regards

Samir


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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