How to Get Previous Month Salary for a particular employee?

Hi
I am developing a report to get the Net Pay Difference from Previous month.
I am using logical database pnp.
My question is how can we get the last month (Previous from current selected month) salary of perticular employee. I read the thread which is related to this but I can't understand the reply's. I think it is due to that I am new in ABAP and my experience in only 22 days. If someone reply with code example then it will more helpful for me.
Also If you can tell me the table name from where we can get the salary of particular month of particular employee then it will also helpful for me.
Regards
Iftikhar

Hi,
Payroll data is stored in cluster tables.
You can either use macro for retrieving the data or Function module.
1. Use FM -CU_READ_RGDIR for getting the RG directory values.Pass  
  employee Number and molga.You will get all the sequence Numbers from this
  FM.
    The last record will be the latest  one.
2.  Then Use FM - PYXX_READ_PAYROLL_RESULT for getting the payroll  
     results table.Pass cluster ID- 'IN'  ,pernr ,sequence number for which period
      you want (In your case ,current period minus   1) and
      READ_ONLY_INTERNATIONAL            = 'X',
3. You will get all the results from PAYROLL_RESULT                     = it_result
  Then you can loop this internal table like LOOP at it_result-inter-rt into wa..
Get the net pay value(/560 wage type)
Reward points if helpful.
Regards,
Manoj.

