Skip to Content
avatar image
Former Member

not able to change the stautes to tobe tested in normal Change requests

Hi Team,

I am trying put the To be tested from indevelopment in normal change request but only status is showing recheck the transaction and withdraw corrections.

I tried recheck the transaction but its not working and its not moving back the status.

Please let us know is there any alternative way ?

Thanks,

//Bikshamaiah.G

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 09, 2015 at 12:22 PM

    Hi Bikshamaiah,

    A new customized report can be created with code as below to remove errors from any type of change document and request for change.

    REPORT XXXX

    DATA: lv_crm_cd_guid TYPE crmt_object_guid, "CRM document GUID

          ls_crm_jest    TYPE crm_jest,         "CRM dcoument status

          ls_crm_jcds    TYPE crm_jcds,         "CRM document status history

          lv_answer      TYPE char1.

    PARAMETERS:

          p_cd_no        TYPE crmt_object_id OBLIGATORY. "CRM document ID

    START-OF-SELECTION.

      CLEAR: lv_crm_cd_guid, ls_crm_jest, ls_crm_jcds.

      "Check CRM document

      SELECT SINGLE guid FROM crmd_orderadm_h INTO lv_crm_cd_guid

        WHERE object_id = p_cd_no.

      IF sy-subrc <> 0.

        WRITE: 'CRM document', p_cd_no, 'cannot be found.'.

        EXIT.

      ENDIF.

      "Check system status

      SELECT SINGLE * FROM CRM_JEST INTO ls_crm_jest

        WHERE objnr = lv_crm_cd_guid

          AND stat  = 'I1030'.

      IF sy-subrc <> 0 OR ls_crm_jest-inact IS NOT INITIAL.

        WRITE: 'CRM document', p_cd_no, 'does not have error in system status.'.

        EXIT.

      ENDIF.

      CALL FUNCTION 'POPUP_TO_CONFIRM'

        EXPORTING

          text_question         = 'Are you sure you would like to remove the system status error for this CRM document?'

          icon_button_1         = '@0V@' "OK

          icon_button_2         = '@0W@' "Cancel

          display_cancel_button = ' '

        IMPORTING

          answer                = lv_answer

        EXCEPTIONS

          text_not_found        = 1

          OTHERS                = 2.

      IF sy-subrc <> 0 OR lv_answer <> '1'.

        WRITE: 'This action has been cancelled.'.

        EXIT.

      ENDIF.

      ls_crm_jest-inact = 'X'.

      ADD 1 TO ls_crm_jest-chgnr.

      UPDATE crm_jest FROM ls_crm_jest.

      IF sy-subrc <> 0.

        WRITE: 'The update is failed due to database error.'.

        EXIT.

      ELSE.

        "Update status history table, so that it looks like to be done by the system

        MOVE-CORRESPONDING ls_crm_jest TO ls_crm_jcds.

        ls_crm_jcds-usnam   = sy-uname.

        ls_crm_jcds-udate   = sy-datum.

        ls_crm_jcds-utime   = sy-uzeit.

        ls_crm_jcds-cdtcode = sy-tcode.

        ls_crm_jcds-chind   = 'U'.

        INSERT crm_jcds FROM ls_crm_jcds.

      ENDIF.

      "Write final message

      WRITE: 'System error for CRM document', p_cd_no, 'has been removed.'.

    Hope it will help to remove errors and proceed with next actions.

    Thanks and Regards,

    Omkar Kuldharan

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 05, 2015 at 12:32 PM

    Hello,

    If you implement SAP Note 2175575, the logs for the ChaRM transaction will have more detail.

    Have you also checked the task list logs?

    Best regards,

    Miguel AriƱo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2015 at 04:54 PM

    Hello Bikshamaiah ,

    Go to SA38-> execute report Z_CRM_REMOVE_SYSTEM_ERROR->you will get screen -> put your Normal change number and execute.

    Then login into Normal Change. you will get the option now

    Add comment
    10|10000 characters needed characters exceeded