I'm looking for a way to push a value to MKPF-BKTXT before saving of MB01 transaction (creating a material document, movement type 101). Our users here don't use MIGO, they only use MB01.
I created an implementation and modified IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE of MB_DOCUMENT_BADI (as shown in my attachment file). But it seems that this BADI don't allow changes in XMKPF. When I tested it, it resulted to run time error.
I tried using userexit MB_CF001 but my codes are not triggered upon creation of material document. I checked, MB_CF001 is active (as shown in attached file).
Maybe this exit is only for updating mat doc, not for creation (not sure).
When I searched here, someone had the same requirement before but he did not state how he solved it.
Let me know if you need further details.
Any help given is greatly appreciated.
Thanks in advance.