BTE Process 1120 allows you to implement ABAP Programming substitution logic, Unlike standard validation or substitution. Using BTE Process 1120 all substitutable fields are passed in these dictionary structure. BKDF_SUBST for recurring documents. BKPF_SUBST for FI document header fields. BSEG_SUBST for document line-item fields. Assuming you are familiar using BTE, for example business case we […]
This article will explained how to implement enhancement to create custom fields in Purchase Orders ( PO ) and RFQ ( ME41 ). this enhancement use MM06E005. This is an Enhancement package which has options to enhance functions and screens of some bussiness transaction which you can check from transaction SMOD. This Enhancement MM06E005 Contains […]
This BAdI LE_SHP_DELIVERY_PROC for transaction VL01N and you can implemented this badi for checking delivery data before saving. You can create implementation using transaction code SE18. For checking delivery data before saving, you can use method DELIVERY_FINAL_CHECK. Please check this ABAP Code.
DATA: lf_cannot_over TYPE c,
ls_finchdel TYPE finchdel.
DATA : ls_xlikp TYPE likpvb,
ls_xlips TYPE lipsvb.
DATA : lv_menge TYPE menge_d,
lv_tot_menge TYPE menge_d,
lv_ekbe_menge TYPE menge_d.
DATA : lt_ekbe TYPE TABLE OF ekbe,
ls_ekbe TYPE ekbe.
LOOP AT it_xlikp INTO ls_xlikp.
IF ls_xlikp-lfart = 'Z4LN' AND if_trtyp = 'H'.
"===== Add your ABAP Code. ====
IF lf_cannot_over EQ 'X'.
ls_finchdel-vbeln = ls_xlikp-vbeln.
ls_finchdel-pruefung = '99'.
ls_finchdel-msgty = 'E'.
ls_finchdel-msgid = 'ZMM'.
ls_finchdel-msgno = '005'.
INSERT ls_finchdel INTO TABLE ct_finchdel.
You can add message error or warning by populate internal table CT_FINCHDEL . […]
If you meet a business case that you need to redetermine pricing procedure during create billing document in SAP via tcode VF01. You need to create some enhancement in RV60AFZZ on subroutine USEREXIT_PRICING_PREPARE_TKOMK and create enhancement implementation in include LV60ATOP to add one global variable that you need to prevent infinite looping. Here the source code. USEREXIT_PRICING_PREPARE_TKOMK
IF SY-TCODE = 'VF01'.
IF VBRK-FKART = 'Z8LP'.
IF GV_AVOID IS INITIAL.
IF XVBRP IS NOT INITIAL.
GV_AVOID = 'X'.
PERFORM preisfindung_gesamt USING 'C'.
In this article we will discuss about Validation and Substitution in SAP Accounting Documents, Perhaps you are wondering why we discuss validation and substitution in SAP Financial ( SAP FI ) the answer is that numerous MM Documents have an FI document as a follow-on. With SAP validation and substitution, you have two very similar […]