05-12-2009 6:46 AM
Hi all,
My requirement is to set the Posing date as SY-DATUM while posting in MIGO. Currently user can give any previous date as Posting date. So I want to reassign the Posting date to Current date in my user exit. But I am unable to find a proper user exit.
Tried above mentioned user exit / BADI but couldnt find a solution
USER-EXIT
MBCF0002
MBCF0005
MBCF0006
MBCF0007
MBCF0009
MBCF0010
MBCF0011
MB_CF001
WBWE0001
BADI
MB_DOCUMENT_BADI
MB_DOCUMENT_UPDATE
MB_MIGO_BADI
MB_MIGO_ITEM_BADI
MB_RESERVATION_BADI
In almost all of the above badi/user exit structure for MKPF is appearing as an importing parameter ....
in Exit MB_CF001 MKPF appears as an table parameter, but the exit is not getting triggered while posting in MIGO !!!!
Regards
Antony
05-12-2009 7:54 AM
Hi,
This can be achieved by implementing the BADI - MB_MIGO_BADI . The header value shoule be changed to sy-datum. This is in struture GOHEAD. Let know If you have any queries.
05-12-2009 8:00 AM
Hi,
I think you cant change the date .....as it is date created in accounting .....try for any enhancement spots..
Thanks,
Shailaja Ainala.
05-12-2009 8:06 AM
Hi Shailaja,
We are on SAP 4.7 ..... Enhancement Spot is not availabe...
Hi Vinu,
GOHEAD is an IMPORTING parameter !!!!!!
Regards,
Antony
05-12-2009 8:08 AM
Hello ,
I think we can provide a warning message saying the posting date can be modified , as there is no enhancement to set thedate to System date .
Regards,
05-12-2009 8:18 AM
Thanks Shishupal,
I have already given that option .....but Consultants are not happy with that solution.
Regards,
Antony
05-12-2009 10:30 AM
Dear,
i think you are posting the data wrong in MIGO Transaction check it once.
cheers
fareed
07-23-2009 7:06 AM
So, there is no idea how to change header in MIGO BADI/user exit ?
07-23-2009 8:38 AM
Dear Dimitriy,
There is one out of the way solution to change the posting/document date from the user exit by changing the value in the program call stack. You can find some sample code in in the forum, but I seriously wont advise you follow that.
As with my requirement the Functional Consultant finally agreed on giving an Error message if the Posting date didnt satisfy some buisness condition. Implemented exit MBCF0002 for the same.
if _mkpf-budat ne ( SOME CONDITION )
message e999(zlmsg) with ' Your Message Text' .
endif.
08-18-2010 1:40 PM
Hi,
I had the same problem exactly,
I did two things in order to manage:
1. since when using MIGO the post is immediatly once the user can not change the posting day field the problem no longer exist.
I used screen modification in order to change the field to display only using transaction: OMJX for MIGO and OMJN for MB1A, MB1B and MB1C
2. since we are using WM with HU I used the BADI: LE_SHP_GOODSMOVEMENT at the post of the delivery to change the field MKPF-BUDAT.
Hope that helps.
11-12-2010 6:32 AM
06-22-2012 7:01 AM
hi can any one tell me tha enhancement for migo.
after entering posting date,when we click on enter we need some error message..
can any 1 tell me the enhancement for migo.
11-22-2013 11:07 AM
I have a requirement where i need to validate Document Date and Manufacturing date in MIGO.
Which is the exit to do this function and the field. Field is BLDAT, but while including the validation which are the fields I need to compare. The exit I am using is EXIT_SAPLVBMD_001. Is this correct or should I use the exit EXIT_SAPMM07M_001