PCR to call WTs from last Regular payroll

Team,
How to fetch /  Call one WT from last Payroll result.
Eg:
We are using one WT " 9XXX"  (total of 10 Wts) in regular Payroll.
In offcycle WT  "9YYY" calculating based on this WT "9XXX"
So we can process of-cycle only after processing regular Payroll , how we can call WT "9XXX" from last payroll and make ofcyle process (WT 9YYY) available at any time.
SK

Either you can use Function PORT and bring the amount of the wage type as AMT=L or else store the value of the wt in regular payroll run in a variable and use the same in off cycle

Similar Messages

  • HT1430 Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time.

    Hi I am having a problem to delete call log in iPhone 3GS from last 1 month, I have restore iPhone many times but it doesn't works, pls give me a solution , whenever I try to delete call log it's hang for some time, pls tell me how to restore call delete option

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Well last night after I had got off the phone it had froze up (never happened before) and then it it went blank. I would call it from my house phone and it would ring and vibrate but nothing showed up on the screen. I just need help please :(

    Well last night after I had got off the phone it had froze up (never happened before) and then it it went blank. I would call it from my house phone and it would ring and vibrate but nothing showed up on the screen. I don't know where to go from here I just need desperate help. Please and thank you!

    Try doing a hard reset, Hold the "Home & Power Buttons" down at same time, until you see the Apple Icon appear. Then let go of the buttons.

  • I M FACING PROBLEM USING MY EMAIL ACCOUNT IN FIRE FOX FROM LAST 2 MONTHS. PLEASE HELP ME WHWT SHOULD I DO SO I CAN ENJOY AS PREVIOUS. HERE I HAVE TO CLEAR THAT I CAN SEE MY MAILS IN IE6 REGULAR TILL NOW BUT NOT IN FIRE FOX.

    SIR, my email account is [email protected] i am using firefox since last one year and enjoying it happily. but from last two month i have trouble in seeing my mails in firefox. but there is no problem in I.E.6. so please tell me what happend. either i had made any disturbance in firefox setting on my laptop or there is any other problem.
    here i have to specify that i tried to open my friends email accounts also. but no email account is opening. i m using firefox version 4.

    forgot to mention my email account is through Cox communications (pop server) if this is important to know.
    Thanks again!

  • HT1296 I can not add a new contact to contact list from last calls

    I can not add a new contact to contact list from last calls

    That's nice.  Thanks for telling us.  Maybe you would actually like to ask a question????

  • How to save contacts from last calls

    I can not save contact names from last call

    Have you tried going to Phone > Recents and tapping on the blue "i" in a cirlce at the right of the number and then on "Create New Contact"? If so, what is happening when you try that?

  • Firefox 33.0 forgets tabs (especially pinned) from last session

    I've been a long-term user of the "Show my windows and tabs from last time" startup mode but recently it's been letting me down. I almost always have one or two pinned tabs open (an email tab and an add-on called Zotero) and up to a dozen normal tabs, but since 33.0 (fedora linux) the pinned tabs almost never come back when starting a new session.
    Furthermore, today several of my regular tabs failed to appear too. This is very frustrating as I can't remember what they were!

    Updating to 33.1 seems to have improved things.
    Edit: wrote too soon -- lost a pinned tab when restarting.

  • Issue in running regular payroll

    hi ,
    When running regular payroll for  the month of January ...payroll is running for january  offcycle payroll allong with regular payroll..please let know how to stop it.January offcycle is already runned in exit mode of last month and posted but still when reimburesement are picked when running regualr payroll.
    thanks
    J

    Hi Sikinder,
    the following is the INAP schema.
    000010 COM                         Import further paym./deducs. off
    000020 BLOCK BEG                   Process additional payments/deductions
    000030 IF         SPRN             If Offcycle processing
    000040 P0267 X011 GEN  NOAB        Import additional off-cycle payments
    000050 ELSE
    000060 P0014 X011 GEN  NOAB        Import recurring benefits/deductions
    000070 P0015 IN11 GEN  NOAB        Import additional payments
    000080 P0579                     * Import addtnl pymnts (3rd prty system)
    000090 P0057 INTP GEN  NOAB        Membership Fees
    000100 ENDIF
    000110 BLOCK END                   Process additional payments/deductions
    thanks
    J

  • Tabs from last session aren't opening when I start FireFox

    In options I have Show my windows and tabs from last time set for When Firefox starts. And I unchecked the warn me when closing multiple tabs option (although it was previously checked, and it wasn't warning me when it was checked).
    The last few days I have had 1 window with 4 tabs open (each to a different site) when I exited Firefox. The next day when I start firefox it ends up opening 4 windows each showing about:blank. My tabs are not restored.
    I have NOT cleared my history or any other information.

    Who was the pop-up offer from?
    Also, do you by any chance have chat utility installed called Digsby?

  • Flash Player Update disables "restore all windows from last session" in Safari on Mac

    I am on Mac OS 10.9.5, using safari 7.1.2.  Adobe Flash Player Update loses all safari windows when after update the installer automatically opens safari and just opens flash player website; the "restore all windows from last session" is grayed out in history. The "reopen last closed window" is also grayed out. It has been happening ever since and happened again when I just installed Flash Player ver 16.0.0.257.
    For all other normal working situation I can close safari and reopen and see that I can "restore all windows from last session" and there is no problem.  But on flash Player install (set on manual install), the problem is annoying and costs me a lot of time to restore one by one from history.  I do not think this is a Mac or a Safari issue, but will update to Mac Yosemite help if Adobe Flash Player is updated differently in that setup?
    Please help.

    Update: I called adobe flash player technical support phone number 1 877-587-1877.  They want $59 (warranty only 6 months) to fix this problem as they use a third party to solve this issue; they themselves provide no support.  Or buy the paid version.  They insist it is my network issue which I absolutely can not believe.
    It is adobe Flash player update that forces reopening of safari and wracks the safari losing all windows from last session. That is not my network.  Adobe does not have a proper safari compatible flash player update.
    Besides, this is a known problem at Adobe and they are not fixing it and want money to fix it one person at a time!  They also shared that 25% to 30% of the installations have this problem... wow!! and they still will not fix it in a general update!  I wonder if safari has a plug in update that can fix this?

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • IPhone 3G S has dropped over 83 calls in the last day. 3G is the culprit.

    It started yesterday (Oct 3rd, 2009) as a nuisance, but it grew to make my phone not useable.
    The symptoms where:
    iPhone has full bars and the 3G indicator is active.
    1: Dial a call phone waits longer than usual to dial, but gets the call through.
    2: user on the other line picks up long enough to say hello, and the phone does its hated beep,beep,beep after 3 seconds!
    3: cannot receive calls.
    4: try the internet or mail, and you get the connection error. (Obviously we have a network error here!)
    I called 1800 my iphone , and the tech basically told me to do what I had done repeatedly for 5-6 hours.
    1: shut the phone down and re-start. (No kidding, I didn't think of that!) +Did not work+...
    2: hold the power and home button until the phone restarts. +Did not work+
    3: go to settings> general> reset>reset network settings. +Did not work+
    4: go to settings> general> reset>reset all settings. +Did not work+
    5: remove the sim card and re-insert into phone. +Did not work+
    The tech tells me to bring the phone to the Apple Store. Of course there's not an a appointment available for 2 days. (thank god for Skype, even though you need Wi-Fi for it to work, it works!)
    The tech blames my software on my phone, and says that I should restore the phone to factory settings.
    Next, I decide to go a little deeper... Since my phone will not work for the next two days, I decided to do the : settings> general> reset> ERASE ALL CONTENT AND SETTINGS. (You still have your last back-up, but once you start you're in for at least and hours worth of restoration. )
    After the phone restarts from its complete erase, and comes back up as a "new" phone I simply connect it to my laptop just to reactivate it... I re-activate the phone as a "new" phone. (This means theres not one piece of third party software on the phone. This also means the phone doesnt have any settings other than factory setting.
    Confident I call my wife again... "Hi honey lets try this again...beep, beep, beep!!!"
    I just wasted another hour of my life!!!!
    Finished with apple tech support, I call AT&T tech support. I got straight to a customer service rep. She seems competent enough... She asks me whats happening, I tell her. She suggests the following:
    1: Dial #002# and press the call button. The wheel spins for a second, and then you get a screen with a bunch of error messages... She says to ignore all the messages and shut the phone down.
    2: I shut the phone down and wait 2 minutes.
    3: I re-start the phone.
    4: she has me repeat step one again.
    5: I call my wife. I talk to my wife for 35 seconds. Confident that this has worked I hang up with her, and decide to call again. the next cal I get beep, beep ,beep!!
    Ok so I'm in full tech mode now. So I decide to go "old school" and turn 3G off... (Which I should have done way earlier in the game, but I decided to give AT&T the benefit of the doubt. My mistake!!!)
    I go to settings> general> network, and turn the 3G slider to the "OFF" position. (Yep we're back to "E", not empty, but the EDGE network, which is close to empty!!!!) suddenly my phone begins to go on the internet. I start getting the beloved ding (incoming email messages, and voice mails) Hooray for me! Two multi-billion dollar companies couldn't get my phone to work, but I am at least able to get it to work in part, all with my own troubleshooting. +THIS WORKED!!!+ but now I'm on a much slower network. So I guess I can call it the iPhone "E S".
    Although apple has amazing products, they have a mayor flaw. They're freaking stubborn! Here's probably the greatest handheld device out there, but they have bogged it down by putting it on probably the most unreliable network in the US. I've gotten better service in Cancun while roaming... Seriously!
    Just like refusing to have a two button mouse for years, until demand and constant barraging from customers made them add the feature. ( and even then its not a true second "button" on laptops ) I think they are going to do the same thing with the AT&T only thing.
    Apple, you're a bunch of smart, but stubborn people!

    After calling AT&T tech support one more time, and explaining to them that the glitch was on their network, they admitted that the problem was at their tower...
    I continued to use the phone on EDGE mode for two more days until the problem was fixed.
    I even got a call back from a tech support guy asking me if my phone was working properly....
    I wish they would have admitted to the problem before I sat at the apple store for 2 hours.

  • Last Active Payroll Record

    Hi,
    I am new to ABAP-HR.
    I am using logical database PNP to get payroll. But i want to get only the last active payroll for a personnel number. How to achieve this ? Is there any Macro for this ?
    Please guide on this.
    Thanks & Regards
    Ananya

    Hi
    See the sample Payroll report to fetch the Overtime.
    We can control the Last active payroll using the RGDIR table fields
    see the sample code
    report zovertime
           line-size 252
           line-count 60(1)
           no standard page heading
           message-id zndc.
    Database Tables & Infotypes
    tables: pcl1,        " HR Cluster1
            pcl2,        " HR Cluster1
            pa0003,      " Master data - Payroll Status
            cskt,        " Cost Center Texts
            t528t,       " Positions Texts
            t513s,       " Job Titles
            pernr,       " Logical PNP
            t001p,       " Personnel Subarea
            t500p,       " Personnel Area
            t501,        " Employee Group
            t503k,       " Employee Subgroup
            csks.        " Cost Center
    infotypes:0000,0001.
    *include rpclst00.
    include rpc2rx00.
    include rpc2rxx0.
    include rpc2cd00.
    *include rpc2ps00.
    *include rpc2pt00.
    *include rpcfvp00.
    *include rpcfdc10.
    *include rpcfdc00.
    include rpppxd00.
    include rpppxd10.
    Declaration of Internal Tables
    Internal Table for Output Data
    data: begin of rep_tab occurs 0,
            kostl like pa0001-kostl,      " Cost Center
            pernr like pa0001-pernr,      " Personal Number
            ename like pa0001-ename,      " Employee Name
            ctext like cskt-ltext,        " Cost Center Text
            ptext like t528t-plstx,       " Position Text
            ot1   type p decimals 2,      " Jan OT Amount
            ot2   type p decimals 2,      " Feb OT Amount
            ot3   type p decimals 2,      " Mar OT Amount
            ot4   type p decimals 2,      " Apr OT Amount
            ot5   type p decimals 2,      " May OT Amount
            ot6   type p decimals 2,      " Jun OT Amount
            ot7   type p decimals 2,      " Jul OT Amount
            ot8   type p decimals 2,      " Aug OT Amount
            ot9   type p decimals 2,      " Sep OT Amount
            ot10  type p decimals 2,      " Oct OT Amount
            ot11  type p decimals 2,      " Nov OT Amount
            ot12  type p decimals 2,      " Dec OT Amount
            ott   type p decimals 2,      " Total OT Amount
          end of rep_tab.
    Declaration of Variables
    data: v_mon(2) type n,                   " Month
          v_no     type i,                   " Data Lines
          v_year(4)  type c,                 " Year
          v_date   like sy-datum,            " Date
          v_date1  like sy-datum,            " Date
          v_seqnr  like  pc261-seqnr.        " Sequence No.
    Declaration of Constants
    data: c_type   like hrp1001-otype  value 'S',  " Object Type
          c_kokrs  like cskt-kokrs value '1000',   " Controlling Area
          c_date1  like sy-datum value '18000101', " Date
          c_date2  like sy-datum value '99991231', " Date
          c_x       type c value 'X',              " Sign
         c_mon(2)  type c value '01',             " Month
          c_val1(2) type c value '31',             " Date
          c_val2(2) type c value '12',             " Month Type
          c_val    like p0041-dar01 value '01',    " Date Type
          c_lgart1 like p0008-lga01 value '0722',  " Wage Type
          c_lgart2 like p0008-lga01 value '0723',  " Wage Type
          c_1(2)   type n value '01',                           " Month1
          c_2(2)   type n value '02',                           " Month2
          c_3(2)   type n value '03',                           " Month3
          c_4(2)   type n value '04',                           " Month4
          c_5(2)   type n value '05',                           " Month5
          c_6(2)   type n value '06',                           " Month6
          c_7(2)   type n value '07',                           " Month7
          c_8(2)   type n value '08',                           " Month8
          c_9(2)   type n value '09',                           " Month9
          c_10(2)  type n value '10',                           " Month10
          c_11(2)  type n value '11',                           " Month11
          c_12(2)  type n value '12'.                           " Month12
    Selection-screen
    parameters:
      p_year like pc2b0-pabrj obligatory.       " Payroll Year
    At selection-screen
    at selection-screen.
    Validate the Selection Screen fields
      perform validate_screen.
    Start-of-Selection
    start-of-selection.
    Selection of Period
      perform get_period.
    Get PERNR from LDB
    get pernr.
    Get the Master data from infotype 0001
      perform get_master_data.
    Top-of-page
    top-of-page.
    Write the Report and Column Headings
      perform top_of_page.
    End-of-Page
    end-of-page.
      write /1(252) sy-uline.
    End-of-Selection
    end-of-selection.
    Display the Output Report.
      perform display_report.
    Form-Routines
    *&      Form  validate_screen
    Validation of selection Screen fields
    form validate_screen.
    Validation of Cost Center
      clear csks.
      if not pnpkostl[] is initial.
        select single kostl
          into csks-kostl
          from csks
          where kostl in pnpkostl.
        if sy-subrc <> 0.
          message e999 with 'Invalid Cost Center'(003).
        endif.
      endif.
    Validation of Personnel Number
      clear pa0003.
      if not pnppernr[] is initial.
        select pernr
        from pa0003 up to 1 rows
          into pa0003-pernr
          where pernr in pnppernr.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personal Number Entered'(002).
        endif.
      endif.
    Validation of Personnel Area
      clear t500p.
      if not pnpwerks[] is initial.
        select persa
        from t500p up to 1 rows
          into t500p-persa
          where persa in pnpwerks.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Area Entered'(001).
        endif.
      endif.
    Validation of Personnel Sub Area
      clear t001p.
      if not pnpbtrtl[] is initial.
        select btrtl
        from t001p up to 1 rows
          into t001p-btrtl
          where btrtl in pnpbtrtl.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Personnel Sub Area Entered'(037).
        endif.
      endif.
    Validation of Employee Group
      clear t501.
      if not pnppersg[] is initial.
        select persg
        from t501 up to 1 rows
          into t501-persg
          where persg in pnppersg.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Group Entered'(038).
        endif.
      endif.
    Validation of Employee Sub Group
      clear t503k.
      if not pnppersk[] is initial.
        select persk
        from t503k up to 1 rows
          into t503k-persk
          where persk in pnppersk.
        endselect.
        if sy-subrc <> 0.
          message e999 with 'Incorrect Employee Sub Group Entered'(039).
        endif.
      endif.
    endform.                  "validate_screen
    *&      Form  get_period
    Get the Correct Period based on Selection screen selection
    form get_period.
      clear: v_year,v_mon, v_date, v_date1.
      v_year = sy-datum+0(4).
      v_mon  = sy-datum+4(2).
      if pnptimr1 = c_x.      " Current Date
        pnpbegda = sy-datum.
        pnpendda = sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        concatenate v_year v_mon c_val into v_date.
        concatenate v_year v_mon c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        concatenate v_year c_val c_val into v_date.
        concatenate v_year c_val2 c_val1 into v_date1.
        pnpbegda = v_date.
        pnpendda = v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        pnpbegda = c_date1.
        pnpendda = sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        pnpbegda = sy-datum.
        pnpendda = c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = c_date1.
          pnpendda = c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          pnpbegda = c_date1.
          pnpendda = pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          pnpbegda = pnpbegda.
          pnpendda = pnpendda.
        endif.
      endif.
    endform.              "get_period
    *&      Form  get_master_data
    Get the Master Data from Database Tables PA0001,0002,0003
    form get_master_data.
    Get data from Respective Infotypes
      rp_provide_from_last p0001 space pnpbegda pnpendda.
      if p0001-kostl in pnpkostl.
        rep_tab-kostl = p0001-kostl.
        rep_tab-pernr = p0001-pernr.
        rep_tab-ename = p0001-ename.
    Get the Position Text
        clear t528t-plstx.
        select single plstx into t528t-plstx from t528t
                where plans = p0001-plans and
                      otype = c_type and
                      sprsl = sy-langu.
        if sy-subrc = 0.
          rep_tab-ptext = t528t-plstx.
        endif.
    Get the Cost Center Text
        clear cskt-ltext.
        select single ltext into cskt-ltext from cskt
                where spras = sy-langu and
                      kokrs = c_kokrs and
                      kostl = p0001-kostl.
        if sy-subrc = 0.
          rep_tab-ctext = cskt-ltext.
        endif.
    Get the Overtime Payment Data
        perform get_ot_data.
        rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +
                      rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +
                      rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +
                      rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.
        append rep_tab.
        clear  rep_tab.
      endif.
      sort rep_tab by kostl pernr.
      delete rep_tab where kostl = ' '.
      delete rep_tab where ott = 0.
    endform.                 "get_master_data
    *&      Form  get_ot_data
    Get the Overtime Payment Data
    form get_ot_data.
      cd-key = pernr-pernr.
      rp-imp-c2-cd.
      sort rgdir by seqnr.
    To get sequence number for the payroll period
      loop at rgdir where void     is initial
                        and reversal is initial
                        and outofseq is initial
                        and srtza    eq 'A'.
        if rgdir-fpper+0(4) = p_year.
    To consider offcycle run data
          if not rgdir-ocrsn is initial.
            v_seqnr = rgdir-seqnr.
            exit.
          endif.
          v_seqnr = rgdir-seqnr.
        endif.
        if not v_seqnr is initial.
          perform import_rx.
        endif.
        perform process_wagetypes.
      endloop.
    endform.                 "get_ot_data
    include rpppxm00.
    *&      Form  Import_rx
    Import the RX data from Clusters
    form import_rx.
      rx-key-pernr = cd-key-pernr.
      rx-key-seqno = v_seqnr.
      rp-init-buffer.
      rp-imp-c2-rx.
    endform.                    " Import_rx
    *&      Form  Process_wagetypes
    Calculate the Overtime Amount based on Wage types
    form process_wagetypes.
      loop at rt.
        if  rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
          if rgdir-fpper+0(4) = p_year.
            v_mon = rgdir-fpper+4(2).
            case v_mon .
              when c_1.
                rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
              when c_2.
                rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
              when c_3.
                rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
              when c_4.
                rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
              when c_5.
                rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
              when c_6.
                rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
              when c_7.
                rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
              when c_8.
                rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
              when c_9.
                rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
              when c_10.
                rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
              when c_11.
                rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
              when c_12.
                rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
            endcase.
          endif.
        endif.
      endloop.
    endform.          "process_wagetypes
    *&      Form  top_of_page
    Write the Report and Column Headings
    form top_of_page.
      format color col_heading on.
      write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,
             /1(252) 'Overtime Payments Details'(011) centered.
      format color off.
      if pnptimr1 = c_x.      " Current Date
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), sy-datum.
      elseif pnptimr2 = c_x.  " Current Month
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr3 = c_x.  " Current Year
        write: /2 'Period From     :'(036), v_date, 'To:'(006), v_date1.
      elseif pnptimr4 = c_x.  " Upto Today
        write: /2 'Period From     :'(036), c_date1, 'To:'(006), sy-datum.
      elseif pnptimr5 = c_x.  " From Today
        write: /2 'Period From     :'(036), sy-datum, 'To:'(006), c_date2.
      else.
        if ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), c_date2.
        elseif pnpbegda is initial and not pnpendda is initial.
          write: /2 'Period From     :'(036), c_date1, 'To:'(006), pnpendda.
        elseif not ( pnpbegda is initial and pnpendda is initial ).
          write: /2 'Period From     :'(036), pnpbegda,
                   'To:'(006), pnpendda.
        endif.
      endif.
      write: 219 'Report Run Date:'(018), sy-datum.
      if not pnpkostl[] is initial.
        if pnpkostl-high is initial.
          write: /2 'Cost Center     :'(004), pnpkostl-low,
                219 'Time           :'(020), sy-uzeit.
        else.
          write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),
                                    'To:'(006), pnpkostl-high,
                219 'Time           :'(020), sy-uzeit.
        endif.
      else.
        write: /219  'Time           :'(020), sy-uzeit.
      endif.
      if not pnppernr[] is initial.
        if pnppernr-high is initial.
          write: /2 'Personal Number :'(007), pnppernr-low,
                 219 'User           :'(021), sy-uname.
        else.
          write: /2 'Personal No.From:'(008),  pnppernr-low,
                                    'To:'(006), pnppernr-high,
                 219 'User           :'(021), sy-uname.
        endif.
      else.
        write: /219 'User           :'(021), sy-uname.
      endif.
      write: /219 'Page No        :'(022), sy-pagno.
      format color col_heading.
      write /1(252) sy-uline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,
           235 sy-vline,252 sy-vline.
      format color col_heading.
      write:/1 sy-vline,  2(8)  'Emp #'(019) centered,
            10 sy-vline, 11(30) 'Employee Name'(012) centered,
            41 sy-vline, 42(25) 'Position'(014) centered,
            67 sy-vline, 68(167)  sy-uline,
           235 sy-vline,236(16)  'Total'(017) centered,
           252 sy-vline.
      write:/1 sy-vline, 10 sy-vline,
            41 sy-vline,
            67 sy-vline, 68(13)  'JANUARY'(024) centered,
            81 sy-vline, 82(13)  'FEBRUARY'(025) centered,
            95 sy-vline, 96(13)  'MARCH'(026) centered,
           109 sy-vline,110(13)  'APRIL'(027) centered,
           123 sy-vline,124(13)  'MAY'(028) centered,
           137 sy-vline,138(13)  'JUNE'(029) centered,
           151 sy-vline,152(13)  'JULY'(030) centered,
           165 sy-vline,166(13)  'AUGUST'(031) centered,
           179 sy-vline,180(13)  'SEPTEMBER'(032) centered,
           193 sy-vline,194(13)  'OCTOBER'(033) centered,
           207 sy-vline,208(13)  'NOVEMBER'(034) centered,
           221 sy-vline,222(13)  'DECEMBER'(035) centered,
           235 sy-vline,252 sy-vline.
      format color off.
      write /1(252) sy-uline.
    endform.            "top_of_page
    *&      Form  Display_report
    Write the Report Output
    form display_report.
      clear v_no.
      describe table rep_tab lines v_no.
      if v_no = 0.
        message i999 with
         'No Data found for the entered Selection'(015).
      endif.
      loop at rep_tab.
        format color 3.
        at new kostl.
          read table rep_tab index sy-tabix.
          write:/1 sy-vline, 2(12) 'Cost Center:'(009),
                 14(10) rep_tab-kostl,
                 25(30) rep_tab-ctext,
                252 sy-vline.
          format color off.
          write /1(252) sy-uline.
        endat.
        format color col_normal.
        write: /1 sy-vline, 2(8)   rep_tab-pernr,
              10 sy-vline, 11(30)  rep_tab-ename,
              41 sy-vline, 42(25)  rep_tab-ptext,
              67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
              81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
              95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
             109 sy-vline,110(13)  rep_tab-ot4 no-zero,
             123 sy-vline,124(13)  rep_tab-ot5 no-zero,
             137 sy-vline,138(13)  rep_tab-ot6 no-zero,
             151 sy-vline,152(13)  rep_tab-ot7 no-zero,
             165 sy-vline,166(13)  rep_tab-ot8 no-zero,
             179 sy-vline,180(13)  rep_tab-ot9 no-zero,
             193 sy-vline,194(13)  rep_tab-ot10 no-zero,
             207 sy-vline,208(13)  rep_tab-ot11 no-zero,
             221 sy-vline,222(13)  rep_tab-ot12 no-zero,
             235 sy-vline,236(16)  rep_tab-ott no-zero,
             252 sy-vline.
        at end of kostl.
          write /1(252) sy-uline.
        endat.
        format color off.
        at last.
          sum.
          format color 1.
          write: /1 sy-vline,
                10 sy-vline, 11(30) 'Total'(017) centered,
                41 sy-vline,
                67 sy-vline, 68(13)  rep_tab-ot1 no-zero,
                81 sy-vline, 82(13)  rep_tab-ot2 no-zero,
                95 sy-vline, 96(13)  rep_tab-ot3 no-zero,
               109 sy-vline,110(13)  rep_tab-ot4 no-zero,
               123 sy-vline,124(13)  rep_tab-ot5 no-zero,
               137 sy-vline,138(13)  rep_tab-ot6 no-zero,
               151 sy-vline,152(13)  rep_tab-ot7 no-zero,
               165 sy-vline,166(13)  rep_tab-ot8 no-zero,
               179 sy-vline,180(13)  rep_tab-ot9 no-zero,
               193 sy-vline,194(13)  rep_tab-ot10 no-zero,
               207 sy-vline,208(13)  rep_tab-ot11 no-zero,
               221 sy-vline,222(13)  rep_tab-ot12 no-zero,
               235 sy-vline,236(16)  rep_tab-ott no-zero,
               252 sy-vline.
          write /1(252) sy-uline.
        endat.
        format color off.
      endloop.
    endform.          "display_report
    Reward points for useful Answers
    Regards
    Anji

  • How to view my call log from a month ago

    I have a few numbers that I need from last month and I want to view my call log history from December how do I do that?

    Contact your carrier to download your call history, you might have to log into your provider account to see the details.

  • Call RFC from java (j2ee) /  call to j2ee from R/3

    hello
    i´ve browsed the forum for some time to find how to:
    1.) call ejb from r/3 system via rfc
    2.) call rfc enabled function modules on r/3 from within an j2ee enviroment
    but i didn´t quite get it, because i was a bit confused about all the mentionend techniques
    what i found out about
    1.) use ejb (session bean) and jndi; configure RFC-Engine Service (we use sap webas)
    2.) use jco / jca
        (or all rfc enables rfm´s are available as web service, but didn´t find anything about this)
    so my question:
    are these the preferred techniques to connect j2ee (webAS) <-> r/3; if not are there any others, maybe easier methods?
    and last but not least: are there any good online tutorials for this topic?
    thanks in advance
    franz

    Just as a short partial reply.
    The generic Java --> RFC method is JCO (it will work on older versions as well), you can think of it as a JDBC driver where R/3 is the database, it behaves very similar in many ways.
    EJB development on SAP WAS is really not any different from EJB development on any other J2EE server. The deploy tool is superb. very easy to use and the JNDI registry, etc. are standard stuff...
    ABAP to EJB calls, haven't looked at this in over a year now, but back then we did a Proof Of Concept based on information at http://help.sap.com and it did work indeed. The only thing was back then that you needed to do a few tweaks to get it to work properly.
    As mentioned above, look at the JCO examples and then you can ask more specific questions once you get stuck.
    Good Luck!
    Cheers,
    Kalle

Maybe you are looking for

  • Macbook Air is not charging

    I have a macbook air that won't charge.  My first magsafe adapter wouldn't charge unless it was held at a certain angle so I went and bought a new one.  The new one I bought has the exact same problem except now it actually lights up when not held, b

  • Create an Image

    Hie.. i've browse through the forum to search a solution to my problem but i dont find any resourceful. I hope someone could help me out. Here is the problem :- I tried to create an Image using byte of array as such :- ** the message is in byte curre

  • Intermittent colour rendering problem

    In the past few weeks I've noticed a problem with my Photoshop CS5 (12.0.4) / Windows 7 64-bit setup. Maybe once a day, after using Photoshop for a while, the current document's colours will look like they're using the wrong colour space, usually loo

  • Pricing condition formula on IPC

    Hi, Here's the issue - The freight for items is calculated using scale based rates for gross weight of the items. For example, if the gross wt. for an item is 38 pounds, the rate is determined as $18 from the scale. However, if the quantity is increa

  • Need all drvier for hp 15-r25-tu window8 32bits

    i have recently installed window 8 32 bits on my hp 15-r250tu laptop.. but i am facing problem to find correct driver for it. i need all imoportant driver to work on it.. help me please