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
103

Hi all,

Please help me with the selection screen,

foollowing is my req..

For ‘Comparison Periods’ user should be able to enter two payroll period in the form <Payroll Month1> <Payroll Year1> < Payroll Month2> <Payroll Year2>

Please help

Thanx in advance,

Amruta

5 REPLIES 5

former_member708410
Contributor
0 Kudos
72

Hi,

use this code

SELECT-OPTIONS:S_SPMON FOR S001-SPMON.

Press f4 U will get year and month as input.

Reward if helpful.

Regards,

Kumar

Former Member
0 Kudos
72

Hi,

Try the following piece of code:

SELECTION-SCREEN BEGIN OF line.

SELECTION-SCREEN POSITION 23.

PARAMETERS : p_period type bkpf-monat,

p_year type bkpf-gjahr.

SELECTION-SCREEN POSITION 50.

PARAMETERS : p_peri1 type bkpf-monat,

p_year1 type bkpf-gjahr.

SELECTION-SCREEN END OF line.

Please reward points if helpful.

Thanks,

Asha

Former Member
0 Kudos
72

hi,

i think you develop screen for your requirement . it not develop with selection screen . go to screen program .

if you develop a report for HR MODULE then develop infotype in transaction PM 01.

regards,

pankaj

Former Member
0 Kudos
72

Hi Amruta,

i think this will give much better idea...

Reward points if useful...

SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE title.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(15) comm0.

SELECTION-SCREEN COMMENT 23(7) comm1.

PARAMETERS : p_period TYPE bkpf-monat.

SELECTION-SCREEN COMMENT 35(6) comm2.

PARAMETERS : p_year TYPE bkpf-gjahr.

SELECTION-SCREEN COMMENT 60(7) comm3.

PARAMETERS : p_peri1 TYPE bkpf-monat.

SELECTION-SCREEN COMMENT 72(6) comm4.

PARAMETERS :p_year1 TYPE bkpf-gjahr.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN : END OF BLOCK b2. " BLock B2 ENDs

INITIALIZATION.

title = 'Select Period'.

comm0 = 'Select Period'.

comm1 = 'Month 1'.

comm2 = 'Year 1'.

comm3 = 'Month 2'.

comm4 = 'Year 2'.

venkat_o
Active Contributor
0 Kudos
72

Hi,

Check this piece of code.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(15) text1 FOR FIELD p_per1.
PARAMETERS:p_per1  TYPE qppnp-pabrp.
PARAMETERS:p_year1 TYPE qppnp-pabrj.
SELECTION-SCREEN COMMENT 30(15) text2 FOR FIELD p_per2.
PARAMETERS:p_per2  TYPE qppnp-pabrp.
PARAMETERS:p_year2 TYPE qppnp-pabrj.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  text1 = 'Payroll period'.
  text2 = text1.

Regards,

Venkat.O