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: 

Variant Dynamic Month for Text Field

Former Member
0 Kudos
921

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!

2 REPLIES 2

balbino_soaresferreirafil
Active Participant
0 Kudos
493

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.

Sandra_Rossi
Active Contributor
493

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.