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 Field validation

Former Member
0 Likes
2,258

Hi, experts

I have an urgent requirement on T/C MIGO, I have to validate field "Qty in UnE", I searched user exits but I don't know wich to use or if it exits a BADI?

User-Exit list:

MBCF0002

MBCF0005

MBCF0006

MBCF0007

MBCF0009

Any helpfull information I will appreciate it.

Regards

mgg

P.D. Points reward.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,876

Try to write simple query on Enhancement MBCF0009( This will trigger )

also check with other user exits ( breake sy-uname)

Try to write simple query on Enhancement MBCF0009( This will trigger )

also check with other user exits ( breake sy-uname)

13 REPLIES 13
Read only

Former Member
0 Likes
1,876

Hi Mgg,

Since you have already found out the user exits for MIGO, the best thing is put a break-point in each of these and run MIGO as usual. That way you can find out which one you need to write your code in.

Regards

Aneesh.

Read only

0 Likes
1,876

Hi Aneesh

Break-point don't work.

Regards

mgg

Read only

0 Likes
1,876

Hi,

Code it into your includes with your username. Syntax is:

break <ur username>.

Thanks

Aneesh.

Read only

Former Member
0 Likes
1,877

Try to write simple query on Enhancement MBCF0009( This will trigger )

also check with other user exits ( breake sy-uname)

Read only

0 Likes
1,876

Hi guys

<u>Seshu</u>

Thanks for info, I put on user-exits BREAK-POINTS but no STOP on T/C MIGO,does it exit other user-exits for MIGO.

<u>Tomas:</u>

How can I do to put code lines on <b>B_MIGO_BADI</b>, method <b><i>CHECK_ITEM</i></b> or <b><i>LINE_MODIFY</i></b>?

Thanks in advance

mgg

Read only

0 Likes
1,876

Hi,

After putting break-point in user exits. you need to activate the project from Tcode CMOD.

Ashven

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,876

>>>

Tomas:

How can I do to put code lines on B_MIGO_BADI, method CHECK_ITEM or LINE_MODIFY?

<<<

You have to create an implementation of the BAdI. You must be familiar with the BAdI concept and implementations to do this. I can't really give you a step-by-step guide as it is largely dependent on what exactly needs to be done.

Please check the corresponding documentation if you didn't do this before.

Here is a thread that you might find interesting:

Read only

0 Likes
1,876

Tomas:

Thanks for your Info it was very helpfull, but now I know how to show a message on methods, because I have this one, but not execute it:

<i>MESSAGE i083(me) WITH 'Se cumple'.</i>

Regards

mgg

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,876

I'm not sure if I got what you're saying

Do you mean that you don't know how to generate a message?

With the example you gave, it would be simple, because you'd have to add the following lines to your implementation in method ITEM_CHECK:

DATA: ls_bapiret TYPE bapiret2.

  • <i>code that does the criteria check for your field</i>

...

IF <i>[message needed]</i>.

ls_bapiret-type = 'I'.

ls_bapiret-id = 'ME'.

ls_bapiret-number = '083'.

ls_bapiret-message_v1 = 'Se cumple'.

APPEND ls_bapiret TO et_bapiret2.

ENDIF.

However if your goal is to validate a field as you wrote in your first post, then I suppose you'd probably want to issue a message type E or W instead of I.

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,876

Use BAdI <b>MB_MIGO_BADI</b>, method <b>CHECK_ITEM</b> or <b>LINE_MODIFY</b>, depending on how/when do you want to do the checking. Take a look at the documentation and the sample code.

Read only

Former Member
0 Likes
1,876

Also check exits MB_CF001, MBCF0010 and MBCF0011.

Maybe it will help.

Thanks

Aneesh.

Read only

0 Likes
1,876

Aneesh,

Thanks for answering but also I put BREAK-POINTS on these EXITS and no stop.

Regards

mgg

Read only

Former Member
0 Likes
1,876

Solved.