Skip to Content
Former Member
May 22, 2007 at 09:50 AM

Change material document --> Expiration date.


I have already created a new BADI which contains interface MB_DOCUMENT_BADI. There I use the method MB_DOCUMENT_BEFORE_UPDATE. What I want to do is to modify the expirate date (VFDAT) from MSEG.

I thought that I could use BAPI_CUSTOMERCONTRACT_CHANGE but I can't because I don't have any <b>order</b>. The parameters I use to create the material document are next: GOODS RECEIP --> OTHERS --> movement 501. After that I enter the information of the material.

After that I want to check if the expirate date has been insert or not. If it is not, I want to insert 31.12.9999 (dd/mm/yyyy).

I tried to use this fuction: MB_CHANGE_DOCUMENT also with IN BACKGROUND TASK and after that COMMIT WORK.

The program doesn't do anything, and it is just because in transaccion SM58 it says "MISSING PARAMETER WITH PERFORM".

Which BAPI or FUNTION can I use to resolve my problem?? I'm completely locked!

Thank you very much in advance.

Best Regards.


Message was edited by:

Naiara Espinosa