Calculate credit amount based on a sub service order?

Hi Experts,
How do I calculate credit amount based on a sub service order? Is that in the COEP table? If yes what is the logic to calculate it? suppose I have sub service order number 000006009972. Thanks!
Best regards,
- Anthony -

Anthony
It might help if you decribe the business process...
PeteA

Similar Messages

  • Need to calculate Document amount based on below conditions

    Hi Everybody
    Here I need to calculate Document amount based on below conditions in the report iam having all the fields.
    1)     If the Net Due Date is one or up to tens days less than the document date on any open AP item
    2)     If the Net Due Date is "equal to" or "less than" the next month end date on any open AP item
    3)     If the Net Due Date is "one day more than" the next month end date on any open AP item
    4)     If the "GR posting date" + "payment in days (no of days)" is "one day more than" the next month end date
    5)     If the Net Due Date of any open AP item is in Jan., Feb…Dec, place the document amount in Jan, Feb...Dec month
    6)     If "Payment date > net due date" from 11 to 30 days add amount
    Pls write ur comments if any userexits pls forward to my id
    [email protected]
    Thanks in Advance
    Chaitanya

    you can have parameters to pass the points and you can use this inside query to filter and return the required data from query. You can then use this dataset inside chart and plot the points.
    http://www.grapefruitmoon.net/ssrs-2008-using-the-top-filter-in-a-chart/
    http://blogs.msdn.com/b/florianmader/archive/2013/08/10/sorting-a-chart-by-values-in-ssrs.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Web based booking in of service orders

    A company I have recently been doing work for approached me with a interesting request. They wanted a method for users to be able to book in service orders themselves, online. Vendors were not being paid on time due to the fact acknowledgment of receipt of the orders was not given in a timely fashion.
    Not everyone had access to SAP for cost reasons. Also quite a few people for some reason do not like the SAP interface. The spreadsheet they generated based on a SAP report was also proving ineffective due to users overwriting acknowledged orders.
    With this in mind, Myself and the local ABAP programmer came up with the following solution.
    The main ingredients of the solution involve the following:
    1)Windows Active Directory
    2)IIS, PHP
    3)BAPI_GOODSMVT_CREATE,BAPI_TRANSACTION_COMMIT,BAPI_TRANSACTION_ROLLBACK
    A Windows 2000 Intranet server  was setup with  PHP and the SAPRFC extension. Using Windows authentication we now select the correct recipient for the outstanding service orders report. The local ABAP programmer wrote a function to allow me to pass the username as  a import parameter and receive the lines of outstanding orders in JTAB which I can pull off into an array using saprfc_table_read.
    Here is an overview of how this works. I don't have the script in front of me. So I'm doing this from memory. I will add some more code specific detail at a later date.
    1)PHP script  calls local bespoke RFC function and sends RECIPENT (username) as an import parameter. RFC function fills JTAB with outstanding orders. Items in JTAB table are LIFNR,NAME1,EBELN,EBELP,TXZ01,EINDT,OPENQTY,MEINS,NETPR,WAERS,WEMPF. Each line is then read in a loop using the number of rows returned by saprfc_table_rows.
    2)The user is then presented with a form which allows them to acknowledge orders to the maximum value of OPENQTY for each line item.
    3)On submission the lines are sorted by vendor. We have to run the BAPI's multiple times for each vendor. You can't book in line items from different vendors in one go. Once this is done we can start calling our BAPI's to book the items in.
    4)We setup a loop by vendor which does the following:
    Call BAPI_GOODSMVT_CREATE and set the import parameters GOODSMVT_HEADER & GOODSMVT_CODE.
    <code>
    /* Please note this is not runnable code. It's code just to get a feel of whats going on. You will need to fill in the details */
    $goodsmvt_header = array('PSTING_DATE' => '20050512',
                                               'DOC_DATE'=> '20050512',
                                               'REF_DOC_NO'=> 'Jsimmons');
    $goodsmvt_code = array('GM_CODE' => '01');
    /*  $fhandle is from a connection we established earlier using saprfc_open & saprfc_function_discover */
    saprfc_import($fhandle,'GOODSMVT_HEADER',$goodsmvt_header);
    saprfc_import($fhandle,'GOODSMVT_CODE',$goodsmvt_code);
    we now need to specify what items we wish to book in We have an array of line items associated with the current vendor in the outer loop which looks like this:
    $lineitem = array('PO_NUMBER' => 'ponumber_from_user_form',
             'PO_ITEM'=> 'poitem_from_user_form',
            'MOVE_TYPE'=> '101',
            'MVT_IND'=> 'B',
           ' ENTRY_QNT'=> ,'number_to_book_in_from_user_form');
    saprfc_table_init($fhandle,'GOODS_MVT_ITEM');
    foreach ($alllineitems as $lineitem) {
      saprfc_table_append($fhandle,'GOODS_MVT_ITEM',$lineitem);
      // check for errors using saprfc_error
    /* Now we need to call our first BAPI to post the items */
    $errorcode = saprfc_call_and_receive ($fhandle);
    // Insert Error handling code  in here
    /* If the RESULTS table has entries , We have a problem */
    if (saprfc_table_rows($fhandle,'RESULTS'){
        $fhandle = saprfc_function_discover($rfcconnection,'BAPI_TRANSACTION_ROLLBACK');
        $errorcode = saprfc_call_and_receive ($fhandle);
        // Insert Error handling code  in here
    }else {
        $fhandle = saprfc_function_discover($rfcconnection,'BAPI_TRANSACTION_COMMIT');
        $errorcode = saprfc_call_and_receive ($fhandle);
        // Insert Error handling code  in here
    saprfc_function_free($fhandle);
    saprfc_close($rfconnection);
    // Start loop again for next vendor
    </code>
    The overall results is that we now have a intranet application which allows users to easlily book in services orders. I even created a script which nags users via email to book in services orders. The nag email contains a link to the intranet page which contains the application.
    Benefits:
    1)Extremely cheap solution using every day tools
    2)Browser based interface which everyone knows how to use.
    3)Vendors are paid on time which allows the company to trade on more favorable terms.
    4)Reduced administrator workload chasing people and making spreadsheets to capture outstanding service orders
    I would recommend going through some of the documentation for the SAPRFC extension. This will give you an idea of what I'm trying to convey here, and fill in the gaps.
    http://saprfc.sourceforge.net/src/saprfc.html
    Have fun !

    Jason,
    Craig is correct, your posting would make an excellent weblog. Perhaps creating an accurate step-by-step with actual code would be the way to go.  You certainly will be rewarded with contribution points for your effort!
    To become a weblogger just visit Submit Content in the upper Nav level. https://www.sdn.sap.com/sdn/weblogs.sdn?node=linkwnode3-6&contenttype=url&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fsdn!2fiviews!2fframework!2fcom.sap.sdn.weblogs?redirect=https://weblogs.sdn.sap.com/apply/ and request to be a weblogger.  After filling out the template you will be approved.
    Craig,
    You seem to be doing a fantastic job of moderating and encouraging the activity in these threads.  This will be rewarded as well!
    thanks,
    Marilyn
    SDN Community Manager

  • Recognising Revenues based on costs in Service Orders

    We have configured SD Revenue Recognition function (ECC 5.0).  We have warranty maintenance contracts running.  On this basis we have the following scenario and issue.
    The warranty maintenance contracts are created without a billing plan (Reqmt. type SE so that we can settle costs later).  The value of which is transferred to Deferred Revenue Account and is recognised at the end of the contract period (As it bears the retention money with the customer).  Until this step things are working fine.  We use VF44 to recognise revenues.
    However, there are costs incurred (both material & labour) in relation to such contracts.  To track this, we create a Service Order s against the Service Contract for each month.  Later on fulfillment, the orders are settled to the Service Contract.  This is reflecting in the Service Order.  But the finance team wants to recognise the revenues to the extent of costs incurred.  I'm not sure how we can do this.  The following is an example scenario.
    Contract Value : $1000
    Contract period : 1 yr (1.1.2010 to 31.12.2010)
    Contract billed at the start of the year on 1.1.2010 so the amount is moved to Revenue Provision (Deferred Revenue)
    At the end of the year $1000 lying in Deferred Revenue will be moved to Revenue Account through Revenue Recognition (VF44)
    Now, costs incurred as follows which are booked in separate service orders against the contract and on completion, settled to the contract.  There is no definite schedule for these costs.
    Apr 2010 : $100
    Jun 2010 : $200
    Sep 2010 : $500
    Now, the finance team wants to recognise revenue to this extent during the relevant periods.  For eg.
    Apr 2010 :
    Deferred Revenue A/c $100
    To Revenue A/c $100
    Jun 2010 :
    Deferred Revenue A/c $200
    To Revenue A/c $200
    Sep 2010 :
    Deferred Revenue A/c $500
    To Revenue A/c $500
    And at the end of Dec 2010 :
    Deferred Revenue A/c $200
    To Revenue A/c $200
    (for the remaining amount)
    Can anyone guide me how this can be achieved?
    Thanks in advance.
    Ravi.

    Nobody have encountered this scenario?
    If not with SD Revenue Recognition, can I handle this with CO Result Analysis?
    Ravi.
    Edited by: Ravichandran S Iyer on Jul 22, 2010 2:31 PM

  • Credit Memo Request w.r.t Service Orders

    Hi All
    We want to create Credit Memo request (CMR ) as follow up w.r.t CRM Service Orders, as of now below process is available
    Service order --> Confirmation --> Invoice --> CMR --> Credit Note.
    can anyone helpe me in configuring the below process
    Service order -->  CMR --> Credit Note.
    Best Regards
    Nagaraj G

    Hello Nagaraj
    The service order posts the planned cost in the system. and your requirement is to reduce the planned costs from the system by creating credit memo request in the system.
    As per the OSS message also this credit memo request will reduce the actual Cost/revenue not the planned cost/revenue.
    What i believe is  if you want to reduce the plan cost/ revenue. You just reduce the value in the service order itself rather than creating the credit memo request.
    Please let me know if i understood your scenario correctly below.
    you created a service order and planned cost/revenue  is posted into the system and later you realized that this service are not actually performed and there is no service confirmation is posted in the system. but you want to remove planned cost also from the internal order. 
    So in this above case i would suggest you either change the value in the service order itself. or cancel your service order.
    regards
    Naresh

  • POC based Results Analysis for Service Order/ Contract

    Issue resolved. Please close the message.
    Hi Friends,
    We have a process where we create a service order and plan costs on the order.
    Later a contract will be created with billing plan. The contract is assigned to service order manually.
    After actual costs are booked to the service order the same is settled to Contract.
    When I run RA for Contract I dont see the Activity rate planned costs so the POC is not giving correct results.
    The planned material costs are being updated though.
    I have mapped the activity cost element to a line id and COS in RA configuration.
    Please let me know if I am missing anything here.
    Thanks in Advance,
    Vamsi
    Edited by: VSS on Oct 23, 2010 10:49 PM

    Hi,
    We need to implement the following OSS note:
    OSS Note 1259154.
    Also please check if 1159784
    is relevant for your system.
    Thanks,
    Vamsi

  • How to calculate YTD credit amount and YTD Debit amount

    How to calculate credit amount and Debit amount for Year-To-Date type in GL Trial Balance Report?

    You may try the following options.
    1. Run 'Expanded Trial Balance' report.
    2. Run 'Trial Balance' report.
    3. Create FSG report for trial balance based on your desired output format.
    Hope it is useful.
    Tarun

  • Automatic Rule Determination Based on Service Order Type

    Hi Experts,
    I have a requirement to determine the rule based on the custom service order type.
    I have created 2 custom rules which are then assigned to 2 different org units as needed.
    Now the thing is i want to avoid putting condition step if else based on various order types.
    Is there any way by which i can directly determine which rule to be used by passing the Order type.
    If there is any FM then please suggest and also how to use the same.
    If no FM exists then is there a possibility of having only 1 if else condition and assign rule number in local container variables and pass it thought out the workflow to all the manual validation workitems. Please suggest how this can be achieved.
    Thanks,
    Jessica

    Hi,
    only 1 if else condition and assign rule number in local container variables and pass it
    thought out the workflow to all the manual validation workitems
    Create a workflow container element lets say with probably 15 characters length...
    Now create a background step in which you determine the rule based on the order type.
    data: lv_Rule(10) type c.
    if order_type eq 'X'.
      lv_Rule = '1234567890'.
    else.
       lv_Rule = '0123456789'.
    endif.
    " export the rule concatenated with 'AC' which indicates a rule...
    concatenate 'AC' lv_rule into ev_rule. "ev_rule size may be lets say 15 characters.
    condense ev_Rule.
    "export the EV_RULE to workflow and store it in WF cotainer element.
    In the step where you want to give the rule, select the Agent type as Expression and select the container element.
    Hope this would solve your issue.
    Regards
    Narin

  • Calculation of planned costs in CS service order with 1 day = 8 hours

    Dear experts!
    What kind of possibilities do I have to calculate the planned costs in the CS service order (IW31) on the basis 1 day = 8 hours.
    Right now, when I create the operation with "amount of work" = 5 days, the system calculates 120 hours * x u20AC. My requirement would be, that the system calculates 40 hours * x u20AC.
    Do I have to change settings in transaction CUNI or can I use the work center to solve my problem? Or any other idea?  
    Kind regards,
    Jens
    Edited by: Jens Neßlage on Oct 28, 2009 6:28 PM

    Jens,
       You should be able to use the work center to solve this problem.Check the working hours in the operation work center and make sure its set to 8 hrs.This should solve your problem.
    Regards
    Narasimhan

  • Not more than one service order against same sales document item

    A service order gets created against the sales order item as per
    standard SAP process. As credit management is active, when the order
    is under credit block  for the customer the service order gets created only after the
    credit block is released.
    On revising the order line value the sales document goes for a block
    again. Service order is locked. Both seem to be logical.
    But on releasing the credit block  this time ,  it creates one more service order against the same sales order item. Would logically expect the service order is
    unlocked on release from credit block.
    Can u pls explain this behavior ??  How do u avoid a new order creation and unlocking of the service order when the credit block is released.
    Would like to avoid any change in the service order status once it has been created irrespective of subsequent credit status of the sales order.
    regards
    Ramanujam

    Hi  lisa ,
    It is not possible to enter more than one service performer for a service in sales order .
    But you can  perform the service with two people and have two service confirmations.
    The time entered in service confirmation will be reflected in invoice only(if time and material).
    Also you cannot enter the time sheet with respect to sales order , it is only valid for project task and
    and time types.
    Regards,
    Harish

  • How to know I'm creating or changing the service order in ICweb?

    Hi,
    I need to disable or enable some fields based on if the service order is being created or changed . I'm new to IC web .. .can someone pelase help me understand how can I differentiate ?

    Hi,
       Which view in service order are you referring to? Normally there will be two seperate inbound plugs in the window level e.g. IP_CREATE and IP_EDIT that displays the same edit view.
    One way will be to set a flag in either of the inbound plugs for you to identity in the corresponding view whether it is a edit scenerio or a create scenerio. Depending on this flag value, you can proceed to disable fields selectively (may be in do_prepare_output method).
    Reward points if helpful!
    Thanks,
    Sudipta.

  • CFM /TR - how system calculate amount based on rate FX 60A

    Hi all,
    i need to know how system calculates amount based on rate entered upon creating a contract (t-code TX01).
    steps input:-
    1. header - comp code, product type, trans type
    2. partner
    3. purchase curr & amount (eg. IDR 8,345,545,500)
    4. sale currency only (amount system will auto calculate) USD
    5. rate field = 11.553
    6. spot rate will auto pick up from rate
    7. value date
    8. contract date
    upon TBB1 no error. posting log as follows:-
    FX1000+ : 40 8,345,545,500 IDR bank GL acc
                    50 8,345,545,500 IDR clearing acc
    FX2000- : 40 722370.42 USD clearing acc
                   50 722370.42 USD bank GL acc
    but upon TPM18 error occurred as follows:
    DBT_C009 - GL not maintain in acc symbol 5.3.4
    DBT_E039 - no posting spec assigned to update type
    DBT_B018 : 40 0 USD, 431,977,511 IDR gain/loss
                       50 0 USD, 431,977,511 IDR clearing acc
    so, after maintained DBT_C009 as follows still error for DBT_E039:
    40  0 USD, 38 IDR clearing acc
    50  0 USD, 38 IDR P&L gl acc
    what i don't understand is how system calculate and get DBT_C009 & DBTE039.
    what is the function of TPM18?
    thanks.

    Hello Prarnod,
    I have done the first node only for actuals that come from the integration to the internal order.
    I have tried setting up 2 and 3 even though the 3rd one does not make any sense to me
    Thanks,
    Paul

  • Need to calculate the monthly amount based to the annaul salary

    Hi Expert,
    I need to calculate the monthly amount based to the annual salary.
    Some countries use a multiplier more than 12 to calculate the annual salary (e.g : 13,14 ...).
    My problem is to calculate the monthly increase.
    The increase amount is on the annual salary but for the monthly increase, normally, the system divides by the mutliplier.
    But some countries would like calculate these amount on 12 and not the real multiplier.
    So, could you please tell me there are user-exits or other to make this ???
    Thanks in advance,
    Virginie

    Hi Virginie,
    Check both feature PFREQ (Edit with transaction PE03) and user-exit corresponding to enhancement PARA0001.
    rgds,
    Carlos.

  • Credit charges based on the number of credit days offered to the customer

    AOA,
    I have a scenario.
    We have credit charges based on the number of credit days offered to the customer. This scenario will be executed on credit sales only.
    Example of pricing, a product mobile is offered to customer A on 20 Days credit
    Mobile   $1000
    10 Days $1000
    20 Days $2500
    Total      $4500 (Invoice Amount)
    Any idea how can I acheive this in SAP.

    Customer A wants to buy product " Mobile "
    Scenario is of Credit sales. Pricing is as follows:
    Price                       $1000
    10 Days                  $1000
    Total After 10 days $2000
    20 Days                    $2500
    Total After 20 days $4500
    Gross Amount         $4500
    The amount of invoice will be $4500.
    If customer pays the amount with in 10 days, then customer only pays $1000.
    If customer pays the amount with in 20 days, then customer only pays $2000.
    If customer pays the amount after 20 days, then customer pays $4500.

  • How to calculate tax amount

    Hi,
    I am working in driver program of service sheet entry SF. i want calculate Tax Amount of every line item of service entry sheet number.
      tax code, net value, total value  mention in line item but tax amount not.
    then How to calculate tax amount according tax code...............?

    Hi,
    Try with the below function module.
    CALCULATE_TAX_FROM_NET_AMOUNT
    Jshree

