Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

Use FM RH_INSERT_INFTY for this purpose.

0 Kudos

This function RH_INSERT_INFTY receives as a parameter the objid field.

I need a function that generates internally the objid field without submit it as a parameter.

0 Kudos

This FM receives INNN structure for the infotype, it's part is the objid key. But are you unable to generate the objid field yourself? Use  RH_GET_NEXT_NUMBER for this purpose.