cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear experts,

While execution NWBC tcode, I am trying to read the fields BU_TYPE and BU_GROUP from the buffer in the MDG System, but they keep comming empty. This is what I am currently doing in the code:

CONSTANTS: lc_bp_central TYPE USMD_ENTITY VALUE 'BP_CENTRL'.


data(lr_delta_buffer) = cl_usmd_delta_buffer=>get_instance( ).

lr_delta_buffer->read_data( EXPORTING i_entity = lc_bp_central i_struct = if_usmd_model_ext=>gc_struct_key_attr
IMPORTING er_t_data_ins = data(lr_t_ins_bp_ctrl)
er_t_data_upd = data(lr_t_upd_bp_ctrl)
er_t_data_del = data(lr_t_del_bp_ctrl)
er_t_data_mod = data(lr_t_mod_bp_ctrl)
er_t_data_old = data(lr_t_old_bp_ctrl) ).

Am I too far from the correct answer? 😉

Thank you in advance!

Alm

0 Likes
View Entire Topic
Former Member
0 Likes

Thanks for the reply. The 'USMD_RULE_SERVICE' BADI triggers only when there is a change in data during a roundtrip. In your specific case, even if it gets called during creation of BP, it would always be blank. During change of a BP, however you would see it getting filled.