Saving Changed Values
If you save your data in a BW-integrated planning application, the system persists the data changed since the last save on the database. The changes to the data are posted, not the absolute values.
Logging Saved Values
You can use BAdI BADI_RSPLS_LOGGING_ON_SAVE from enhancement spot RSPLS_LOGGING_ON_SAVE to log data saved in a BW-integrated planning application. This logging can be implemented for real-time InfoCubes.
The BAdI is filter-dependent. Create an implementation of the interface IF_RSPLS_LOGGING_ON_SAVE for every real-time InfoCube that you want to log.
Methods log_defined and log_structure are used to specify whether or in which format the data is provided. In method log_structure , you can specify that context information about the name of the writing user, the date, the time and the SAVE ID are displayed using special InfoObjects in the DDIC structure. Using the SAVE-ID you can identify a ‘save’ action in a planning application.
Methods log_write calls the actual logging for every ‘Save’ event in the application that transfers the data in the structure specified for log_structure . The actual logging is implemented in method log_write . In other words, the data is written to a transparent table. Besides the data, the request ID of the real-time InfoCube (where the data is saved) is also passed to the method log_write .
Checking Data Before Saving with a Planning Sequence
To prevent users in a planning application from saving invalid changed data, you can run a report. For every “Save” event for a specific real time-enabled InfoProvider, this report ensures that a specific planning sequence runs, thus checking the data in this InfoProvider.
-
To use this function, call ABAP Editor (transaction SE38) and run report RSPLS_PLSEQ_MAINTAIN.
-
Enter the required InfoProvider. You can use input help for this.
-
Enter the planning sequence that checks the data to be saved for this InfoProvider. You can use input help for this.
-
In the default setting, Only Process Changed Records is selected.
-
Enter an aggregation level as the Delta Determination level.
If the planning sequence reports an error, the data will not be saved.