Service Contract BAPI

Hey Guys
When you display a service contract using va43. Then go to the billing plan tab, you see a contract start date and the contract end date under the billing plan block. Suppose these dates are 01.03.2008 - 28.02.3009, i.e. it is a 12 months contract, the system divides this into 12 months (say 12 parcels) and sends an invoice every month. Suppose I know the billing date for the month of March is 25.03.2008, that means it lies in the 1st parcel.
Is there any BAPI or FM or something where in I just give these parameters that is
1.contract start date
2.end date
3. billing date
and the system returns me the period/parcel/month.
Appreciate all help,
Thanks,
Sameer

Hey Guys
When you display a service contract using va43. Then go to the billing plan tab, you see a contract start date and the contract end date under the billing plan block. Suppose these dates are 01.03.2008 - 28.02.3009, i.e. it is a 12 months contract, the system divides this into 12 months (say 12 parcels) and sends an invoice every month. Suppose I know the billing date for the month of March is 25.03.2008, that means it lies in the 1st parcel.
Is there any BAPI or FM or something where in I just give these parameters that is
1.contract start date
2.end date
3. billing date
and the system returns me the period/parcel/month.
Appreciate all help,
Thanks,
Sameer

Similar Messages

  • Error in BAPI RETURN for Service Contract

    Hi,
      I get an error in the BAPI Return for the Uploading the Service Contracts by LSMW. The Error Message is E BS No status object is available for &.Also want to know can we upload multiple line of header text for a Contract by this BAPI. If so then how would I do this , as the BAPI structure BAPISDTEXT has textline upto 132 characters. And I am take only one file in LSMW where the header & details come alongwith text. Or could also tell me the file structure of for the data upload. The legacy system sends multiple text in the header for a Contract.For Eg.
    Header1 Detail1 Text1
    HEader1 Detail2 Text2
    Header1 Detail3 Text3
    So I would need this text1TEXT2text3 in the Header Text of the Contracts. Or do I need the change the file structure. Many thanks for your time and help.

    Thanks Nablan, I could do that for multiple header coming in file. But I have a question for you on BAdI ALM_ME_006_GOODSMVT. I have implemented this BAdI , and this BAdI is called by a function Module ALM_MEREP_006_CREATE. When I test this FM giving the Material , Orderid and Movement type entries, this BAdI is triggered when giving a breakpoint. I've given this code for changing the movement type to 961. Cause the stanadrd scenario does not maintain Movement type 961 in Mobile Asset Management. The Movement type 961 for unplanned Materials comes to SAP and changes to 261 as maiantained by TCOKO table. To bypass this & retain the movement type 961 in SAP I'm using this BAdI. Currently this is what I'm doing and am stuck in the method interface how do I call the method.
    method IF_EX_ALM_ME_006_GOODSMVT~CREATE .
    break-point.
    *DATA : i_ce_goodsmovement TYPE REFERENCE
              ALM_ME_CUSTOMER_ENHANCEMENT.
    DATA : lr_badi_goods_movement TYPE REF TO if_ex_alm_me_006_goodsmvt.
    DATA : ls_user_data TYPE ALM_ME_USER_DATA-USERID.
    *DATA : goods_movement TYPE ALM_ME_MATERIAL_MOVEMENT.
    CALL METHOD lr_badi_goods_movement->create
      EXPORTING
           ce_goodsmovement = ce_goodsmovement
      IMPORTING
           user_data        = ls_user_data
           custom_user_data = ls_ce_user_data
           goods_movement   = goods_movement
      changing
           return           = return[].
    CALL FUNCTION 'ALM_ME_COMMIT_OR_ROLLBACK'
           TABLES
                return = return.
    endmethod.
    Please help me to get the data in this method. How do I call this.

  • Need BAPI to update 'Payment terms' for service contract

    Hi ,
    I need to update 'Payment Terms' for a large set of Service contracts. Can you pls suggest me a BAPI to do this. Can I use CRM_ORDER_MAINTAIN function module for my requirement. If yes, what are the parameters need to be passed?
    Thank you,
    Regards,
    Rajesh.

    Replace the
    LT_BAPISDITMX-CUST_MAT35 = 'X'.
    by a
    LT_BAPISDITMX-PMNTTRMS = 'X'.
    Regards,
    Raymond

  • BAPI for entering MM Service Contracts

    Hi,
       I would like to know which is the best bapi to be used to enter the MM service contracts. I have got two bapis
    1)  BAPI_CONTRACT_CREATE
    2)  BAPI_AGREEMENT_MAINTAIN
    Which one is the Best bapi and whats the min. required fields to be used to create a consistant MM Service Contracts.
    Regards,

    Hi,
        Is it service provider ?
        If you are looking for Provider Category , Provider Code then pass them to the structure ADDINFO   (BAPITRADDI)  ..
        Look at table TA21P for Travel Service Providers
        Please take a look at the program : RPTTIZ_BAPI_TEST
    Regards,
    Srini.

  • BAPI for Service contract

    Hi All
    Have anybody used BAPI_CUSTOMERCONTRACT_CHANGE.
    I need to change the unit costing in the contract.
    To go to unit costing in VA42 transaction, we have to use
    (ctrl+f7 or Extras ->Costing)
    Please let me know, if anybody used any other BAPI to add ot change the exisiting entries
    Regards
    Madhan Doraikannan

    Hi Madhan,
      I have used this BAPI and you can use this for costing all you need to do is pass the value and flag 'X' that needs to be changed in the BAPI. Please find the code I have used.
    CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
         EXPORTING
            salesdocument               =   i_salesdoc_in-vbeln
            contract_header_in          =   i_contractheaderc
            contract_header_inx         =   i_contractheaderu
           SIMULATION             =  C_X
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
          TABLES
            return                      =   i_bapiret
         contract_item_in               =   i_contract_items1[]
         contract_item_inx              =   i_contract_itemsx[]
         partners                       =   i_partner[]
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
          conditions_in                 =   i_condition[]
          conditions_inx                =   i_conditionu[]
      CONTRACT_CFGS_REF           =
      CONTRACT_CFGS_INST          =
      CONTRACT_CFGS_PART_OF       =
      CONTRACT_CFGS_VALUE         =
      CONTRACT_CFGS_BLOB          =
      CONTRACT_CFGS_VK            =
      CONTRACT_CFGS_REFINST       =
         contract_text                  =   i_contract_text[]
         contract_data_in               =   i_contract[]
         contract_data_inx              =   i_contractu[].
      CONTRACT_KEYS               =
      EXTENSIONIN                 =
        IF sy-subrc EQ 0.                                       "#EC *
    - Commit the BAPI which will finally create Service Contracts
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        ENDIF.
    Regards,
    Tim

  • Function or bapi for changing service contract in CRM

    Hi all,
    anyone heard of a function that is able to alter a service contract in CRM?
    Thanks!
    Ron.

    Fixed it with FM CRM_ORDER_MAINTAIN.

  • Creation of service contract in background

    Hello,
    is there a function module or bapi to create and release an new service contract in background?
    We plan to maintain service contracts in ERP. But we need in CRM a kind of mini contract for the SLA determination in the service request. Therefore we have the requirement to create and release this mini contract directly in background.
    All the needed information like BP, Serviceproduct line item and object list will be available to feed such a FM or BAPI.
    Thank you
    Best regards
    Manfred

    Hi Manfred,
    please try to use CRM_SRV_ORDER_API_CREATE.
    When tracing the creation of a new contract there is also CL_CRM_1O_MAIN=>CREATE_ORDER, maybe this can be used.
    best regards,
    Johannes

  • Creation of Service Contract

    Hello
    Is it possible to create Service Contract through LSMW - BAPI methodology in SAP CRM EHP-2  ??
    Can anybody throw some light on : how to achieve it
    Thanks in Advance.
    Abhi

    Abhishek,
    There is no BAPI to create service contract. You can use either BOL or FM - CRM_ORDER_MAINTAIN based custom program to create service transaction in mass.
    There is lot of help available on these two.
    There is also a standard IDOC - CRMXIF_ORDER_SAVE_M available which can be used. But this one will not ba having custom fields and tables. You need to regenerate a custom out of it for custom fields and tables.
    Cheers,
    Niraj

  • CRM- Find Service contract from Internal Order Number

    Hi Friends,
    I would like to know how to get service contract from internal oredr number.
    From service contract we can find internal order number by using CRM_ORDER_READ function module- table et_document_flow, but my requirement is how to find service contract from Internal order number.Any function module or BAPI available for this requierement ?
    Regards
    Vinayak Sapkal

    Hi,
      when the costs are transferred from CRM to R3, they are posted to an internal order. When a service order or incident is transferred to R3, we have to create an internal order for it, regardless of whether or not a contract has been assigned.
    This is all linked to the logic used in CO to find the appropriate internal order. It works as follows:
    The internal order is stored in the table IAOM_ASSIGNMENTS. This is accessed by a guid (the account assignment guid).
    To get this guid, there is a second table IAOM_EXT_OBJ_INF. This table links the GUIDs coming from CRM, dependent on the CO Customizing for CRM (Mass Controlling, Header level, item level controlling etc.)
    This is how we manage to link a service order to the internal order of a contract in the first place.
    When we call CO, CO first looks for an assignment for the object guid passed. If a service order has been linked to a contract, nothing will be found for the object guid. CO will then check for assignments to the reference guid and find the contract entry.
    If no contract has been assigned, CO will create an internal order based on the service order guid.
    From a CRM point of view, costs are assigned directly to an item, and so it makes no sense to have a reference guid for the costs or the possibility to change the guid via BADI.
    regards
    Waman

  • Canceling a service contract

    Hi,
    I am passing a future cancellation date for a service contract through a custom BAPI . The date is getting passed, but the billing plan line items are not getting deleted. I have to manually go into the service contract and select the date again to delete the bill plan line items.
    Can anyone please let me know how to do the action through the BAPI?

    Hello again Sloppy_Carlton,
    I’m glad to see you are utilizing the forums to reach out to us about multiple experiences, although I am sorry to see that neither of the experiences you posted about left you feeling delighted.
    Per our Return & Exchange Promise, we may return or exchange almost everything; however, devices that are damaged would be excluded. It seems the unauthorized modification (rooting and unrooting the phone) may have been the cause of the phone not turning on when attempting to update your operating system to KitKat. We would not be able to accept this device for an exchange or return as it would be considered damage from the unauthorized modification.
    That being said, I’m glad to hear you seem to have been provided a one-time solution to this experience. We truly value your insight and the time you have taken to share these insights with us. If you should need any further assistance, please feel welcome to reach out to us.
    Thank you for posting on the forum! 
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • How to create a Service Contract ? (ABAP related devlopment)

    Dear All,
    How to create a Service Contract ? (ABAP related devlopment)
    The Info I have is that
    Service contract will contain:
    u2022     Validity Start
    u2022     Validity End
    u2022     Duration u2013 minimum period for contracts
    Additional Info:
    1. Creation of service contract will take place automatically via u201Cfunction moduleu201D. This step will take place if all serial numbers are known in the sales order.
    2. When ever a Sales Order is created in Seibel containing a line item of servie contract I need to create a service contract
    I searched a BAPI -- BAPI_CONTRACT_CREATE
    I searched a Tran  --  VA41- create Contarct ( type - WV - Service and maint)
    I am i in right direction ---> , If you have any good solution kindly answer
    Please help.

    Hi Iqbal,
    You can use
    BAPI_CONTRACT_CREATE
    BAPI_CONTRACTS_CREATEFROMDATA .
    Once you create the contract, update the technical objects for the contracts
    using two function modules called one after another.
    IWOL_WV_ADD_OBJECTS
    IWOL_WV_POST_OBJECT_LIST
    Check this link:
    http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CREATE
    Regards,
    Chandra Sekhar

  • Create 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, <b>Serial number, Sold-to party, Ship-to party, Installation date, Contract start date, Contract end date, Service profile, Response profile.</b>
    Please suggest me what are the Import parameters should I pass in this BAPI to create Service Contract?
    Thanks in Advance,
    Deepesh

    Hi Deepesh ,
    Please use BAPI_BUSPROCESSND_CREATEMULTI for creating the service contract.This is better in terms of functionality and usage , though very similar to BAPI_SLSTRANSACT_CREATEMULTI in terms of its interface.
    You need to call :
    1. BAPI_BUSPROCESSND_CREATEMULTI
    2. BAPI_BUSPROCESSND_SAVE
    3. BAPI_TRANSACTION_COMMIT 
    in succession.
    As far as filling the import parameters is concerned,
    1.All your dates would go to APPOINTMENT_H or APPOINTMENT_I ( Header or Item)
    2.Sold-to Party, Ship-to Party would go to PARTNER.
    Regards,
    Rishi.

  • 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

  • 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

  • Copy items of service contract

    Hello Friends,
    I am looking for any FM or BAPI which let me copy the items of service contract and then let me update this newly coped service contract ?
    Is there any FM  to do so ?
    Regards,

    Hi Shah,
    You can use the FM CRM_ORDER_MAINTAIN and then CRM_ORDER_SAVE(to save your progress) to create as follow-up and/or change(copy in your case) -- maintain your contracts...
    Hope it helps..
    Please reward points by selecting a star..

Maybe you are looking for