Um exemplo prático e simples abaixo para um Infotipo customizado de OM:
data: lt_hrp9102 type standard table of p9102.
append initial line to lt_hrp9102 assigning field-symbol(<fs_hrp9102>).
<fs_hrp9102>-plvar = '01'.
<fs_hrp9102>-otype = 'S'.
<fs_hrp9102>-objid = '03034815'.
<fs_hrp9102>-infty = '9102'.
<fs_hrp9102>-istat = '1'.
<fs_hrp9102>-begda = sy-datum.
<fs_hrp9102>-ennda = sy-datum.
call function 'RH_INSERT_INFTY'
exporting
vtask = 'D'
commit_flg = 'X'
tables
innnn = lt_hrp9102
exceptions
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
others = 6.