Skip to Content
-1

Update infotype 1000 ,1001,1008 and 1013 using RH_PNNNN_MAINTAIN

Aug 17, 2017 at 08:05 PM

129

avatar image

Hi ,

I am updating the infotypes 1000 ,1001,1008 and 1013 using RH_PNNNN_MAINTAIN and my code is below. I get a sy-subrc = 5 , No authority although i dont see any error in su53 and i have all authorization.

not sure what am i misisng.

My program has 4 loops to process each infotypes.

 loop at t_p1000 assigning <wa_1000>.
   <wa_1000>-infty = '1000'.
    call function 'RH_PNNNN_MAINTAIN'
     exporting
       act_fcode                   = 'INSE'
       act_otype                   =  <wa_1000>-otype
       act_objid                   =  <wa_1000>-objid
       act_infty                    = <wa_1000>-infty
       act_begda                   = <wa_1000>-begda
       act_endda                   = <wa_1000>-endda
       act_pnnnn                   = <wa_1000>
       suppress_dialog             = '2'
   importing
      act_ok_code                 = return
    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.
Implement suitable error handling here
    endif.
  endloop.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers