cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue Ignore Work status from UJ_CUSTOM_LOGIC using Write_back not updating

Former Member
0 Kudos
613

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Gersh,

I have debug authorization..In the method CHECK_WORK_STATUS .

ds_wb_param-work_status-blockaction is IGNORE, which im passing.

Thanks,

Kp

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi KP,

What is in the log after you run the package?

What do you mean by its not updating?

Andy

Former Member
0 Kudos

Hi Andy,

Its not updating in the cube.

Thanks,

Kp

Former Member
0 Kudos

When you debugging did it submit any data? any errors?

Andy

Former Member
0 Kudos

Hi Andy,

No error...its showing like NNNN  RECORDS HAVE BEEN WRITTEN BACK..

in UJKT.

Thanks,

Kiran

Former Member
0 Kudos

Hi Kiran,

If it says that then the data must be written back, are you sure the data is not in the cube?

check in RSA1 and compare that to your <l_t_datafinfinal>

Andy

Former Member
0 Kudos

Hi Andy,

I checked in RSA1 no new request ID is generated .

Thanks,

Kp

Former Member
0 Kudos

Hi KP,

       As you mentioned "No new request ID Created" it will never create new request ID while posting is done in BPC level ( From Excel EPM Tab). So Kindly go through the data(BW Infocube Contents) in detail.

Regards,

Aravind