Skip to Content
0
Former Member
Dec 12, 2009 at 06:13 AM

Date Condition for payment due.

26 Views

Dear All Expert's.

i wnt to calculate pending payment day. my query as follows

if 30_DAYS = 'X'.
               DELETE ITAB WHERE C_DATE > 30.
               endif.

               if 45_DAYS = 'X'.
               DELETE ITAB WHERE C_DATE > 45
               endif.

               if 60_DAYS = 'X'.
               DELETE ITAB WHERE C_DATE < 45 and C_DATE > 60.
               endif.

               if 90_DAYS = 'X'.
               DELETE ITAB WHERE C_DATE < 60 and C_DATE > 90.
               endif.

               if GT_180 = 'X'.
               DELETE ITAB WHERE C_DATE < 180.
               endif.
*          APPEND ITAB.
          ENDLOOP.

C_DATE = no of due day.

i put redio button option for due day select.

if user select 45 day option then show only data between 30 and 45 days.

Please give me idea,

Thanks

Bhavesh