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

wage type calculation

Former Member
0 Likes
781

Dear Experts,

For applicant salary will be maintained in pb30 T-code 8 infotype, they may select any wage type and provide amount there, it may be getting stored sequentially in pb0008 table, but i need for 1010 wage type and i want to know in which bet-- field it's getting stored. is there any logic behind this or send some sample codes,

Thanks and Regards,

Thirukumaran. R

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
731

Hi Thirukumaran, <li> You need to handle infotype 0008 and infotype 0041 in HR programming.

 REPORT ztest_notepad.
 TABLES:pernr.
 INFOTYPES: 0008.
 DATA: BEGIN OF wagetypes,
         lga LIKE p0008-lga01,
         bet LIKE p0008-bet01,
         anz LIKE p0008-anz01,
         ein LIKE p0008-ein01,
         opk LIKE p0008-opk01,
       END OF wagetypes.

 GET pernr.
   rp_provide_from_last p0008 space pn-begda pn-endda.
   DO 20 TIMES VARYING wagetypes  FROM p0008-lga01  NEXT p0008-lga02.
     IF wagetypes-lga IS INITIAL.
       EXIT.
     ELSEIF wagetypes-lga = '1010'.
       WRITE: / wagetypes-lga, wagetypes-bet.
     ENDIF.
   ENDDO.
Thanks Venkat.O

6 REPLIES 6
Read only

venkat_o
Active Contributor
0 Likes
732

Hi Thirukumaran, <li> You need to handle infotype 0008 and infotype 0041 in HR programming.

 REPORT ztest_notepad.
 TABLES:pernr.
 INFOTYPES: 0008.
 DATA: BEGIN OF wagetypes,
         lga LIKE p0008-lga01,
         bet LIKE p0008-bet01,
         anz LIKE p0008-anz01,
         ein LIKE p0008-ein01,
         opk LIKE p0008-opk01,
       END OF wagetypes.

 GET pernr.
   rp_provide_from_last p0008 space pn-begda pn-endda.
   DO 20 TIMES VARYING wagetypes  FROM p0008-lga01  NEXT p0008-lga02.
     IF wagetypes-lga IS INITIAL.
       EXIT.
     ELSEIF wagetypes-lga = '1010'.
       WRITE: / wagetypes-lga, wagetypes-bet.
     ENDIF.
   ENDDO.
Thanks Venkat.O

Read only

Former Member
0 Likes
731

hi venkat,

thanks for ur reply, but it's giving error p008-lga and wagetype are not type compatible.

Thanks and REgards,

Thirukumaran. R

Read only

venkat_o
Active Contributor
0 Likes
731

Hi Thiru, <li>To avoid that error, Go to attributes of the program in SE38, Uncheck the Unicode checks active checkbox. <li> Check syntax. I hope that it solves ur problem. Thanks Venkat.O

Read only

0 Likes
731

 REPORT ztest_notepad.
 TABLES:pernr.
 INFOTYPES: 0008.
 DATA: BEGIN OF wagetypes,
         lga LIKE p0008-lga01,
         bet LIKE p0008-bet01,
       END OF wagetypes.
 
 GET pernr.
   rp_provide_from_last p0008 space pn-begda pn-endda.
   DO 20 TIMES 
     VARYING wagetypes-lga  FROM p0008-lga01  NEXT p0008-lga02
     varying wagetypes-bet from p008-bet01 next p0008-bet02.
     IF wagetypes-lga IS INITIAL.
       EXIT.
     ELSEIF wagetypes-lga = '1010'.
       WRITE: / wagetypes-lga, wagetypes-bet.
     ENDIF.
   ENDDO.
Read only

0 Likes
731

Unchecking the unicode is a bad idea. Unchecking the unicode on a unicode system is a worst idea.

Read only

venkat_o
Active Contributor
0 Likes
731

Thanks dear.

Venkat