12-12-2015 6:31 PM
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?
12-14-2015 8: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.
12-16-2015 2:45 AM