Skip to Content

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

SAP functions without exceptions

Hello,

how can I check sy-subrc

on a SAP function which has no exceptions?

e.g. function "PM_PARTNER_DELETE_PARVW".

If I try to check the sy-subrc after calling this function,

I will get following error on the code inspector:

No EXCEPTION to set SY_SUBRC Declared for CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'.

Thanks for your help.

Ibrahim.

Tags:
Former Member
replied

Hi,

Instead of,

CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'

EXPORTING

objnr = ls_equi-objnr

parvw = ls_ihpa-parvw.

use as

CALL FUNCTION 'PM_PARTNER_DELETE_PARVW'

EXPORTING

objnr = ls_equi-objnr

parvw = ls_ihpa-parvw

EXCEPTIONS

others = 1.

This will avoid the message.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question