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: 

Exception handling during info record creation

Former Member
0 Kudos

Hi,  I am facing an issue. I am using me_update_info record to insert inforecords. But this method has no exceptions. So how do I handle system exceptions. For instance if I try to insert a duplicate record or some record with data discrepancy, then I get a system error msg and my program is aborted. So what is the way to cope with such issues?

2 REPLIES 2

former_member192467
Active Participant
0 Kudos

Hi,

There is another method suggested in the link by Mr. Fred: https://scn.sap.com/thread/3309878

  PERFORM retail_reference_site_select(sapmm06i)

          TABLES it_eine1

          USING  is_eina-infnr.

  CALL FUNCTION 'ME_DIRECT_INPUT_INFORECORD'

    EXPORTING

      i_eina                 = is_eina

      i_eine                 = is_eine2

      i_no_suppose           = 'X'

      i_vorga                = 'A'

    IMPORTING

      e_eina                 = is_eina2

    EXCEPTIONS

      OTHERS                 = 2.

  CALL FUNCTION 'ME_POST_INFORECORD'

    TABLES

      t_eina_i = it_eina.

  COMMIT WORK AND WAIT.

0 Kudos

The above method doesn't handle the pricing conditions screen.