Create ticket using CRM_ORDER_MAINTAIN

I am creating a service ticket using the above mentined RFC. I want to insert the problem area and actual fault as Level1 (parent) and Level2 (child) within the problem area. For that I am making use of the lt_service_os table and building the subject table within it, on the OBJECTS tab of the ticket.
The problem is both the problem area and fault go into the ticket at parent levels.
I do not want to follow 2 step process of creating the ticket first with parent subject and adding the child subject to it as it takes lot of time.
FORM subject_create  USING    P_GV_HANDLE p_gv_product p_gv_l1 p_gv_l2
                              ibaseid
                     CHANGING
                         P_GT_INPUT_FIELDS type crmt_input_field_tab
                         P_GT_OSSET type crmt_srv_osset_comt.
  DATA:
    ls_subject                TYPE crmt_srv_subject_com,
    ls_object    TYPE  crmt_srv_refobj_com,
    ls_input_field            TYPE crmt_input_field,
    ls_input_field_names      TYPE crmt_input_field_names,
    gc_mode_create            TYPE crmt_mode VALUE 'A',
    gc_object_kind_orderadm_h TYPE crmt_object_kind  VALUE 'A',
    gc_object_name_orderadm_h TYPE crmt_object_name  value 'ORDERADM_H',
    lv_service_h       TYPE  crmc_service_h,
    ls_osset           TYPE  crmt_srv_osset_com2,
    lt_refobj          TYPE  crmt_srv_refobj_comt,
    lt_subject         TYPE  crmt_srv_subject_comt,
    lv_handle          TYPE  crmt_handle,
    lt_service_os      TYPE  crmt_srv_osset_comt,
    lt_input_fields_f TYPE crmt_input_field_tab.
  DATA: BEGIN OF lt_code OCCURS 0.
          INCLUDE STRUCTURE com_code_f4.
  DATA: END OF lt_code.
  REFRESH: lt_subject, lt_refobj.
  CALL FUNCTION 'CRM_ORDER_SERVICE_H_SELECT_CB'
    EXPORTING
      iv_process_type = 'YRMS'
    IMPORTING
      es_service_h    = lv_service_h
    EXCEPTIONS
      entry_not_found = 1
      OTHERS          = 2.
Read subject profile LEVEL 1
  Refresh lt_code.
  CALL FUNCTION 'CRM_SUBJECT_PROF_CODES_PROVIDE'
    EXPORTING
      i_subject_profile = lv_service_h-subject_profile
      I_HIERARCHY_LEVEL = '1'
    TABLES
      e_code_tab        = lt_code
    EXCEPTIONS
      no_valid_entry    = 1
      no_entry          = 2
      OTHERS            = 3.
  read table lt_code with key
  katalogart = 'Y1' codegruppe = p_gv_product code = p_gv_l1.
  clear ls_subject.
  MOVE-CORRESPONDING lt_code TO ls_subject.
  CLEAR ls_subject-ref_guid.
  CLEAR ls_subject-ref_guid_h.
  CLEAR ls_subject-ref_handle_h.
  CALL FUNCTION 'CRM_INTLAY_GET_HANDLE'
    IMPORTING
      ev_handle = ls_subject-ref_handle.
  ls_subject-mode         = gc_mode_create.
  ls_subject-hierarchy_level = 1.
  INSERT ls_subject  INTO TABLE lt_subject.
  lv_handle = ls_subject-ref_handle.
Read subject profile LEVEL 2
  Refresh lt_code.
  CALL FUNCTION 'CRM_SUBJECT_PROF_CODES_PROVIDE'
    EXPORTING
      i_subject_profile = lv_service_h-subject_profile
      I_HIERARCHY_LEVEL = '2'
    TABLES
      e_code_tab        = lt_code
    EXCEPTIONS
      no_valid_entry    = 1
      no_entry          = 2
      OTHERS            = 3.
  read table lt_code with key
  katalogart = 'Y2' codegruppe = p_gv_product code = p_gv_l2.
  clear ls_subject.
  MOVE-CORRESPONDING lt_code TO ls_subject.
  CLEAR ls_subject-ref_guid.
  CLEAR ls_subject-ref_guid_h.
  CLEAR ls_subject-ref_handle_h.
  CALL FUNCTION 'CRM_INTLAY_GET_HANDLE'
    IMPORTING
      ev_handle = ls_subject-ref_handle.
