Skip to Content

how to change PNPBEGDA & PNPENDDA dynamically.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 05, 2013 at 12:50 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

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

  • Posted on Sep 06, 2013 at 05:04 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 06, 2013 at 05:08 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.