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

getting ctc of a person

Hi all ,

I want to read latest Cost to company or salary data for an employee...

I am using pnp ldb and selection screen for master data .

I am not using selection screen 900 , because report retrieves other master data as well .

When I am using rp_provide_from_last statement for infotype 8 and based on that

using function module 'rp_fill_wagetype ' in between get pernr and end-of-selection , I am not getting ctc data. but performance is too good.

From infotype 8 all data against each wagetype is not available and hence I have to use this fm.

But when after the end-of-selection , in a loop i am using fm for each pernr without using rp_provide_from_last p0008 space pn-begda pn-endda , I am getting all the data . but performance is too slow .

Can u help me ?

Regards ,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2007 at 07:05 PM

    Could you post the portion of your code where you retrieve the CFC data?


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rob ,

      Thank you for response . I am writing like this .

      Start-of selection .

      get pernr .

      Perform select data -

      . which appends into internal table itab the required records .

      rp_provide_from_last p0105 '0010' pn-begda p_edate.

      if pnp-sw-found = 1 .

      itab-MAILID = p0105-USRID_LONG.


      rp_provide_from_last p0008 space PN-BEGDA p_edate .

      IF pnp-sw-found EQ '1'.



      APPLI = 'E'

      BEGDA = p0008-begda

      ENDDA = p0008-endda

      INFTY = '0008'

      OBJPS = ' '

      TCLAS = 'A'

      PERNR = p0001-Pernr




      PP0001 = P0001

      PP0007 = P0007

      PP0008 = P0008

      PP0014 = P0014

      PP0015 = P0015


      loop at ppbwla .

      case ppbwla-lgart .

      when '0010' . " CTC monthly

      clear i_p0001a-ctc_m .

      itab-ctc_m = ppbwla-betrg.

      endcase .


      if sy-tabix <> 0 .

      modify itab index sy-tabix transporting mailid ctc_m.



      It should modify internal table itab . itab contains structure p0001 , ctc_m like p0008-betrg .

      but I find that , this is not giving me data for mailid or ctc_m and sometimes only

      for first record in the loop .. while all other things are coming correctly . Prabably not modified for correct index .

      can u help me ?

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.