Skip to Content
avatar image
Former Member

date from number oof days

Hi all

Please guide me how to proceed with this reqirement.

  1. Days are required in Selection screen and this will work as following,

If user enters 31 Days in selection screen, then 31 day will be deducted from current date. (System date – 31) e.g. If current date is 20/08/2007



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 21, 2007 at 01:51 PM

    you will need a user exit to perform the subtraction. create a formula variable on a hidden column that is ready for input. create a second variable on the data field you want to restrict upon and make that a user exit variable.

    in the user exit, i_step = 2, read the value entered in by the user as the formula value and subtract that from sy-datum. the resulting value will be for the 2nd variable on the date field.

    that will work,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      for that user entry variable default value should be 30.

      and it should not allow values more than 90.

      please give me step by step approach.