2013 Nov 12 3:53 PM
Dear All,
I have a scenario where the user wants to see the system date minus the 6 days in the variable screen selection day interval variable.
Which means the user wants to see the one week date entries in the date interval variable selection.
If the report is run today then the date interval should show 6/11/2013 to 12/11/2013.
I searched for SAP exit variable for this scenario but I couldn't find any.
So thought of using Customer exit variable and call in I step 1.
Not sure what the code should be.
Please help.
Regards
Zabi
2013 Nov 12 7:43 PM
Hi.
is it a standard report or Z (custom) ??
The report should have a date field, ex: s_datum. So in ur program the logic must be sth like this.
s_datum-sign = 'I'.
s_datum-option = 'BT'.
s_datum-low = sy-datum - 6.
s_datum-high = sy-datum.
append s_datum.
Regards
Miguel
Dear All,
I have a scenario where the user wants to see the system date minus the 6 days in the variable screen selection day interval variable.
Which means the user wants to see the one week date entries in the date interval variable selection.
If the report is run today then the date interval should show 6/11/2013 to 12/11/2013.
I searched for SAP exit variable for this scenario but I couldn't find any.
So thought of using Customer exit variable and call in I step 1.
Not sure what the code should be.
Please help.
Regards
Zabi
2013 Nov 12 3:58 PM
2013 Nov 12 4:27 PM
You want to show this date in the parameters of your report?
You can use funcion "RM_GO_BACK_N_DAYS".
Use START_DATE = sy-datum and N_DAYS the number os days you want to go back.
Put the code in INITIALIZATION event.
2013 Nov 12 4:38 PM
Syed,
You can accomplish this using a Variant created for the Program.
1. Goto the Variant Attributes in :Change Mode"
2. Choose the Selection variable "D:Dynamic Date Option" for the Select option .
3. In the Column Name of the Variable choose "Current date - xxx,current date + yyy"
4. In xxx enter 6 and yyy enter 0 .
Ram
2013 Nov 12 7:45 PM
That's the best solution in my eyes - no coding necessary. Best fit for jobs which have to run on a daily basis.
2013 Nov 12 7:43 PM
Hi.
is it a standard report or Z (custom) ??
The report should have a date field, ex: s_datum. So in ur program the logic must be sth like this.
s_datum-sign = 'I'.
s_datum-option = 'BT'.
s_datum-low = sy-datum - 6.
s_datum-high = sy-datum.
append s_datum.
Regards
Miguel
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |