Application Development 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: 

Change material document --> Expiration date.

Former Member
0 Kudos

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.

Naiara.

Message was edited by:

Naiara Espinosa

2 REPLIES 2

Former Member
0 Kudos

I have already resolved the problem.

Thanks.

Former Member
0 Kudos

Hello Naiara,

How did you solve this?

Thanks!!