10-05-2010 7:08 PM
Hi.. I have a requirement where i have developed a custom hr report using PCH LDB. The Reporting period on the selection screen defaults to All but i want to default it to Today.
Please help.
Regards,
Riya.
10-05-2010 8:30 PM
Please check if this helps
REPORT zytest.
TABLES objec.
AT SELECTION-SCREEN OUTPUT.
CLEAR pchztr_a.
pchztr_d = 'X'
Ensure that the above logic is only triggered for the first time OR I recommend to go wth the solution proposed
by Keshav. You can set the value of PCHTIMED in the INITIALIZATION event itself.
-Rajesh.
Edited by: Rajesh Paruchuru on Oct 5, 2010 2:25 PM
Added recommendation
10-05-2010 8:40 PM
The radio button selection is determined in include DBPCHF00 subroutine pbo
IF pchtimed NE space.
CASE pchtimed.
WHEN 'D'.
pchztr_d = 'X'.
WHEN 'M'.
pchztr_m = 'X'.
WHEN 'Y'.
pchztr_y = 'X'.
WHEN 'P'.
pchztr_p = 'X'.
WHEN 'F'.
pchztr_f = 'X'.
ENDCASE.
else.
pchztr_a = 'X'.
endif.
So as Rajesh said you have to mark the corresponding variable as X or pchtimed = 'D'.