Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: Automatically SLED field population when production date is changed in COR2 transaction

$
0
0

Hi Friends,

 

I used FM inside the same customer exit after fetching production date to calculate expiry date by passing rounding rule, shelf life, production date, and s structure with some required values.

Below is the code:

 

           CALL FUNCTION 'VB_MAINTAIN_MHD'

               EXPORTING

                 i_iprkz_hbd              = lwa_expiry-iprkz

                 i_rdmhd                   = lwa_expiry-rdmhd

                 i_geshb                   = lwa_expiry-geshb

                 i_hsdat                    = lwa_jcds-udate

                 i_bncom                  = bncom

                 check                     = lc_space

                 calc                        = lc_x

               IMPORTING

                 o_mhdat                 = lw_expiry

               EXCEPTIONS

                 sled_le_production_date  = 1

                 ref_date_lower_prod_date = 2

                 OTHERS                   = 3.

             IF sy-subrc <> 0.

               MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

             ENDIF.

 

And requirement is completed.


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>