Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Issue Ignore Work status from UJ_CUSTOM_LOGIC using Write_back not updating

$
0
0

Hi ,

 

We are using BADI UJ_CUSTOM_LOGIC to ignore the work status using the method write_back

(if_ujo_write_back->write_back).


Reference Code:-


   ls_wb_param = cl_ujo_wb_factory=>default_wb_param( ).
ls_work_status
-module_id = uj00_c_mod_name_dm.
ls_work_status
-blockstatus = 0.
ls_work_status
-blockaction = 'IGNORE'.
ls_wb_param
-work_status = ls_work_status.
ls_audit
-actcode = uju0_cs_act_code-logic_exe.
ls_wb_param
-default_logic = abap_false.
ls_wb_param
-update_audit = abap_true.
ls_wb_param
-duplicate = abap_true.
ls_wb_param
-mdata_check = abap_false.
ls_wb_param
-sign_trans = abap_false.
ls_wb_param
-measures_formula = l_measure.

 

 

     TRY.
CALL METHOD ref_wb->write_back
EXPORTING
i_appset_id     
= i_appset_id
i_appl_id       
= i_appl_id
is_wb_param     
= ls_wb_param
it_records      
= <l_t_datafinfinal>
IMPORTING
es_wb_status    
wb_status
et_error_records
= <fs_lt_error>
et_message      
= et_message.
CATCH cx_ujo_write_back .
CATCH cx_uj_static_check .
ENDTRY.


It’s ignoring the work status, but it’s not updating.



I even check the code in the method CL_UJO_WRITE_BACK->PACKAGE_LOGIC.

Reference code:


IF ds_wb_param-update_audit = abap_true.


It’s going inside and commit work also happening but stills it’s not updating.


Please let me know if i  missing something.

 

Thanks,

kp


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>