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 for MB1A

Former Member
0 Likes
840

Hi;

I need to validate de material amount in MB1A, this is what i need:

If a material is setting to UNITS in MARA table, in Tcode MB1A, it allows to add decimal places to this material, we need to add a validation to avoid to enter decimal places in the amount field if the material is defined by UNITS.

How can i place this kind of validation, is there a User exit for this..?

David Fúnez

Tegucigalpa, Honduras

Corp. Mandofer

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
767

hi,

use this badi.

MB_MIGO_BADI

method CHECK_ITEM.

Hi;

I need to validate de material amount in MB1A, this is what i need:

If a material is setting to UNITS in MARA table, in Tcode MB1A, it allows to add decimal places to this material, we need to add a validation to avoid to enter decimal places in the amount field if the material is defined by UNITS.

How can i place this kind of validation, is there a User exit for this..?

David Fúnez

Tegucigalpa, Honduras

Corp. Mandofer

4 REPLIES 4
Read only

Former Member
0 Likes
767

Check Does BADi MB_DOCUMENT_BADI_SAP method MB_DOCUMENT_BEFORE_UPDATE help?

Read complete documentation of BADi and of all methods.

Read only

Former Member
0 Likes
767

Hi David,

Try these user exits.

MBCF0002 Customer function exit: Segment text in material doc. i

MBCF0005 Material document item for goods receipt/issue slip

MBCF0006 Customer function for WBS element

MBCF0007 Customer function exit: Updating a reservation

MBCF0009 Filling the storage location field

MB_CF001 Customer Function Exit in the Case of Updating a Mat. D

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREA

MBCF0011 Read from RESB and RKPF for print list in MB26

I would reconemd. Keep a break point in all the user exits with your user name(Only). and then try to execute MB1A. And see if you get any breaks where you want the valudation.

All the very best.

Regards

Sharat

Read only

Former Member
0 Likes
767

hi,

use the following user exit.

MBCF0009

this exit get invoke when you put storage location -> adopt + detail and then enter.

after that you can check the rest by ABAB code.

regards,

prasad gore

Read only

GauthamV
Active Contributor
0 Likes
768

hi,

use this badi.

MB_MIGO_BADI

method CHECK_ITEM.