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

User exit doubt

Former Member
0 Likes
1,192

Hello All!

I'm trying to use an user exit (MMDA0001) to update Targ. val. field (EKKO-KTWRT) in ME32K transaction.

We need to fill this field with the sum of all items Net Price of the Agreement.

May I select the records of ekpo inside the user exit and then move the summarized value to this field?

If yes, how can I pass the value for this field at the screen? (EKKO-KTWRT)

Thanks in advance!

Michel Khouri

Mars, Inc

10 REPLIES 10
Read only

Former Member
0 Likes
1,106

Hi Michel,

yes you can select the ekpo table inside this userexit but you have to chcek which internal table contains the value of ekpo data.

try to find the internal table and do what ever you want.

I think this would be helpfull for you.

Thanks,

Chidanand

Read only

0 Likes
1,106

Hi Chauhan!

Thanks for your reply.

I did get the internal table with ekko-ebeln value and select the items with ekpo table. However I don't know how to change the content of the fiel EKKO-KTWRT.

How can I find it on the memory?

Thanks again!

Michel Khouri

Read only

0 Likes
1,106

Hi Michel,

Look it is prescribed that you do not have to change the value of the internal table specially in the standard prog its better to consult with the funcitonal whether to chagne the value it in this way or not. Because standard sap uses that internal table to some other places, as a result it is recommended not to change the value.

But still you want to change then check the screen field name and assign the value to that screen field name. Also make sure htat this screen field value name is not going to refresh after you changed the value.

Read only

Former Member
0 Likes
1,106

Hi Michel,

Please check this user exits EXIT_SAPMM06E_021 for enhancement MM06E008.

Regards,

Ferry Lianto

Read only

0 Likes
1,106

Hi Ferry,

I think this is the user exit that I'm looking for...but I put a break-point on it and at the moment that the Agreement is saved, the routine is not being called.

What could be the problem?

Thanks,

Michel Khouri

Read only

0 Likes
1,106

Michel, may be this user exit is called in update mode. Turn on update debugging and validate if your pgm stops at the breakpoint

Read only

0 Likes
1,106

Hi Kris,

Is there an option to turn the update debugging on?

Michel Khouri

Read only

0 Likes
1,106

Before you press save, turn debugging on by entering /h.

Once u are in debug mode, click on 'Settings ' button, you will see a lot of options. Please check the 'Update debugging ' check box.

Please also validate that your projects have been activated as indicated by Ferry.

Read only

Former Member
0 Likes
1,106

Hi Michel,

Did you create a project (CMOD) for enhancement MM06E008 and EXIT_SAPMM06E_021? Try to code thsi inside user exits.

BREAK <sy-uname>. <-- your ID.

Also ensure you have activated the project.

Regards,

Ferry Lianto

Read only

0 Likes
1,106

Sorry Ferry,

But I didn't get...I have created the project as your suggestion, activated it, put the command with my ID and the break-point was not called.

ps.: I turn the update debuggin on

Another tip?

Thanks a lot!

Michel Khouri