0% found this document useful (0 votes)
58 views4 pages

Dynamic Date Manipulation For Variant in SAP ABAP

Uploaded by

pablom22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views4 pages

Dynamic Date Manipulation For Variant in SAP ABAP

Uploaded by

pablom22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

22/5/22, 15:25 Dynamic date manipulation for Variant in SAP ABAP

We have moved our domain from sapnuts.com to zapnuts.com, please bookmark and share.

You are here →


/  zapnuts.com
/  Tutorials

Dynamic date manipulation for Variant in SAP ABAP

Dynamic date manipulation for Search Sapnuts Search

Variant in SAP ABAP Learn SAP Courses online, SAP Certification


mock exams and SAP tutorials
Author | Last Updated| 05 Dec 2013
| 6 Comments
A+
A- SAP ABAP Tutorials, SAP ABAP Online Training,
SAP Webdynpro for ABAP, Webdynpro for
ABAP tutorials, Webdynpro for ABAP online
Dynamic date manipulation in variants in SAP ABAP, update variant date training, SAP Workflow training, SAP Online
dynamically in SAP ABAP variants Training, SAP Certification, SAP Training, SAP
mock exams, SAP Exams, SAP ERP, SAP
Step1 : Creating Variants for SAP ABAP programs Interview questions, SAP ABAP interview
Step2 : Dynamic date in variant for parameters Questions

Step1:Creating Variants for SAP ABAP programs Normal Top^


REGISTER FOR PREMIUM SAP
TRAINING
Variant is a concept of saving a set of input fields with values with a particular name, so that we can
use the same set of inputs next time, the below is the example of creating variants in SAP ABAP
programs.
Training will be provided through
Create a program with a selection-screen. online platform ex: gotomeetings

Name *
REPORT ZSAPN_DYNAMICDATE.

DATA LV_DATUM TYPE DATUM.


Name
PARAMETERS P_DATE TYPE DATUM.

Email *
SELECT-OPTIONS S_DATE FOR LV_DATUM.
Email

Mobile *

10 digit mobile number

Your privacy will be protected always

Select Courses *

SAP ABAP

Web Dynpro ABAP

Object Oriented ABAP

Provide some input values, click on save button. SAP Cross Apps (RFC,BAPI,IDOC)

Comments

Comments

Submit

Related Core ABAP Tutorials

Provide variant name, description and save.

https://zapnuts.com/tutorials/Dynamic-date-manipulation-for-Variant-in-SAP-ABAP/singlepage.html 1/4
22/5/22, 15:25 Dynamic date manipulation for Variant in SAP ABAP

How to use variant in SAP ABAP programs


Go to the program selection screen, you will find variant icon, click on variant icon.

You will find list of variants available for the program, double click on any variant, the values will be
populated to screen automatically.

Step2:Dynamic date in variant for parameters Normal Top^

Go to report selection screen.

Provide some input values, click on save button.

https://zapnuts.com/tutorials/Dynamic-date-manipulation-for-Variant-in-SAP-ABAP/singlepage.html 2/4
22/5/22, 15:25 Dynamic date manipulation for Variant in SAP ABAP

Press F4 on selection variable input of parameter date,select D:Dynamic Date Calculation, enter.

Press enter, press F4 on name of variable, double click on  current date +/- ??? days.

A pop up will open enter -1, means current date -1..(todays date -1, changes dynamically everyday).

Save the variant, go to report selection-screen select variant by clicking on variant, you will find
yesterdays date on selection screen, this will changes dynamically every day.

← Previous Tutorial Next Tutorial →

Tutorial Comments
Total Comments: Add your Comment

Venkat 29 Mar 2018


Nice to see more information about variant.. actually we do date calculation in initialization
event.

Reply
Report

Ashok 29 Mar 2018


This is new for me. Thanks for sharing.

Reply
Report

uday kiran 29 Mar 2018


i want know how to use variant in background session ?
please if you know email me ?
thank
you.

Reply
Report

veganath 29 Mar 2018

https://zapnuts.com/tutorials/Dynamic-date-manipulation-for-Variant-in-SAP-ABAP/singlepage.html 3/4
22/5/22, 15:25 Dynamic date manipulation for Variant in SAP ABAP

Nice topics. Please it will be better some scenarios

Reply
Report

Anuradha Wijesinghe 29 Mar 2018


Thank you very much.........................................................

Reply
Report

Parbrize Auto Mercedes Sprinter 2015 19 Apr 2020


If some one wishes to be updated with latest technologies then he must be go to see this
site and be up to date all the time. https://parbriz-auto-bucuresti.ro/parbriz-mercedes-
sprinter.html

Reply
Report

Leave a Comment
Your Name: *

Your Email : *

Comment Text : *

Enter Comment Text

Enter Text on Image *

Captcha Text

Refresh

Submit Comment

? Support About Feedback Privacy Terms & Conditions Report Abuse Version: V.2.1

© zapnuts, publisher of zapnuts. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries.
All other product and service names mentioned are the trademarks of their respective companies. zapnuts.com is not affiliated with SAP SE or any of the SAP
SE group of companies.

https://zapnuts.com/tutorials/Dynamic-date-manipulation-for-Variant-in-SAP-ABAP/singlepage.html 4/4

You might also like