09-11-2007 10:24 AM
Hi All..
My requirement is in MIGO TCODE.... for the field 'Delivery Note' we shud only enter date. Or else system will give error message stating "enter a valid date".
I have all the user exit which r available for the MIGO
MBCF0002 Customer function exit: Segment text in material doc. item
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
MBCF0010 Customer exit: Create reservation
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
which of these will help me in my case.
Thanx.
Dhananjay.
09-11-2007 11:01 AM
Hello,
If the SAP version supports BADI
I can suggest the solution with the help of the BADI......
if we are using the BADI instance : MB_MIGO_BADI
in the method
STATUS_AND_HEADER
we have IS_GOHEAD as an import parameter
which contains the field
LFSNR Number of External Delivery Note
so the following code in STATUS_AND_HEADER
if IS_GOHEAD-LFSNR is not initial.
IS_GOHEAD-LFSNR CO '0123456789'
*else
*Error message
endif.
also you can use POST_DOCUMENT method for giving error message on saving of the document
Pls revert if the solution was helpful and reward if so
Regards
Byju
09-11-2007 12:21 PM
Hi Byju,
In TCODE se18 I cudnt find badi : MB_MIGO_BADI
but in the development class MB i found following...
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BADIs when creating a material document
MB_DOCUMENT_UPDATE BADI when updating material document:MSEG and
MKPF.
also i m new to BADI??
Will u pls elaborate more....
Thanx.
09-11-2007 2:19 PM
Hi,
If MB_MIGO_BADI is not available then pls check the alternative mentioned by the fellow SDN member
Anyway..i will give you a brief on the BADI..............................
Process for creating an instance of the BADI
go to se18...give a name in customername space starting with 'Z'...and press create..a small window will appear asking for definition name..here we need to enter the name of the BADI...if the BADI does not support multiple instances or is used strictly for SAP internal purpose..an error message will be displayed
otherwise a new screen will appear awaiting for entering text..enter the text and save and activte...
Click on the interface tab and we can find one or more method names
Out of these we need to pick the right ones
the easy way is double click on a method...another window appears
on top we can see the importing/exporting/changing..etc parameters which are called signatures of a BADI's method...
based on which are importing..we need to find if the field we need is present in the
importing parameter....since we need to display a message in the case of delivery note.....
pls check with the following steps mentioned above for any BADI you feel may suit your requirement..BADI MB_DOCUMENT_UPDATE seems to be an alternative but the point of trigerring is not clear to me...that is trigger is after posting or before
..
Hope this information will be useful to you for later enhancements
Cheers
Byju
09-11-2007 1:06 PM
Hi,
you may use EXIT_SAPMM07M_001 of MBCF0002.The variable you need to check id I_MKPF-XBLNR.
I hope this helps,
Regards
Raju Chitale