Skip to Content

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

Prevent deletion of fixed vendor

Some of our users are accidentally clicking the trash can icon next to the fixed vendor after selecting items from a catalog. While we have a requirement that the preferred vendor must be populated, the users are not stopped when they delete the fixed vendor.

Is there a way to prevent users from deleting the fixed vendor for catalog orders? Should we just continue the requirement for preferred vendors and treat their order as "describe requirement" instead of catalog order?

replied

Hello Monique,

I did the same control for several projects.

You have to change the standard code of form FORM sos_modify_screen_grp3_002, include LBBP_SC_UI_ITSFIS.

This form controls the display of SOS screen elements.

Here is an ABAP code example (here we used CIF ZZCATALOG to differentiate different types of catalogs, but you could simply use item-catalog_id field):

WHEN 'SR8'. " vendor delete icon

IF is_scr_sos_detail-vendor_id IS INITIAL.

  • 1.1.no sos assigned

ev_field_prop = gc_field_hidden.

ELSE.

  • 1.2. sos assigned

*{ REPLACE DEBK901217 1

*\ IF iv_change_mode = gc_no.

  • 31.5.2005 DENYSIAK Don't delete supplier from catalog

IF iv_change_mode = gc_no

OR ( is_item-ZZCATALOG = 'X'

AND sy-tcode ne 'BBP_MON_SC'

AND sy-tcode ne 'BBPSC11'

AND sy-tcode ne 'BBPSC12'

AND sy-tcode ne 'BBPSC13' ).

*} REPLACE

ev_field_prop = gc_field_display.

ELSE.

ev_field_prop = gc_field_edit.

ENDIF.

Rgds

Christophe

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