Skip to Content
author's profile photo Former Member
Former Member

Exception handling during info record creation

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 14, 2015 at 08:21 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.