Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_GOODSMVT_CREATE, How to override SAP's calculation of the Expiration Date?

Hi ,

We have same issue as mentioned in the other post by Ying. (BAPI_GOODSMVT_CREATE, How to override SAP's calculation of the Expiration Date? ) But unfortunately the solution had not shared by anyone in the post.

we are using BAPI_GOODSMVT_CREATE to create Goods Receipts for production order (T-code MB31).

I'm successful to use this bapi to create Goods Receipts, but there is 1 problem for me, the bapi not able to override the SAP calculation of the expiration date.

Let's say in MARA table, the material having a Total Shelf Life (MARA-MHDHB) of '100' and Shelf-Life Period Indicator (MARA-IPRKZ) 'D'.

But my requirement is I have to input a Production Date '03/30/2013' and an Expiration Date '09/30/2013' into BAPI_GOODSMVT_CREATE to create the record.

Expected Result:

Production Date = 03/30/2013

Expiration Date = 09/30/2013

Actual Result created by using BAPI_GOODSMVT_CREATE:

Production Date = 03/30/2013

Expiration Date = 07/082013 (Reason to get this: SAP get the Total Shelf Life 100days from the material and add to Production Date)

My Main Question: Is there anyway to skip the SAP calculate the Expiration Date for BAPI_GOODSMVT_CREATE?

Picture below is how I skip SAP calculate the Expiration Date by select 'No'. But I not sure how the bapi capture this action

So could you please help me on this ?

Thank you.

Regards,

Ch.

Former Member
Former Member replied

Hi ,

I found the solution my self . Thank you .

Implemented the badi VB_SLED_MANAGEMENT and modified the two parameters C_CHECK & C_CAL as SPACE.

Regards,

Chitturi.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question