07-28-2020 2:52 PM
Hey everyone,
in this report, i have a text field which expects the month of a year, for example "07.2020".
Now i got the request to make a variant automatically fill the current month, like it can do for date fields.
How is this possible for text fields, and how is it possible to do for the month only, and not the date?
Thanks in advance!
07-28-2020 3:19 PM
Hi, you could use a data element with this domain MCPERIOD or RSCALMONTH, or another specific for month and year. In the variant, you will fill as you do with a date field.
07-28-2020 3:30 PM
You mean via a Program Variant of an Executable Program, and without ABAP programming?
You can't.
Workarounds: create a date field as a select-options in your selection screen and choose "From month start to today". Or define a variable that you update each month by a background program.