Skip to Content
0
Former Member
May 07, 2012 at 11:56 AM

Regarding user exist zxpadu02 in pa30 transaction

45 Views

Dear Guru's,

I am working in the user exist zxpadu02 for pa30 transaction code for infotype 8.

My problem is i am entering annual salary then defaultly i would get the standard wage type /tpa with Monthly amount.

i have return the below code.

DATA: I0008 TYPE P0008,

BETRG TYPE BETRG.

CASE innnn-infty.

WHEN '0008'.

CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

EXPORTING

prelp = innnn

IMPORTING

pnnnn = i0008.

betrg = i0008-ANSAL / 12.

IF i0008-lga01 = '/TPA'.

i0008-bet01 = betrg.

i0008-ind01 = ' '.

ELSEIF i0008-lga02 = '/TPA'.

i0008-bet02 = betrg.

i0008-ind02 = ' '.

ELSEIF i0008-lga03 = '/TPA'.

i0008-bet03 = betrg.

i0008-ind03 = ' '.

ELSEIF i0008-lga04 = '/TPA'.

i0008-bet04 = betrg.

i0008-ind04 = ' '.

ELSEIF i0008-lga05 = '/TPA'.

i0008-bet05 = betrg.

i0008-ind05 = ' '.

ENDIF.

CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp

EXPORTING

pnnnn = i0008

IMPORTING

prelp = innnn.

ENDCASE.

I am not getting the value in /TPA wage type. But when ever i am giving some value for ex /TPA value 1,then press save then it will saves the details.

When I display the record it will shows the correct value like betrg = i0008-ANSAL / 12. Now my question is before saving only the wage type /TPA

value should be i0008-ANSAL / 12 after pressing enter.

I am able to see the correct value of wage type /TPA in debugging,but the value is not reflecting the pa30 screen.

Please can any body help me out.

Thanks in advance,

Kishor Kumar