on ‎2017 Oct 09 1:07 PM
Hi,
Is it possible to customise the COPYCOMMENTS package so that the user only selects the target period and BPC automatically selects the prior period as the source? I have customised the package so that only the category (source and target are the same) and time (source and target are different) need to be selected which is e good start. But ideally I would like the user to only select the target period.
I have found this blog
https://blogs.sap.com/2013/01/06/customize-the-standard-sap-bpc-packages/ which has helped me but has not been able to provide an answer to my specific question.
Thanks,
Arnold
Request clarification before answering.
Hey Arnold,
Unfortunately the only way is via ABAP. You can either create a custom logic process as described above, or create a custom process type based on BPCCOMS - Delete Comments (It's also used for copy comments). This new process type would refer to a custom class copy of
CL_UJD_BPC_CLEAR_COMMENTS, where you'd change the source selection - Simply copy that class and change the method RUN.
Cheers,
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the Z solution still works after upgrade it doesn't matter if the standard class changes... Last time this class was changed was over an year ago, for parallel process.
Every upgrade can have impact in a number of things, standard or custom, if you base your solutions entirely based on the possibility of SAP changing something in a class that you don't even directly use you might as well just use standard. Just do what needs to be done and assess the impacts before upgrade.
I prefer to use different approach in SAP development: never copy SAP code to Z.
For this particular question we don't need to change anything in copy comments code. The process chain is fine, we just need to provide correct parameters. And this can be done with a simple code based on UJD_TEST_PACKAGE.
Another alternative is to use VBA code to pass answer prompt to DM package - no ABAP at all!
No, it’s impossible to use any time operators in the dm advanced script. You are not able to generate prev month id. You can try to program some badi based on ujd_test_package and generate prev month id inside badi.
P.S. You can also use VBA code to pass parameters to DM package - please read my blog: https://blogs.sap.com/2017/06/16/simple-vba-function-to-pass-parameters-to-dm-packages/
VBA can calculate previous month 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 11 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 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.