HI All,
I have a requirement to fill title which is in basis info tab when person injured node is filled.
Requirement is as soon as on the click of send should should read person injured and update the title
I have tried to do this in person_injured tab determination in set transion attribute [ZD_PINJI_SET_TRANS_R2] and below is the code
--------------------------------------------------------------------------------------
IF lr_s_root->status IS INITIAL.
*// Get Basic Info
lo_binfa = lo_root->get_subnode_by_key( if_ehhss_inc_c=>sc_association-root-basic_info_all ).
lr_s_binfa ?= lo_binfa->get_row( 1 ).
* get person involved node
lo_pinv_node = lo_pinji_node->get_parent( ).
lr_s_pinv ?= lo_pinv_node->get_row( 1 ).
IF lr_s_pinv->id(1) NE 'I'.
ls_party_key-id_combined = lr_s_pinv->id.
TRY.
CALL METHOD cl_ehfnd_party_proxy=>get_full_name_of_party
EXPORTING
is_party_key = ls_party_key
IMPORTING
ev_first_name = lv_first_name
ev_last_name = lv_last_name.
CATCH cx_ehfnd_inbound_processing .
CATCH cx_ehfnd_rfc_communication .
ENDTRY.
CONCATENATE 'Care Management -'
lv_first_name
lv_last_name
INTO lr_s_binfa->title
SEPARATED BY space.
lr_s_binfa->desc_text = lr_s_binfa->title.
lo_binfa->update( lr_s_binfa ).
ENDIF.
ENDIF. "STATUS is initial