How to change Service Contract item status to I1401(Terminateddue to Produc

Hi,
This is a ISU-CRM intergration scenerio. In certain case of contract renewal, I need to change status of existing item to I1401 (Terminated due to Product Change) and add new item with status I1400 (Started due to Product Change).
But when I try to change it using class:
call method cl_crm_isu_order_change=>set_single_status
exporting
        iv_guid        = l_new_itm_guid
        iv_status      = 'I1400'                          
receiving
        ev_success     = l_success
then, success flag is always false and no exception is raised. Please help what  am I doing wrong?
Regards,
Daman

It worked after a commit.

Similar Messages

  • Service contract ITEM extractor

    Hello,
    I found the following extractors:
    0CRM_SRV_CONTRACT_H: CRM Service - Contract Header Data
    0CRM_SALES_CONTR_I: Sales Contract Item
    The first one gives the SERVICE contract header data, whereas the second one gives the SALES contract item data.
    Now, I'm a little bit confused: Should there not be a Service contract item data extractor and a Sales contract header extractor as well?
    Are the service and sales contract in fact the same techincally?
    Regards,
    Rikard

    HI Rikard,
    the datasource 0CRM_SALES_CONTR_I also provices Service Contract items , you can check the standard DSO
    0CRM_CNT1 - Service Contracts (Item Data) which gets data from 0CRM_SALES_CONTR_I  ,
    Note that 0CRM_CNT2 - Sales Contracts (Quantity and Value) also gets the data from the same datasource
    You check the ABAP logic in the start rotuine for both DSO s to understand how the data is differentiated using the
    Object type
    But there is no seperate datasource for Sales Contract header
    Regards,
    Sathya

  • How to map service contract data from ecc to crm

    Hi Experts,
    Please help me,how to map service contract data from ecc to crm system.
    is there any perticular process.please let me know.
    thanks in advance..

    Hi Srinivasulu,
    Create the service contract type of ECC and also item categories under it in ECC in CRM. Map the number ranges.
    Check the Partners mapping from R/3 to CRM and that will be all.
    I tried but in CRM in the transaction type internal number range is mandatory. So, if you create service contract in ECC with one number it will replicate to CRM but with different number. But you can see ECC number under the transaction history in CRM.
    Good Luck.
    Sharath.

  • Warranty as Service Contract Item.

    Hi,
    in help.sap.com I've read the following sentence related to "Service Contract Items":
    "element of the service contract in which you define the services or products you are providing the customer with under the terms of the service contract. A service contract item can be any of the following:
        * Service (for example, a particular task)
        * Material (for example, a spare part)
        * Time (for example, an hourly rate for a technicianu2019s time on the job)
        * Response time (how soon you are obligated to respond to a problem call)
        * Warranty (the agreed duration and coverage)
    So I would be interested in using Warranty as a service contract item, but i don't know how to proceed.
    Thanks in advance,
    Luis.

    Does anybody know the answer or should I close this message?

  • How to change a text item to have a link that opens a different page?

    Hi,
    How to change a text item to have a link that opens a different page?
    Thanks,
    Guy

    Hi Denes,
    I understood what the code will do. But it did not work.
    ...a href="f?p=&APP_ID.:2:&SESSION.">LINK</a...
    By default, P5_TASK_NAME displays Task Name which is passed from Page 3.
    So I changed your code as follows so that P5_TASK_NAME value may be displayed with a link.
    ...a href="f?p=&APP_ID.:3:&SESSION.">:P5_TASK_NAME</a...
    But P5_TASK_NAME value appears without any link and does not open page 3.
    Then I created a new text item (display only) in the same HTML region in page 5 and entered the following code in the default box:
    ...a href="f?p=&APP_ID.:3:&SESSION.">LINK</a...
    When I ran the application, it displayed the whole code as text.
    How can I display P5_TASK_NAME value with a link to open page 3?
    Would appreciate your help.
    ... to be replaced with < or >
    Could you please let me know how to display link code correctly?
    Thanks,
    Guy
    Edited by: GUY3 on Mar 11, 2009 4:20 PM

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How to change the engine's status

    How to change the engine's status?
    Thanks

    In the process administrator there is a little play of stop button next to each engine.
    This is only in enterprise or standalone version off course.
    It this doesn't answer your question please supply some extra information.
    Kind regards
    Nils.

  • How to change arround 1500 items price in one times in vk11 tcode

    Dear All,
    can anybudy know How to change arround 1500 items price in one times in vk11 tcode
    or any other method to change at a one time
    Regards
    Pritpal Mehru

    hello again, friend.
    LSMW is a t-code and it is a tool for uploading master data and condition records.  the general steps as follow:
    1.  execute t-code LSMW
    2.  after entering the title of the PROJECT, the system will ask you what transaction to record.  in this case, it is VK11.
    3.  you will go through the process of creating a price condition record just like normal.  after you finish the transaction, you will now select the fields that you will use for your template.  you will have to take note of the technical names of the fields (online help will be available, so don't worry).
    4.  you will also specify the name of your template, which the system will use in the actual upload.  at this point you can choose to save and work on your template in a separate screen.
    5.  now you create your price condition template in an EXCEL file.  how many fields you specified in LSMW is how many columns you will need in the template.  for example, you will have columns such as SALES ORGANIZATION, DISTRIBUTION CHANNEL, MATERIAL NUMBER, PRICE, VALIDITY DATES, etc.  you then enter your data in this template.  if you have 1500 prices, then your template will have 1500 or more lines.
    6.  after saving the template, you will save this into a delimited text file.
    7.  go back to your LSMW, select this file, process it.  the system will do the VK11 for you using the info from your template.
    try this in a sandbox of DEV environment.  it is difficult only at the beginning.  with practice it becomes easier.  your customers will love you for it.
    hope this helped.  please reward if it did.
    regards.  thanks!

  • How to change spare part item price in sap

    Dear All,
    Can you tell me how to change spare  part item price in sap ,
    like in our company hike new price of spare part item so how can update a new price in bluk order
    thankx and Regards
    Pritpal

    Hi,
    Try MR21 & MR22.
    First assign the appropriate G/L account against the account key for the same.
    Regards,
    Sourabh

  • Add the configuration data to service contract Item

    Hi Experts,
    I have to assign the configuration character stics to the service contract (va43)
    if we click the service contract Item ->extras->Configuration
    there I need to add the characterstics.
    Could any one suggest me if any function module is available for that.
    Thnx,
    Jaya.

    What config data do you need... u need to be more specific and explanatory.. to get an answer

  • How to change Service Item using BAPI_ENTRYSHEET_CREATE.

    Hi All,
    There's a requirement for me to upload/ Create Entry Sheet using BAPI_ENTRYSHEET_CREATE from the source file.
    The Header was given to me but the Service Item, they would like the flexibility to change the existing lines that was adopted from ML81N.
    Eg of the file.
    Header given:-
    PO NO
    Po Item
    Short Text
    Ext Entry Sheet No
    Service Location
    Period Start
    Period End ....n so on
    Service Item given:-
    Service Line (Extrow)
    Service Order Qty (Memge)
    Ext Service No (EXTSRVNO)
    The objective of this file is
    1) Create Service Entry Sheet (using Header)
    2) Adopt the Service Item
    3) Change Service Item (using Service Item)
    Could anyone guide me how to do it? If Using BAPI_ENTRYSHEET_CREATE...is actually creating it with full details of the upload file. but given to me, t requrement is they would like to create n change the item.
    Appreciates your help.
    Thank you.
    Regards,
    Sheena Wee

    Hi ,
    If you are trying to test the FM through TCode SE37 then it will not give you the desired output.Do one thing create a test program and there you call the FM with your data.I hope in this way you can solve the issue.
    Regards,
    Sarbajit.

  • How to creating Service Contract using BAPI_SLSTRANSACT_CREATEMULTI

    Hi,
    In my requirement, I have to create a Service Contract from flat file by using BAPI - BAPI_SLSTRANSACT_CREATEMULTI  and data which are comming from flat files are, Serial number, Sold-to party, Ship-to party, Installation date, Contract start date, Contract end date, Service profile, Response profile.
    Please suggest me what are the Import parameters should I pass in this BAPI to create Service Contract?
    Thanks in Advance,
    Deepesh

    Hi All,
    for everybody's benefit (and to avoid you the time I've spent to work this out...), here is a working example on how to create an sales order (TA) via the BAPI_SLSTRANSACT_CREATEMULTI.
    Not really a Service Contract, but it tells you how to call the BAPI.
    Points appreciated, if you find this helpful...
    I use the convention entryField for the values that should be set based on your system.
    Cheers
    G
    *& Report  ZZGVBAPISALESORDER
    REPORT  ZZGVBAPISALESORDER.
    include constants
    include crm_direct.
    // GUIDs
    data: lv_guid_h       type GUID_32,
          lv_guid_i       type GUID_32,
          lv_guid_sl      type GUID_32,
          lv_guid_p       type GUID_32.
    // Handles
    data: lv_current_handle type crmt_handle,
          lv_handle_h      type crmt_handle,
          lv_handle_i      type crmt_handle,
          lv_handle_sl     type crmt_handle,
          lv_handle_p      type crmt_handle.
    // Administration header + item + etc
    data: lt_salesorder_header type table of bapibus20001_header_ins,
          ls_salesorder_header type bapibus20001_header_ins,
          lt_salesorder_item   type table of bapibus20001_item,
          ls_salesorder_item   type bapibus20001_item,
          lt_scheduleline      type table of BAPIBUS20001_SCHEDLIN,
          ls_scheduleline      type BAPIBUS20001_SCHEDLIN,
          lt_partner           type table of BAPIBUS20001_PARTNER_INS,
          ls_partner           type BAPIBUS20001_PARTNER_INS,
          ls_logical_key       TYPE crmt_partner_logic_partner_key,
          lt_organisation      type table of BAPIBUS20001_ORGMAN_INS,
          ls_organisation      type BAPIBUS20001_ORGMAN_INS.
    // Saved sales orders
    data: lt_saved_process type table of bapibus20001_object_id,
          ls_saved_process type bapibus20001_object_id,
          ls_salesorder    type CRMT_RETURN_OBJECTS_STRUC.
    data: lt_input_fields type table of bapibus20001_input_fields,
          ls_input_fields type bapibus20001_input_fields,
          lt_return type table of bapiret2,
          ls_return type bapiret2.
    // Macro definition to populate structure and input field
    This, called as
    setfield ls_salesorder_header GUID lv_guid_h
    is exploded as
    ls_salesorder_header-GUID = lv_guid_h.
    ls_input_fields-fieldname = 'GUID'.
    append ls_input_fields to lt_input_fields.
    Note 1: &2 (field name) MUST be uppercase
    Note 2: for the salesorder header, I haven't used the macro,
    to show how the code should look.
    I've used the macro everywhere else.
    define setfield.
      &1-&2          = &3.
      ls_input_fields-fieldname  = '&2'.
      append ls_input_fields to lt_input_fields.
    end-of-definition.
    // end of macro definition
      // fill order administration header
    perform get_guid changing lv_guid_h.
    add 1 to lv_handle_h.
    ls_salesorder_header-guid          = lv_guid_h.
    ls_salesorder_header-handle        = lv_handle_h.
    ls_salesorder_header-process_type  = 'TA'.
    clear ls_input_fields.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_guid = lv_guid_h.
    *ls_input_fields-ref_kind   = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-orderadm_h.
    ls_input_fields-fieldname  = 'GUID'.
    append ls_input_fields to lt_input_fields.
    ls_input_fields-fieldname  = 'HANDLE'.
    append ls_input_fields to lt_input_fields.
    ls_input_fields-fieldname  = 'PROCESS_TYPE'.
    append ls_input_fields to lt_input_fields.
    append ls_salesorder_header to lt_salesorder_header.
      // fill organisation data (I needed this, you may rely on
    sales org determination instead...)
    clear ls_input_fields.
    ls_input_fields-ref_handle  = lv_handle_h.
    ls_input_fields-ref_guid    = lv_guid_h.
    ls_input_fields-ref_kind    = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname  = gc_object_name-orgman.
    setfield ls_organisation REF_GUID lv_guid_h.
    setfield ls_organisation REF_HANDLE lv_handle_h.
    setfield ls_organisation REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_organisation SALES_ORG_RESP salesOrgResp(input).
    setfield ls_organisation SALES_ORG salesOrg(input).
    setfield ls_organisation DIS_CHANNEL disChannel(input).
    append ls_organisation to lt_organisation.
      // fill order administration item
    perform get_guid changing lv_guid_i.
    lv_handle_i = lv_handle_h.
    add 1 to lv_handle_i.
    clear ls_input_fields.
    ls_input_fields-ref_guid   = lv_guid_i.
    ls_input_fields-ref_handle  = lv_handle_i.
    *ls_input_fields-ref_kind   = gc_object_ref_kind-orderadm_i.
    ls_input_fields-objectname = gc_object_name-orderadm_i.
    setfield ls_salesorder_item GUID lv_guid_i.
    setfield ls_salesorder_item HEADER lv_guid_h.
    setfield ls_salesorder_item HANDLE lv_handle_i.
    setfield ls_salesorder_item HEADER_HANDLE lv_handle_h.
    setfield ls_salesorder_item ORDERED_PROD product(input).
    *_set_field ls_salesorder_item ITM_TYPE 'TAN'.
    setfield ls_salesorder_item MODE 'A'.
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
    delete lt_input_fields where fieldname = 'HANDLE'
                                    OR
                                 fieldname = 'HEADER_HANDLE'.
    append ls_salesorder_item to lt_salesorder_item.
      // fill schedule line for item
    perform get_guid changing lv_guid_sl.
    add 1 to lv_handle_sl.
    clear ls_input_fields.
    ls_input_fields-ref_guid   = lv_guid_i.
    ls_input_fields-ref_handle  = lv_handle_i.
    ls_input_fields-ref_kind   = gc_object_ref_kind-orderadm_i.
    ls_input_fields-objectname = gc_object_name-schedlin.
    setfield ls_scheduleline ITEM_GUID lv_guid_i.
    setfield ls_scheduleline GUID lv_guid_sl.
    setfield ls_scheduleline HANDLE lv_handle_sl.
    setfield ls_scheduleline ITEM_HANDLE lv_handle_i.
    setfield ls_scheduleline QUANTITY '1.000'.
    append ls_scheduleline to lt_scheduleline.
      // fill partner line
    *perform get_guid changing lv_guid_p.
    *the partner use the logical key as well
    ls_logical_key-ref_partner_handle = '0001'.
    clear ls_input_fields.
    ls_input_fields-ref_guid   = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind   = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0001'.
    setfield ls_partner KIND_OF_ENTRY 'C'.
    setfield ls_partner PARTNER_FCT '00000001'.
    setfield ls_partner PARTNER_NO bpNumber(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    //  example of a second partner function (custom) with data
        override
    ls_logical_key-ref_partner_handle = '0002'.
    clear ls_input_fields.
    ls_input_fields-ref_guid   = lv_guid_h.
    ls_input_fields-ref_handle = lv_handle_h.
    ls_input_fields-ref_kind   = gc_object_ref_kind-orderadm_h.
    ls_input_fields-objectname = gc_object_name-partner.
    ls_input_fields-logical_key = ls_logical_key.
    setfield ls_partner REF_GUID lv_guid_h.
    setfield ls_partner REF_HANDLE lv_handle_h.
    setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
    setfield ls_partner REF_PARTNER_HANDLE '0002'.
    setfield ls_partner KIND_OF_ENTRY 'B'.            "manual entry...
    setfield ls_partner PARTNER_FCT customFct(input).
    setfield ls_partner PARTNER_NO bpNumber(input).
    setfield ls_partner NO_TYPE 'BP'.
    setfield ls_partner DISPLAY_TYPE 'BP'.
    setfield ls_partner TITLE 'Mr.'.
    setfield ls_partner FIRSTNAME 'John'.
    setfield ls_partner LASTNAME 'Smith'.
    setfield ls_partner STR_SUPPL1 'John Smith and Co'.
    setfield ls_partner STREET 'Street1'.
    setfield ls_partner STR_SUPPL3 'Street4'.
    setfield ls_partner HOUSE_NO '42'.
    setfield ls_partner CITY 'Townville'.
    setfield ls_partner DISTRICT 'Districtshire'.
    setfield ls_partner POSTL_COD1 'AA1 2BB'.
    note now ...
    *adjustment taken from standard include LCMS_MAPPERF04
    *(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
    I don't use macro because name of the field in input_table is different
    *_set_field ls_partner COUNTRYISO 'GB'.
    *instead
    ls_partner-COUNTRYISO = 'GB'.
    ls_input_fields-fieldname = 'COUNTRY'.
    append ls_input_fields to lt_input_fields.
    *_set_field ls_partner LANGU_ISO 'EN'.
    ls_partner-LANGU_ISO = 'EN'.
    ls_input_fields-fieldname = 'LANGU'.
    append ls_input_fields to lt_input_fields.
    move-corresponding ls_partner to ls_logical_key.
    append ls_partner to lt_partner.
    Create sales orders                                                  *
    call function 'BAPI_SLSTRANSACT_CREATEMULTI'
      EXPORTING
        testrun       = false
      TABLES
        header        = lt_salesorder_header[]
        item          = lt_salesorder_item[]
        partner       = lt_partner[]
        organisation  = lt_organisation[]
        input_fields  = lt_input_fields[]
        scheduleline  = lt_scheduleline[]
        saved_process = lt_saved_process[]
        return        = lt_return[].
    // get the GUID of the created object
    call function 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
    INCLUDE ZZGVBAPISALESORDER_GET_GUIDF01.
    The include contains only this:
    ***INCLUDE ZZGVBAPISALESORDER_GET_GUIDF01 .
    *&      Form  get_guid
          text
         <--guid  text
    FORM get_guid  CHANGING GUID.
      CALL FUNCTION 'SYSTEM_UUID_C_CREATE'
          IMPORTING
               UUID    = GUID.
    ENDFORM.                    " get_guid

  • How to change & see the PO Status (Purchase Order Status) ?

    Hi Everybody,
    I have to change the PO Status. For this I am using the Function Module 'BBP_PD_PO_STATUS_CHANGE'. But it is not changing the PO Status. How/Where to see the PO Status?
    Please help me out asap.
    Thanks & Regrds,
    Nagaraju Maddi
    Message was edited by: Nagaraju Maddi

    Hi ,
    It is possible to Update the Pricing procedure in Old PO. For this what you need  to do is Open PO in ME22N transaction, in the header Org. Data tab remove the Purch. Org and Company Code and press Enter Key for 3 or 4 times now enter the Purch. Org and Company Code now check in the Item Data, condition tab Analysis button new Pricing procedure is picked up. Even we can change the PO Currency in this way if it is changed in Vendor master.
    Hope this will help you
    Best Regards,
    Pradeep Naik

  • 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

  • How to change service for all members

    Hello,
    We setup our cluster with member1 and member2 as follows.
    backup-count = 1 on cluster configuration.
    service-name = CACHE-TEST-A, which is stored in Member1
    the backup of CACHE-TEST-A is stored in Member2
    Now we change the service name CACHE-TEST-A to CACHE-TEST-B.
    The question under consideration is how to change CACHE-TEST-A to
    CACHE-TEST-B in both members.
    Test steps:
    1 Turn off the service, execute the following code:
    CacheFactory.getCluster (). Shutdown ();
    CacheFactory.getCluster (). Stop ();
    2 Modify the configuration file, the CACHE-TEST-A modified CACHE-TEST-B
    3 Restart the service, execute the following code:
    DefaultCacheServer cacheServer = new DefaultCacheServer (new DefaultConfigurableCacheFactory ());
    cacheServer.start ();
    Result:
    Service started, but the configuration file is not loaded,
    it seems that the system is still configured with CACHE-TEST-A.

    We are going to achieve as below.
    Requirements:
    In the existing cluster nodes without adding a new premise, deploy new business class package (based on CacheStore the jar), also updating some of the Cache service scheme of the configuration.
    Solution:
    We use the above coding part (using a custom Jmx and DefaultCacheServer to stop and start nodes) to achieve the requirement, but do not know whether any other better solution for this.

Maybe you are looking for

  • IDOC for Creation of Production order and also adding components

    Hi , I have a requirement like I get the data from a 3rd party system and using that i have to create production orders and also should be able to add more materials in COMPONENTS part of that Production order. I was looking for a BAPI which can hand

  • Trouble downloading Snow Leopard sw updates- system crashes during update installs. I'm only trying to get to the AppStore to download

    I've upgraded from Leopard to Snow Leopard... fine. Installing the system updates (the AppStore isn't in the Snow Leopard install, just available via a system update) The updates appear to have downloaded ok, then the system restarts to install, and

  • Finding changes in HR infotypes by date.

    Hi All, I am required to develop a report giving * changes in HR infotypes by date. *I have made use of two Function Modules, HR_INFOTYPE_LOG_GET_LIST and HR_INFOTYPE_LOG_GET_DETAIL. I am able to correctly get the table giving output of first functio

  • Tracing material master changes

    Hello, I am trying to log changes made to material master - classification tab. We dont want to use CDHDR to track changes made to Classification data. Because we are reluctant to run the report RCCLUKA2 because of various related issues. Has someone

  • Flash database tutorial

    I'm currently using Flash CS3 with actionscript 2.0. I've been looking around on the internet for a tutorial that defines how to implement a database into a Flash application. I've nto had much luck, alot of the tutorials out there use out-dated vers