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:
“Raise an error message when the user tries to change the delivery via the VL02N transaction based on a condition.”
Steps : – Transaction code SE19
Create a BADI implementation on a standard BADI LE_SHP_DELIVERY_PROC
Implement the method IF_EX_LE_SHP_DELIVERY_PROC~READ_DELIVERY
Implement the logic below.
IF ( sy-tcode EQ 'VL02N' ) AND sy-batch IS INITIAL.
IF likp-zz1_pck_dlh EQ '3'. "Business condition
MESSAGE 'Delivery is in PICK Status 3, no changes allowed' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.
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