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

TO FETCH VALUE according to wage type

Dear Guru's,,,

Can any one suggest me how to get the amount value relating to wage type and personnel no.

i tried FM "RP_FILL_WAGE_TYPE_TABLE_EXT" but it does not work for me.

Regards

Karthik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 11:08 AM

    hi,

    What infotypes are you using?

    Reagrds

    Sumit Agarwal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 11:11 AM

    hi check the tables t511, T512W

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 11:16 AM

    Get payroll results and get the data from there .

    use FM CU_READ_RGDIR ..

    get the structure RGDIR ..

    get the seqnr from the above and pass this to the below FM :

    PYXX_READ_PAYROLL_RESULT .. read the data from RT

    which U get from the above ..

    loop at RT.

    for the wage types U have get the BETRG ..

    endloop.

    For indirect wage types get it from the FM :

    RP_EVALUATE_INDIRECTLY_P0008

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 11:18 AM

    Hi,

    try this out...

    DATA: BEGIN OF wagetypes,

    lga LIKE p0008-lga01,

    bet LIKE p0008-bet01,

    END OF wagetypes.

    SELECT SINGLE *

    FROM pa0008

    INTO i_08

    WHERE pernr = v_pernr AND

    begda = v_begda AND

    endda = v_endda.

    IF sy-subrc = 0.

    DO 40 TIMES VARYING wagetypes-lga

    FROM i_08-lga01

    NEXT i_08-lga02

    VARYING wagetypes-bet

    FROM i_08-bet01

    NEXT i_08-bet02.

    CASE wagetypes-lga.

    WHEN '5000'.

    MOVE wagetypes-bet TO v_bet01.

    WHEN '5020'.

    v_bet02 = v_bet01 * '0.3'.

    WHEN '5030'.

    v_bet03 = v_bet01 * '0.15'.

    WHEN '5060'.

    v_bet04 = v_bet01 * '0.0833'.

    IF v_bet04 GE 1250.

    v_bet04 = 1250.

    ENDIF.

    WHEN '5065'.

    v_bet05 = v_bet01 * '0.0833'.

    IF v_bet05 GE 833.

    v_bet05 = 833.

    ENDIF.

    ENDCASE.

    ENDDO.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2008 at 06:41 AM

    Dear Guru'sthanks for you help... But my requirement was met within the routine itself..

    Regards

    Karthik

    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.