Skip to Content
0
Former Member
Jun 26, 2009 at 05:44 AM

How to supress success message -when deleting variant

159 Views

Hai All,

I am using the below function module to delete any existing variant in the system. If I dont set the parameter 'flag_confirmscreen' then a pop up comes & if I say OK then a success message will be displayed saying 'variant deleted successfully'.

So now I set the parameter 'flag_confirmscreen' & called the same function module(as below).In this case pop up wont appear but the succes message which says 'variant deleted successfully' is still getting displayed.

is there any possiblity to supress this message as well?

CALL FUNCTION 'RS_VARIANT_DELETE'

EXPORTING

report = report_name

variant = variant_name

flag_confirmscreen = 'X'

FLAG_DELALLCLIENT = 'X'

EXCEPTIONS

not_authorized = 1

not_executed = 2

no_report = 3

report_not_existent = 4

report_not_supplied = 5

variant_locked = 6

variant_not_existent = 7

no_corr_insert = 8

variant_protected = 9

OTHERS = 10 .

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks & Regards,

Bhaskar