Posts

Showing posts from May, 2009

Function Module (Custom) to get Fiscal Week from Date

border-width:1px;border-color:3C3C3C;border-style:solid;"> FUNCTION  zemfi_date_to_fiscal_week. *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     REFERENCE(I_DATE) TYPE  DATUM *"     REFERENCE(I_PERIV) TYPE  PERIV *"  EXPORTING *"     REFERENCE(E_WEEK) TYPE  SCAL-WEEK *"     REFERENCE(E_GJAHR) TYPE  GJAHR *"----------------------------------------------------------------------    DATA : l_first_day_of_year  LIKE  sy-datum,         l_weeks( 5 )           TYPE  p,         l_week01             TYPE  d,   "First Day of Week/First Day of Period         l_run_date           TYPE  d.   "Run Date in type D format * Convert Date to Period    CALL   FUNCTION   'DATE_TO_PERIOD_CONVERT'      EXPORTING       i_date               = i_date *   I_MONMIT             = 00       i_periv              = i_periv     IMPORTING *   E_BUPER              =      e_gjahr    ...