Application Development and Automation 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: 
Read only

Hr-ABAP

Former Member
0 Likes
380

Hi,

I'm new in hr-abap but i'm doing one task that is,

We had to add Manager name field in selection criteria( i.e selection screen) and also we should filter the output based on the employee who are working under that particular manager only.

this is my task can u plz send the code plz i tried a lot but i did't understand hr-abap coading .....

regards,

adharsh.

Hi,

I'm new in hr-abap but i'm doing one task that is,

We had to add Manager name field in selection criteria( i.e selection screen) and also we should filter the output based on the employee who are working under that particular manager only.

this is my task can u plz send the code plz i tried a lot but i did't understand hr-abap coading .....

regards,

adharsh.

1 REPLY 1
Read only

Former Member
0 Likes
356

Hi

For this scenario u need to set the rlation between .

Can u tell me the tables assocuited for this in the given fDS for you

such tht its easy to give code snippet for you.

Between i 'll give the the kind of relation we are following.

  • move Reports to name to workarea

MOVE p0001-sacha TO wa_ft_list-plsname .

CLEAR : v_sobid_1 ,

v_sobid_2 .

CLEAR : v_name2,

v_nachn ,

v_vorna ,

v_midnm.

SELECT SINGLE sobid

FROM hrp1001

INTO v_sobid_1

WHERE objid = p0001-orgeh

AND otype = c_otype

AND rsign = c_b

AND relat = c_012

AND istat = c_istat

AND plvar = c_plvar

AND begda <= pn-endda "pn-endda

AND endda >= pn-begda "pn-begda

AND sclas = c_s.

IF sy-subrc = 0 .

SELECT SINGLE sobid

FROM hrp1001

INTO v_sobid_2

WHERE objid = v_sobid_1

AND otype = c_s

AND rsign = c_a

AND relat = c_008

AND istat = c_istat

AND plvar = c_plvar

AND begda <= pn-endda "pn-endda

AND endda >= pn-begda "pn-begda

AND sclas = c_p.

IF sy-subrc = 0 .

SELECT SINGLE

nachn

vorna

midnm

FROM pa0002

INTO (v_nachn ,v_vorna ,v_midnm)

WHERE pernr = v_sobid_2

AND begda <= pn-endda "pn-endda

AND endda >= pn-begda. "pn-begda.

CONCATENATE v_nachn ',' INTO v_name2.

CONCATENATE v_name2 v_vorna v_midnm(1) INTO v_name2

SEPARATED BY space .

CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'

EXPORTING

i_input = v_name2

  • I_LANGU = 'EN'

IMPORTING

e_output = v_name2 .

wa_ft_list-reportsto = v_name2 .

ENDIF .

ENDIF .

Try it

it will help u

Regards

Rohini