Application Development 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: 

how to add date as input to Function Module ?

atslokesh
Explorer
0 Kudos

Hi gurus,

i have to add date (field) as input to Function Module bcz

in selection-screen i have to get the date as input in select-options.

3 REPLIES 3

abo
Active Contributor
0 Kudos
  • declare an appropriate type, for example: TYPES ty_budat TYPE RANGE OF bkpf-budat
  • use this type in the function parameters
  • pass your select option 🙂

0 Kudos

Can you please provide the Function module name for the requirment.

matt
Active Contributor
0 Kudos

Can I recommend using parameters instead of select-options for dates. Select-options offers far more possibilities than is usually required for, e.g. date from, date to.

https://blogs.sap.com/2014/02/07/dates-and-select-options/