on 10-07-2005 8:50 PM
hI Gurus,
We have requirement, which we need to report based on last day of the week. We load data everyday, and want to report based on the last day of the week, for example.
Mon - 10
Tue - 20
Wed - 30
Thu - 60
Fri - 100.
I want to report on Friday (100).
Can anyone please help to achieve this without writing User exit.
I dont know ABAP much.
Thanks in Adv..
Deepak Kunavarapu
Hallo
Few questions:
1. Why do you load from Monday to thursday when there is no need to report? Maybe you can load into an ODS (Not reporting relvant) and then load only friday to your Cune
2. Create an aggregate and roll-up only Friday
3. User exit Variable on Request Number (basically you filter on the request Number)
Regards
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, USER Exit for Last day of the week. Can anyone please help me with the code, and steps to achieve this functionality.
Deepak Kunavarapu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Deepak..
below is the code, Its not perfect match for ur req. You can improvise upon it..
CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
EXPORTING
DATE_IN = report_date
IMPORTING
DATE_OUT = wk_s_date.
l_day_range = report_date - wk_s_date.
case l_day_range.
when 1.
report_date = l_report_date + 4.
when 2.
report_date = l_report_date + 3.
when 3.
report_date = l_report_date + 2.
when 4.
report_date = l_report_date + 1.
when 5.
report_date = l_report_date.
endcase.
CLEAR L_S_RANGE.
if I_VNAM = 'date_var'.
L_S_RANGE-LOW = report_date.
L_S_RANGE-OPT = 'EQ'.
endif.
L_S_RANGE-SIGN = 'I'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
Hi,
Hardly you can achieve this without user exit variable.
There are a lot of guys who could help with the code.
Do you report weekly? What time chars do you have in your infoprovider?
Best regards,
Eugene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.