‎2008 Oct 21 6:29 PM
Hi all,
I am working on the BADI method IF_EX_ME_PO_PRICING_CUST~PROCESS_KOMP.
I have used a condition that
{if IM_KOMP-MENGE eq '220'.}
{ IM_KOMP-MENGE = '250'.}
In debugging it is reading as 250 which is correct.
But when i come out of this method its again reading the value as 220.
I tried with some update and modify statements ,but getting same problem.
What is that I need to do.
Thanks & Regards,
Sudheer.
‎2008 Oct 21 6:31 PM
Hi Sudheer,
May be you need to update some other structure. There are several cases where you need to update the other structure.
Try to find the actual structure or the internal table which holds the data and try to modify that field.
Thanks,
Chidanand
‎2008 Oct 21 6:43 PM
Hi Chidanand,
I have debugged some part of the code where it is triggering this BADI.
In debugging it is coming to the method
CALL METHOD EXITINTF->PROCESS_KOMP
EXPORTING
IM_EKPO = IM_EKPO
IM_T001W = IM_T001W
IM_EKKO = IM_EKKO
IM_KOMK = IM_KOMK
IM_MT06E = IM_MT06E
IM_EINA = IM_EINA
IM_EINE = IM_EINE
IM_KNT = IM_KNT
CHANGING
CH_KOMP = CH_KOMP.
so for this I have written the above code I have mentioned.
Its calling this method and going to my code.After coming out from this methos again I am getting the old value.
Thanks & Regards,
Sudheer.
‎2008 Oct 21 6:49 PM
Hi Sudheer,
Did you check the structure CH_KOMP what value it contains .
Thanks,
Chidanand
‎2008 Oct 21 7:10 PM
Hi chidanand,
I have even written a code for chaging values in CH_KOMP.
But the same problem I am facing.
Thanks & Regards,
Sudheer.
‎2008 Oct 21 6:50 PM
hi Sudhir,
Create a watch point and see whr the value of the field gets changed, Accordingly do the needful.
Regards'
Avi
‎2008 Oct 21 7:16 PM
Hi Avi,
As I already mentioned the value is getting changed after the Method.
Thanks..
Sudheer.
‎2008 Oct 21 7:19 PM
Hi Sudheer,
Then try to go to the Stack and do some hit and trial method to find the appropriate table which holds the data .
Go to the debugging mode and click on the Calls Stack button to see the stack andselect the progam name and pass your structure name to see
eg: (PRG_NAME)KOMP
Thanks,
Chidanand
‎2008 Oct 21 8:27 PM
Hi Chidanand,
Working on this.....Tell u the result after I complete..
But really its taking a lot of time..
Thanks & Regards,
Sudheer.