Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_MATERIAL_SAVEDATA error handling

Hello all, I'm using this BAPI to update some materials and I'm having problems handling the error messages.

This is my code:

    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata       = header
        plantdata      = w_marc
        plantdatax     = w_marcx
        valuationdata  = w_mbew
        valuationdatax = w_mbewx
      IMPORTING
        return         = return
      TABLES
        returnmessages = return_msg.

as you can see I have seted the table returnmessages, but for some reason, there are some erros that are showed up in a window on the screen and the user must press ok for the procces to continue. Is there any way to avoid this kind of errors on a BAPI?

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question