ls_subject-ref_handle = lv_handle + 1.
   ls_subject-ref_handle_h = lv_handle.
  ls_subject-mode         = gc_mode_create.
  ls_subject-hierarchy_level = 2.
  INSERT ls_subject  INTO TABLE lt_subject.
   MOVE p_gv_product to ls_object-product_id .
  CLEAR ls_object-ref_guid.
  ls_object-type_object = 'A'.
  CALL FUNCTION 'CRM_INTLAY_GET_HANDLE'
    IMPORTING
      ev_handle = ls_object-ref_handle.
  ls_object-mode = gc_mode_create.
  INSERT ls_object INTO TABLE lt_refobj .
  IF NOT ibaseid IS INITIAL.
    MOVE:
     p_gv_handle        TO ls_object-ref_handle,
     'B'                TO ls_object-type_object,
     ibaseid            TO ls_object-ib_instance,
     'A'                TO ls_object-mode.
    APPEND ls_object TO lt_refobj.
  ENDIF.
Set Osset for subject and Reference object
  CLEAR ls_osset.
  ls_osset-ref_handle = p_gv_handle.
  ls_osset-subject_profile = lv_service_h-subject_profile.
  ls_osset-profile_type    = 'A'.
  lv_handle = p_gv_handle.
  CALL FUNCTION 'CRM_SERVICE_OS_SET_DATA'
    EXPORTING
      is_srv_osset_com   = ls_osset
      iv_ref_handle      = lv_handle
      iv_ref_kind        = 'A'
      it_srv_refobj_com  = lt_refobj
      it_srv_subject_com = lt_subject
    EXCEPTIONS
      error_occurred     = 1
      invalid_guid       = 2
      no_record_exist    = 3
      OTHERS             = 4.
  CALL FUNCTION 'CRM_SERVICE_OS_PUT_DATA'
    IMPORTING
      et_srv_osset_com = lt_service_os
      et_input_fields  = lt_input_fields_f.
  INSERT LINES OF lt_service_os INTO TABLE p_gt_osset.
  INSERT LINES OF lt_input_fields_f INTO TABLE p_gt_input_fields.
Please suggest how to create parent child relation. The code for creating the subjects in the ticket is pasted below for reference.

Hi Thomas,
The FM CRM_ORDER_MAINTAIN has two changing parameters:CT_ORDERADM_H and CT_ORDERADM_I.You can set the mode in these two changing parameters for header or item.
  ls_orderadm_i-mode = gc_mode-create.
  INSERT ls_orderadm_i INTO TABLE lt_orderadm_i.
and then pass this to the FM:
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    CHANGING
      ct_orderadm_h   = lt_orderadm_h
      ct_orderadm_i   = lt_orderadm_i
      ct_input_fields = lt_input_fields
    EXCEPTIONS
      OTHERS          = 0.
The possible values for mode are:
BEGIN OF gc_mode,
             create     TYPE   crmt_mode   VALUE   'A',
             change     TYPE   crmt_mode   VALUE   'B',
             display    TYPE   crmt_mode   VALUE   'C',
             delete     TYPE   crmt_mode   VALUE   'D',
           END OF gc_mode.
Hope this helps!
Thanks and Regards,
Rohit
Edited by: rohit raturi on Jul 28, 2008 9:26 AM

