Service contract - Billing block

Dear Guru's
             i am doing  the service contract with standard document type  WV.But my client requirment is,he wants to block the individual line item wise in VA41 and Release in VA42 by individual line item and do billing in VF01.
           could anybody tell me how to configure the same. i am using the Billing plan Periodic .
Thank you
suribabu

Hi,
You can achieve same using status profile conifg at item level, i did same for my service contract for order creation block ( IW31) and Billing block,
try with status profile , i hope its help you to block Service items in sales contract.
Regards
Nishad

Similar Messages

  • Service Contracts Billing Schedule Creation Error

    Hi,
    I have a requirement of creating service contracts from back-end for which I am using the oks_contracts_pub.create_contract_header, create_service_line, and create_bill_schedule. I am creating my contracts with active status and renewal type of EVN (Header level), FUL(Line Level). My contract is of type subscription. The contract header and line are creating fine but the Bill schedule API is throwing an UNEXPECTED ERROR. The billing schedules need to be created based on accounting rule which can be quarterly or monthly. I have included the bill schedule code (hard coded values) for review. Any help is greatly appreciated.
    Also the version I am working on is R12
    ________________________________________________CODE___________________________________________________________________
    CREATE OR REPLACE PROCEDURE BILLING_SCHEDULE AS
    l_strm_level_tbl OKS_BILL_SCH.STREAMLVL_TBL;
    v_bill_qtrs NUMBER := 0;
    v_bill_mths NUMBER := 0;
    v_bill_days NUMBER := 0;
    v_net_amount NUMBER := 468;
    v_acct_rule_name VARCHAR2(50) := 'QUARTERLY';
    v_amt_per_day NUMBER;
    x_error_locator VARCHAR2(2000);
    v_start_date DATE := '04-MAY-2010';
    v_end_date DATE := '25-MAY-2010';
    x_return_status VARCHAr2(3);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    v_billing_sequence NUMBER;
    x_chr_id NUMBER := 17000;
    x_line_id NUMBER := 223248604345353294444923586786456728480;
    g_day_uom VARCHAR2(10) := 'DAY';
    g_month_uom VARCHAR2(10) := 'MTH';
    g_quarter_uom VARCHAR2(10) := 'QTR';
    v_amt NUMBER;
    v_invoicing_rule_id NUMBER := -2;
    BEGIN
    --Create Billing Schedule based on accounting rule
    okc_context.set_okc_org_context;
    MO_GLOBAL.INIT('OKS');
    MO_GLOBAL.SET_POLICY_CONTEXT('S', 83);
    v_bill_qtrs := 0;
    v_bill_days := 0;
    v_bill_mths := 0;
    SELECT NVL(v_net_amount, 0)/(v_end_date - v_start_date)
    INTO v_amt_per_day
    FROM dual;
    dbms_output.put_line('Calculated amt per day ' || v_amt_per_day);
    IF v_acct_rule_name LIKE '%QUARTERLY%' THEN
    --Quarterly billing schedule
    SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
    v_start_date)/3),
    v_end_date - ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3))
    INTO v_bill_qtrs,
    v_bill_days
    FROM dual;
    dbms_output.put_line('Calculated the qtrs and days');
    IF v_bill_qtrs > 0 THEN
    SELECT (ADD_MONTHS(v_start_date, (FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)/3)*3)) - v_start_date)*v_amt_per_day
    INTO v_amt
    FROM dual;
    dbms_output.put_line('Calculated qtr amt');
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    -- l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_quarter_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
    l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_qtrs;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for QTR');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for QTR');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Quarterly schedule creation error ' || x_msg_data);
    ---DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    -- RETURN;
    END IF;
    END IF;
    IF v_bill_days > 0 THEN
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    dbms_output.put_line('sequence '||v_billing_sequence);
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_periods := 1;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_net_amount;--v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_net_amount;--v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for QTR days');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for QTR days ' || v_bill_days || ' ' || x_return_status);
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Day schedule, for quarterly accounting rule, creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    ELSE
    --Monthly billing schedule
    SELECT FLOOR(MONTHS_BETWEEN( v_end_date,
    v_start_date)),
    v_end_date - ADD_MONTHS(v_start_date, FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date)))
    INTO v_bill_mths,
    v_bill_days
    FROM dual;
    dbms_output.put_line('Calculated the mths and days');
    IF v_bill_mths > 0 THEN
    SELECT (ADD_MONTHS(v_start_date,FLOOR(MONTHS_BETWEEN(v_end_date, v_start_date))) - v_start_date)*v_amt_per_day
    INTO v_amt
    FROM dual;
    dbms_output.put_line('Calculated the mths amt');
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_month_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := 1;
    l_strm_level_tbl(v_billing_sequence).level_periods := v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt/v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt/v_bill_mths;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for MTHS');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for MTHS');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Monthly schedule creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    IF v_bill_days > 0 THEN
    SELECT NVL(MAX(sequence_no), 0) + 1
    INTO v_billing_sequence
    FROM oks_stream_levels_b
    WHERE dnz_chr_id = x_chr_id
    AND cle_id = x_line_id;
    --Populating the stream line variables
    l_strm_level_tbl(v_billing_sequence).sequence_no := v_billing_sequence;
    l_strm_level_tbl(v_billing_sequence).dnz_chr_id := x_chr_id;
    --l_strm_level_tbl(v_billing_sequence).id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).cle_id := x_line_id;
    l_strm_level_tbl(v_billing_sequence).uom_code := g_day_uom;
    l_strm_level_tbl(v_billing_sequence).uom_per_period := v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_periods := 1;
    l_strm_level_tbl(v_billing_sequence).start_date := v_start_date;
    l_strm_level_tbl(v_billing_sequence).end_date := v_end_date;
    l_strm_level_tbl(v_billing_sequence).invoice_offset_days := NULL;
    l_strm_level_tbl(v_billing_sequence).amount := v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).level_amount := v_amt_per_day*v_bill_days;
    l_strm_level_tbl(v_billing_sequence).lines_detailed_yn := 'Y';
    l_strm_level_tbl(v_billing_sequence).due_arr_yn := 'Y';
    dbms_output.put_line('Before calling the Bill Sch API for MTH days');
    OKS_CONTRACTS_PUB.CREATE_BILL_SCHEDULE ( p_billing_sch=>'E',
    p_strm_level_tbl=>l_strm_level_tbl,
    p_invoice_rule_id=>v_invoicing_rule_id,
    x_return_status=>x_return_status);
    dbms_output.put_line('After calling the Bill Sch API for MTH days');
    IF x_return_status <> 'S' THEN
    x_msg_count := 1;
    dbms_output.put_line('Day schedule, for monthly accounting rule, creation error ' || x_msg_data);
    --DBMS_TRANSACTION.ROLLBACK_SAVEPOINT('OKS_A');
    --RETURN;
    END IF;
    END IF;
    END IF;
    COMMIT;
    EXCEPTION
    when others then
    dbms_output.put_line('Error ' || sqlerrm);
    END;
    Thanks,
    Yash.

    Hi There,
    I have a similar requirement to create rental service contracts and create billing schedules.
    Can you please pass on your functional docs so that i can refer to them.
    Thanks,
    Raidu

  • Service Contract Billing

    Hi,
    I am trying to bill a service contract with periodic billing plan. but when it is executing it is showing all the dates based on the period(monthly). But after saving it, its showing me only last date. I am not getting whats wrong?? I want to bill only for a particular period not for all. plz guide me .
    Thanks
    Ipsit

    Hi ,
    As per my Knowledge  you need to configure your fiscal year in your system  then after creation your billing it will calculate  into  period.
    For example     : if you set up your project   November month  then onwards after completion of project it will calculate period  to the back   .   if your project has completed  in june      your peariod would  08 .
    if you give me brief i can help you out more.
    if helpful REWARD points
    Thank you .
    Regards
    Ramana

  • Service Contract Billing plan

    Dear Guru's,
               As per my clinet Requirement we configured the Service Contract with Periodic Billing Plan on Monthly basis.Now After Saving the Service Contract when i go to change mode in Item Level Billing Plan Tab Page it is showing GREY or DISPLAY MODE only. But when i realize the Button HDR it is showing CHANGE MODE.
               Now what is my Requirement is The Billing Plan Tab page Should always be in Change mode only .So how to do this could anybody help me.
    Thank you
    suribabu

    Dear All,
                    Thank you. i solved the problem. i have maintain the Billing plan in Both Header and Item level.Now Remove at Header level. Do run the cycle.
    Thank you.
    suribabu

  • How to link Sales Order with Service Contract and then with Install Base?

    Hi Friends,
    1) I would like to know the integeration process from sales order to Service Contract and then with Install Base.
    2) I couldn't see anything enabled in Service Tab in Order Lines, its grayed out. Is there any set up/profile option to get it enabled?
    3) How can we create AR invoice from Service Contract?
    Please let me know if anyone has idea on this.
    Thanks in Adavance,
    Vara

    Dear Sid,
    Thanks for your promt response.
    Let me explain you what I did.
    1) I have booked a Bill Only sales order which has one order line, mentioned it as Service Item and provided the same details in Service Tab in Order lines. Now Line status is "Fulfilled"
    2) Then Submitted Workflow Back Ground Process for OM Order Lines and it has created an AR Invoice and closed the line
    3) And then submitted "Service Contracts Order Capture Integration Program" from SErvice Contracts Responsibility and it completed normal.
    4) Now I went in to Launch Contracts Window and queried with the sales order but couldn't see any contract created
    5) Then I went in to Reprocess Order Window and found this order shows an error message as "Referenced Product not present in the Installed Base", then I tried to reprocessed it, but the same error message again.
    Here I have few doubts:
    1) Are the AR invoice and Service Contract Billing Invoices same?
    2) In above scenario AR Invoice has been created, I would like to do the billing from SErvice Contracts and need to create an Invoice in AR? how can I do that?
    because as you explained in one of my questions earlier, A Single Invoice can be created for the whole duration of the contract. I want to do that and trying for the same.
    3) Regarding the above error message, how can I resolve it and create the service contract against that Order?
    Thank you so much for your helpful answers.
    Regards,
    Vara

  • Unblocking the Service Contracts creation

    Hi,
      I am trying to create the service contract using CRM_ORDER_MAINTAIN.
      But while execution of this FM, it was giving the exit message as
    <b>"Business transaction type Service Contract. is blocked for further business 
      transactions"</b>.
       Can any one please guide me to unblock this service contract?
      Thanks for thier help.
    Regards,
    Gopinath Addepalli.

    Have a look at the customizing for your transaction type. There you need to un-set the inactive flag. Also make sure you have the correct settings for the subgroup 'Allowed Channels'.
    Regards, Kai

  • Mile stone billing for  service contract

    Hi gurus,
    can you help me for the following:
    i want to configure mile stone billing for service contract in my client business process,
    can any one send me the complete configuration process steps for mile stone billing.
    I'll reward you full marks,
    Thanks in advance
    nitchel

    Hiya...
    Billing Plan for Milestone Billing
    Milestone billing means distributing the total amount to be billed over multiple billing
    dates in the billing plan.
    As each milestone is successfully reached, the customer is billed either a percentage of
    the entire project cost or simply a pre-defined amount.
    During sales order processing, the system determines from the item category whether a
    billing plan is required and, if so, which type of plan
    The type of billing plan that is determined at this point is set up in Customizing and
    cannot be changed in the sales document.
    Billing plans for periodic billing and milestone billing plans for project-related milestone
    billing have different overview screens so that you can enter data relevant to your
    processing.
    For example, for milestone billing, you must be able to enter data to identify the
    individual milestones.
    IMG configuration requires :-
    1.  Maintain billing plan types for milestone billing in OVBO.
    2.  Define date description in SM30 - V_TVTB.
    3.  Maintain Date Category for Billing Plan Type IN OVBJ.
    4.  Allocate date category in SM30 - V_TFPLA_TY.
    5.  Maintain date proposal for Billing Plan Type in OVBM.
    6.  Assign Billing Plan Type to Sales Documents Type in OVBP.
    7.  Assign Billing Plan Type to Item Categories in OVBR.
    8.  Define rules for determining the date in OVBS.
    Milestone billing is typically used for billing projects, such as plant engineering and
    construction projects. Such projects often include a series of milestones that mark the
    completion of different stages of the work. In the SAP R/3 System, milestones are defined
    in a network along with planned and actual dates for the completion of work. The milestones
    are also assigned to the billing dates in the billing plan.
    Each milestone-related billing date is blocked for processing until the Project System
    confirms that the milestone is completed.
    Delivery-relevant order items for which a milestone billing plan applies are billed on the
    basis of the requested delivery quantity and not on the total of the confirmed quantities.
    The connection between the project and the sales document item is made in the individual
    schedule lines of the item. Each schedule item can be assigned to a network in a project.
    To display the project-related data for a schedule line, proceed as follows:
    In one of the overview screens of the sales document, select
    1.  Item -> Schedule lines.
    2.  Mark the schedule line and select Procurement details.
    The following figure shows an example of milestone billing where only the Contract have
    been billed :
    Order  Item  Turbine    100,000
    Billing Plan
    Billing date Description    %  Value  Billing Block   Milestone   Billing Status
    01-10-94     Contract      10  10,000      -             x           x 
    01-03-95     Assembly      30  30,000      x             x          
    01-04-95     Maintenance   30  30,000      x             x
    01-05-95     Acceptance    30  30,000      x             x
    01-06-95     Final invoice ..    ..        x
    Network/Activities
    Milestone    Estimate      Actual
    Assembly     01-03-95      01-03-95
    Maintenance  01-04-95     
    Acceptance   01-05-95
    For each billing date in a milestone billing plan, you can specify whether the billing
    date is:
    1.  fixed
    2.  always updated with the actual date of the milestone
    3.  updated with the actual date of the milestone, if the date is earlier than the
        planned billing date for the date
    Keep Sapping
    Regards

  • Insert Billing Block if Contract is Changed

    Dear Experts,
    We have Rental Contract / Service Conract scenario where we create a Contract with BIlling Plan & create Invoice eveny month thru VF04.
    We now have a requirement to insert Billing Block when the Conract is Created. This is easily achieved by inserting BIlling Block in VOV8 & removing activity no. 43 (Release) in Authorization object - V_VBAK_AAT
    Now the requirement is to Insert Billing Block in the Contract if some key fields like Payment Terms, Prices are changed.
    Can someone please suggest on how to insert this Billing Block if the Contract is changed.
    Waiting for early replies...
    Thanks,
    Jignesh Mehta

    Thank you MT & Satya,
    See I think I can achieve it with applying User Exit (probably USEREXIT_FIELD_MODIFICATION) but the client is insisting on implementing Workflows.
    Can anyone suggest whether Workflows would help me insert BIlling Block in Contract if the Contract is changed?
    Also Please tell me which is a easier option to implement - Workflows or Userexit???
    Waiting for early reply...
    Regards,
    Jignesh Mehta

  • Service Contracts  with billing plan not updating debit memo request in ECC

    For service contracts with billing plan, we cancel the line items and set the user status at header to "cancelled" and also set the cancellation date (under Cancellation Tab) at the header as well as item level which delete all items in the “DMR” in ECC (which are not yet billed). When we do this, it works perfect for most of the time and in some cases DMR items are not updated in ECC and it is billing. When I checked in CRM, the billing plan items are updated based on the cancellation date.
    Experts appreciate your help on this issue.
    Thanks,
    George.

    This is resolved by the note 1008663

  • Bill To Account is missing on Service Contract line after customer merge

    Hi
    This probelem relates to service contracts that have customers that were merged. After the existing customer (on the contract) was merged with a new customer the contract address are updated with the the new Customer and Addresses (this is all standard merge fucntionality). The issues is the lines on the contract are not updated properly with the new Bill to Address fromt the merged into customer. The end result is when this contract is invoiced the invoice lines are errroing in AR interface due to the Bill Account being missing.
    Please let me know if you have faced similar situation and what steps did you take to resolve this issue.
    Thanks
    Kundan

    Hi Siddharth,
    Thanks for your reply. The patch suggested by the Metalink Doc ID 353230.1 has already been applied in our case, still this issue. Please let me know if you have some other alterantive solution.
    Thanks
    Kundan

  • Is it necessary to create a Billing Plan for the Service Contracts

    Hi All,
      Is it necessary to create a billing plan for the service contracts.
      My requirement.
      In CRM 7.0, we created a service contract. For the item in that service contract there is a Billing Plan tab.
      In that tab we have the dates for Period, Billing Date etc.
      Now our requirement is to get the Billing Date quarterly. For this we created date rules and date profiles and assigned these date profiles to header and item level transactions.
    And we are able to see the date rules under the drop down of the billing date.
    I copied the standard date rule BILL004 to ZBILL004.
      But when we changed to our date rule it is not changing to quarterly date.
      Can you please let me know  what are the configurations to be done for this.
      Is the billing plan has to be created for this kind of scenario.
    Thanks in advance
    Thanks and Regards,
    Raghu

    Hi
    On OK button's action  you can Destroy the window and navigate to Page1.
    Go through this link for more details and a step by step guide for creation of pop ups  and dialog boxes
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1?quicklink=index&overridelayout=true
    Hope it works
    Regards
    Suresh

  • Accounting Rule query from the Pricing/Billing tab in Service Contracts

    Running Oracle Apps. 11.5.10.2. I have the query listed below which returns both header and live level data for service contracts. I am trying to add the Accounting Rule from the Pricing/Billing tab within service contracts, but I am not having luck finding a suitable join. I have tried joining ra_customer_trx_lines_all to okc_k_lines_b using the following join from etrm rctla.contract_line_id(+) = oklb.cle_id, but it does not return any records for accounting_rule_id. Once I can get records to return for accounting_rule_id, I can pull in the rule name from ra_rules.
    SELECT OKHB.CONTRACT_NUMBER                                         CONTRACT_NUMBER,
           NVL(OKHB.CONTRACT_NUMBER_MODIFIER, '-')                      CONTRACT_NUMBER_MODIFIER,
           OKHB.STS_CODE                                                STATUS,
           OKHB.START_DATE                                              START_DATE,
           OKHB.END_DATE                                                END_DATE,
           to_date(oklbs.attribute1, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_START_DATE,
           to_date(oklbs.attribute2, 'YYYY/MM/DD HH24:MI:SS')           WARRANTY_END_DATE,
           rctta.name                                                   PRODUCT_GROUP,
                           rctla.accounting_rule_id,
           P.PARTY_NUMBER                                               PARTY_NUMBER,
           P.PARTY_NAME                                                 PARTY_NAME,
           to_char(oklb.line_number)||'.'||to_char(oklbs.line_number)   SUBLINE_NUMBER,
           to_char(okcis.number_of_items, '9,999,999,999')              QTY,
           msib.segment1                                                ITEM_NUMBER,
           msib.description                                                      DESCRIPTION,
           to_char(oklbs.price_unit, '9,999,999,990.99')                UNIT_PRICE,
           to_char(oklbs.price_negotiated, '9,999,999,990.99')          EXTENDED_PRICE
      FROM OKC_K_HEADERS_B      OKHB,
           OKC_K_PARTY_ROLES_B  OKPRB,
           HZ_PARTIES           P,
           HZ_PARTIES           HP,
           OKX_CUST_SITE_USES_V C_BILL_TO,
           OKX_CUST_SITE_USES_V C_SHIP_TO,
           OKC_CONTACTS OC,
           OKC_CONTACTS OCS,
           OKX_RESOURCES_V ORV,
           OKC_K_LINES_B oklb,
           MTL_SYSTEM_ITEMS_B MSIB,
           OKC_K_ITEMS OKCI,
           OKC_K_ITEMS OKCIS,
           OKC_K_LINES_B OKLBS,
           OKX_SALESREPS_V OSV,
           RA_CUST_TRX_TYPES_ALL RCTTA,
                    ra_customer_trx_lines_all rctla
    WHERE OKHB.ID = OKPRB.CHR_ID
        AND OKPRB.JTOT_OBJECT1_CODE = 'OKX_PARTY'
        AND OKPRB.OBJECT1_ID1 = P.PARTY_ID
        AND C_SHIP_TO.PARTY_ID = HP.PARTY_ID
        AND OKHB.ID = OC.dnz_chr_id(+)
        AND okhb.id = ocs.dnz_chr_id(+)
        AND oc.jtot_object1_code (+) = 'OKX_RESOURCE'
        AND oc.OBJECT1_ID1 = orv.ID1(+)
        AND ocs.jtot_object1_code = 'OKX_SALEPERS'
        AND ocs.object1_id1 = osv.id1
        AND C_BILL_TO.SITE_USE_CODE(+) = 'BILL_TO'
        AND OKHB.SHIP_TO_SITE_USE_ID = C_SHIP_TO.ID1(+)
        AND OKHB.BILL_TO_SITE_USE_ID = C_BILL_TO.ID1(+)
        AND C_SHIP_TO.SITE_USE_CODE(+) = 'SHIP_TO'
        AND okhb.id = oklb.chr_id
        AND msib.inventory_item_id = okci.object1_id1
        AND msib.organization_id = 3
        AND okcis.cle_id           = oklbs.id
        AND okci.cle_id           = oklb.id
        AND oklbs.lse_id     <> '2'
        and oklbs.cle_id     = oklb.id
        AND rctta.cust_trx_type_id(+) = oklbs.attribute8
                 and rctla.contract_line_id(+) = oklb.cle_id

    Sorry for the late reply, but this solution worked great.
    and OKS_K_HEADERS_B.ACCT_RULE_ID = RA_RULES.RULE_ID
    and OKC_K_HEADERS_B.ID = OKS_K_HEADERS_B.CHR_ID

  • Block on contract billing - Historical block

    Dear experts,
    I'd like to know if there is a way to have an "historical" block on contract for billing.
    My purpose is to have something like the DFKKLOCKS for invoicing to let the contract be billed for a period, until it reaches the first block.
    For example:
    Contract A, block 1 for period 01/01/2014 - 31/12/9999
    I'd like to bill it until 31/12/2013.
    Thanks,
    Fabio

    Fabio:
    No - there is no functionality for that purpose in the contract. 
    regards,
    bill.

  • Changing Billing Schedule Level for OM originated Service Contracts

    Hi,
    When we create a Service Contract from Order Management, the Billing Schedule Level is always set to Top Level and only one Billing Stream gets created.
    Can we get the Billing Schedule Level changed to other Levels viz., Equal Amount or Covered Level using any setups.
    Has anyone did any customization/extension to be able to change the Billing Schedule Level.
    The basic requirement is to have multiple billing streams for the contract, created from Order Management.
    Gurus, any ideas/suggestions to get this accomodated.

    Sid,
    I don't think you are on the right track (in my opinion). You are right that we can only create service contract from the order management (service or Extended Warranty Lines).
    If I understood correctly, you sell electronic subscriptions (like my internet service I have at home) and you are looking for way to take it from the order management so that you can bill it from Contracts and not from OM. As this is electronic service, looks like you do not have fulfill any tangible product (like magazines) from contracts. Hence you do not care about the schedule for the contract shipments. Is that correct?
    As this is not something Oracle offers (I did not find anyway), you may want to consider extending OM workflow or a batch program to create a subscription contract once the order line is fulfilled (not the program where we create service contract). This way you have flexibility to create the contract the way you want it.
    But you can always create a service contract covering a subscription item as covered product. Like I have internet service as subscription but they cover me for any incidental visits of technicians for this subscription charging me some amount every month.
    Thanks
    Nagamohan

  • Changing Billing Schedule Level for Service Contracts created in OM

    Hi,
    When we create a Service Contract from Order Management, the Billing Schedule Level is always set to Top Level and only one Billing Stream gets created.
    Can we get the Billing Schedule Level changed to other Levels viz., Equal Amount or Covered Level using any setups.
    Has anyone did any customization/extension to be able to change the Billing Schedule Level.
    The basic requirement is to have multiple billing streams for the contract, created from Order Management.
    Gurus, any ideas/suggestions to get this accomodated.

    Sid,
    I don't think you are on the right track (in my opinion). You are right that we can only create service contract from the order management (service or Extended Warranty Lines).
    If I understood correctly, you sell electronic subscriptions (like my internet service I have at home) and you are looking for way to take it from the order management so that you can bill it from Contracts and not from OM. As this is electronic service, looks like you do not have fulfill any tangible product (like magazines) from contracts. Hence you do not care about the schedule for the contract shipments. Is that correct?
    As this is not something Oracle offers (I did not find anyway), you may want to consider extending OM workflow or a batch program to create a subscription contract once the order line is fulfilled (not the program where we create service contract). This way you have flexibility to create the contract the way you want it.
    But you can always create a service contract covering a subscription item as covered product. Like I have internet service as subscription but they cover me for any incidental visits of technicians for this subscription charging me some amount every month.
    Thanks
    Nagamohan

Maybe you are looking for

  • Color difference in web gallery

    I am having trouble matching color from my images in Bridge or PS (CS4) to the photos that appear when I make a web gallery using CS4.   The photos have been converted to sRGB and look vivid in Bridge or Photoshop.  However when they are converted in

  • Using mobile as router

    hi i'm just wondering if its possible to connect my laptop too my main pc through mobile phone. i have connected my mobile to laptop using usb cable too nokia suite (runs fine) and have a usb bluetooth dongle which is also conected to my mobile at sa

  • Updated iPhoto won't launch..Someone, help please!

    I just downloaded the newest version of iPhoto last night, and for some reason, it won't launch. The icon's there, and it bounces up and down when I click on it, but nothing happens and it won't open.  Does anyone know what the problem is and how to

  • How do I hide a clip in the timeline?

    How do I hide a clip in the timeline?  In the old version, at the far left of the timeline, there was a green button with a filmstrip icon. Clicking that toggled the clip on and off to let me see the clip below it.  Where is that button now? FCP X 10

  • Spinning beach ball of death when trying to save lecture notes! :(

    the title says most of it... I have 3 pages of lecture notes now that have been stuck with the save dialogue box open for over a half hour. any ideas on how to retrieve the notes or force it out of the beach ball?