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: 

User-Exit/BADI to populate Std.SAP and Custom fileds on MSEG

former_member202077
Participant
0 Kudos
408

Hi Experts,

I need to populate around 10 standard SAP fields and 8 custom fields on MSEG(material document item table) record, WHILE the material document is creating.

In this process I saw the user-exit EXIT_SAPLMBMB_001 and BADI of MB_DOCUMENT_BADI, but when I put break-point its not stopping!! Pls. let me know

1)What is the good user-exit/BADI/Enhancement spot to achieve my requirement?

2) In this context, is the user-exit triggering is depends on transaction(MB1A, MB1C, MIGO, MB01, BAPI, IDOC) from which you are creating the material doc? bcz when I searched google, some people asked that "From which transaction u r creating the Mat.Doc" so that they want to suggest the user-exit/BADI name!

Thank you,

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos
83

hello,

The reason behind the program is not stopping at break-point can be "The User Exit / BADI is not active or not been implemented"...

In ECC 6.0 MB1A, MB1B and MB1C transaction has been replacecd by MIGO...

So I would suggest please read the description and documentation avaialble for the user exit / BADI and create your own exmple to test...

Thanks.

2 REPLIES 2

krishnendu_laha
Active Contributor
0 Kudos
84

hello,

The reason behind the program is not stopping at break-point can be "The User Exit / BADI is not active or not been implemented"...

In ECC 6.0 MB1A, MB1B and MB1C transaction has been replacecd by MIGO...

So I would suggest please read the description and documentation avaialble for the user exit / BADI and create your own exmple to test...

Thanks.

Former Member
0 Kudos
83

Hi,

The best method in enhancements is either customer exit or Badi which ever is available.

The exit u mentioned EXIT_SAPLMBMB_001 is a customer exit or we can say function module exit. Its not an user exit. These both

have considerable difference.

If none of the above option is available we go with the enhancement point. The point can be created inside the User exit or any other suitable places that can satisfy our requirement.

In your case just implement and activate the badi or customer exit and check with the break point. If this doesnt work than go for the enchancement point.

Regards,

Rudhir Bhaskar.