Similar Messages

  • Help: How to use 'CRM_ORDER_MAINTAIN'

    Hi All,
    I want to create a sales order with following requirements.
    1) schedule lines having requesting dates for which vendor cannot deliver.
    2) change the status from open to some other status.
    i this i have to use
    'CRM_ORDER_MAINTAIN". but i want to know will this API takes care of updating ERP system?
    when i change the status will it also update the purchase order in ERP?
    And also give me some code as how to change status and change schedule lines using 'CRM_ORDER_MAINTAIN".
    Thanks in advance,
    Regards,
    Ujwalkumar

    Hi Robin,
    I am facing problem with CRM_ORDER_MAINTAIN.
    I am trying to change the status of service order from New to Shipped.
    Below is my code.Please look into it and let me the issue.
    Thanks.Rushikesh
    REPORT  ZRD1.
    data:IT_STATUS  TYPE  CRMT_STATUS_COMT,
         wa like line of it_status.
    DATA : ls_input_field         TYPE crmt_input_field,
           ls_input_field_names   TYPE crmt_input_field_names,
           lt_input_fields        TYPE crmt_input_field_tab,
           CT_PARTNER_ATTRIBUTES  TYPE CRMT_PARTNER_ATTRIBUTE_COM_TAB,
           l_i_orderadm_h         TYPE CRMT_ORDERADM_H_COMT,
           l_i_orderadm_i         TYPE CRMT_ORDERADM_I_COMT,
           l_i_obj_guids          TYPE CRMT_OBJECT_GUID_TAB,
           ls_i_obj_guids         like line of l_i_obj_guids.
    wa-REF_GUID = '47FDBF975F6100E1E10080000A0630A7'.
    wa-ref_kind = 'B'.
    wa-status = 'E0023'.
    wa-USER_STAT_PROC = 'ZRV_ST01'.
    wa-activate  = 'X'.
    APPEND wa TO it_status.
          ls_input_field-ref_guid = '47FDBF975F6100E1E10080000A0630A7'.
          ls_input_field-ref_kind = 'B'.
          ls_input_field_names-fieldname = 'REF_GUID'.
          INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
          ls_input_field_names-fieldname = 'REF_KIND'.
          INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
          ls_input_field_names-fieldname = 'STATUS'.
          INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
          ls_input_field_names-fieldname = 'USER_STAT_PROC'.
          INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
          ls_input_field_names-fieldname = 'ACTIVATE'.
          INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
          INSERT ls_input_field INTO TABLE lt_input_fields.
    *Start of solution1.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
          IT_STATUS                     = IT_STATUS
    CHANGING
       CT_INPUT_FIELDS                  = lt_INPUT_FIELDS
       ct_orderadm_h                    = l_i_orderadm_h
       ct_orderadm_i                    = l_i_orderadm_i
    EXCEPTIONS
          ERROR_OCCURRED                = 1
          DOCUMENT_LOCKED               = 2
          NO_CHANGE_ALLOWED             = 3
          NO_AUTHORITY                  = 4
          OTHERS                        = 5.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ls_i_obj_guids = '47FDBF975F6100E1E10080000A0630A7'.
    append ls_i_obj_guids to l_i_obj_guids.
    CALL FUNCTION 'CRM_ORDER_SAVE'
    EXPORTING
    it_objects_to_save = l_i_obj_guids
    EXCEPTIONS
    document_not_saved = 1.

  • How to use crm_order_maintain

    hi Experts,
    i am new to CRM .i am creating aweb dynpro application for service desk for message creation with few custom fields . for that i analysed standard transcation crmd_order , how it is creating transaaction . i found it is using crm_order_maintain in side to creating the message . i debbugged tht by putting a break-point before calling this  FM . but my problem is i dont know how to populate data into the import parameters of the this FM . so can any body give idea how to populate data of import parameters of this FM . any standard prg or any link witch can help me for populating the data into the import parameters. pl suggest any links for understanding the basic CRM.
    thanks in advance
    setu
    Edited by: setu s on Dec 22, 2008 6:24 PM

    Hi,
    The following link provides an example of function module CRM_ORDER_MAINTAIN:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/crm/creation%252bof%252bquatation%252bsample%252bcode
    Hope this help.
    Cheers,

  • How to add new line item based on main item using crm_order_maintain

    Hi All,
    can you please provide a way to create a new line item based on main line item and save in crm transaction( in house repair order) by using crm_order_maintain(from SAP GUI).
    Thanks,
    vinod.

    Hi Vinod,
    The relationship with main item is stored with CRMD_ORDERADM_I- Parent.
    You need to pass the guid of main item to orderadm_i-parent. This will keep the relationship with main item.
    Thanks
    Ajay

  • Updating price conditions using CRM_ORDER_MAINTAIN

    Hello everyone!
    Could anyone help me out with respect to price updation using "CRM_ORDER_MAINTAIN"?
    I am supposed to do the following:
    I obtain the current unit price for a sales order item using "CRM_ORDER_READ". The feild et_pridoc-pric_cond-kbetr gives me this value. Then i get new price for the product from a condition table. I compare this new price with the kbetr value for a particular condition type. If the new price is less than the kbetr value then i should update the kbetr value of the item  using "CRM_ORDER_MAINTAIN". I am sending all the parameters necessary to the FM.
    I have gone through the previous posts with the same query but with  no luck i am running out of ideas! Any sample code will be greatly appeciated.
    Thanks and Regards,
    Smitha

    hi,
       please pass all the parameters & check updating parameters.like when u create a new entry u need to enter X & modify Y so pass all the parameters ...
    thanks,
    chaitanya

  • Adding Product Using CRM_ORDER_MAINTAIN

    Hello Techie,
    I am creating lead for that I need to give  product what are mandatory fields i should have to maintain so that i can successfully create mmy lead using crm_order_maintain.
    Please give me mandatory field input for product.
    Thank's In Advance.

    Hello Pavel,
    I also  follow the same approach for partner,status,qualification,lead header ,But while coming to product its not creating what exactly issue I don't know.....  I  added following code can you please review and let me knw where i am missing...
    ls_sales-ref_handle  = '0000000001'.
    ls_sales-ref_guid    = l_guid.
    ls_sales-ref_kind    = 'B'.
    APPEND ls_sales TO lt_sales.
    ls_product_i-ref_guid        = l_guid.
    ls_product_i-ref_handle      = '0000000001'.
    ls_product_i-gross_weight    = '0.000'.
    ls_product_i-net_weight      = '0.000'.
    ls_product_i-mode            = 'B'.
    APPEND ls_product_i to lt_product_i.
    ls_orderadm_i-GUID         = l_guid.
    ls_orderadm_i-HANDLE       = '0000000001'.
    ls_orderadm_i-HEADER       = l_guid.
    ls_orderadm_i-ORDERED_PROD = 'HT-1030'.
    ls_orderadm_i-PRODUCT_KIND = 'X'.
    ls_orderadm_i-LOG_SYSTEM_EXT = ''.
    ls_orderadm_i-MODE           = 'B'.
    APPEND ls_orderadm_i TO lT_orderadm_i.
      ls_schedlin_i-REF_GUID  = l_guid.
      ls_schedlin_i-REF_HANDLE =  '0000000001'.
      APPEND ls_schedlin_i to lt_schedlin_i.
    ls_nametab  = 'ALTID_TYPE'.
    APPEND ls_nametab TO lt_nametab.
    ls_nametab  = 'ORDERED_PROD'.
    APPEND ls_nametab TO lt_nametab.
    ls_nametab  = 'PRODUCT'.
    APPEND ls_nametab TO lt_nametab.
    ls_input_fields-REF_HANDLE =  '0000000001'.
    ls_input_fields-OBJECTNAME =  'ORDERADM_I'.
    ls_input_fields-field_names[] = lt_nametab[].
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CLEAR : ls_nametab,lt_nametab[].
    Thank's,
    Tasnim

  • Error while creating stock using tcode: MB1C

    Error while creating stock using tcode: MB1C
    The Error is: Check table T004F:entry G006 does not exist

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Logical error in creating tables using db link in solaris

    Hi,
    While creating table using the syntax create table newtab...as select * from tab@dblink .. I am facing a problem. The newtab table created is having a structure different (from datalength point of view of varchar2 and char datatypes) from the source. The data length is getting tripled i.e. if a column a is varchar2(20) in tab then it is becoming --- a varchar2(60) in newtab. This is happening in solaris environment when the two databases are in 2 different servers. Please let me know if there are any patches to resolve the problem.
    Thanks
    Arnab

    ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
    The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link?

  • How to save report in PersonalCategory  after creating it using java panel?

    Hi,
    Anybody knows How to save report in PersonalCategory  after creating it using java panel?
    I dont want to save it in public folder. I want to save report (webi) in user's personal category.
    can anybody send me source code?
    It will help me a lot.
    Thanks in advance
    Amol Mali

    Hi teda,
    i'm assuming that you have seen my post that i did successfuly save report in user's personal category.
    Actually the report is created in webi java panel using RE SDK and  is saved in Report Sample Folder then i'm saving it in user's personal category by following code
    string query = "Select SI_PERSONAL_CATEGORIES From CI_INFOOBJECTS Where "
                         + "SI_INSTANCE=0 And SI_ID=" + reportID;
                    InfoObjects infoObjects = infoStore.Query(query);
                    InfoObject infoObject = infoObjects[1];
                    Webi wreport = (Webi)infoObject;
                    ObjectRelativeIDs personalIDs = wreport.PersonalCategories;
                /personalIDs.Add(Convert.ToInt32(categoryID));
                   infoStore.Commit(infoObjects);
    But the report is presents in the Folder also and in user's personal category also.
    I dont want the report to be in the folder (Report Sample) if i saved it in user's personal category.
    How can i do that?
    any idea.
    Please help me.
    Thanks in advance
    Amol Mali
    Edited by: amol mali on Jan 9, 2009 7:55 PM

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Creating Report using EPM Functions with Dynamic Filters

    Hi All,
    I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
    And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
    Would you please specify in detail step by step.
    Thanks in Advance.
    Siva Nagaraju

    Siva,
    These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
    Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
    You can protect your report to not allow users to have that Edit Report enabled for them.
    As Vadim rightly pointed out, start building some reports and then ask specific questions.
    Hope it clears your doubts.

  • How to create invoice using bapi  base on delivery number with example

    hi,
    Pl give me one example to create invoice using bapi base on delivery number (PGI).

    Use this code
    * Pass the delivery no to the FM to create the invoice
          wa_vbsk-smart = u2018Fu2019.
            wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
            APPEND wa_komfk TO it_komfk.
            CLEAR wa_komfk.
    *    To fill the message structure
    *        l_wa_error-vbeln_vl = nast-objky. " Delivery No.
    *        l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
            CALL FUNCTION 'RV_INVOICE_CREATE'
                    EXPORTING
    *                 delivery_date             = 0
                     invoice_date              = v_date  u201C<- date
    *                 invoice_type              = '    '
    *                 pricing_date              = 0
                     vbsk_i                    = wa_vbsk
                     with_posting              = u2018Du2019
    *                 select_date               = 0
                     i_no_vblog                = ' '
                     i_analyze_mode            = ' '
                     id_utasy                  = ' '
                     id_utswl                  = ' '
                     id_utsnl                  = ' '
                     id_no_enqueue             = ' '
                     id_new_cancellation       = ' '
    **             IMPORTING
    *               VBSK_E                    =
    *               OD_BAD_DATA               =
    *               DET_REBATE                =
                    TABLES
                      xkomfk                    = it_komfk
                      xkomv                     = it_komv
                      xthead                    = it_thead
                      xvbfs                     = it_vbfs
                      xvbpa                     = it_vbpa
                      xvbrk                     = it_xvbrk
                      xvbrp                     = it_vbrp
                      xvbss                     = it_vbss
    *               XKOMFKGN                  =
    *               XKOMFKKO                  =

  • Error while creating Resource using GDS

    Hi
    Iam trying to create Resource using GDS and it is throwing me error
    clresource: (C189917) VALIDATE on resource egateq00-haegate_reg-res, resource group egateq00-rg, exited with non-zero exit status.
    clresource: (C720144) Validation of resource egateq00-haegate_reg-res in resource group egateq00-rg on node uhegateq02 failed.
    clresource: (C891200) Failed to create resource "egateq00-haegate_reg-res".
    This is the command I executed
    rclresource create -g egateq00-rg -t SUNW.gds
    -p Scalable=false -p Start_timeout=120 -p Stop_timeout=120 -p Probe_timeout=30
    -p Port_list="23001/tcp" -p Start_command="/egateq00/scripts/reg_START.sh" -p Stop_command="/egateq00/scripts/reg_STOP.sh"
    -p Probe_command="/egateq00/scripts/reg_PROBE.sh" -p Child_mon_level=1 -p Network_resources_used=egateq00-lh-res -p Failover_enabled=FALSE
    -p Stop_signal=15 egateq00-haegate_reg-res
    The log under /var/cluster/logs/DS says following
    07/01/2008 17:56:43 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 17:56:43 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    07/01/2008 18:13:23 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 18:13:23 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    However, I can open these scripts and run it from anywhere. I also tested these scripts and they all work fine. They are all set to chmod 777 , so everyone should have execute permission
    Iam not returning any return value from these Start and Stop script , is that the why it is failing
    thanks

    Hi
    I disabled the PMF as described on the http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with. This is what I did
    1>Added following line in the top of my Start script
    while getopts 'R:G:' opt
    do
    case "${opt}" in
    R) RESOURCE=${OPTARG};;
    G) RESOURCEGROUP=${OPTARG};;
    esac
    done
    sleep 60 &
    /usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc
    2>While creating the resource , I used property for Start_command="/egateq00/scripts/reg_START.sh -R %RS_NAME -G %RG_NAME"
    Now , after doing this , My RG is not getting lost. Also , in the message file I do not see the errors of "Start script failed to stay UP"
    However, My Application is not started either.
    This is what the message file says
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_validate> completed successfully for resource <egateq00-haegat
    e-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    Jul 3 16:43:32 uhegateq01 Cluster.CCR: [ID 973933 daemon.notice] resource egateq00-haegate-reg-res added.
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_svc_start> for resource <egateq00-haegate-reg-res>,
    resource group <egateq00-rg>, node <uhegateq01>, timeout <120> seconds
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_svc_star
    t>:tag=<egateq00-rg.egateq00-haegate-reg-res.0>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1>, .
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_svc_start> completed successfully for resource <egateq00-haega
    te-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 2% of timeout <120 seconds>
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_monitor_start> for resource <egateq00-haegate-reg-re
    s>, resource group <egateq00-rg>, node <uhegateq01>, timeout <300> seconds
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_monitor_
    start>:tag=<egateq00-rg.egateq00-haegate-reg-res.7>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1
    , ...)Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_monitor_start> completed successfully for resource <egateq00-h
    aegate-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    4>Also , in the /var/cluster/logs/DS , I see the Start script started succesfully
    07/03/2008 16:43:32 uhegateq01 START-INFO> Start succeeded. [egateq00/scripts/reg_START.sh -R egateq00-haegate-reg-res -G egateq00-rg]
    5>Also , in the /var/cluster/logs/DS , I see the Probe script returning 0 , but this is wierd because it should return Non zero number. When I run the Probe script from the command line , it is returning me non zero value when the application is down
    07/03/2008 16:43:35 uhegateq01 PROBE-INFO> The GDS monitor (gds_probe) has been started
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> The probe result is 0

  • Error while creating Routing using LSMW

    Hi Guys ,
    I am trying to create LSMW using Direct Input Method .
    My structures are ::
    RC271_DS   Work center structure for direct input (for datasets)
    RC27M_DS   Material master view DIRECT INPUT routing for datasets
    PLKO_DI_DS Header structure for direct input (for datasets)
    PLPO_DI_DS Routing/item structure for direct input (for datasets.
    I getting correct data from multiple flat files .
    It's converting the data also .
    But while executing start direct input method i am getting the followig error ....
    You cannot edit the task list object with activity type
    Please let me know problem guys .
    Regards,
    Raj

    Hi Naveen,
    It means you have to assign  the task list type to  material type ZPRD. Then it will carry its job:
    The path is:
    Go To-> SPRO-> IMG Activity-> Production-> Basic Data-> Routing-> General Data---> Define Material Type Assignments. T-Code: OP50
    I hope it will work.
    Regards,
    Madhu.G

Maybe you are looking for

  • Error message appears when lesson loads from LMS

    After I successfully loaded my first lesson into Syntrio LMS and launching the lesson for the first time, there are multiple error messages that appear in a new IE window. At first, the browser wouldn't load the lesson unless the pop-up blocker was t

  • Graph cursor mystery

    I have troubles understanding how to use cursors on a XY graph. I can create a cursor, snap it to a graph and move it around. However, as soon as I use another Graph tool (such as zoom, etc), I can't grab the cursor again. The only work around that s

  • Relationship Display in PO13 for User is Incomplete

    -This is a peculair situation post upgrade to ECC 6.0 where a couple of the recruiters are unable to view the entire list of relationships attached to a position using PO13. If he/she hits the overview button it does NOT display ALL the relations. In

  • Plan Settings exception

    Hi, While trying to run the plan continuosly from Plan Settings in Administrator link, i am getting the following error.Could anyone please help me out since its a high priority issue. Oracle.BAM.Middleware.PlanMonitor.PlanMonitorException: Plan Moni

  • Lr4 asks for serial number every time it starts

    I purchased a Lightroom 4 upgrade license from the Adobe store and I can't get the serial number to stick after entering it in the start-up dialog. Every time I launch Lightroom, the application asks for the new serial number and the original serial