Application Development 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: 

Check and Change MSEG-GRUND and CHARG in MB1C (cust.function / BAdi)

Former Member
0 Kudos

During transaction MB1C I've got to check

some data and afterwards to call a customer dynpro or popup( where the user can choise one Reason for Movement or Exit).Finally I've got to change MSEG-GRUND or MSEG-CHARG. I tried these Exit but they don't work as I want.

MBCF0002/MBCF0006/MBCF0009/MBCFC003/MBCFC004/MBCFC010.

These Badi can't change any values.

MB_DOCUMENT_BADI

MB_DOCUMENT_UPDATE

It's possible to use BAdi/Exit in my case or I've got to use Enhancement or modification ?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

chk whether these BADIs have been trigger by the transaction MB1C

If not u have to do enhancement

4 REPLIES 4

Former Member
0 Kudos

chk whether these BADIs have been trigger by the transaction MB1C

If not u have to do enhancement

0 Kudos

My problem is that the methods of these BAdis can't change fields because they have only import parameters.Do you know any BAdis that I can use ?

Former Member
0 Kudos

1. Go to Transaction SE24

2. Enter the Object Type CL_EXITHANDLER and click on Display.

3. Double Click on method "GET_INSTANCE".

4. Put a Break-point on

Call method cl_exithandler=>get_class_name_by_interface

5. Run any Transaction for which you need enhancements.

6. The execution will stop at the break point. Check the values of variable 'exit_name', it will give you the BADI name called at that time.

Use this steps to find out ur BADI

0 Kudos

I didn't know this procedure to find BAdis, it's vey good.

Unfortunately no BAdis can be used for my purpose. I'm going to try with Enhancement. I never used them.Have you got any link or documentations ? Thanks for your answers.