Bapi for CRM service confirmation

Hi All,
  Is there any bapi for CRm service confirmation which done trhough the transaction - CRMD_BUS2000117.
Its urgent.
Points will be awarded.
Reagrds,
vinoth.

Hello Vinoth,
please ask that kind of questions in the SAP CRM: Webclient UI - Framework Forum.
What's about using CRM_ORDER_MAINTAIN? You can find many examples of it's use using the SDN search.
Regards
Gregor

Similar Messages

  • Bapi for Process service confirmation in transaction - CRMD_BUS2000117

    Hi All,
       Is there any bapi for process service confirmation in CRM system.
       Tcode for service confirmation - CRMD_BUS2000117.
    Points will be awarded.
    Regards,
    Vinoth.

    Hello Vinoth,
    please ask that kind of questions in the SAP CRM: Webclient UI - Framework Forum.
    What's about using CRM_ORDER_MAINTAIN? You can find many examples of it's use using the SDN search.
    Regards
    Gregor

  • 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.

  • BAPI for creating service entry

    Hi all,
    Please let me know if there is a BAPI for creatuing service entry. Please provicde sample code.
    Thanks,
    Rajan

    Hi,
    Try this BAPI " BAPI_SERVICE_CREATE ".
    Regards
    Milan

  • Extractor for CRM service plan and product service letter

    Hello:
    Is there an extractor for CRM service plan (object type = BUS2000245) and CRM product service letter (object type = BUS2000210)?
    The delivered extractor 0CRM_SRV_PROCESS_H only extracts regular service order (object type = BUS2000116). The contract extractor (0CRM_SALES_CONTR_I) only extract contract (object type = BUS2000112).
    Any suggestion? Thanks!
    Jennifer

    Hi Jenifer,
          Can you please share me the solution you have implemented.
    Thanks in advance
    Regards,
    Tilak

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all.
    I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
    We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
    I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
    Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
    Regards
    Nick

    I am going to pop this thread into General ABAP forum too.
    Nick

  • BAPI for CRM - CRMD_ORDER

    Hi,
    I am using PI to integrate the third party system to our CRM system.At receive side, i am seeing for  a BAPI to call and to create transaction (CRMD_ORDER) in CRM.Can you please help me in identifying the correct BAPI for this requirement,
    Thanks
    Ashu

    this is worthless as it is....
    but gives you some idea of what you need to do....
    *--- Initialization before processing Quotes                           *
          call function 'CRM_ORDER_INITIALIZE'
            exporting
              iv_initialize_whole_buffer = gc_true
            exceptions
              error_occurred             = 1
              others                     = 2.
    *--- Create service order                                              *
          call function 'CRM_ORDER_MAINTAIN'
            exporting
              it_customer_h     = gt_customer_header
              it_appointment    = gt_appointment
              it_text           = gt_text_data
    *          it_status         = gt_status
            importing
              et_exception      = gt_exceptions
            changing
              ct_orderadm_h     = gt_order_header
              ct_orderadm_i     = gt_order_item
              ct_input_fields   = gt_input_fields
              ct_doc_flow       = gt_doc_flow
              cv_log_handle     = gw_log_handle
            exceptions
              error_occurred    = 1
              document_locked   = 2
              no_change_allowed = 3
              no_authority      = 4
              others            = 5.
    *---If successful, save
          if sy-subrc = 0
          or gt_exceptions[] is initial.
    *--- Service order created ok.....save the service order               *
            clear gt_object_guids.
            refresh gt_object_guids.
            loop at gt_order_header into gs_order_header
            where object_id = gw_object_id.
            endloop.
            insert gs_order_header-guid into table gt_object_guids.
            clear: gw_log_handle.
            call function 'CRM_ORDER_SAVE'
              exporting
                it_objects_to_save   = gt_object_guids
              importing
                et_saved_objects     = gt_object_guids_saved
                et_exception         = gt_exceptions
                et_objects_not_saved = gt_object_guids_not_saved
              changing
                cv_log_handle        = gw_log_handle
              exceptions
                document_not_saved   = 1
                others               = 2.
    endif.
    Just to put it into context, my program for this over 1400 lines long....  there was lots of data manipulation do be done and also some additional processing.

  • 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

  • BAPI for Purchase Order Confirmation and update EKES table

    Hi all,
    I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
    I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
    I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
    Please help me out on this.
    Thanks & Regards
    Pavan

    NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
    Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
    Regards,
    Raymond
    PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it

  • BAPI For Process Order Confirmation

    Hi,
    For Process Order Confirmation we are using the following tcode. COR6N. in the t-code we are include a new field (Shift Field) with help of CONFPP07. and we made the field as mandatory also. in cor6n it is working fine.
    now we are using the bapi for same Process Order Confirmation. here the new field is not available. we want to include the new  ( Shift ) Field also. we are using the following
    BAPI Fm: BAPI_PROCORDCONF_CREATE_TT .
    Regards
    Sathis

    BAPI_PRODORDCONF_CREATE_TT to confirm a production Order
    Erwan

  • BAPI for approving service entry sheets

    Hi All,
    I want to approve a service entry sheet
    I am using the BAPi - BAPI_ENTRYSHEET_CREATE, I am able to create a service entry sheet but unable to approve it.
    Please let me know if there is a BAPi- for approving a service entry sheet.
    Regards
    Shiva

    Hi,
    Try this BAPI " BAPI_SERVICE_CREATE ".
    Regards
    Milan

  • BAPI for Network activty confirmation.

    Dear All,
    I am using BAPI "BAPI_NETWORK_CONF_ADD" for network activity confirmation. When I am entering the activity data and running this function module, I am getting system message network confirmation is saved and also get a confirmation number. But when I look at AFRU (confirmaiton table), I can not see this number, also same is not reflected on the network activity.
    Has anybody came across the error like this ? What can be the probalbe reasons for this ? I am using version 4.7 here.
       Thanks in advance !
    Regards,
    Mahendra

    Mahendra, there is a blog available on how to use BAPI in PS, it shows in steps what are the necessary step to be carried out for executing the BAPI like BAPI_TRANSACTION_COMMIT evern with a sample code, you can search for it, the details are available.

  • Any function module or BAPI for PM order confirmation

    Hi all,
    I'm trying to confirm a PM order (IW41) background. Is there any existing BAPI or FM for me to do that? Thanks in advance.

    Mil,
    check this
    BAPI_PRODORDCONF_CREATE_TT,
    below are other ones which may use for you...
    BAPI_PRODORDCONF_CREATE_ACT Enter Activity Confirmation
    BAPI_PRODORDCONF_CREATE_HDR Enter Order Confirmations
    BAPI_PRODORDCONF_CREATE_TE Enter Time Event Confirmation
    BAPI_PRODORDCONF_CREATE_TT Enter Time Ticket Confirmation
    BAPI_PRODORDCONF_EXIST_CHK Existence Check for Confirming Production Order
    BAPI_PRODORDCONF_GETDETAIL Detailed Data for Production Order Confirmation
    BAPI_PRODORDCONF_GETLIST Confirmations List
    Don't forget to reward if useful....

  • BAPI For Procduction Order Confirmation

    Hi Expert,
    How to use the BAPI_PRODORDCONF_CREATE_TT for Process Order Confirmation
    I have to use two internal tables for order confirmation 
    GOODSMOVEMENTS
    LINK_CONF_GOODSMOV
    Please help.
    Thanks in advance.

    Hi Arpit,
    This BAPI is having Table parameter 'TIMETICKETS' as mandatory. You can use it as below:
      ls_timeticket-conf_no            = i_rueck. " confirmation number
      ls_timeticket-yield                  = i_erfmg. "Quantity   
      ls_timeticket-conf_quan_unit = i_erfme. " Unit
    ** propose goods movements
       ls_bapi_propose-goodsmovement = 'X'.
      CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
        EXPORTING
          propose                      = ls_bapi_propose
        IMPORTING
          return                         = ls_bapi_return    
        TABLES
          timetickets                 = lt_timeticket
          goodsmovements     = lt_goodsmovements
          link_conf_goodsmov = lt_link_conf_goods_mov
          detail_return               = lt_detail_return.
    CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
          IMPORTING
            return             = ls_bapi_return
          TABLES
            timetickets        = lt_timeticket
            goodsmovements     = lt_goodsmovements
            link_conf_goodsmov = lt_link_conf_goods_mov
            detail_return      = lt_detail_return.
    If you already have data for internal tables GOODSMOVEMENTS and LINK_CONF_GOODSMOV, you can skip the propose goods movements BAPI  'BAPI_PRODORDCONF_GET_TT_PROP'.

  • BAPI for change PO confirmation date

    Hi,
    Does anyone know a bapi or a function module for change the confirmation date of one item of a purchase order ( that changes the field EINDT of table EKES ) ?
    I need to change it according to goods receipt date.
    Thanks in advance,
    Paulo Sousa

    you can use BAPI_PO_CHANGE
    In particular you would be interested in schedule line table POSCHEDULE in the function interface and the field for confirmation date is DELIVERY_DATE.
    Also you need to pass the BAPI some header fields like PO number etc and item fields liek material number etc along with the POSCHEDULE structure.
    Also remember to mark X in POSCHEDULEX for corresponding field POSCHEDULEX-DELIVERY_DATE, so that the change will be transferred to the PO in database.
    Also this BAPI can auto COMMIT
    Hope this helps

Maybe you are looking for