03-04-2010 10:16 AM
Dear Experts,
I am trying to implement the enhancement for changing the PO release strategy, using exit M06E0004 for following situation.
If PO is already released and then if any changes made to it affects the net amount which makes it less than previous net amount. We have to change the PO Release indicator to 'Blocked'.
We have tried to change the value of USRC1 USRC2 USRN1 USRN2 of structure E_CEKKO but it is not workingu2026
Please help me *how / what to change in the E_CEKKO structure*.
I am new to User Exit.
03-04-2010 10:29 AM
Hi,
First you shoud create a project in CMOD transaction and then activate the project, Pass key information like BUKRS along with USRC1 USRC2 USRN1 USRN2 and try.
Regards,
Narayan
03-04-2010 10:40 AM
Sir we did all this ...just the thing not working is Code...
As i cannot understand what is to be passed to the E_CEKKO fields USRC1
USRC2 USRN1 USRN2...
03-04-2010 12:00 PM
If there is any solution please let me know...
Or else just any clue for this
03-05-2010 4:22 AM
Experts................
Waithin for the reply............................
03-05-2010 4:40 AM
Hi,
How about using the BADI ME_PROCESS_PO_CUST. This BADI meets most of the requirements. Just try to find out appropriate method. There is an example implementation and documentation as well.
Thanks,
Vinod.
03-05-2010 5:22 AM
Vinod,
If you can please ellobrate how can i do this using the BADI..... i am new in Exits
03-05-2010 4:50 AM
Hi,
If po is already released you can't change it...u need to revert the release to inital and then only u can change.....
Thanks,
Shailaja Ainala.
03-05-2010 5:07 AM
Shailaja,
We are creating new version for servise PO, and it is geting unreleased when valu get increased, But we want to unrelease PO if the Current net value is less than the Previous one, which is not happening in current settings.
03-05-2010 6:39 AM
Expertssssssssssssssss????
Dont we have any solution for this.....?
Edited by: PrasadD on Mar 5, 2010 1:57 PM
03-06-2010 5:25 AM
Dear Experts,
As such there is not direct solution for this problem, as the problem is for some specific kind of work environment only, here it can be make workable by using the function module
"ME_REL_STRATEGIE_EKKO"
Register the key with OSS and add these lines
IF cekko-gnetw LT f1. " Done by KHS
PERFORM reset
USING e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
ENDIF.
Top of line
IF cekko-gnetw GT f1.
By adding this it get reset by decreasing or increasing the Value after the first first release.
03-15-2010 4:22 AM
Sorry for late reply...
Can u tell me where exactly i have to add this code in mentioned Function module???
12-19-2014 6:44 AM
Iam also facing same issue ,could any one please suggest a way to do it?
02-10-2015 12:27 PM
02-12-2015 1:14 PM
Hi Nagarajun,
I am able to solve this problem.!
All u have to do is follwoing two step.
1.maintained a flag in ur enhacement part (FM to Z_FIND_PO_RELEASE_STRATEGY)
inorder to know whether the current PO is without PR or not then export its value to memory.
2.Do enhancement in standard FM ME_REL_STRATEGIE_EKKO
(which is used to reset release strategy and indicator).
Inside this fm u can find below code
if xchange ne space.
*- Strategie geändert --------------------------------------------------
if e_frgst ne i_frgst or
e_frggr ne i_frggr.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
*- Wertänderung prüfen -------------------------------------------------
else.
if t16fb-kzfae eq '4' or
t16fb-kzfae eq '6' .
perform currency_conversion using *cekko-waers
bwkurs_old
hwaers
fwaers
bwkurs
changing *cekko-gnetw.
f1 = *cekko-gnetw * t16fb-tlfae / 1000.
f1 = f1 + *cekko-gnetw.
if cekko-gnetw gt f1.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
endif.
endif.
endif.
else.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
endif.....
above code is use to check the PO amount and with old net amount,Since normally code is done to reset indicator only when amount is greater than old one, u can copy above code and modify with ur condition(i.e flag) and paste in last line.
Please check & reward is useful.
02-13-2015 5:48 AM
Hi Abhijeet ,
Thanks for your reply , I fixed this using comment from Hari shankar K , same day I posted ...
02-13-2015 8:33 PM