Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Function RH_INSERT_INFTY dumping and not returning to main program

$
0
0

Hi,

 

I am calling function RH_INSERT_INFTY but when I run the program it is dumping within the Function. I would like to handle the error within my program so I can determine exactly which record it is failing on, but it doesn't return control to my calling program, it simply dumps in the Function so it is difficult to see for exactly which record in my internal table is causing this.

 

Anybody had this problem, and know how to solve this?

 

My code below:

 

    CALL FUNCTION 'RH_INSERT_INFTY'
    EXPORTING
      vtask               = 'D'
      commit_flg          = ' '
    TABLES
      innnn               = lt_p1001
    EXCEPTIONS
      no_authorization    = 1
      error_during_insert = 2
      repid_form_initial  = 3
      corr_exit           = 4
      begda_greater_endda = 5
      OTHERS              = 6.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


Viewing all articles
Browse latest Browse all 9052

Trending Articles