Skip to Content

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

HOW TO PASS DATE FIELD IN FM

Hi Abappers,

I am getting error when i am passing date field in function module Date_get_week i want to pass the date which i have given in select-options: s_budat for bsad-budat.

Regards,

simba.

replied

Hi,

use as following

tables:bsad.

select-options: s_date for bsad-budat.

data: week type KWEEK.

CALL FUNCTION 'DATE_GET_WEEK'

EXPORTING

date = s_date-low " or s_date-high

IMPORTING

WEEK = WEEK

EXCEPTIONS

DATE_INVALID = 1.

Regards,

Raju.

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