on 2015 Jul 30 4:13 AM
Hi ,
We are using BADI UJ_CUSTOM_LOGIC to ignore the work status using the method write_back
(if_ujo_write_back->write_back).
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.
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
Request clarification before answering.
Hi KP,
What do you mean by reference code?
Why do you think that ls_work_status defined in you program is visible to WB Class?
Do you have authorization to debug? If you have, can you put a break-point in Method CHECK_WORK_STATUS and check what is in variable ds_wb_param-work_status-blockaction?
Regards,
Gersh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kp,
Then in Class CL_UJW_WORK_STATUS_MGR Method CHECK_WORK_STATUS_LOCKS you should see that i_blockaction is compared to IGNORE and if result is True no WS is checked.
Also, regarding absence of a new request - have all existing requests been green or you had a yellow request on top when you ran this Package?
Regards,
Gersh
Hi KP,
What is in the log after you run the package?
What do you mean by its not updating?
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.