Applying JIT action similar to background actions in JITM and JITOM can be done using FM:
call function 'JIT04_SET_ACTION' exporting action_iv = 'ZSHP' commit_iv = 'A' ext_trigger_iv = 'O' just_status_upd_iv = 'X' tables jc_hd_it = lt_hd2 jc_it_it = lt_jitit exceptions action_not_performed = 1 wrong_parameters = 2 others = 3. if sy-subrc <> 0. leave program. " abort message '' type 'I' display like 'I'. endif.