on 2016 May 19 10:07 AM
Hi all,
I'm using the if_ujo_write_back-> write_back in order to write some records into a model that is not my starting one
The write_back works but the problem is that, if for some reasons, one ore more record are rejected it writes the other records
This result is very misleading because we’ve a partial result
Just to clarify, some examples of reason to reject records:
- the user is not authorized to some values
- the target cube is in status "planning not allowed"
- some dimensions are not correct
So I'd like to make a preventive check on the data I'm going to write and in case of errors send a log with the detail
I'd tried to use the write_back with the parameter EXECUTE_BADI empty but it doesn't work and the correct values are written
Do you have any idea on how to perform a complete check before actually writing the values?
Thanks
Request clarification before answering.
Hi Stefania,
Just think that without badi user will also have the errors:
- due to work status lock
- write to parent
...
It's a general rule: write what is possible and show rejected!
Why do you need to use explicit write_back? Just prepare ct_data with all records and the system will do the rest!
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Vadim,
thanks for your fast answer
I'll try to explain my problem: I've 2 cubes one for the values (let's call it cube A) and one for the status of a cost center (let's call it cube B).
After posting the values in cube A I've to change the status in cube B
After changing the status, the user is no longer allowed to perform the posting again in cube A
So I need to stop the procedure if something goes wrong when writing in cube A without writing anything
thanks
Can't you do what Vadim suggested initially: in your BADI analyze of there was an error in writing to cube A and in that case do not update cube B?
Yes, you'll have partial results in cube A, but use can still fix remaining records. After all of them are written back correctly you can change record in cube B.
| User | Count |
|---|---|
| 16 | |
| 11 | |
| 9 | |
| 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.