Skip to Content

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

get exception text using subrc and function module name

hi guru's,

how to fetch exception short text using the sy-subrc and fucntional module name.

example :

CALL FUNCTION 'EQUIPMENT_LOCK'

           EXPORTING

             equi_no        = wa_equi-equnr

           EXCEPTIONS

             equi_not_found     = 1

             lock_failure           = 2

             OTHERS              = 3.


if i get the subrc = 2 i want to get the text lock_failure in an variable .


please help.


thanks.

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