2014 Dec 21 11:46 AM
HOW TO WRITE HARD CODE to activate some code for 2months
from date: 2/01/2014
to date: 2/03/2014
Here I need to activate some code for this period can any one please suggest me
Thanks in advance
HOW TO WRITE HARD CODE to activate some code for 2months
from date: 2/01/2014
to date: 2/03/2014
Here I need to activate some code for this period can any one please suggest me
Thanks in advance
2014 Dec 21 11:55 AM
Hi Kavi,
Please describe your issue clearly. What needs to be hardcoded? Hard-coing is not a good practice. Let me know what you are trying to achieve clearly.
2014 Dec 21 12:00 PM
Hi Kavi,
Hardcoding is not better idea. If you required to do it means, instead of hardcoding, better use TVARV Table. .
Maintain the value in TVARV table as shown above. And in program read the value from table and use the same. If we do like that, we can prevent hardcoding process.
Regards
Rajkumar Narasimman
2014 Dec 21 12:06 PM
HI,
Use any table which you will use for maintaining constants or in selection screen provide the option for entering the date in which you want to have particular code working.
Then in your code, put the condition,
If sy-datum falls in date range in selection screen.
coding here..
endif.