cancel
Showing results for 
Search instead for 
Did you mean: 

Display custom service for an ESS user

Former Member
0 Kudos

Hi,

I need to extract Employee Education details based on his Employee id ( Pernr ) from R/3 table and display them in ESS.

For example, ESS employee 123 is accesing his data in ESS. When 123 clicks custom Education tab, it should display his details.

I have created a ABAP program and assign T-codes, services. But this program needs Employee number as Input. How do I get his Employee number in ABAP Editor ?

Thanks.

jey

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you seem to be in a lot of hurry...

check the bapi

pernr is not mandatory you can use userid only...

pass userid and go ahead.

Former Member
0 Kudos

oh, yeah... Barin

Thank you so much for the info. I got it now.

Answers (3)

Answers (3)

Former Member
0 Kudos

1. create a pgm in abap that in pbo calls bapi_getdata_employee

2. this will return you the employee number

3. and then go on with the logic you have used in your pgm.

Former Member
0 Kudos

Writing the place is absolutely right. But BAPI_EMPLOYEE_GETDATA needs an Employee number as input.

How does prg recognizes which Employee click the tab ?

Former Member
0 Kudos

bapi_employee_getdata will also help.....

ChrisSolomon
Active Contributor
0 Kudos

Find the employee number from the logged in user's sy-uname.

Use standard function:

HR_GETEMPLOYEEDATA_FROMUSER

...and you can get all kinds of wonderful info! 😃

Hope this helps.

Former Member
0 Kudos

Thanks for the info guys. But what I need exactly is,

- When an ESS user click particular tab, it should display his Education details.

- In R/3, I wrote a small program which extacts these info using <b>Personal number</b>

- How does the program come to know which Employee ( <b>Perosnal number</b>) clicks the tab ?

- How do I extract the clicked Employee number and pass it to my custom program ?

Thanks

jey