ABAP HR : Regular Run + Offcycle Run

Please Help me....
With Regular run my offcycle payment is not getting summed.
There are 3 situations.
Transaction pc_payresult : Weekly
1. Regular payment for which offcycle is not carried out should not sum other offcycle payment.
2. If offcycle payment(14/03/2009) is done before(15/03/2009 - 21/03/2009) and regular run is done after that then regular run with offcycle should get summed.
3. If offcycle payment (18/03/2009) is done in the middle of week(15/03/2009 - 21/03/2009) then while summing it should consider regular run along with offcycle.
This i tried but for 2 cases it works for other it does not work.
First, look at any pay results for off cycle payments that were made
between the last pay period and this pay period.  Find results that:
1) were run after the last time HSA was run
2) were for the previous period(s) since the last time HSA was run
3) were tagged as a bonus / correction type
4) were for the correct pay area, not voided, and not re-calculated
  LOOP AT rgdir WHERE rundt <= p_prvdt
                           ( rundt > p_prvdt
                       OR ( rundt = p_prvdt AND runtm >
                           p_prvtm ) )
                      AND  (  fpbeg <= pn-begda AND fpend => pn-endda )
                        AND fpend >= p_prvdt
                        AND ( ocrsn NE ' ' AND inocr NE ' ' )
                        AND ( payty NE ' ' "bonus/correction
                        AND inpty NE ' ' )
                        AND abkrs = p0001-abkrs
                        AND voidd IS INITIAL
                        AND calcd = space.
Please suggest.

In background mostly reports are run with variants.
Variants are the values used to execute a report.
While executing a report from SE38 you pass some values to selection criteria on the scee.
Before pressing F8 or Execute save those values by clicking on the save sign.
This is known as variant.
Now while scheduling report in backgound this variant will be used.
This is all about Variants -
http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/frameset.htm
As fo your requirement you must be using PNP logical Databse.So just choose a screen with minimal or no screen elements o create a new one for your pogram by this path -
GOTO-> ATTRIBUTES->HR REPORT CATEGORY->SCREEN.
Now you require to read data from Infotype 0002 (*** & NAME), 0006 (REGION) and others as per your requirements.
Just write a simple report with GET PERNR and fetch data from the infotypes.
Check this link for a sample report -
http://www.sap-img.com/abap/list-of-employees-who-have-completed-certain-yrs-of-service.htm
Regards,
Amit

