on 10-05-2015 12:57 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.