Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Set default screen parameters in PCH report

Former Member
0 Kudos

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.

2 REPLIES 2

rajesh_paruchuru
Active Participant
0 Kudos

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

kesavadas_thekkillath
Active Contributor
0 Kudos

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'.