A function module to create service confirmation

Hello,everyone
I need your help.
I'm looking for a function module to create crm service confirmation.
Can you give me some help.
Thanks.

Hi,
You can find a very simple example of function module CRM_ORDER_MAINTAIN at SDN WIKI:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/crm/creation%252bof%252bquatation%252bsample%252bcode
Cheers,

Similar Messages

  • Function Module to Create Service Order (IW31)

    Hi All
    Kindly let me is there any function Module or BAPI to create Service order (Transaction IW31).
    Thanks

    Found Solution

  • Function module for Create service order with reference to sales doc (RAS )

    Hi All,
    I have to create a service order (type SM03) with reference to sales document (doc type RAS, in other way it is called as repair order).
    I have used function module 'ALM_ME_ORDER_CREATE' && 'CO_ZV_ORDER_POST' to create service order and its working fine but problem is that i am not able to create linking between repair order and service order.
    Can anyone suggest me function module, BAPI to create service order with reference as sales document (RAS) so that all related details of sales document will automatically reflect to service order..
    Sumit

    Try this function module BAPI_ORDER_MAINTAIN. Just search with BAPI_ORDER* in SE37 you will get some more functions.
    Regards
    Kathirvel

  • CRM - function module to create card account in deposit mangement

    Hi All,
    I need to function module to <b>display the details of business patner in CRM sytem</b>
    1. Function module to display address details of Business patner
    2. FM to display details of Identification number and identification type of Business patner.
    3. FM to display tax details of business patner.
    4. FM to display card details of Business patner
    5.)<b> Fm to create card account in deposit Mangement.</b>
    what is the transaction code to create card account in deposit management.
    Points will be awarded.
    Regards,
    vinoth.

    Hi Stefan,
    Thanks for the quick response.
    As you have suggested i am using the same set of Function Modules to create the service contracts.
    However can you please suggest how can i also change the address of the business partners i.e ship-to-party, sold-to-party, payee etc..
    And can you also suggest how to upload the header status of the service contract. (the value is getting set to default 'open')
    Thanks in advance

  • FM/Class for creating service confirmation from service order

    Hello Gurus,
    Does anyone know a FM/BAPI/Class to create service confirmation from service order ?
    With warm regards,
    Kallol Bhowmick

    Hello Kallol
    You can trigger a confirmation from service order using action profile.
    Here is how to define action profile:
    IMG > CRM > Basic Functions > Actions > Actions in Transaction
    Dialog Stucture> Action profile:
    Object type = BUS2000116
    Context class = CL_DOC_CONTEXT_CRM_ORDER
    Dialog Stucture> Action Definition:
    Processing time: Processing using selection report
    Check box schedule automatically, Changeable in dialog and executable in dialog.
    Dialog Stucture> Processing types
    Permitted processing types of actions: Select - Method Call
    Settings method call: Method - COPY_DOCUMENT (you can also try COPY_DEF_ITEMS)
    Processing Parameter:
    -Select change icon a new window opens - container editor
    -select create icon another window opens - display container editor
    Here enter following:
    Element = PROCESS_TYPE
    Name = PROCESS_TYPE
    short desp = PROCESS_TYPE
    Tab > Dtype:
    Structure = CRMC_PROC_TYPE
    Field = PROCESS_TYPE
    Tab> initial value
    Here maintain the transaction type of your confirmation.
    save your action profile. Now assign action profile to Service oder transaction type.
    I hope this info helps.
    Regards
    Rupesh Patil

  • Exposing ABAP function modules as web services

    Hi All,
    I am trying to expose function modules as web service but when i click on 'Web service Homepage' button it is throwing error :
    "Setting for J2EE server do not exist".
    Could you please guide me through this?
    Regards,
    Abhijeet.

    hi
    r u releasing the web service for FMs
    here r the steps.
    To release FMs as webservice it should be RFC enabled.
    then goto SE80 and search for the FM u want to release web service.
    then right click on the FM
    then Create->web service
    then give the web service name then continue.
    click on chk box for relase run time.
    then assign one request and package
    now goto WSADMIN tcode ahere u can see ur webservice and then use that.
    mark points if helpful
    Regs
    Manas Ranjan Panda

  • FM  BAPI To Create Service Confirmation

    Hi Friends,
    Kindly suggest me FM \ BAPI to create Service Confirmation.
    Regards,
    Narendra Goyal

    Hi,
    Find the code below:
            creation of header guid for service confirmation
              CLEAR v_head_ref_guid.
              CALL FUNCTION 'GUID_CREATE'
                IMPORTING
                  ev_guid_16 = v_head_ref_guid.
              CREATION OF THE ITEM GUID
                CLEAR v_item_ref_guid.
                CALL FUNCTION 'GUID_CREATE'
                  IMPORTING
                    ev_guid_16 = v_item_ref_guid.
              CREATION OF SCHEDULING LOGICAL GUID.
                CLEAR v_sched_logical.
                CALL FUNCTION 'GUID_CREATE'
                  IMPORTING
                    ev_guid_16 = v_sched_logical.
              values for it_pricing
                CLEAR wa_pricing.
                CLEAR it_pricing.
                wa_pricing-ref_handle = c_ref_handle2.
                wa_pricing-ref_guid   = v_item_ref_guid.
                wa_pricing-ref_kind   = c_b_kind.
                INSERT wa_pricing INTO TABLE it_pricing.
              values for product_i-UOM
                CLEAR wa_product.
                READ TABLE it_product INTO wa_product INDEX 1.
                IF sy-subrc = 0.
                  CLEAR wa_fieldname.
                  CLEAR it_fields.
                  wa_fieldname-fieldname = c_process_qty_unit_field.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_input_field.
                  wa_input_field-ref_handle   = c_ref_handle2.
                  wa_input_field-ref_guid     = v_item_ref_guid.
                  wa_input_field-ref_kind     = c_b_kind.
                  wa_input_field-objectname   = c_product_i_input.
                  wa_input_field-field_names  = it_fields.
                  INSERT wa_input_field INTO TABLE it_input_field.
                  CLEAR wa_product_i.
                  wa_product_i-ref_guid         = v_item_ref_guid.
                  wa_product_i-ref_handle       = c_ref_handle2.
                  wa_product_i-process_qty_unit = wa_product-process_qty_unit.
                  INSERT  wa_product_i INTO TABLE it_product_i.
                ENDIF.
              values for service_i
                CLEAR wa_input_field.
                wa_input_field-ref_handle   = c_ref_handle2.
                wa_input_field-ref_guid     = v_item_ref_guid.
                wa_input_field-ref_kind     = c_b_kind.
                wa_input_field-objectname   = c_service_i.
                wa_input_field-field_names  = it_fields.
                INSERT wa_input_field INTO TABLE it_input_field.
                CLEAR wa_service_i.
                wa_service_i-ref_guid   = v_item_ref_guid.
                wa_service_i-ref_handle = c_ref_handle2.
                INSERT wa_service_i INTO TABLE it_service_i.
              fieldnames for quantity
                CLEAR wa_schedul.
                READ TABLE it_schedul INTO wa_schedul INDEX 1.
                IF sy-subrc = 0.
                  CLEAR wa_fieldname.
                  CLEAR it_fields.
                  wa_fieldname-fieldname = c_logical_key.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_fieldname.
                  wa_fieldname-fieldname = c_quantity.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_input_field.
                  wa_input_field-ref_handle   = c_ref_handle2.
                  wa_input_field-ref_guid     = v_item_ref_guid.
                  wa_input_field-ref_kind     = c_b_kind.
                  wa_input_field-objectname   = c_schedlin_input.
                  wa_input_field-logical_key  = c_log_key_item.
                  wa_input_field-field_names  = it_fields.
                  INSERT wa_input_field INTO TABLE it_input_field.
                  CLEAR wa_quantity.
                  CLEAR it_quantity.
                  wa_quantity-guid          = v_sched_logical.
                  wa_quantity-item_guid     = v_item_ref_guid.
                  wa_quantity-quantity      = wa_schedul-quantity.
                  wa_quantity-logical_key   = c_log_key_item.
                  wa_quantity-handle        = c_ref_handle0.
                  INSERT wa_quantity INTO TABLE it_quantity.
                valus for quantity
                  CLEAR wa_schedulin.
                  wa_schedulin-ref_guid   = v_item_ref_guid.
                  wa_schedulin-ref_handle = c_ref_handle2.
                  wa_schedulin-schedlines = it_quantity.
                  INSERT wa_schedulin INTO TABLE it_schedulin.
                ENDIF.
              fieldnames for product
                CLEAR wa_orderadm.
                READ TABLE it_orderadm INTO wa_orderadm INDEX 1.
                IF sy-subrc = 0.
                  CLEAR wa_fieldname.
                  CLEAR it_fields.
                  wa_fieldname-fieldname = c_itm_proc_ident.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_fieldname.
                  wa_fieldname-fieldname = c_mode_input.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_fieldname.
                  wa_fieldname-fieldname = c_ordered_prod.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_fieldname.
                  wa_fieldname-fieldname = c_number_int.
                  INSERT  wa_fieldname INTO TABLE  it_fields.
                  CLEAR wa_fieldname.
                  wa_fieldname-fieldname = c_prog_id.
                  INSERT wa_fieldname INTO TABLE it_fields.
                  CLEAR wa_input_field.
                  wa_input_field-ref_handle   = c_ref_handle2.
                  wa_input_field-ref_guid     = v_item_ref_guid.
                  wa_input_field-objectname   = c_orderadm_i_input.
                  wa_input_field-field_names  = it_fields.
                  INSERT wa_input_field INTO TABLE it_input_field.
                values for product
                  CLEAR wa_orderprp_i.
                  CLEAR v_itemno.
                  v_itemno = v_itemno + v_line_incr.
                  wa_orderprp_i-guid          = v_item_ref_guid.
                  wa_orderprp_i-header        = v_head_ref_guid.
                  wa_orderprp_i-number_int    = v_itemno.
                  wa_orderprp_i-ordered_prod  = wa_orderadm-ordered_prod.
                  wa_orderprp_i-description   = wa_orderadm-description.
                  wa_orderprp_i-handle        = c_ref_handle2.
                  wa_orderprp_i-number_int    = wa_orderadm-number_int .
                  wa_orderprp_i-zzprogram_id  = wa_orderadm-zzprogram_id.
                  INSERT wa_orderprp_i INTO TABLE it_orderprp_i.
                ENDIF.
              ENDIF.
            field names for header
              CLEAR wa_fieldname.
              CLEAR it_fields.
              wa_fieldname-fieldname = c_mode.
              INSERT  wa_fieldname INTO TABLE  it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_process_type_field.
              INSERT  wa_fieldname INTO TABLE  it_fields.
            input field values for header
              CLEAR wa_input_field.
              wa_input_field-ref_guid     = v_head_ref_guid.
              wa_input_field-ref_kind     = c_a_input.
              wa_input_field-objectname   = c_orderadmh_input.
              wa_input_field-field_names  = it_fields.
              INSERT wa_input_field INTO TABLE it_input_field.
            Clearing buffer
              CALL FUNCTION 'CRM_ORDER_INITIALIZE'
                EXPORTING
                  iv_initialize_whole_buffer = c_x
                EXCEPTIONS
                  error_occurred             = 1
                  OTHERS                     = 2.
              CHECK sy-subrc = 0.
            values for header
              CLEAR wa_orderadm_h.
              wa_orderadm_h-guid          = v_head_ref_guid.
              wa_orderadm_h-mode          = c_a_mode.
              wa_orderadm_h-process_type  = c_process_type.
              INSERT wa_orderadm_h INTO TABLE it_orderadm_h.
            values for comp _date
              CLEAR it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_dominant_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_duration_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_rule_name_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_show_local_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_timestamp_from_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_timestamp_to_fiel.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_timezone_from_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_timezone_to_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_fieldname.
              wa_fieldname-fieldname = c_time_unit_field.
              INSERT wa_fieldname INTO TABLE it_fields.
              CLEAR wa_input_field.
              wa_input_field-ref_handle   =   c_ref_handle0.
              wa_input_field-ref_guid     =    v_head_ref_guid.
              wa_input_field-field_names  =    it_fields.
              wa_input_field-ref_kind     =    c_a_input.
              wa_input_field-objectname   =   c_appointment.
              wa_input_field-logical_key  =    c_log_key_appointment.
              INSERT  wa_input_field INTO TABLE  it_input_field.
              CLEAR v_time.
              v_time = sy-uzeit.
              CLEAR v_timestamp.
              CLEAR wa_appointment.
              CONCATENATE wa_record-comp_date v_time INTO v_timestamp.
              wa_appointment-ref_guid       = v_head_ref_guid.
              wa_appointment-ref_kind       = c_a_input.
              wa_appointment-appt_type      = c_appt_type.
              wa_appointment-timestamp_from = v_timestamp.
              wa_appointment-timezone_from  = c_timezone.
              wa_appointment-timezone_to    = c_timezone.
              wa_appointment-ref_handle     = c_ref_handle0.
              INSERT wa_appointment INTO TABLE it_appointment.
              to create a service confirmation as a follow up document
                CALL FUNCTION 'CRM_ORDER_MAINTAIN'
                  EXPORTING
                    it_product_i      = it_product_i
                    it_service_i      = it_service_i
                    it_pricing        = it_pricing
                    it_schedlin_i     = it_schedulin
                    it_appointment    = it_appointment
                  CHANGING
                    ct_orderadm_h     = it_orderadm_h
                    ct_orderadm_i     = it_orderprp_i
                    ct_input_fields   = it_input_field
                  EXCEPTIONS
                    error_occurred    = 1
                    document_locked   = 2
                    no_change_allowed = 3
                    no_authority      = 4
                    OTHERS            = 5.
                IF sy-subrc = 0.
                  CLEAR it_objects_to_save.
                  CLEAR it_saved_objects.
                  INSERT v_head_ref_guid INTO TABLE it_objects_to_save.
                fm to save the service confirmation
                  CALL FUNCTION 'CRM_ORDER_SAVE'
                    EXPORTING
                      it_objects_to_save = it_objects_to_save
                      iv_no_bdoc_send    = c_x
                    IMPORTING
                      et_saved_objects   = it_saved_objects
                    EXCEPTIONS
                      document_not_saved = 1
                      OTHERS             = 2.
                  CHECK sy-subrc = 0.
                  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                    EXPORTING
                      wait = c_x.

  • Need a function module to create production order with reference

    Hi
    I need a function module to create a production order with reference to an existing order. There is no BAPI available for SAP 4.7 release. I found that the function module CO_ZF_PRODUCTIONORDER_CREATE does not create with reference to an existing order.
    Any help will be rewarded.
    Pavan

    Dear Pavan,
    Unfortunately there is no FM for this..
    Cheers
    Nitesh

  • Function modules to create a movement type 105 and 104

    Hi folks,
             I have created a custom screen and attached to MIGO Transaction. If my user enter data and click 'PASS' on my screen, a movement type 105 to be triggered in back ground. And if he click 'FAIL', movement type 104 need to be triggered. is there any BAPI or Function Module to create goods movement type. I have searched some function modules in SE37 and found some stuff. But i am confused which one to use...Could you pls guide me regarding this...
    for ur information, i am thinking to use these FM's
    MB_READ_GOODS_MOVEMENT
    MB_CREATE_GOODS_MOVEMENT
    MB_CANCEL_GOODS_MOVEMENT
    Will it be useful for me.
    Thanks in advance,
    Shyam.
    Edited by: shyam prasad on Jan 7, 2009 10:24 AM

    Hi
    Yes you can use this function modules.
    Thanks & Regards
    Kishore

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Function Module to create Delivery with JIT Calls

    Hi SAP Guru's,
    We are working on SAP 4.6C version.
    I am looking for a function module to create delivery with JIT Calls.
    We are currently using the SAP standard function module "SHP_VL10_DELIVERY_CREATE" to create Delivery with JIT Calls. Each JIT Calls has apx 60-80 materials in it and each material refers to a unique Scheduling Agreement. This function module is taking very long time in production server to create delivery, it does not take much time in dev or quality server.
    We have JITV setting profile (For Sold To Party and Partner Description Profile) set as RELACE (to summarize the line items in JIT Call).
    Is there another function module that we can use to create delivery with JIT Calls?
    Thanks in Advance,
    Amit

    Hi there,
    There is no such function module.
    Regards
    Sanju

  • Function Module for creating Functional Location BOM and Equipment BOM

    Hi All,
    Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???

    Hi,
    Tables for Eq., BOM: EQST, STKO, STPO.
    Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
    You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
    And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
    Hope this helps.
    Best Regards, Murugesh AS

  • Function module for reading service line items of a po

    function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
    My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...

    Hi oskchaitanya ,
    use bapi BAPI_PO_GETDETAIL1.
    Regards
    REA

  • Function Module for creating condition record (XKOMV table record)

    Hi,
    I have a requirement as like below,
    In the repair order i need to sum the GRWR condition type's  conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
    the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
    for the above logic i am using the user exit
    USEREXIT_SAVE_DOCUMENT_PREPARE
    All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
    Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
    Regards,
    Manikumar
    Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PM

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • Is there a BAPI or Function module can create a Customer Master record?

    Hi experts,
    In SE37, Is there a BAPI or Function module can create a Customer Master record?
    Regards

    BAPI_CUSTOMER_CREATEFROMDATA1
    also see this thread.
    Re: Create customer record  in SAP via BAPI
    кu03B1ятu03B9к

Maybe you are looking for