Application Development and Automation 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: 
Read only

Regarding EXIT_SAPLVBMD_001 User Exit

Former Member
0 Likes
2,906

Dear All,

    I am writing a user exit (EXIT_SAPLVBMD_001) for batch expiry date in MIGO transaction.

My requirement is  we are giving Date of Manufacture(22.05.2014) is  manually entered in BATCH tab , and also palely I am getting SLED/BBD(01.05.2016) date .

So I need  SLED/BBD(01.05.2016) will come one day less ,that is 30.04.2016. what should I do .

Please find the bellow screen shot

Regards,

Srikanth.

1 ACCEPTED SOLUTION
Read only

former_member196651
Contributor
0 Likes
1,769

Hi Srikanth,

Are you sure that this exit will overwrite the SLED/BBD field. If so use the function module

RP_CALC_DATE_IN_INTERVAL as follows.

CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'

   EXPORTING

     date       = '20160501'

     days      = 01

     months  = 00

     signum  = '-'

     years     = 00

   IMPORTING

     calc_date = e_end_date.

The e_end_date will contain 30.04.2016.

Regards,

Abijith

Dear All,

    I am writing a user exit (EXIT_SAPLVBMD_001) for batch expiry date in MIGO transaction.

My requirement is  we are giving Date of Manufacture(22.05.2014) is  manually entered in BATCH tab , and also palely I am getting SLED/BBD(01.05.2016) date .

So I need  SLED/BBD(01.05.2016) will come one day less ,that is 30.04.2016. what should I do .

Please find the bellow screen shot

Regards,

Srikanth.

2 REPLIES 2
Read only

former_member196651
Contributor
0 Likes
1,770

Hi Srikanth,

Are you sure that this exit will overwrite the SLED/BBD field. If so use the function module

RP_CALC_DATE_IN_INTERVAL as follows.

CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'

   EXPORTING

     date       = '20160501'

     days      = 01

     months  = 00

     signum  = '-'

     years     = 00

   IMPORTING

     calc_date = e_end_date.

The e_end_date will contain 30.04.2016.

Regards,

Abijith

Read only

0 Likes
1,769

Dear Abijith,

      I am not getting SLED/BBD field value in this User Exit.

    Can U provide any User Exit or BADI for overwrite the SLED/BBD field in MIGO T-Code.

Regards,

Srikanth.