cancel
Showing results for 
Search instead for 
Did you mean: 

Validate Header Text (MKPF-BKTXT) in Migo

Former Member
0 Kudos

Hi experts, I'm new in SAP OO.

I need to validate the header text in Migo. We put in this field the number of invoice of goods receipt. Users sometimes make mistakes and re-enter the same invoice number, making problems in the stock. I need don't duplicate the register of this invoice.

I tried to implement BADI MB_DOCUMENT_BADI Method MB_DOCUMENT_BEFORE_UPDATE but I don't know how to do it.

Or exist other way to do it?

Please give me, if possible, some example.

Thanks in advance.

Hugo

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

For BADI Implementation, you use SE19 to create new implementation using classic BADI. You enter MB_DOCUMENT_BADI in BADI name and click create implementation. Then you enter your own implementation. Then you can double click on the method and enter your code there. Note that you will need to activate the implementation before able to use it.

Former Member
0 Kudos

Thanks at all.

I found a user exits and fortunately correctly function...

Regards.

Former Member
0 Kudos

For MIGO, there is a BADI - MB_MIGO_BADI, which you can use.

As regards to the OO or how to implement / assistance with the code, this would not be the forum for it. You may refer to the abap forums.