Application Development 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: 

RP_FILL_WAGE_TYPE_TABLE_EXT

Former Member
0 Kudos

Hi All,

We are using RP_FILL_WAGE_TYPE_TABLE_EXT for reading infotype 8, 14 and 15.

everything is working fine but Start date and End date in the ppbwla table is not correct. It is same as the import parameters, but not the actual start date and end date in data base.

Thanks in advance.

Regards

Ravi

2 REPLIES 2

GauthamV
Active Contributor
0 Kudos

Are you passing the correct Begda,Endda to that FM ?



    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        TCLAS                 = 'A'
        PERNR                 = final_table-PERNR
        INFTY                 = '0008'
        BEGDA                 = final_table-date
        ENDDA                 = '99991231'
      TABLES
        INFTY_TAB             = T_0008
      EXCEPTIONS
      INFTY_NOT_FOUND       = 1
      OTHERS                = 2
           .
      IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    final_table-trfgr = t_0008-trfgr .
    final_table-trfgb = t_0008-trfgb .

       CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE_EXT'
        EXPORTING
          PERNR                        = final_table-PERNR
          INFTY                        = '0008'
          SUBTY                        = T_0008-SUBTY
          OBJPS                        = T_0008-OBJPS
          BEGDA                        = T_0008-BEGDA
          ENDDA                        = T_0008-ENDDA
          DLSPL                        = ' '
        TABLES
          PPBWLA                       = PPBWLA
          PP0001                       = P0001
          PP0007                       = P0007
          PP0008                       = P0008
          PP0230                       = P0230
        EXCEPTIONS
          ERROR_AT_INDIRECT_EVALUATION = 1.
 

Former Member
0 Kudos

Hi Gautham,

I am passing the right dates, Our requeirement is to get Basic Pay as on last date of month.

Ex : for sept 2010 we are passing 20100930 as start date and end date.

we are getting correct values. But start date and end date in the output table of RP_FILL_WAGE_TYPE_TABLE_EXT is 20100930.

But we need the actual start date and end date in Infty 0008.

same in case of 0014 and 0015 as well.

Thanks and Regards

Ravi

Edited by: Ravi Chandra on Sep 26, 2010 8:14 AM