2008 Mar 20 6:38 AM
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
2008 Mar 20 6:55 AM
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
2008 Mar 20 7:20 AM
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
2008 Mar 20 7:39 AM
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
2008 Mar 20 7:56 AM
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'.
2008 Mar 20 8:04 AM
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