Similar Messages

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get previous month's values for current month

    Hi..
    I have a requirement on a report, where for a particular month, the key figure value should be from the previous month.
    Eg: KF1 value for Sept 2007 should come from Aug 2007, KF value for Dec 2007 should be the value of Nov 2007, etc.
    There are other key figures on the report which do not need this logic. It is only for one key figure.
    Should we do this on the backend or front-end, and how? Any tips will be appreciated.
    Thanks
    R.

    hi,
    Use a Restricted Keyfigure.
    Drag your KF1 and Drag Calandar Month with a Variable Current Cal Month with variable Offset to -1.
    KEERTTHi

  • How to get previous month data from current month values

    Hi Experts,
    I have made one universe from BW Query in which Fiscal year period is entered in interval.
    I have made a universe from that and want to develop webI reports on top of that.
    In my webI reports, i have used one cross tab. In Rows section i have added Company Code and in Column section i have used Fiscal Year/Period and in Value section i have added Sales Value. I want this value of previous month.
    Requirement:
    Ex.
                            Feb'09          Mar'09     and so on...
    Comp_code1   Sales of Jan'09         Sales of Feb'0f         and so on....
    I am getting this.
    Ex.
                            Feb'09          Mar'09     and so on...
    Comp_code1   Sales of Feb'09         Sales of Mar'09         and so on....
    I hope i have clear my requirements.
    Please help as soon as possible.
    Thanks in Advance,
    Rishit

    Hi Rishit,
    Follow the below steps to get the desired result.
    Step1: Convert your fiscal year period from char to a date in your database or in your designer however its feasible.
    to_date('substr('009.2009',2)','mm.yyyy')
    you will get the result 01 sep 2009
    Step2: Convert this format to 01/09/2009 by using date functions.
    Step3: Create a Detail associated to the 'date' field (typically your fiscal period).
    Step4: Create a cross tab Like : Rows section should have Company Code and in Column section should have 'date'(created detail) and in Value section should be Sales Value.
    you should get the following result.
    01/02/2009 01/03/2009 and so on...
    Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
    Step5: Use the following formula in your Column (date) formula bar.
    =(<date>-1)-DayNumberOfMonth(<date>-1)+1
    You will get the following result:
    01/01/2009 01/02/2009 and so on...
    Comp_code1 Sales of Feb'09 Sales of Mar'09 and so on....
    Format the cell according to your reruirement.
    Let me know if you will get any break in the above steps.
    Regards,
    Swati.

  • How to get list of customers for a particular plant.

    Hello All,
    I have a requirement of the customer aging analysis report where I need to get the details of the customer for a particular plant.I have searched the tables T001w and Kna1 but  found no  result for my requirement.can any body tell me how to solve this issue or tell me any tables which give the information regarding the customers based on a particular plant.
    Regards,
    Pavani.

    Thank u all...for the reply
    But while creating a customer in XD01 we are not maintaing any plant data in that we are just giving the sales area data and the company code data in the initial screen. A particular customer can be used for any no of plants in our organisation than in that case how is it posible to get the data for the required plant.Here the plant is not same as the customer or vendor.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Mar 16, 2009 4:19 PM

  • How to get the text elements for a particular program

    Hi All,
    I want to get the all text elements , selection texts for a particular program...How to get.
    I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
    please help me..
    Regards,
    raj

    Hi..
    You may use this statement to read the text elements:
    DATA: i_reptx  TYPE STANDARD TABLE OF textpool   WITH HEADER LINE.
    READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
    Best Regards,
    Pradeep.

  • GP :How to get only those WorkItems for a particular Process Instance ID

    Hi,
    I have to get only those work items for a particular Process Instance ID.
    Currently I am able to get all gp workitems of a status, for a user.
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(epUser1);
                   IGPWorkItem[] openItems = rtm.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_OPEN, userContext);
    Now I want to get the gp  work items for a particualr process instance ID. Is it possible?
    Please help me.
    Thanks and regards
    Smitha

    Hi Smitha,
    Can you share with us how did you solve your problem?
    I also encountered the same requirement.
    Ashish

  • How to get the transport request for a particular standard text?

    Hi,
    i want to know, how we get the transport request which associated for standard text.
    Please note already the standard text is assigned to the TR using RSTXTRAN program.
    i have a std text. i want to find the related TR for that!
    rds,
    Siva.

    Refer the link. It might tellsa about attaching to transport request but using the way you can find also -
    Re: How To Transport STANDARD TEXTS??
    Regards,
    Amit
    Reward all helpful replies

  • How to get the soap request for the particular operations in CRM

    Hi friends,
    We got the wsdl files of different modules from the crm(Oracle CRM on demand). We converted the wsdl files to java classes using axis1.4 wsdl2java tool.Now all create,update,download,lookup operations are implemented in java using the generated classes and they are working properly with the client stub.Now the problem is how can we get the soap request and response of particular operations that we submitted to CRM .The request and response should get by using java code.We are looking no tool for the soap request/response. We are working in Eclipse IDE.
    thanks in advance...

    Refer the link. It might tellsa about attaching to transport request but using the way you can find also -
    Re: How To Transport STANDARD TEXTS??
    Regards,
    Amit
    Reward all helpful replies

  • How to get the Inspection lot for a particular serial number ?

    Hi all,
    Can anyone help me to get the Instpection Lot number from the given serial number ?
    Regards,
    Shankar

    Hi again,
    1. goto se11, open the table ,
      in display mode.
    2. click button INDEXES
      on application toolbar.
      a new window will come
    3.  choose CREATE
       a new window will come
    4. in index name, type Y01
    5. a new window will come
    6. there give the field name for serial number
    7. also give short description for the index.
    8. save and activate
    9 thats all
    regards,
    amit m.

  • Getting previous month

    could you please tell me how to get previous month?
    using sysdate gives me current date. from that i can get current month using to_char function. But how can I get the previous month?

    All you ned to remember is that there are two date units, days and months. Everything else is a multiple/fraction of these.
    To increment
    n days:    SYSDATE + n
    n hours:   SYSDATE + n/24
    n minutes: SYSDATE + n/24/60
    n seconds: SYSDATE + n/24/60/60
    n weeks:   SYSDATE + n*7
    n months:  ADD_MONTHS(SYSDATE,n)
    n years:   ADD_MONTHS(SYSDATE,12*n)

  • How can I get a monthly subscription for combining PDF files

    How can I get a monthly subscription for combining PDF files. I have been able to subscribe in the past, but now all I see is annual subscription. I do not need an annual subscription because I do not use it often enough.

    Hi paige1186,
    The Adobe PDF Pack subscription, which allows you to combine PDF, is only available at an annual rate of $89.99. We do offer month-to-month subscriptions of Acrobat Pro and Standard, but I think you'd actually come out ahead with the annual PDF Pack subscription, if you planned on combining files more than 3-4 times throughout the year.
    Best,
    Sara

  • How to Bring the Quarter Period and Previous Month Value for given Input

    Hi to all,
          I want bring Quarter Period and Previous Month value for the given Input. Plz help me on this
    Example :
    Input : 06.2008
    Output:
    Input     Prev.Month  Quarter 1   Quarter 2   Quarter 3 
    06.2008  05.2008      03.2008     12.2007     09.2008
    12.2008  11.2008      09.2008      06.2008    03.2008
      Is there any Standad Exit for this or we have to write coding ?
    Regards,
    Saran

    Hi,
    You can solve this by using Replacement path.There you have a option offsets.Here give the current period.Based on that give the number which previouse month you suppose to want.
    I think this 'll help you
    assign points if this helps
    Regards
    JT Goud

  • How to get the histoical data for newly added field in the cube?

    Hi Experts,
    I have small doubt on remodeling the infocube.
    After adding the characteristic or keyfigure  to a cube by using remodeling concept, how can I get the historical data for that particular field.
    I have searched in SDN also but I didn't get proper information.
    Please excuse me if I posted repeated question.
    helpful answer will be awarded with poitns.
    Thanks & regards,
    Venkat.

    hi
    depending on your customer need you could use the remodelling functionnality but sometimes you have no way to retrieve what you want so another option you should consider is the following:
    Advantages
    that will cost less effort and guarantee the result.
    Drawbacks
    data is redondant for a while
    space (depending on the volume of historical data)
    So here are the steps :
    step 1Adjust your extraction process according to the fields you need to add to populate the cube.
    step 2 Then create a dso next or even a cube, feed the dso with a full load with the enhanced extractor you adjusted with the new fields in step 1 only once in fact this should be one shot.
    step 3 Copy the query to the previous built  multi-provider on top of the new historical data from dso and the running live delta cube. Adjust the queries if necessary.
    optionnal Then if you want to get rid of the dso or new cube for historical data you could empty the actual one push the data from the new data provider and that's all.
    bye
    Boujema

  • How to get the monthly interest rate

    Hello!
    I have been using AppleWorks for 10 years.
    Since that time, I use a financial template named Mortgage Analyser.
    In this file, one can get the pmt if one provided the +pv, monthly interest rate and the number of periods.+
    What I get is the reverse, that is, how to get the +monthly interest rate+, if I provide the +pv, the number of periods and the pmt+?
    I think I had this in the past, but I can not find it.
    Thanks,
    Jorge Lucas (the guy from Rio Grande do Sul)

    Peter,
    I already saw that, but it does not give me what I want.
    That works only if you put a money at a savings account and DO NOT TOUCH IT for a given period.
    My need right now is to help a girl to buy a car in 36 or 48 monthly payments and calculate the real interest.
    I want to have this for any other similar buying.
    I can do it using the Mortgage Analyser template changing the MONTHLY RATE by *+try and error+* but — +since I am a High School Math Teacher+ — I would like to have the function directly.
    Another day I was looking on the Internet and it seems that there is no direct response for what I want, using AppleWorks.
    So, if I continue to use AW, I must calculate it by try and error.
    Thanks anyway!
    Jorge Lucas (the guy from Rio Grande do Sul)

Maybe you are looking for