Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in BADI

Former Member
0 Likes
1,032

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.

8 REPLIES 8
Read only

Former Member
0 Likes
973

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

Read only

0 Likes
973

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.

Read only

0 Likes
973

Hi Sudheer,

Did you check the structure CH_KOMP what value it contains .

Thanks,

Chidanand

Read only

0 Likes
973

Hi chidanand,

I have even written a code for chaging values in CH_KOMP.

But the same problem I am facing.

Thanks & Regards,

Sudheer.

Read only

Former Member
0 Likes
973

hi Sudhir,

Create a watch point and see whr the value of the field gets changed, Accordingly do the needful.

Regards'

Avi

Read only

0 Likes
973

Hi Avi,

As I already mentioned the value is getting changed after the Method.

Thanks..

Sudheer.

Read only

0 Likes
973

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

Read only

0 Likes
973

Hi Chidanand,

Working on this.....Tell u the result after I complete..

But really its taking a lot of time..

Thanks & Regards,

Sudheer.