Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 8332

Trending Articles