Hi
2 solutions for your problem.
1. Use the FM- RH_PNNNN_MAINTAIN to maintain the Master Data.
2. Use FM- HR_INFOTYPE_OPERATION to insert the data to the Infotypes.
CALL FUNCTION 'RH_PNNNN_MAINTAIN'
EXPORTING
act_fcode = lc_fcode
act_plvar = lc_plvar
act_otype = lc_otype
act_objid = gs_retail-objid
act_infty = lc_intyp
act_istat = lc_istat
act_begda = lv_sdate
act_endda = lv_edate
act_pnnnn = gs_p1000
act_enqueue = ' '
suppress_dialog = lc_dialog
act_commit_flg = lc_commitflg
IMPORTING
act_mess_info = gs_1000
EXCEPTIONS
infty_not_valid = 1
no_plvar = 2
object_not_defined = 3
otype_not_valid = 4
no_authority = 5
action_rejected = 6
no_gdate = 7
fcode_not_supported = 8
OTHERS = 9.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.