At times, there is a a situation where the business requires a release strategy to be triggered if
there are any changes to the purchase order document value either increase or
decrease of document value.
In general, standard SAP does
trigger a release strategy if there is an increase in document value but
however, if there is any decrease in the document value system doesn't trigger
release strategy.
This post covers the technical
changes that we have to make to trigger release strategy if there is any decrease
in the document value to that of the released amount.
Release strategy at purchase
order level is triggered based on the function module - 'ME_REL_STRATEGIE_EKKO'
so we are required to make
changes in this FM to accomplish this requirement.
Perform reset is used to reset
the release strategy post-release of the document.
IF cekko-gnetw GT f1.
PERFORM reset
USING e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
We
have performed the below changes to perform release reset post-purchase order release.
data: F2 type F.
f2 = cekko-gnetw * t16fb-tlfae / 1000.
wait UP TO 2 SECONDS.
f2 = f2 + cekko-gnetw.
ELSEIF f2 <> f1.
PERFORM reset
USING e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
SAP MM Training in GURGAON
ReplyDeleteThis comment has been removed by the author.
ReplyDelete