on 2018 Mar 07 5:44 PM
Hello,
I want to do the Copy Comments and Clear Comments in one Package . User wants to have a button in the Excel to Copy comments(From Selection and To Selection) and then it should also clear the FROM Selection. I tried creating a custom package and copied both the standard COPY and CLEAR DM scripts . This will not work because I am locking the record and it won't do both the task at the same time.
Any suggestions?.
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Thanks Vadim , it works now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying that Approach . One question regarding that how can I commit the Copy comments first and then run clear comments step in the PC. Because both cannot be triggered at the same time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to create a custom chain.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One option I think is to copy the standard Process chain /CPMB/COPYCOMMENTS and create a custom chain . Then add the steps of Clear Comments Process chain(/CPMB/CLEARCOMMENTS) to the custom Chain . Let me know if there is any other better solution?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chain for this is COPY Comments as I created the custom DM by copying the COPY Comments package . After that I added the Clear Comments Task . Let me know if I am able to explain what I am trying to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vadim.
I copied both the DM scripts of COPY and CLEAR comments and created a new custom Package with the script below :
PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select the members to COPY and where to",%DIMS%) PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when copy comments.",1,{"Yes, check work status settings when copy comments","No, do not check work status settings"},{"1","0"}) 'PROMPT(DELIMITER,%SELECTION%,) TASK(/CPMB/COPY_COMMENTS,SELECTION,%SELECTION%) TASK(/CPMB/COPY_COMMENTS,TOSELECTION,%TOSELECTION%) TASK(/CPMB/COPY_COMMENTS,CHECKLCK,%CHECKLCK%)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when deleting comments.",1,{"Yes, delete comments with work status settings","No, do not delete comments with work status settings"},{"1","0"}) TASK(/CPMB/CLEAR_COMMENTS,SELECTION,%SELECTION%) TASK(/CPMB/CLEAR_COMMENTS,ENABLETASK,%ENABLETASK%) TASK(/CPMB/CLEAR_COMMENTS,CHECKLCK,%CHECKLCK%)
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
P.P.S. Please read details here: https://answers.sap.com/questions/452837/bug-incorrect-line-breaks-in-answer-text.html
PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select the members to COPY and where to",%DIMS%)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when copy comments.",1,{"Yes, check work status settings when copy comments","No, do not check work status settings"},{"1","0"})
TASK(/CPMB/COPY_COMMENTS,SELECTION,%SELECTION%)
TASK(/CPMB/COPY_COMMENTS,TOSELECTION,%TOSELECTION%)
TASK(/CPMB/COPY_COMMENTS,CHECKLCK,%CHECKLCK%)
PROMPT(RADIOBUTTON,%ENABLETASK%,"Do you want to clear comments associated with data regions?",1,{"Yes","No"},{"1","0"})
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when deleting comments.",1,{"Yes, delete comments with work status settings","No, do not delete comments with work status settings"},{"1","0"})
TASK(/CPMB/CLEAR_COMMENTS,SELECTION,%SELECTION%)
TASK(/CPMB/CLEAR_COMMENTS,ENABLETASK,%ENABLETASK%)
TASK(/CPMB/CLEAR_COMMENTS,CHECKLCK,%CHECKLCK%)
"I tried creating a custom package and copied both the standard COPY and CLEAR DM scripts" - please explain what you have done!
What do you mean by "custom package"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.