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

MIGO

Former Member
0 Likes
2,421

When I execute transaction MIGO, posting and document dates are defaulted to today's date.

Is there any user exit or BADI to initialize the posting and document date. I tried using BADI MB_DOCUMENT_BADI and user exit MB_CF001 but nothing seems to work.

Thanks,

23 REPLIES 23
Read only

Former Member
0 Likes
2,333

what is the date you are trying to default? Does it lie in the previous period or the present. Just checking to see if updating the date here does not lie in the current period and is giving an error. Do put a break point and check if the date is updated in your code but not updated while creating the document.

Read only

Former Member
0 Likes
2,333

Hi , I would like to state that the posting date is defaulted as today's date provided the date lies in the period.

System will always default document date as today's date. but in case of Posting date , i will explain with the example .

1) Today is 04-12-2006 . a) but the November period is not closed . in that case system will default 30-11-2006 , which is the correct one.

b) November period is closed . in that case , system will default 04-12-2006.

which is the correct and is according to the general business requirement.

What is your requirement and what do mean by initialize the posting and document date.please explain

Regards

Mani

Read only

0 Likes
2,333

Hi Mani,

Thanks for your reply.

My requirement is to make the posting date and document date as blank and allow users to enter the date, if the user does not enter date than error message should be displayed.

Thanks.

Read only

0 Likes
2,333

HI ,

The follwoing are exits avl . At present i don;t have system to check .prob u can try with MBCF0005 to cleanup the values in the posting date and document date.

system won't allow to post without those dates .

Regards

Mani

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 BAPI_RESERVATION_CREATE1

MBCF0011 Read From RESB and RKPF For Print List in MB26

MBCFC003 Maintenance of batch master data for goods movements

MBCFC004 Maintenance of batch specifications for goods movements

Read only

0 Likes
2,333

Easy - create a parameter transaction (ZMIGO).

The transaction is MIGO.

In the default values area, enter:

GOHEAD-BLDAT

GOHEAD-BUDAT

In the values for each, press the space bar.

When you save it, it will tell you that neither field exists. Ignore this.

Test it.

Rob

Read only

0 Likes
2,333

Hi Rod,

I tried the solution given by you. But when I save, system throws an error message that the field does not exists on the screen.

Thanks.

Read only

0 Likes
2,333

Yes - that's what I said. Ignore and continue (they're information messages).

Rob

Read only

0 Likes
2,333

Hi Rod,

I could create parameter transaction with those default values. But ZMIGO shows today's date in posting and documnet date field. Your solution does not work

Thanks.

Read only

0 Likes
2,333

Did you press the spacebar in the value field?

I did this with no problem. Both fields are blank.

Rob

Read only

0 Likes
2,333

Hi Rod,

This is what I did.

1) Go to transation SE93 and enter ZMIGO. Click on create

2) From the set of radiobutton,I choosed 'Transaction with parameters'.

3) I entered MIGO in the transaction field and GOHEAD-BLDAT under Name of screen field.

4) I used spacebar in the value column.

But when I save the transaction, I get error message and doesnot save, unless I take out the screen field.

I am missing something??

T/hanks.

Read only

0 Likes
2,333

In our system, these are just information messages. When you press save, you will get a message. <b>Press enter</b>. you'll get a message that the other field doesn't exist. <b>Press enter again</b>. You should get a message that it is saved.

Make sure that before you do this that you <b>press the spacebar</b> in each of the value fields.

what version are you on?

Rob

Read only

0 Likes
2,333

Hi Rod,

I am on 4.6C. I get error message.

Read only

0 Likes
2,333

Well, verify that it's a type 'E' message. If so, then I guess it won't work.

Rob

Read only

0 Likes
2,333

It is type E, Rob.

Thanks.

Read only

0 Likes
2,333

What version are you on?

Read only

0 Likes
2,333

4.7

Rob

Read only

0 Likes
2,333

Hi Mani,

Thanks for your reply. The user exit you pointed, does not have BLDAT or BUDAT as changing parameter.

Read only

0 Likes
2,333

Hi Rob,

When we test from the ZMIGO crete screen , it is working in ECC 6.0

But if we execute the transaction , still system is defaulting the dates.

Could you please glow some light on this .

Regards

Mani

Read only

0 Likes
2,333

Did you press the spacebar in the values of the transaction?

Rob

Read only

0 Likes
2,333

Yes Rob .I saved ZMIGO transaction as u mentioned

When We execute the transaction it is coming as blank. if we input the PO number and press enter , it is bringing the default dates

Regards

Mani

Read only

0 Likes
2,333

OK, but that wasn't the original question. LP just wanted the initial display to be blank.

Rob

Read only

0 Likes
2,333

Hi Rob/Mani,

I am in 4.6C so the solution provided does not work neither user exit or BADI. Can you guys think of something else.

Thanks,

Read only

0 Likes
2,333

L P,

Did you ever figure out this problem? We are having the same problem. Do you have any suggestions?

Thanks,

Jim