Skip to Content
0
Former Member
Apr 19, 2014 at 02:53 PM

Module pool

23 Views

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