Application Development and Automation 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 new option in D - Dynamic Date Calculation

0 Kudos
773

Hello,

i want to learn can i add new option in Dynamic Date Calculation.

same as "First working day - Last working day of current month".

1 ACCEPTED SOLUTION

touzik_itc
Active Participant
666

Possible options are added in the function module RS_VARI_V_INIT. The corresponding package do not allow enhancements. I suppose, there is no simple way to add a new option.

7 REPLIES 7

Former Member
0 Kudos
666

Welcome to the SAP Community. Thank you for visiting us to get answers to your questions.

Since you're asking a question here for the first time, I'd like to offer some friendly advice on how to get the most out of your community membership and experience.

First, please see https://community.sap.com/resources/questions-and-answers, as this resource page provides tips for preparing questions that draw responses from our members. Second, feel free to take our Q&A tutorial at https://developers.sap.com/tutorials/community-qa.html, as that will help you when submitting questions to the community.

I also recommend that you include a profile picture. By personalizing your profile, you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html.

Now for some specific suggestions on how you might improve your question:

* Outline what steps you took to find answers (and why they weren't helpful) -- so members don't make suggestions that you've already tried.

* Share screenshots of what you've seen/done (if possible), as images always helps our members better understand your problem.

* Make sure you've applied the appropriate tags -- because if you don't apply the correct tags, the right experts won't see your question to answer it.

* Use the "insert code" feature when sharing your code, so members have an easier time reading.

Should you wish, you can revise your question by selecting Actions, then Edit.

The more details you provide (in questions tagged correctly), the more likely it is that members will be able to respond. As it stands, I don't know if there is enough information here for members to understand your issue. So please consider revising your question because I'd really like to see you get a solution to your problem!

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

touzik_itc
Active Participant
667

Possible options are added in the function module RS_VARI_V_INIT. The corresponding package do not allow enhancements. I suppose, there is no simple way to add a new option.

0 Kudos
666

Thank you Andrei,

It is useful for me.

0 Kudos
666

As you saw, the names are hardcoded in RS_VARI_V_INIT. If the OP is using S/4HANA it's easy to do a modification of standard instead of enhancement (provided that the OP's company permit that).

Sandra_Rossi
Active Contributor
0 Kudos
666

Do you mean how to change this option in an existing program variant by ABAP code?

NB: concerning "First working day", you can use "nth working day of current month" and value 1.

But for "Last working day of current month", I don't see how you can do it. The closest choice is "Last Day of the Current Month".

0 Kudos
666

Hello,

I mean, i want to add new option in variable name and is that possible or not?

Thank you

Sandra_Rossi
Active Contributor
0 Kudos
666

Sorry, your question was clear but I didn't understand initially. Yes, do it as Andrei said. You can add an option to point to your own function module with adequate logic. Just copy one of the standard function modules indicated in RS_VARI_V_INIT and adapt.