Skip to Content
0
Former Member
Feb 22, 2014 at 09:23 PM

How to create registration table hrp100, hrp1028, hrp1208 with function?

170 Views

Hi Experts,

I'm trying to create records OM object and I need a function to record in hrp1000 hrp1028 hrp1208 tables.

I used the RH_PNNNN_MAINTAIN functions, also HR_INSERT_INFTY,

but these functions take as parameter the field Objid, Indicating that the OBJID field should be generated automatically by the function.

Example:

CALL FUNCTION 'RH_PNNNN_MAINTAIN'

EXPORTING

act_fcode = 'INSE' " AEND to modify, INSE to insert

act_otype = gwa_hrp1000-otype

act_objid = '271263' should be generated automatically

act_infty = '1000'

act_pnnnn = gwa_hrp1000

suppress_dialog = '0' " you can use 0 if you want Dialog mode

TABLES

act_hrtnnnn = gt_hrp1000

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.