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: 

MIGO User Exit / BADI on Posting Date

antony_paul2
Active Participant
0 Kudos

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

12 REPLIES 12

Former Member
0 Kudos

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.

0 Kudos

Hi,

I think you cant change the date .....as it is date created in accounting .....try for any enhancement spots..

Thanks,

Shailaja Ainala.

0 Kudos

Hi Shailaja,

We are on SAP 4.7 ..... Enhancement Spot is not availabe...

Hi Vinu,

GOHEAD is an IMPORTING parameter !!!!!!

Regards,

Antony

0 Kudos

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,

0 Kudos

Thanks Shishupal,

I have already given that option .....but Consultants are not happy with that solution.

Regards,

Antony

Former Member
0 Kudos

Dear,

i think you are posting the data wrong in MIGO Transaction check it once.

cheers

fareed

0 Kudos

So, there is no idea how to change header in MIGO BADI/user exit ?

0 Kudos

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.
  

Former Member
0 Kudos

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.

antony_paul2
Active Participant
0 Kudos

Requirement changed.

former_member612567
Participant
0 Kudos

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.

rekha_manjunath2
Participant
0 Kudos

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