2008 Dec 19 5:55 PM
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
2008 Dec 20 11:15 AM
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
2008 Dec 19 6:17 PM
Check Does BADi MB_DOCUMENT_BADI_SAP method MB_DOCUMENT_BEFORE_UPDATE help?
Read complete documentation of BADi and of all methods.
2008 Dec 19 11:13 PM
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
2008 Dec 20 10:30 AM
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
2008 Dec 20 11:15 AM