Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

no formula log updated in the detail log when moving data one ENVT to other ENVT


In BPC system,we have two environments. Because of the business split, we have to create the second environment and some models in ENVT A are re-created in ENVT B with the same name and same structure.

Data needs to be copied from ENVT A to ENVT B.from same MODEL MDL1  to same MODEL MD1 in ENVT B.

This has been done through by calling the write back badi method in the implemenation of UJ_CUSTOM_LOGC , i.e reading the ct_data and collect and post it to ENVT B using write back bad

TARGET ENVT is updated with the data . but the formula log , for the package triggered from SOURCE ENVT is NOT updated with the log message.

We are using cl_ujk_logger to write some message to the log. Only the package log is available.

1. How to get the formula log updated in the detail log ? is there any setting to be changed in the log.

2. Can we use write back method for posting data from ONE ENVT to OTHER ENVT for the same MODEL.

3. Is there any script logic possibility to acheive this i.e similar to DEST_APP is there any DEST_APPSET ID ?

Below is the part of the code used in BADI UJ CUSTOM LOGIC .

     CALL METHOD ref_wb->write_back
                 i_appset_id      = i_appset_id
                 i_appl_id        = i_appl_id
                 is_wb_param      = i_wb_param
                 it_records       = <lt_cis_final>
                 es_wb_status     = wb_status
                 et_error_records = <fs_lt_error>
                 et_message       = et_message.

If the et_message is filled, we are raising exception

RAISE EXCEPTION TYPE cx_uj_custom_logic.


Please let me know if any other information are required.Thanks


Hi Uma,

Are you switching context when you writing to a different Environment? Please make sure you switch is forth and back before you write to the log in source Environment.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question