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

Similar Messages

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

  • How to create 'service confirm order' through bapi?

    I want to create service confirm order,
    pls help me some bapi

    Yudomg
       Try this BAPI: <b>BAPI_BUSPROCESSND_CREATEMULTI</b>
    Thanks
    Jack
    <b>Allot points if mys post helps !!!!!</b>

  • 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

  • Problem using BAPI_BUS2001_CREATE to create project definition

    Hi,
    i have a problem using BAPI_BUS2001_CREATE to create project definition.
    i have customer fields in CI_PROJ structure.
    i used help structure BAPI_TE_PROJECT_DEFINITION in EXTENSIONIN table
    the problem is that customer fields that i have populated in BAPI_TE_PROJECT_DEFINITION are not processed.
    please help.
    thanks.

    solved,
    applay oss note 637345

  • Material confirmation in ECC based on service confirmation in CRM

    The scenario is Service order & confirmation is in SAP CRM & the billing is in ECC
    The Issue is about material ( spare parts) issue in ECC based on the service confirmation in CRM. In ECC the spare parts are batch managed.
    So to do an automatic goods issue in ECC, we need to enable a BAPI for batch determination.
    Now we are contemplating of doing the goods issue in ECC manually.
    Request you to see if the below scenario works or a better solution is possible
    Can we assign a normal sales order type instead of a debit memo so that delivery of spare parts & then billing can take place.
    The menu path I am talking about is  ( ECC- SPRO- Integration with other mySAP components-CRM-Settings for service processing-billing integration-map transaction types & item categories)

    Hi Madhu G
    I have defined the confirmation profile in Opk0. I know that I can assign a different profile with reference to user.
    I dont want confirmation profile based on Storage location
    I want the confirmation screen to be different for different materials -plant combination. Does anyone have any idea how this can be achieved?
    regards
    PK

  • On Workflow completion in ECC create Service ticket in CRM

    Hi Experts,
    Our client requirement is to create service ticket in CRM on completion of work flow in R3 system.
    Can anyone please advice me how to achieve the above requirement.
    Thanks in advance
    Kind Regards,
    Veined.

    Hello,
    You may try to call an RFC FM in CRM from ECC as the last step in your WF.
    Regards,
    Sharif.

  • BAPI  for Creating Service Purchase Order

    Hi All,
      I am not able to create service po using bapi, after passing the parameters
      ls_polimits-LIMIT     = '30'.
      ls_polimits-EXP_VALUE = '20'.
      APPEND : ls_polimits TO gt_polimits.
        ls_poserv-quantity = '10'.
        ls_poserv-base_uom = 'AU'.
        ls_poserv-short_text = 'AAAAAAAA'..
        ls_poserv-price_unit = '1'.
        ls_poserv-GR_PRICE = '25'.
        ls_poserv-TAX_CODE = 'V0'.
        ls_poserv-MATL_GROUP = '6AD'.
        APPEND : ls_poserv TO gt_poserv,
               ls_poservx TO gt_poservtxt.
    message getting is
    500000280 00010 Purchase order still contains faulty items
    500000280 00010 No instance of object type PurchaseOrder has been created. External reference:
    500000280 00010 Please maintain services or limits
    please help me
    Appropriate points will be rewarded.
    Arun

    Dear Seshu,
    This is not the problem with data, coz, i am able to create the PO (Service) Manually.
    please let me know what all tabeles, i need to pass for this BAPI_PO_CREATE1
    presently I am passing
    CALL FUNCTION 'BAPI_PO_CREATE1'
           EXPORTING
                poheader          = g_pohdr
                poheaderx         = g_pohdrx
               testrun           = 'X'
           IMPORTING
                exppurchaseorder  = l_ponum
           TABLES
                return            = lt_return
                poitem            = gt_poitem
                poitemx           = gt_poitemx
                poaccount         = gt_poacct
                poaccountx        = gt_poacctx
                POSERVICES        = gt_poserv
                POSRVACCESSVALUES = gt_poservacc
    Regards
    Arun

  • Problem with Print button in service confirmation

    Hi Experts,
    I am facing a problem in service confirmation in pcui.When the system status is completed i am unable to select the print option, as the print button is disabled.
    I have assigned action for smartform print in confirmation.I am able to view the print button before changing the status to complete.
    The same is working fine in UI.
    Can anyone suggest some solution to the problem?
    Regards,
    PePe

    Hi Ravindar,
      This programe BCALV_TEST_GRID_PRINT has used the normal class cl_gui_alv_grid where as I have used CL_GUI_ALV_TREE class.
    Regards,
    Deepthi.

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • Any Function module/BAPI to create Service Notification wrf to Contract

    Hi Experts,
    Is there any BAPI/FM to create service notification with reference to Contract.
    Thanks & Regards,
    Vishnu Priya

    .

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

  • Using BAPI to create users across all Clients and R/3 Systems

    Hi everyone,
    I'm currently writing a program where I'm using a BAPI to create multiple new users via central user admin (SU01) and assigning Roles to these users.
    My objective is to create these new users in all clients of all R/3 systems using RFC. At the moment, in SM59, our DEV environment is set up as "DEV", QA as "TST" and PRD as "PRD". When I use syntax:
    CALL FUNCTION 'BAPI_USER_CREATE1' DESTINATION 'TST' the system presents a logon screen to login to TST system. Can this logon be made automatic i.e. without this screen prompt?
    Also, I can't create the users in all clients of 'TST'. Our test system has 5 clients...how do I create the users in all clients of TST automatically?
    Your help will be greatly appreciated.
    Thanks.
    Sougata.

    Try to see the SAP HELP:
    RFC logon to target system (remote logon)
    RFC logon within an R/3 system can be successfully undertaken using the same user ID even if the logon is to take place in a different client.
    In principle, all necessary logon data for a particular RFC destination (language, user, client, and password) are used when an RFC logs on to the target system.
    Typically the password field (for a particular user) must be maintained when an RFC communicates with other clients or user IDs.
    If one of the fields language, client or user is not maintained for the designated RFC destination, default values are taken from the system environment (system table).
    Tips:
    With RFC communication within a single R/3 system with the same client and user the logon fields do not have to be maintained. Password entry is also unnecessary in this special case.
    If an RFC logon in online mode is unsuccessful, an RFC logon window is displayed (not during background processing) where you can logon to the target system online at runtime.
    The default values for the RFC logon screen fields are as follows:
    Client
    The standard value of the target system application server is used. This value is read from the target server's "login/system_client" profile parameter.
    User
    The system inserts the user ID of the current user in this field.
    Language
    Information from the RFC destination is used to fill the language field. If the language field has not been maintained in the destination, the current language of the calling system is inserted.
    The RFC logon window does not appear if the initial function module call of the RFC destination originates from the system-specific function group 'SRFC'. The function modules RFC_PING and RFC_SYSTEM_INFO belong to this group among others.
    If you would like to have an RFC logon window displayed regardless, you must end RFC communication to that particular RFC destination after the call using the function module 'RFC_CONNECTION_CLOSE'.
    Be aware that no logon screen is usually offered when using trusted/trusting systems.
    Documentation to authorization checks in the RFC environment can be found in RFC authorization concept.
    Max

  • 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

Maybe you are looking for