Kishore Thutaram
"SAP solution architect with a strong problem-solving mindset, sharing practical SAP S/4HANA and ABAP insights from real-world projects."
https://fiowelt.comBusiness Scenario:
“Suppress the option of deleting the sales order items to avoid inconsistency”
Steps : Open Include MV45AFZB
Form routine: FORM USEREXIT_CHECK_XVBAP_FOR_DELET USING US_ERROR
US_EXIT.
if t180-trtyp = 'V' and us_error ne space. "Change mode.
us_exit = charx.
message i001(ZZ) with 'Deletion stopped, please use reason for rejection'.
endif.
"SAP solution architect with a strong problem-solving mindset, sharing practical SAP S/4HANA and ABAP insights from real-world projects."
https://fiowelt.com