Skip to Content

Variant Dynamic Month for Text Field

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!

Add a comment
10|10000 characters needed characters exceeded

  • 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.

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 28, 2020 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.