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: 

how to change PNPBEGDA & PNPENDDA dynamically.

jay_dalwadi
Participant
0 Kudos

i remove Period from standard screen and take  PNPBEGDA & PNPENDDA as system date .

i want to add only one field Person Number on selection screen.

in program i added this line before get pernr.

CLEAR : PN-BEGDA,PN-ENDDA.

PN-BEGDA =  SY-DATUM.

  PN-ENDDA =  SY-DATUM.

also i am making new HR Report category for Master data (infotypes).

but i dont get desire output.

if it is possible to remove Current month, Current Year, Up To day, From Today and other Period radio buttons. 

i want use only Today radio button with default selected.

1 ACCEPTED SOLUTION

jrg_wulf
Active Contributor
0 Kudos

Hi Jay,

just make a tiny Wrapper report like this:

REPORT  Z_MY_WRAPPER.

data: pernr type persno.

SELECTION-SCREEN BEGIN OF BLOCK psel with FRAME.

  SELECT-OPTIONS: s_pernr for pernr.

SELECTION-SCREEN END OF BLOCK psel.

data: repid type sy-repid value 'REPORTNAME'.

submit (repid)

with pnpbegda = sy-datum

with pnpendda = sy-datum

with pnppernr in s_pernr

and return.

You can of cours set any other selection-screen variables to yout liking.

Regards Jörg

5 REPLIES 5

jrg_wulf
Active Contributor
0 Kudos

Hi Jay,

just make a tiny Wrapper report like this:

REPORT  Z_MY_WRAPPER.

data: pernr type persno.

SELECTION-SCREEN BEGIN OF BLOCK psel with FRAME.

  SELECT-OPTIONS: s_pernr for pernr.

SELECTION-SCREEN END OF BLOCK psel.

data: repid type sy-repid value 'REPORTNAME'.

submit (repid)

with pnpbegda = sy-datum

with pnpendda = sy-datum

with pnppernr in s_pernr

and return.

You can of cours set any other selection-screen variables to yout liking.

Regards Jörg

0 Kudos

it is very usefull below is my code.

TABLES : PERNR.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: S_PERNR FOR PERNR-PERNR.

SELECT-OPTIONS: S_STAT2 FOR PERNR-STAT2.

SELECT-OPTIONS: S_BUKRS FOR PERNR-BUKRS.

SELECT-OPTIONS: S_WERKS FOR PERNR-WERKS.

SELECT-OPTIONS: S_BTRTL FOR PERNR-BTRTL.

SELECT-OPTIONS: S_PERSG FOR PERNR-PERSG.

SELECT-OPTIONS: S_PERSK FOR PERNR-PERSK.

SELECT-OPTIONS: S_ABKRS FOR PERNR-ABKRS.

SELECT-OPTIONS: S_ORGEH FOR  PERNR-ORGEH.

SELECTION-SCREEN END OF BLOCK B1.

DATA: REPID TYPE SY-REPID VALUE 'ZHR_R_SENIORITY_LIST'.

SUBMIT (REPID)

WITH PNPBEGDA = SY-DATUM

WITH PNPENDDA = SY-DATUM

WITH PNPPERNR  IN S_PERNR

WITH PNPSTAT2   IN S_STAT2

WITH PNPBUKRS  IN S_BUKRS

WITH PNPWERKS IN S_WERKS

WITH PNPBTRTL   IN S_BTRTL

WITH PNPPERSG IN S_BTRTL

WITH PNPPERSK IN S_PERSG

WITH PNPABKRS IN S_PERSK

WITH PNPORGEH IN S_ABKRS

WITH PNPORGEH IN S_ORGEH

AND RETURN.

former_member184958
Active Participant
0 Kudos

Hi,

For this find the screen field name write the logic in Selection screen output, make it as a default selection. Through HR report categories we can design our own selection screen.

Regards,

John.

former_member184569
Active Contributor
0 Kudos

It is possible to remove those radio buttons. Select the appropriate screen using the HR Report Category.

0 Kudos

Is It possible when we are using PNP database then can we remain Default Pre-Checked Today Radio button on Logical screen and remove other buttons.