How to Subtract Wagetype in PCR....?

Dear All
Please suggest for the following.
I have 2 Wagetypes in Input Table as M100 and M200. I need to write a PCR which will subtract M200 from M100 and transfer the M100 to OT. M200 should be removed after the calculation.
I am not sure if there is an operator for Subtraction. Please Suggest how to achieve the same.
Thanks in advance.

Hi Garry,
You can try the following PCR
ZMN--->Name of the PCR
M200
_____ELIMI *
_____SUBWT M100(subtract the M100 from M200)
_____ADDWT M100(put M100 in out put table)
_____AMT=* (set amount in M200)
            |_____AMT*-1(Make amount zero)
            |
            I ____ADDWTEM200 (If u don't need this M200 for further processing put this in result table)
Hope this may work
Cheers
Ramesh

Similar Messages

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello,
    How can subtract a day from the presentation variable - @{system.currentTime}
    I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it?
    Thanks.

    Hi,
    Did you try the steps which I mentioned above. You can use TIMESTAMPADD function in many places in your report but I think not in title section of the title view.
    Also you can try using Narrative view instead of title view to achieve this. Follow below steos:
    * Pull another column in the report and change its fx to TIMESTAMPADD(SQL_TSI_DAY, -1, @{system.currentTime})
    * Now go to the Narrative view and add the below text in Narrative section of the view.
    Active Person Report as of @1
    Here @1 assuming the new column created is placed before all the columns in the request.
    * Also set the 'Rows to Display' as 1.
    * Delete Title view from the report and this narrative view on top of your report.
    Hope this helps.
    Thanks

  • How to subtract time from dateTime in xquery?

    How to subtract time from dateTime in xquery??
    In ALDSP i tried to use the function xf:add-days but it is showing an error saying invalid function name. I think this namespace is not valid for ALDSP. Is there is any way to add this function in ALDSP???

    xquery functions and operators documentation is here :
    http://www.w3.org/TR/xpath-functions/
    It sounds like you want to ..
    op:subtract-dayTimeDuration-from-dateTime
    this is not an xquery function that you can call, it is an xquery operation defined by the specification
    I believe you can simply use the '-' operator to use that operation.
    <newDateTime>
    { $myDateTime - $myTime }
    </newDateTime>

  • How to subtract dateTime - dateTime

    Does anyone has idea how to subtract in OracleBPEL dateTime - dateTime to get duration? I know only extension function for substracting dateTime - duration (function xp20:subtract-dayTimeDuration-from-dateTime() )

    You have to create your own Xpath function for it. Have a look to this example <ORAHOME>\integration\orabpel\samples\references\CustomXPathFunction

  • How to subtract List ?

    how to subtract List ?
    subtract rule
    List1=["a","b","c"]
    List2=["a","b","c","d"];
    List2-List1="d".
    i dont find any subtract method in ArrayList . how do i do it ?

    Because it isn't called subtract it's called removeAll(Collection c);
    list2.removeAll(list1);Leaves list2 with "d"

  • How to subtract days from day

    Hi,
    how to subtract 18 days from day : 04-10-2004
    rgds,
    Karna

    SQL> select to_date('04-10-2004','dd-mm-yyyy')-18 from dual
    SQL> /
    TO_DATE('0
    16/09/2004
    SQL>

  • How to add wagetype to RT Table?

    How to add wagetype to RT Table? Experts  Any views on this??

    Hi Priya,
    Transaction Code: PE02
    Menu Path: Human Resources --> Payroll -> Tools --> Maintenance Tools -> Rules
    Use ADDWTE* to add the wage type in RT table.
    Please refer below link for details and example.
    http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=72405
    Regards,
    Supriya

  • How to remove wagetype from RT table in PCR

    Hi,
    I have one custom wagetype 3910 which is already created in RT table. There is a scenario, if one condition comes, we need to delete the wagetype from RT table. Could anyone please let me know how we could delete the wagetype?
    I know ADDWTE* is used to add the wage type in RT table.. but now I need to delete this.
    Kindly suggest.
    Saurabh
    Note:- I somehow able to change the amount of the wagetype to  0, however now the 0 amount wagetype would get created which I want to remove.

    Hi,
    If do you want store the wage type in RT table we have to use the operation ADDWTE.
    If you donot want store the wage type in RT table we have to use the operation ADDWT * it will store in output table, if do want store in input table use the operation ADDWTI.
    If you use ADDWTL wage type store in Results table last payroll.
    Otherwise use the 20 processing class to your wage type.
    Good luck
    Devi

  • How to subtract in a calculation in Acrobat Pro 9

    I'm building a pdf with some calculations. I can do a 'sum, product,average,minimum,maximum'. But how do i subtract 2 fields?

    best solution evar. worked fine for me. thanks
    movie
    phim online media... music
    nhac online the world of
    wholesale fashion and models
    wholesale clothing and lovely
    phim han quoc film..?!!

  • How to subtract ith position of one array from the ith position of another

    Hi, everyone,
    In my program, I subract one array from another. It should be like X(i) - Y(i)
    Can someone explain to me how I can make sure that I'm subracting ith value of array 2 from the ith value of array one?  Not , for example, X(i)- Y(i+1)?
    Thank you
    Solved!
    Go to Solution.

    Hopefully, you are not doing anything more complicated than this:
    This does X(i) - Y(i).
    Message Edited by Dennis Knutson on 12-21-2009 10:59 AM
    Attachments:
    Subtract.PNG ‏2 KB

  • How to subtract in pages chart

    In the program "PAGES" I constructed a chart that requires adding two values (WHICH I CAN DO) and then subtracting another value from that product. I CAN FIND SUM but how the heck do you subtract?????? I am frustrated.

    "I constructed a chart that requires adding two values (WHICH I CAN DO) and then subtracting another value from that product. I CAN FIND SUM but how the heck do you subtract?????? I am frustrated."
    Hi Ginny,
    As you've found out, SUM function will return the sum (not the product) of the numbers listed as its arguments.
    To use SUM for subtraction, all that's needed is to attach a minus sign to the front of numbers that are to be subtracted:
    =SUM(3,2,1) returns 6, the sum of 3, 2 and 1.
    =SUM(3,-2,1) returns 2, the sum of 3, minus 2, and 1.
    You can also get those results using the arithmetic operators, instead of the SUM function.
    The 4 common arithmetic operators are +, -, * and / (respectively, add, subtract, multiply and divide), and the formula you'd write looks very much like what you'd do with pencil on paper:
    = 3 + 2 + 1 returns 6
    = 3 -  2 + 1 returns 2
    In a Table, the actual numbers are usually contained in cells of the table, and the formulas use the cell addresses of the cells containing the numbers rather than the numbers themselves.
    Regards,
    Barry

  • How to read wagetype data

    Hi All,
    I am new in HR ABAP. Plz guide me how to get information/read data from
    Wagetype 2RTH, 7RTH, 2RCU, 7RCU.
    I need to add WT 2RTH + 7RTH, WT 2RCU + 7RCU and display in report.
    Regards

    You should read the payroll result to get the wagetype amount and display in the report.
    First you have to know in which table these wage types are stored in the payroll results. EX RT or CRT or TCRT then typical steps would be to
    1. Read the RGDIR directory - use  CU_READ_RGDIR
    2. Get the sequence number. If you just need some accumulated wage types or last payroll result then use CD_READ_LAST
    3. Read payroll results - PYXX_READ_PAYROLL_RESULT using the sequence number in previous step.
    4. then read appropriate table to get the amount.

  • How to get or call PCR form in workflow template.

    Hi All,
    I'm working in ESS and MSS workflow now. For my requirement, I need to get or call PCR form in workflow template. How can I achieve this.
    Thanks - Krish

    Hi Raj,
    Check if the following links helps you:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d1cb99-46cf-2b10-8880-85004a301283
    PCR workflow
    Regards,
    Saumya

  • How to debug or test PCR?

    Hi guys,
    im an abaper that now configures in HR =), my first shock is that i don't know how to debug or test the pcr´s (the rules that u create on pe02)
    any ideas?

    Hi
    First it is better to understand the meaning of these PCR's and where and why they are used?
    A personnel calculation rule is an instruction to carry out certain tasks in time evaluation and payroll, or in the evaluation of payroll results.
    A personnel calculation rule can be used to check existing conditions, and carry out individual actions accordingly.
    Personnel calculation rules have the same structure as decision trees.
    You can ask the Fun ctional consultant and know the debug of them
    see the master tables for them:
    T52CE and T52C5
    Regards
    Anji

  • How to subtract % Percentages in Cells by Bulk?

    Hey guys,
    I need some help with subtracting % (Percentages) from cells in bulk.
    For example
    In the first column I have my retail price and the second column I have my Price which I would like to enter in the final amount after subtracting for example 20%.
    How do I select 300 cells which have the retail price, subtract 20% and have the results show up on the "price column"
    Thanks in advance.
    Retail Price
    Price
    $1,000
    $800

    you can do something like this:
    row 1 is a header row
    in column A enter the prices
    in B2  enter the formula
    =A2×0.8
    shorthand for this is:
    B2=A2×0.8
    which means to select cell B2 then type (or copy and paste from here the formula):
    =A2×0.8
    now select cell B2, copy
    select column B (by clicking the B at the very top of the column
    unselect cell B1 by holding the command key then single click cell B1
    paste

Maybe you are looking for

  • Error: 'Database handles still open at environment close'

    Hello, I have read information about this error, but I cannot solve it. I think I have closed all objects that I use, but the error appears. When I remove next code, the error doesn't appear: while (xmlValue != null) { XmlDocument theDoc = xmlValue.a

  • File attachments in SIP application

    I am developing a C# Lync Server SIP application. It is required to get the information on the server side about the file attachments added by Lync users during a group conversation. I have made a full dump of all messages received by server event ha

  • Errors loading emails in AOL using Firefox 3.5.19

    Can enter AOl, but after a while, and since Firefox was pushed on to me in an upgrade from 3.5.16, which was running well. Suddenly now bits are not running so well, and it seems not just in AOL but on other web sites too. Have found I have to sign o

  • Applet Calling DLL in MS Ie5.0 problem?

    Hello, I'm using Windows 2000, IE5.0 MicroSoft JVM 1.1.8 build 5.0.0.3802 and have an applet which is calling a local DLL in the c:\winnt\system32\ dir. I have granted permissions in the sandbox to allow access to everything (for debug only) and the

  • Adding a new layer at the beginning

    I have created a flash file with 5 pictures, i wish to add a additional picture at the beginning (not the end) of the time line. Is there an easy way to insert this new image and move all the other images down along the time line so the new immage ap