‎2007 Jul 17 6:54 PM
Hi folks,
I have an question that I need some help. I have an report that I schedule to run on a weekly basis as a batch job. The parameters for selection on the screen is date field with Startdate and enddate. The date range is friday to friday everyweek. How can I do ths?
With the screen field as parameters I was able to do it, but need to know how to do it for a select option field because every week the ' startdate' and the 'enddate' has to change on its own since the job is scheduled.
Here is the piece of code that I was trying to do..
SELECTION-SCREEN BEGIN OF block block1 with frame title text-002.
select-options: p_date for sy-datum default sy-datum.
SELECTION-SCREEN END OF block block1.
initialization.
p_date-high = sy-datum.
p_date-low = sy-datum - 6.
and so on...
However it did not work. Any thoughts?
Thanks,
SK
‎2007 Jul 17 6:57 PM
Proceed as below:
While saving the variant, the system prompts for Variant name and description, over here you can do the following steps.
1. Check the checkbox(Selection Variable - Under L) for date selection-parameter.
2. Click on "Selection-Variables" button in application toolbar.
3. In the new screen, you will find by default the green light is under "T", click on Orange Light under "D" to make it green.
4. You will find an icon with down arrow symbol for F4 Values. Click on that.
5. Scroll down to find a value "Current date - xxx,current date + yyy". Select the same and "Choose".
6. In the next popup screen give 30 for XXX and 0 for YYY.
7. Save twice.
8. Now you will be back in selection screen, select the variant again to see the data values populated automatically.
Check out this link too...
Hope the above info helps you.
Rgds,
Naren
Message was edited by:
Naren Someneni
‎2007 Jul 17 6:57 PM
Proceed as below:
While saving the variant, the system prompts for Variant name and description, over here you can do the following steps.
1. Check the checkbox(Selection Variable - Under L) for date selection-parameter.
2. Click on "Selection-Variables" button in application toolbar.
3. In the new screen, you will find by default the green light is under "T", click on Orange Light under "D" to make it green.
4. You will find an icon with down arrow symbol for F4 Values. Click on that.
5. Scroll down to find a value "Current date - xxx,current date + yyy". Select the same and "Choose".
6. In the next popup screen give 30 for XXX and 0 for YYY.
7. Save twice.
8. Now you will be back in selection screen, select the variant again to see the data values populated automatically.
Check out this link too...
Hope the above info helps you.
Rgds,
Naren
Message was edited by:
Naren Someneni
‎2007 Jul 17 7:11 PM