Maybe you are looking for

  • Payment Advice Issue- Print and fax at the same time

    Hi, Currently payment advices are being sent to business partners (vendors) thorugh fax/email.   This is because process module Z_SAMPLE_PROCESS_00002040 is active in the system.   What I want to do is to be able to also print the payment advices eve

  • Which (non retina) 15 macbook pro to buy 2.3 or 2.6

    Lost a lot of confidence in apples direction lately with all the dumbing down and simplifying professional tools to the point of rendering them largely ineffective. I have to update my notebook which is my primary computer. My core work is in Apertur

  • External Display flashes on and off will not stay on.

    When I turn on my Samsung external LCD display which is connected to the iMac, it flickers on and off and will not stay on. What could cause this problem. I tried different resolution settings to no effect. I had been using the display without proble

  • Sun java studio enterprise 8 - Deployment FAILED error

    could anyone please help? When I try to Deploy a EJB module and webservice I get Deployment failed: run-deploy: Starting server Sun Java System Application Server 8.1 /app/sun/jstudio_ent8/AppServ8.1UR2/bin/asadmin start-domain --domaindir /app/sun/j

  • New album art feature and the album art screen saver

    Hi, I've been using (and enjoying) the built-in album art screen saver for my locked screen for a long time. A few days after I've updated to iTunes 7, I began to delete old covers of my favorite albums (low resolution, bad color, read: Google image