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: 

hiding some fields in default selection screen in hr abap created by pernr

Former Member
0 Kudos

Hi experts,

I have created default selection screen,in that in the Period option I wants display only 'Today'.

And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.

Thanks in advance,

mohan

3 REPLIES 3

Former Member
0 Kudos

Hi,

Look at the example code..............

selection-screen: begin of block b1 with frame title text-001.

select-options: s_pernr for pa0001-pernr, "Employee Number

s_kostl for pa0001-kostl, "Employee Cost Center

s_bgcd for zhbg-bgcd, "Business Group

e_bukrs for anlz-bukrs, "Company Code

s_sicode for adr5-tlx_number. "Site Code

selection-screen end of block b1.

For period I think we will have only 2 char.

Periods are like 1,2,3,4,.....12.

So in that you can give by default current period by using SY-DATUM.

Or give one date input field with default SY-DATUM.

Thanks.

If this helps you reward with points.

Former Member
0 Kudos

Hi,

You can change the selection screen thru Dynamic Selection.

When you execute the report, click on the button next to execute (Ctrl+f1) and change the elements.

Hope it helps.

Regards,

Shashank

Former Member
0 Kudos

hi mohan,

try this

**Local constants

CONSTANTS:

c_0 VALUE '0' ,

c_089 TYPE char3 VALUE '089',

c_091 TYPE char3 VALUE '091',

c_095 TYPE char3 VALUE '095',

c_097 TYPE char3 VALUE '097'.

*----


  • At Selection Screen

*----


at selection-screen output.

LOOP AT screen.

IF

screen-group4 = c_089 OR

screen-group4 = c_091 OR

screen-group4 = c_095 OR

screen-group4 = c_097 .

screen-active = c_0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.