on ‎2016 Jun 07 4:32 PM
Hi All,
While saving the comment from BPC EPM to BW, need to modify the comment. But unable to find any BADI / Customer Exit which gives the comments entered by the user.
For example ; User has entered Comment : 'Testing Scenario' . This comment is getting saved in the respective Table ( /1CPMB/**CMT). But before it is getting saved, I need to modify the record as 'Test Scenario Modified'.
I have tried with UJR_WRITE_BACK and UJ_CUSTOM_LOGIC. Both the BADIs are not giving me the comments entered by the user. Is there any other BADI or Customer Exit to serve this purpose ? Or is there any other way to do this ?
Thanks,
Rohith.
Request clarification before answering.
Hi Rohit,
It seems odd the scenario you're trying to implement, but I might suggest using Custom Logic badi implementation instead of write back.
If all you need is to "copy" the entry to a different set of dimension members, at the time custom logic is triggered the comment will be already saved in your "dummy" members. Just work on your badi to filter the comments and then add them with the new members.
The class CL_UJC_CMTMANAGER with the methods below will help you manipulate the comments:
| GET_CMT | Instance Method | Public | BPC: Get Comment Entries |
| DEL_CMT | Instance Method | Public | BPC: Delete Comment Entries | |
| UPDATE_CMT | Instance Method | Public | BPC: Update Comment Entries | |
| ADD_CMT | Instance Method | Public | BPC: Add a Comment Entry |
Just be careful with concurrent entries that could potentially make a mess your system.
Cheers,
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"But before it is getting saved, I need to modify the record as 'Test Scenario Modified'." - what for? Business case, please...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scenario is like, all the record entered in BPC is saved against the default Employee no : EMP500 .. In the BADI , i'm changing the employee number . so that Infocube is updating with the relevant employee number.
But in the table where comment is getting saved, there the dimension Employee is saved with the value EMP500. I need to change this employee number as well.
| User | Count |
|---|---|
| 41 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.