Skip to Content
author's profile photo Former Member
Former Member

How to show the employee's organizational unit in remuneration statement?

Hi experts,

I'm working on a payslip,and there are two questions to ask:

1.How to show the employee's organizational unit in remuneration statement? I didn't find a right table and right field to realize it.

2.I tried to show the notification in payslip by infotype 0128, but it didn't work. Is there any tips?

Any help will be appreciated.Thanks in advance!

Alex

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2008 at 04:43 AM

    1. You can use table P0001 to show the employee's organization info. There are severl fileds you can use. If there's no the field you want, you can use TCode: PE51_CHECKTAB to insert the field you want. But make sure that the filed is in P0001.

    2. I am not sure whether IT 0128 could be insert into the payslip. But also you can try to use PE51_CHECKTAB to see if it works for you.

    Good luck!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2008 at 04:33 AM

    Hi,

    You can get orgunit from Orgassignment table (pa0001-orgeh).

    Otherwise you can get it from hrp1001 table. querying like

    *get position of pernr.

    select single sobid into v_pos

    from hrp1001

    where otype = 'P'

    and objid = pernr

    and plvar = '01'

    and rsign = 'B'

    and relat = '008.

    and istat = '1'

    and begda le sy-datum

    and endda ge sy-datum

    and sclas = 'S'.

    *Get org unit

    select single sobid into v_orgunit

    from hrp1001

    where otype = 'S'

    and objid = v_pos

    and plvar = '01'

    and rsign = 'A'

    and relat = '003'

    and istat = '1'

    and begda le sy-datum

    and endda ge sy-datum

    and sclas = 'O'.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.