Similar Messages

  • Offcycle run and stopping the bank transfer for one employee

    Hi,
    Please help with a soultion....
    Jan 25th 2011- OFFCYCLE RUN 
    Jan 26th 2011 u2013 OFFCYCLE RUN .Bank Transfer
    Jan 26th 2011 u2013 Realised that no need to pay one additional bonus for one employee.
                              Stop payment for one employee .Amount (1000 $) in IT0267 dated on  25th Jan 2010.
    How to correct the payroll / How to adjust this amount? (Client donu2019t want to DELETE PY CULSTER)
    Pls note the following:-
    1) If I am running a correction done with -1000 $ amount in IT0267 with a different date then system generate a /561 for the next run. (Feb payroll run).Then it will deduct from the actual salary.
    2) If I am deleting IT267 and rerun the offcycle then correction is not happening.

    Hi,
    For correcting this problem, 2 ways are-
    1. Delete 267 entry and during next regular run system will take care accordingly means system will adjust /411, /418, /460 and obviously the net payment.
    2. Another way is to run off-cycle type 'B'. See note : 431473
    Regds.
    Suman

  • ABAP routine in infopackage that runs function in ECC

    Hi All
    I need to have dynamic filter in the info package
    I have program in ECC that brings me the value that I need to filter in my info packege
    I want to use  ABAP routine in infopackage that runs function in ECC and brings the value that was received from the ECC function
    Is that possible?
    Thanks

    Hi All
    my CTO found the following option
    function module that is "remote-enabled module "
    then you call CALL FUNCTION 'Y_FM_IDOC_CATSDB' DESTINATION 'SAP4.7E'
    you need to define it in SM59
    code example
    data: BEGIN OF IT_SOBSL OCCURS 0,
          SOBSL(2),
          END OF IT_SOBSL.
    DATA: ls_range type STANDARD TABLE OF rssdlrange WITH HEADER LINE.
    SELECT /BIC/ZSPEPROCI FROM /BIC/SZSPEPROCI INTO TABLE IT_SOBSL
                          WHERE /BIC/ZSPEPROCI NOT BETWEEN 'AA' AND 'ZZ'
                          AND /bic/zspeproci ne '' .
    BREAK-POINT.
    LOOP AT IT_SOBSL.
    ls_range-IOBJNM = 'SOBSL'.
    ls_range-LOW = IT_SOBSL-SOBSL.
    ls_range-SIGN = 'I'.
    ls_range-OPTION = 'EQ'.
    APPEND ls_range .
    ENDLOOP.
    loop at ls_range.
      append ls_range to l_t_range.
    endloop.

  • HT4060 Is it possible to over charge an iPad/iPhone ie charge it regularly before battery runs down as I have heard that charging too frequently damages the battery life? Thanks

    Is it possible to over-charge an iPad/iPhone ie charge it regularly before battery runs down as I have heard that charging too frequently damages the battery life? Thanks

    No.  That is not a problem for the battery.

  • I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have the same problem, I tried the solution of Dr Cox but that didn't work as he said go to system preference then mail, contacts etc. but I don't have that.  Can someone help?
    Elaine

  • My HP mini 210 will not boot up. The repair utility starts, but runs and runs with no results.

    My HP mini 210-2080NR will not boot up.  The repair utility starts, but runs and runs with no results. Safe mode start up also fails. Tried BIOS diagnostics with f10, memory passed, but HD startd but did not finish.  Diagnostic log shows rusult 0303.  Any ideas would be helpful.  Thanks.

    You can order HP recovery media here, or call HP on the phone to order 1-800-474-6836
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=bph07143&cc=us&lc=en&dlc=en#N76
    If HP no longer has Recovery Media for your model, order them here
    http://www.computersurgeons.com/Default.aspx

  • Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi i have 50 infoobjects as part of my aggregates and in that 10 infoobjects have received changes in masterdata.so in my process chain the Attribute change run in running for a long time.can i kill the job and repeat the same.

    Hi,
    I believe this would be your Prod system, so don't just cancel it but look at the job log. If it is still processing then don't kill it and wait for the change run to complete but if you can see that nothing is happening and it is stuck for a long time then you can go ahead and cancel it.
    But please be sure, as these kind of jobs can create problems if you cancel them in the middle of a job.
    Regards,
    Arminder Singh

  • Check printing is running and running.

    Hi,
    Check printing in payroll is running and running. I looked at database end , nothing slowing. pLease let me know where and what can I have to check?
    Thanks

    Hi,
    Please post the application release along with the database version and OS.
    Was this working before? If yes, any changes have been done recently?
    Can you find any locks in the database? Any errors in the database log file?
    Do you have the statistics collected up to date?
    Please enable trace as per (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]) to find out why this concurrent program takes long time to run.
    Thanks,
    Hussein

  • After Running the "Run Summarization" Required Filed is not updating in Software Updates

    hi all,
    i am facing this issue in SCCM 2012 SP1.
    I have sync the patches from WSUS successfully and it is showing. but the Required field is not updating (showing 0 for all updates) even after running the Run Summarization several times.
    Can anyone help?
    -Vasanth vignesh

    As Jorgen said, the summarization makes no difference -- the summarization task simply takes the data already in the DB and makes it available for display in the console. Thus, you need to verify the the actual client compliance scanning process.
    For the updates in question, are the clients showing as unknown compliance in the console?
    Also, have you checked the reports? As mentioned, summarization is simply for the console. Info shown in the reports is straight from the DB and does not require summarization.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Keynote is not repsonding , how do you get it to open a powerpoint that is not Keynote is not respond to. It just runs, and runs and never opens, and I have to force quit.

    Keynote is not responding.When I click on Keynote Powerpoint presentation icon that is saved on my desktop, it just runs, asnd runs, and runs. I heve to force quit it. I'v never had this happen before. Never had this problem until last night when it would run and run and run. What can I do to open this powerpoint presentation?

    I had this same problem as well. The original file had been converted from PPT, and it just got to a point where, while opening, the beach ball would just spin and spin and...
    I followed some advice I saw posted somewhere, as follows:
    1) Delete everything that is inside of Library/Caches and also ~Library/Caches; i.e., the one is accessed through "Macintosh HD:Library:Caches" and the other, ~Library:Caches folder is accessed by going to the Finder's  "Go" menu and holding down the Option key. Delete everything inside each of these Caches folders.
    2) Restart the machine and hold down all 4 keys of Command + Option + P + R while starting up, until you hear two bell chimes. After the 2nd bell chime you can let go. This resets the parameter something or other.
    Open up Keynote and open yoru file. Should work. Worked for me.

  • It takes long time to load the parameter's value when running we run report

    Hi,
    It takes long time to load the parameter's value when running we run report. What could cause this? How to troubleshoot the behavior of the report? Could I use Profile and what events should i select?
    Thanks

    Hi jori5,
    Based on my understanding, after changing the parameter, the report render very slow, right?
    In Reporting Service, the total time to generate a report include TimeDataRetreval, TimeProcessing and TimeRendering. To analyze which section take much time, we can check the table Executionlog3 in the ReportServer database. For more information, please
    refer to this article:
    More tips to improve performance of SSRS reports.
    In your scenario, since you mention the query spends less time, the delay might happens during report processing and report rendering section. So you should check Executionlog3 to check which section costs most of time, then you can refer to this article
    to optimize your report:
    Troubleshooting Reports: Report Performance.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • While run "Program - Run Financial Statement Generator" occurs errors? why

    while running "Program - Run Financial Statement Generator" occurs errors?
    Program - Publish FSG Report
    output:
    The concurrent request ID of your FSG request is 309112.
    The concurrent request ID of your XML Report Publisher request is 309113.
    hawk_BS_IFRS PC by month (PL) (Financial Statement Generator)
    can output good format xml
    but
    Program - Run Financial Statement Generator
    the phase: Completed and
    the status: Error
    anybody can give me some sugguestion?

    hello, I have known why.
    because my xml publisher's version is 5.6.1. it's not afford it .
    you can refer to metalink.
    and it's not problem in 5.6

  • AFAB - Repeat Run & Restart Run

    Hello Sap Experts
    Can anyone kindly explain the situation we need to use "Repeat Run" & "Restart Run" available in AFAB.
    Kindly expain.
    Thanks & Regards
    Deepak Garg

    Hi Deepak,
    Repeat run is used to post the depreiciation for assets in a period, for which the planned depreciation has been posted.
    Ex: You have run the dep for 01-2010, then in the same period you might have added some more assets and need to be posted depreciation for the same period again. In this case repeat run would be useful.
    Note: this repeat run can be done for the last posted period only.
    Restart option is to continue the depreciation posting run from a last dep run, which is stopped due to some errors casused at the system level.
    Thanks,
    Srinu

  • Save as pdf/image does not work. It runs and runs ... Getting no output

    In APEX 4.0 i have several Charts (Version 5.1.3).
    If i try to save them to PDF or to an image file the request runs and runs and don't come back with a result.
    Any ideas?
    Regards
    Stephan

    Hi Hillary,
    i can choose the file name and the destination for the PDF and when i confirm with the save button the page shows "Saving ..." and nothing happens.
    In the target destination i see that there is a file (FlashTmp0.tmp) with ~ 2.49 KB.
    I copied the page with chart to a new one but i have the same problem with it.
    But wait. I opened this FlashTmp0.tmp file and i saw that there is a attempt to access anychart.com which is denied by our firewall.
    Will the PDF be generated by the anychart.com page?
    And what i also established is when i delete some conditions in my SQL query the creation of the pdf works. F.e. in dial chart i have this query which works with pdf if i comment out the last (or more) line(s):
    SELECT COUNT (*) VALUE, 300 MAX, 50 LOW, 300 HIGH
    FROM plm61prod.t_pro_dat
    WHERE typ = 'CAL'
    AND entwk_erpppty >= TO_DATE ('2009-01-01', 'YYYY-MM-DD')
    AND REGEXP_INSTR (
    UPPER (sp_nummer),
    'A') = 0
    AND t_pro_dat.cur_flag = 'y'
    /*AND TO_CHAR (entwk_erpppty, 'YYYY') = TO_CHAR(SYSDATE,'YYYY')*/
    Regards
    Stephan

  • When the update software apears and I click on update it just runs and runs will not update.

    A box will pop up to update software and I click on update it has a line that scrolls across the box and it just runs and runs. it has a small box to hide the update box and I'll hide it and after a hold day it is still saying connecting to update.

    -> [[Software Update Failed#w_run-as-administrator|Run as Administrator]]
    * Now proceed to Update Firefox
    -> Software Update not working properly
    * http://kb.mozillazine.org/Software_Update#Software_Update_not_working_properly
    Check and tell if its working.
    If its still not working, then do the following:
    -> Completely Close Firefox (click Firefox button and click Exit or File Menu -> Exit)
    -> Download latest Firefox version from one of these links using some other Web Browser:
    * http://www.mozilla.com/en-US/firefox/new/
    * http://www.mozilla.com/en-US/firefox/central/
    * http://www.mozilla.com/en-US/firefox/fx/
    * http://www.mozilla.com/en-US/firefox/all.html
    -> [[Installing Firefox on Mac]]
    * http://kb.mozillazine.org/Installing_Firefox_on_Mac

Maybe you are looking for