Updation in Contract

Hi
I have a contract no. 45 with 15 subsequent Sales Orders. The problem is when I try to check the document flow of the mentioned contract in VA43, the system shows all 14 subsequent Sales Orders along with their respective documents flows (i.e. Delivery, Goods issue, Invoice and Account Document) but one Sales Order 77's document flow is not shown (no arrow key to expand the complete document flow) and its Delivery, Goods Issue, Inovice and Account Document has been processed. We can see the complete document flow of Sales Order 77 in VA02 along with preceeding document (i.e. Contract number 45). Whereas, if we are in VA43 and use Display Docment from document flow, in VA03 the Sales Order 77 doesn't show its preceding Contract 45. Its happening in just this particular Sales Order.
Any clues?
Thanks!

Issue traced!

Similar Messages

  • Updating SRM contracts from R/3 to SRM....

    Hi all,
    I am working in SRM, my requirement is to update the SRM contracts from R/3 to SRM and if any changes happen in R/3 contracts (previously updated contracts to SRM) then it should replicate those changes in SRM contracts also.
    I found the program BBP_CONTRACT_INITIAL_UPLOAD (This program can be used to upload contracts from ERP to SRM. A separate contract in SRM would be created for each successfully transferred ERP contract.)
    My question is, so if any changes happen in R/3 contracts it should update SRM contracts also.
    Please let me know the solution how to solve this?
    Highly appreciated any kind of help..
    Thanks
    Rajesh.

    Hi Rajesh,
    I think that your scenario is very risky as there is no master system for contract : one time it is srm and after it can be r/3 !
    Besides this comment, you can search the forum and find some threads for contract replication in both ways (but no activated in the same time...)
    Kind regards,
    Yann

  • Updating service contract line item's end date

    Hi,
    I am trying to extend the end date on a line item in a service contract via the DI and it is giving me the following error:  'Item's end date cannot be greater than contract's end date' and I don't understand why.
    I retrieve the service contract object, change the header end date then find the line item  I need, update it with the same end date and then issue call the SC update method.  Here's my code:
        Try
                 SC.Lines.SetCurrentLine(SerialNbrLineNumber)
                 NewStartDate = LineEndDate
                 'calculate new end date & extend service contract
                 NewEndDate = NewStartDate.AddYears(Warranty_Duration)
                'never make the contract end date earlier than it had been
                SC.EndDate = IIf(NewEndDate > SC.EndDate, _
                                                             NewEndDate, _
                                                             SC.EndDate)
                'update service contract detail with new end date
                 If NewEndDate > LineEndDate Then
                     SC.Lines.EndDate = NewEndDate
                 End If
                 If SC.Update() <> 0 Then
                    rs.RtnCode = -1
                    rs.RtnMessage = B1Comp.GetLastErrorDescription()
                 End If
    I did see something in the di help that mentions that B1 calcs an end date based on the "duration of coverage" field but I don't think I could use that because I might only change the end date for one line item. 
    BTW I can do this in the application with no problem.
    Thanks in advance for any assistance.

    Known B1 bug.  Should have checked support first.  More info on note # 1026540

  • Not able to update a contract using BAPI

    Hi All,
    I am tryin to use a BAPI to update the contract and for this I have coded the following:
    v_ponumber = 'abc-123' .
       MOVE v_ponumber  TO poheader2-number.
        MOVE 'X'  TO poheaderx-number.
        MOVE '00001' TO po_item2-ITEM_NO.
        MOVE 'test text' TO po_item2-SHORT_TEXT.
        APPEND po_item2.
        MOVE '00001' TO po_item2_x-ITEM_NO.
        MOVE 'X' TO po_item2_x-ITEM_NOX.
        MOVE 'X' TO po_item2_x-SHORT_TEXT.
        APPEND po_item2_x.
    CALL FUNCTION 'BAPI_CONTRACT_CHANGE'
      EXPORTING
        PURCHASINGDOCUMENT          = v_ponumber
       HEADER                      = poheader2
       HEADERX                     = poheaderx
    TABLES
       ITEM                        = po_item2
       ITEMX                       = po_item2_x
       RETURN                      = return2
    if sy-subrc = 0.
    commit work.
    endif.
    in the return table I am getting the message which says that the contract has been updated but I went to see the contract was actually not updated.... any advise where I am missing?
    Thanks,
    Rajat

    I am not sure why it is not working??  Try for any other alternate function modules.
    But i see one issue with your coding, always check the return table message type and use commit work, instead of sy-subrc check. This fails for BAPI's

  • Discount value not updating at contract header level

    Dear Friends
    I am facing problem of updating discount value at contract header level. The scenario is u2026. my client used to provide certain service to their customer. For that they maintain quantity contract & bill them as per billing plan. When customer avail three or more  services they get 10% extra discount. Now the problem is after continue for some days if some customer wants to drop  one item we are cancelling the line item by assigning proper cancellation procedure but the  system is not reversing the 10% discount.
    Example u2013
    Contract valid for 1st Jan 2009 to 31st Dec 2010(Value for each service = 10)
    (Total no of item-3)
    (Discount-10%)
    Here bill value for each month is  10x3-(30x0.10) =27
    At the month of march 2009  customer decided to drop for one item so hence forth the bill value should be 10x2=20
    But the system is calculating 10x2-(20x0.10)=18
    We need to update the value at contract header level only to satisfy some CRM functionality.
    Please suggest how to solve this issue

    Hi,
    If that is  item condition then you can not change it at header level
    check in M/06 make it at header level  in change which can be made tab
    Regards
    Kailas Ugale

  • Conditions not updated in Contract Creation using BAPI_CONTRACT_CREATE

    Hi all,
      The conditions for the Contracts does not get updated eventhough the contract is created.
       BAPI Used : BAPI_CONTRACT_CREATE
      iam using the following code,
      conitem_cond_validity-item_no      = con_data-ebelp.
      conitem_cond_validity-plant        = con_data-werks.
      CONCATENATE con_headerdata-kdatb6(4) con_headerdata-kdatb3(2) con_headerdata-kdatb+0(2)
      INTO conitem_cond_validity-valid_from.
      CONCATENATE con_headerdata-kdate6(4) con_headerdata-kdate3(2) con_headerdata-kdate+0(2)
      INTO conitem_cond_validity-valid_to.
      APPEND conitem_cond_validity.
      CLEAR  conitem_cond_validity.
       the respective conitem_cond_validityx table has been updated with the value 'X'.
       conitem_condition-item_no    = con_data-ebelp.
       conitem_condition-cond_type     = kschl_1.
       conitem_condition-cond_value    = kbetr_1.
       conitem_condition-currency      = konwa_1.
       conitem_condition-cond_unit     = kmein_1.
        conitem_condition-cond_p_unt    = kpein_1.
       conitem_condition-numerator    = kumza_1.
       conitem_condition-denominator    = kumne_1.
       conitem_condition-change_id     = 'I'.
       APPEND conitem_condition.
       CLEAR  conitem_condition.
       the respective conitem_conditionx table has been updated with the value 'X'.
       Please help to solve the issue.
    Thanks and Regards,
    Raj

    Hi Paromita Roy Chowdhury,
    without knowing your exact situation (code), i can see a possible reasons: If it is exactly the 1000th, there may be a field of length 3 used as counter that will overflow when adding 1 to 999.
    Regards,
    Clemens

  • Tax error when updating renewal contract lines

    Hi,
    We're doing the contract renewals custom way, and apply a price increase and some other minor modifications to contract lines. Now, I have some more modifications to the program based on new user requirements. So, after calling the renewal API, I need to check the actual term for ext. warranty on the order line and change the term of the contract, AND set the price to same as the contract that got renewed. When I do this, my update to the renewal lines does not go through and errors out with the following:
    1.The system cannot find tax information for tax regime US-SALES-TAX-101 and tax &TAX. Please contact your tax manager. (TAX_CODE=DISTRICT)
    I would really appreciate if someone could provide some insight into this, as I'm just stuck with this and cannot move forward.
    Thanks!
    Alka

    Hi Alka,
    logically I would check
    ==> Log in with service contracts manager responsibility and query the renewal contract that is created
    -- Check if the tax code information is populated. If yes then check if the tax code has been end dated in system.
    -- go to Setup --> Transactions --> Transaction Types. Query Invoice-OKS and Credit-OKS and check if Tax Calculation check box is selected
    -- go to Setup --> Transactions --> Sources and query your batch transaction source and check how Autoinvoice is setup to handle imported transactions that have invalid tax rates.
    You can read up details of this in the implementation guide "Setting up service pricing and billing" chapter, page 61 to 68.
    ==> There was a bug logged for this error (metalink article id: ID 786000.1), and it is relevant to 12.0 / 12.1 apps version. You may want to check if the related patch solves your problem.
    Hope this helps!
    Thanks,
    Sid.

  • How to update  Service Contract using BAPI/FM for ME31K

    Hi ,
    I am using BAPI BAPI_CONTRACT_CREATE to create contracts.
    It works fine, the only problem i am facing is while updating line item with item category "D' its simply skips the item category and create a item. The item category is blank when i see in transaction ME33K.
    When i create it using ME31K transaction with line item item category type  "D' its ask me to fill the services also for that line item.
    My question is is there any BAPI which i can use to update the Services for item line with item category  D.
    Thanks
    Amar

    Hi Amar,
    Not sure if this would help you but you can consider writing different logic (probably a BDC) for item category 'D', and use BAPI for all other cases (if 'D' is the only exception).
    BAPI documentaion says:
    *External services (planned and unplanned services) are not supported.
    Creation of configurations is not supported*
    Regards,
    Shyam

  • Updating purchasing contracts in SRM from external system ( XI )

    Hello friends,
    We have a requirement to update / create purchasing contracts in SRM from external system ie e-sorcing . We are getting the structure of contract from
    xi proxy.
    We are using function modules
    BBP_PD_CTR_CREATE
    BBP_PD_CTR_UPDATE
    to create / update contracts.
    The issue is , how we will come to know an existing contract is got updated in
    the external system and , is there any function module/ bapi available to get those
    updated contract records or is there any way to do this.
    It would be great if anybody can provide some helpful information.
    Thanks..
    Jayaram

    Hello BABA,
    Try this link. Hope this helps.
    [Re: Creating SRM PO with Smartforms BBP_PO;
    Please discuss this issues in SRM- General forum for better replies.
    Cheers,
    Suvendu

  • Update data contract in CRM

    Hi!!!
    I'm try to update the data of crm contract from sap isu contract, but isn't works fine, the status and the description of CRM contract for example is not updated. The Bdoc SI_CONTRACT is generated correctly, and the Badi's DOWNLOAD on ISU and CRM are enhanced with the fields, but the info is not updated in crm when initial load is launched or when a move-out it's do it in isu.
    Can you help me please?
    Regards,
    David

    hi Umesh,
    when you say you have replicated materials from R/3 to CRM 4.0, what all steps you have carried out.
    CRM middleware is used to replicate products from R/3 to CRM, i am not sure what procedure you are following when you say you are updating materials using flat files.
    pls explain your scenario in more details.
    RH

  • Lock object update in contract account

    Hi All,
    If anyone knows any BAPI which updates the lockobject in the outgoing payment of a contract account,please respond.
    My requirement is to update the TO date of lock object in the outgoing payment of a contract account.
    Is there any other possibility to do the same.
    Awaiting for response.
    Regards,
    Bharathi.J

    Hello,
    Sorry, we don't use a BAPI to update locks, but we do use the following function modules:
    FKK_O_LOCK_OPEN
    FKK_O_LOCK_METHOD_SET_LOCKDATA
    FKK_O_LOCK_METHOD_SAVE
    FKK_O_LOCK_CLOSE
    You can use BAPI_ISUACCOUNT_CHANGE to issue a new lock.
    K---
    Message was edited by:
            Kathryn McGallicher

  • Update CRM contract from isu contract

    Hi!!!
    I'm try to update the data of crm contract from sap isu contract, but isn't works fine, the status and the description of CRM contract is not updated. The Bdoc SI_CONTRACT is generated correctly, and the Badi's DOWNLOAD on ISU and CRM are enhanced, but the info is not updated in crm when initial load is launched or when a move-out it's do it in isu.
    Can you help me please?
    Regards,
    David

    Hi David,
    Even though you have a green Bdoc it doesnt mean that the information was updated correctly in CRM, it simply means that the Bdoc passed the information to the queue. Check if there are any sysfails in the queues - you get the queue name from the Bdoc - and also if there are any dumps that might be related. Have you ever been able to load data from ISU to CRM?
    Kind regards,
    Vanessa.

  • To update service contract Item data

    Hi Experts,
    I have to create the new Item number in the customer contract, for that I am using the FM 'BAPI_CUSTOMERCONTRACT_CHANGE'.
    But this fm is not sutable for my requirment.
    Except the above function module is there any available to update the service contract.
    Could any one please suggest me.
    Thnx,
    Jay.

    Hi Edit,
    Thanks for the reply.
    Yes, i wanted to do status update in bulk for service contracts in CRM system.
    Guess there are no FM to update status of service contracts in bulk.
    I used FM CRM_ORDER_CHANGE_STATUS in loop to update the status.
    The performance is little bad. Let me know if there is an alternative.
    Thanks in advance.
    Regards
    Shanthi

  • CRM Channel Managment - released quantity update in contract

    In the channel management , the claims are created throught the transaction cms_rtcm.
    Which should finally update the released quantity in the contract.?
    Now in this process I see only CMS table CMSD_CNT_PRD_XT getting updated.And I donot find any means by which the CRM table CRMD_CUMULATED_I is updated,
    from which the released quantity is obtained.
    Can anybody tell me how is the released quantity updated in this scenario?
    Thanks in advance
    Chitra.P

    Try modifying the qty thru FM CRM_SCHEDLIN_PUT_OB.
    This should solve the issue.
    ~Kiran

  • FM to update Service contract in bulk.

    Hi,
    I would like to know if there is any FM / BAPI to update the status of service contract in bulk.
    Thanks in advance.
    Regards
    Shanthi
    Edited by: shanthi v on Jul 27, 2010 9:35 AM

    Hi Edit,
    Thanks for the reply.
    Yes, i wanted to do status update in bulk for service contracts in CRM system.
    Guess there are no FM to update status of service contracts in bulk.
    I used FM CRM_ORDER_CHANGE_STATUS in loop to update the status.
    The performance is little bad. Let me know if there is an alternative.
    Thanks in advance.
    Regards
    Shanthi

  • Prevent Inforecord price update in Contract

    Hi,  We have a requirement to prevent inforecord price update when creating a contract.  Currently the system automatically populates the price when a contract is created. 
    We basically want no price to be pulled from the inforecord even if there is a price maintained in Inforecord purchasing org. data.  There are posts on how to prevent inforecord price update in PO but I couldnt find one for contracts.
    Appreciate any help from SAP Gurus....!!!
    Thanks

    Hi Paddy,
    if I well get you there is 2 issues.
    One is the update of the PIR (info rec) when your create the contract.
    for this you should look into contract item details there should be a flag info rec update to remove (same in PO)
    Second is the only use of contract for pricing.
    One easy way would be to set the standard SAP msg :
    06-042 Target value of contract & exceeded by & &
    with E for error so that no PO is aloowed if contract exist. Another way would be to review your pricing procedure. Have the automatic price cond. type reviewed with a new acc seq that would not take into account the PIR (info rec).
    Hope this helps!
    cheers

Maybe you are looking for