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: 

Selection-screen

Former Member
0 Kudos

Hi,

We are working on abap-hr without using LDB .

( using classes and methods).Is SAP provided any alternative for PNP selection-screen.(any standard classes ,metods).Any help in this regard is highly appreciated.

Thanks,

Gopal R

3 REPLIES 3

Former Member
0 Kudos

Refer this thread

http://www.sapdevelopment.co.uk/hr/hrhome.htm

reward if this helps.

Former Member
0 Kudos

Hi Rajgopal,

I think, there is no alternative till now for PNP selection screen in HR. either use the LDB or define your own Selection Screen.

Regards,

Anji

Former Member
0 Kudos

selection-screen begin of block PYB1 with frame title TEXT-YB1.

selection-screen begin of line.

selection-screen comment 01(27) TEXT-YTI

for field PYBEGDA modif id YA1.

selection-screen position 33 for table PERNR.

parameters: PYBEGDA like QPPNP-BEGDA

for table PERNR modif id YA1.

selection-screen comment 52(05) TEXT-BIS

for field PYENDDA modif id YA2.

selection-screen position 58 for table PERNR.

parameters: PYENDDA like QPPNP-ENDDA

for table PERNR modif id YA2.

selection-screen end of line.

  • in/für periodenauswahl

parameters: PYVW0_0 like QPPNP-TIMR1 radiobutton group $YV1

for table PERNR modif id YB1.

parameters: PYVW1_0 like QPPNP-TIMR1 radiobutton group $YV1

for table PERNR modif id YB2.

parameters: PYVW2_0 like QPPNP-TIMR1 radiobutton group $YV1

for table PERNR modif id YB3.

select-options: PYPAYTY for PYTIMESCREEN-PAYTY

no intervals modif id YC1.

select-options: PYPAYID for PYTIMESCREEN-PAYID

no intervals modif id YC2.

selection-screen begin of line.

selection-screen pushbutton 01(25) TEXT-BLP user-command $PER

for table PERNR modif id YD1.

selection-screen end of line.

selection-screen end of block PYB1.

**period******************************************

selection-screen begin of block PYB3 with frame title TEXT-YB3.

parameters: PYXABKR like QPPNP-XABKR "Payroll area

for table PERNR modif id YE1.

selection-screen begin of line. "Aktuelle Periode

parameters: PYPA03R0 like QPPNP-TIMR9 radiobutton group $YBP

for table PERNR modif id YE2.

selection-screen comment 04(20) TEXT-YCU

for field PYPA03R0 modif id YE2.

selection-screen end of line.

selection-screen begin of line. "Other Periods from... to....

parameters: PYPA03R1 like QPPNP-TIMRA radiobutton group $YBP

for table PERNR modif id YE3.

selection-screen comment 04(20) TEXT-YIP

for field PYPA03R1 modif id YE3.

selection-screen position 31 for table PERNR.

selection-screen comment (30) PNPABPJ0 for field PYABRP0

modif id YE3

visible length 1.

selection-screen position 33 for table PERNR.

parameters: PYABRP0 like QPPNP-PABRP

for table PERNR modif id YE3.

selection-screen position 36 for table PERNR.

parameters: PYABRJ0 like QPPNP-PABRJ

for table PERNR modif id YE3.

selection-screen position 56 for table PERNR.

selection-screen comment (30) PNPABPJ1 for field PYABRP1

modif id YE4

visible length 1.

selection-screen position 58 for table PERNR.

parameters: PYABRP1 like QPPNP-PABRP

for table PERNR modif id YE4.

selection-screen position 61 for table PERNR.

parameters: PYABRJ1 like QPPNP-PABRJ

for table PERNR modif id YE4.

selection-screen end of line.

parameters: PYVW0_1 like QPPNP-TIMR1 radiobutton group $YV2

for table PERNR modif id YF1.

parameters: PYVW1_1 like QPPNP-TIMR1 radiobutton group $YV2

for table PERNR modif id YF2.

selection-screen begin of line.

selection-screen pushbutton 01(25) TEXT-BLT user-command $TIM

for table PERNR modif id YD2.

selection-screen end of line.

selection-screen end of block PYB3.

      • Employee ******************************************

*achtung: hier komponente, im pyorgfields datenelement !!!!

selection-screen begin of block PYB2 with frame title TEXT-YB2.

select-options: PYPERNR for PYORGSCREEN-PERNR no intervals modif id RES

matchcode object PREM.

select-options: PYABKRS for PYORGSCREEN-ABKRS no intervals modif id RES.

select-options: PYBUKRS for PYORGSCREEN-BUKRS no intervals modif id RES.

select-options: PYJUPER for PYORGSCREEN-JUPER no intervals modif id RES.

select-options: PYWERKS for PYORGSCREEN-WERKS no intervals modif id RES.

select-options: PYBTRTL for PYORGSCREEN-BTRTL no intervals modif id RES.

select-options: PYKOSTL for PYORGSCREEN-KOSTL no intervals modif id RES.

select-options: PYPERSG for PYORGSCREEN-PERSG no intervals modif id RES.

select-options: PYPERSK for PYORGSCREEN-PERSK no intervals modif id RES.

select-options: PYSEQNR for PYORGSCREEN-SEQNR no intervals modif id RES.

select-options: PYSRTZA for PYORGSCREEN-SRTZA no intervals modif id RES.

selection-screen begin of line.

selection-screen pushbutton 01(25) TEXT-YA1 user-command $ARC1

for table PERNR modif id Y1A.

selection-screen end of line.

selection-screen begin of line.

selection-screen pushbutton 01(25) TEXT-YA2 user-command $ARC2

for table PERNR modif id Y2A.

selection-screen end of line.

selection-screen end of block PYB2.

      • Invisible Selecions

select-options: PYINPER for PYNOSCREEN-INPER no-display .

select-options: PYFPPER for PYNOSCREEN-FPPER no intervals no-display .

select-options: PYBONDT for PYNOSCREEN-BONDT no intervals no-display .

select-options: PYPERMO for PYNOSCREEN-PERMO no intervals no-display .

select-options: PYFPTIME for PYNOSCREEN-FPEND no intervals no-display .

select-options: PYIPTIME for PYNOSCREEN-IPEND no-display .

*SELECT-OPTIONS: PYPAYID FOR PYNOSCREEN-PAYID NO-DISPLAY .

select-options: PYPAYDT for PYNOSCREEN-PAYDT no intervals no-display .

parameters: PYEVAL like PYNOSCREEN-APPLY_CDEVAL

for table PERNR no-display.

  • in/für periodenauswahl ...1 / ...2 -> hier rein:

parameters: PYVW0 like QPPNP-TIMR1 for table PERNR no-display.

parameters: PYVW1 like QPPNP-TIMR1 for table PERNR no-display.

parameters: PYVW2 like QPPNP-TIMR1 for table PERNR no-display.

parameters: PYSCREEN for table PERNR no-display default 'T' .

  • Process modell : id of a packet

parameters: PYPARAID type PAY_PM_PARAID for table PERNR no-display.

*To store sorting selections in variant

parameters PYSORT type PNP_SORT_TAB for table PERNR no-display.

parameters PYSORTT like QPPNP-SORTT for table PERNR no-display.

*Store "more selections" in variant

parameters PYORGCUR type PYORGFIELDS_TAB for table PERNR no-display.

*Internal use in CGUI_TIME (persistence of selected temp. screen status)

parameters PYCT_PER for table PERNR no-display.

  • Store Archive yes/no selection

parameters: PYARCH like QPPNP-TIMR1 "290800

for table PERNR no-display.

this is the code for the selection-screen generated

try to chang this as per the requirement