Create Variant for dynamic population of current date
hi,
How do i create a variant for a DATE to populate the current date in the selection screen?
Please let me know
Thanks in advance.
Hi,
Go to SE38..
Press F8..
Press save button..
Give the variant name..and description..
For the corresponding date column Check the check box under the column "L" which says selection variable..
Press the selection variable button in the application toolbar..
Click the hotspot Under the column D..Now it will be green..
Press the drop down ...Choose the current date...
Save the data and save the variant..
Now if you choose that variant...The date will automatically be set to the current date.
THanks
Naren
Similar Messages
-
How to create variant for table/view ?
Hi,
When I go through SM30, I find a radio button called variant. I don't know the effect.
Can anyone tell me how to create variant for table / view ?
I want to know when we need to create variant for table/view.
Best regards,
Chris Guhi ,
Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
Procedure
To create a new variant:
1. On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
2. On the variant maintenance initial screen, enter the name of the variant to be created.
Note the naming convention for variants (see below).
3. Choose Create.
If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
4. If there is more than one selection screen, select the screens for which you want to create the variant
5. Choose Continue.
The (first) selection screen for the report appears.
If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
6. Enter the desired selection values, including multiple selection and dynamic selection.
7. Choose Continue. -
HOW TO Create variants for transaction MASS on LFA1 object?
hOW TO Create variants for transaction MASS on LFA1 object?
Edited by: cheppalliakr on Nov 10, 2011 1:09 PM
Moderator message: please do more research before asking, show what you have done yourself and provide more information when asking.
Edited by: Thomas Zloch on Nov 10, 2011 3:10 PMHi Oscar ,
You need to create optional date prompt variable in BW which fills your requirement .
Ex : If you require report should always run for 1st of the month to last of month .Then create Optional date variable in BW with interval .write customer exit ,
if from date is left blank it should take 1st of the month and if todate is left blank it should take last of the month .
when creating webi schedules , leave prompts as blank. -
Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
Is there a way to allow setting of "Due Date for All Tasks" to current date in OOB Workflow
I need to set it today because there are tasks that is needed to be completed on the same day.
Is there a way without modifying the page/form. like a configuration or something?
----------------------- Sharepoint NewbieHi ,
As Ajeet said, for implement your requirement, you can change the data validation on the Due data field.
You can do as the following :
Open the site with SharePoint Designer 2010
Click on Workflows on the left launch, then find ‘Approval-SharePoint 2010’, click on it
On the Forms section, click ‘ReviewApproval_***.xsn’
Then you can find Due Data for All Tasks, and change the validation
In addition, if you create an approval workflow with SharePoint Designer, you can use a specific date, it contains hour and minute.
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Creating Variant for VA05???
Hi SAPians,
Could you please give me the step by step process on how to create variant for VA05 for column layout.
Thanks in advance
MM.hello, friend.
first, execute VA05. customize your layout by clicking on the "current" icon.
next, save your layout by going SETTINGS > DISPLAY VARIANTS > SAVE. please note that unless your user parameters include the appropriate profile, the "save" option remains greyed out and unavailable. ask your BASIS consultant to assign you parameter = SD_VARIANT_MAINTAIN with value "A". then you can save your own variant.
regards.
p.s.
i got this idea from someone else. i think it was lakshmipathi. whoever it was, thanks. -
Xml publisher enterprise!!! create rtf file dynamically with load xml data
i am new to xml publisher enterprise , i want a solution for this question ...
i want create rtf file dynamically with loading xml data....means i wrote a program in jsp where the the output in xml file simultaneously create rtf file..but i enable load the xml data in rtf file but when i goto rtf file from where data in that load xml then it genrate the columns..but i want in dynamiclly to load the data will you please guide me ......Hi Atiq
Im not quite clear on the requirement here:
1. Do you just want to be able to extract the data and apply a template to the XML data from your jdp and render output?
If so then you can use the XMLP APIs ... the are in the user guide. Particularly:
RTFProcessor - converts RTF template to XSLFO stylesheet
FOProcessor - takes, XML data, XSLFO stylesheet and output format and generates the required output.
2. Do you want a template that will accept any data and just format it into rows and columns ? This can be written but your XML structure is going to have to be static, the data of course can be dynamic.
Regards, Tim -
To create variants for Bex query
Hi Guys,
where and how do we create variants for Bex query.
Thanks,
Your help is appreciated.Hi Sheo,
There are several threads about this, check here:
/thread/297437 [original link is broken]
Hope this helps... -
How to create variant for selection screen which is in subscreen
Hi,
How to create variant for selection screen which is in subscreen in a module pool program?
it is very urgent.
Thanks in advance.Hi,
You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
Regards
Sudheer -
Reg: How to create Variants for program SAPF120
Hi SAP gurus,
How to create variants for programm SAPF 120.
with regards
JK raoHi,
I suppose you intend to include 22 more Recurring Documents in the F.14 screen in an existing variant. Please check if these 22 are Recurring Docs in FBD3. And make sure that all 48 are appearing in the Document Number (Multiple Selection) tab of F.14. You can test (in a test system) by executing after inclusion and not necessarily saving as variant to make sure that BI session includes all 48 docs.
Rgds. -
Create variant for VL10b for max delivery date higher than 30 days
Hi expert,
I want to create a variant for the transaction VL10b with a max delivery date higher than 30 days.
The standard transaction make 30 days as default.
How can a proceed?
Thanks for your help.
Regards,
HajaHi Haja,
From the moment you run your variant via transaction VL10B, the delivery creation date
range will get the values saved in your variant. In a second step, when you click
on "Purchase Order" Tab, the system will re-determine the Delivery creation date
range taken into account the fact that field CalcRuleDefltDlvCrDt is empty and that
MaxDelivCreateDate (visible in the variant) is equal to 30.
Please note, the date calculation is being influenced by 2 factors :
-The MaxDelivCreateDate field whose default value can be modified in 2 different ways:
a) either in customizing via transaction VL10CUC
or
b) manually, after unchecking the "Use list profile" check box in the user role of VL10.
By doing this, the field will be made visible and can then be manually modified.
Afterwards, the date calculation is also controlled by the rule defined in CalcRuleDefltDlvCrDt field. You can then possibly also set this field to blank or define your own calculation rule via an
user-exit (include V50R_USEREXIT_PREPARE). If the rule is set to 2, then regardless of the
value stored in MaxDelivCreateDate, the date range will only cover today and tomorrow.
These are the only 2 influencing factors for the program (not the variable type in the variant). Please try any combination you may need and this should suit your needs.
BR,
Enrique -
How to create Variant for braodcasting in BI 7.0
Hi,
As we create variants in BW 3.x using table TVARVC and
t-code STVARV to enter variable to be updated as per requirement and a code for the same.
And we will get variant in selection screen of report with updated values.
Can some one tell me how can we do the same in BI 7.0?
Please reply soon.
Thanks.
SantoshIn the old SAP BW 3.5 version, we used a program that runs everyday after midnite that sets date variables in TVARVC. The end user could specify which variable from TVARVC to fill the data field in the variant. We have the user save the workbook and then distribute it via the Web Broadcaster.
The workbooks are sent via email if things work OK.
Are you saying we can do something similar using RSRVARIANT? If we insert a row into RSRVARIANT, will the user be able to replace a field in their variant with the value?
Here are some of our variables in TVARVC:
Table: TVARVC
Displayed Fields: 9 of 9 Fixed Columns: 4 List Width
MANDT NAME TYPE NUMB SIGN OPTI LOW
010 Z_PRIOR_FISCAL_PERIOD P 0000 10/2005
010 Z_PRIOR_FISCAL_PERIOD S 0000 I EQ 10/2005
010 Z_PRIOR_WEEKLY_PERIOD P 0000 43/2005
010 Z_PRIOR_WEEKLY_PERIOD S 0000 I EQ 43/2005
This would be for the October 2005 time frame. In November the Z_PRIOR_FISCAL_PERIOD
would get bumped up to 11/2005 which would have been November 2005.
We have a batch procedure that updates the values in TVARVC table. The user
can choose with date value to run with. In the old version everytime the variant
is accessed, the current value of the variable Z_PRIOR_FISCAL_PERIOD would be fetched,
so this is the way we could have monthly and weekly batch jobs run for precalculation
and not get the same date range over and over again.
How can be give the user an option to choose a variable like the above?
Do we need to use Microsoft Excel VBA to call SAP BW to call custom code?
Yes, we can update rsvariant table contents with a program. But how will we "know"
which date range the user wants unless they can choose which variable they want to use?
Has anyone been able to do this?
Thanks,
Chris -
Need help with SQL retrieval for previous month till current date
Hi ,
Need help generating statistics from previous month from date of enquiry till current date of enquiry.
and have to display it according to date.
Date of enquiry : 03/02/2012
Application Type| 01/01/2012 | 02/01/2012 | 03/01/2012 |...... | 31/01/2012 | 01/02/2012 | 02/02/2012 | 03/02/2012 |
sample1 20 30 40
sample 2 40 40 50
sample 3 50 30 30
Hope you guys can help me with this.
RegardsHi,
932472 wrote:
Scenario
1)If i run the query at 12 pm on 03/2/2012. the result i will have to display till the current day.
2)displaying the count of the application made based on the date.
Application type 01012012 | 02012012 | 03012012 | ..... 01022012| 02022012|03022012
sample 1 30 40 50 44 30
sample 2 35 45 55
sample 3 36 45 55Explain how you get those results from the sample data you posted.
It would help a lot if you posted the results in \ tags, as described in the forum FAQ. {message{id=9360002}
SELECT application_type as Application_type
, COUNT (CASE WHEN created_dt = sysdate-3 THEN 1 END) AS 01012012 (should be getting dynamically)
, COUNT (CASE WHEN created_dt = sysdate-4 THEN 1 END) AS 02022012
, COUNT (CASE WHEN created_dt = sysdate-5 THEN 1 END) AS 03022012
, COUNT (CASE WHEN created_dt = sysdate-6 THEN 1 END) AS 04022012
FROM table_1
GROUP BY application_type
ORDER BY application_typeThat's the bais idea.
You can simplify it a little by factoring out the date differences:WITH got_d AS
SELECT qty
, TRUNC ( dt
- ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
, -1
) AS d
FROM table1
WHERE dt >= ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
, -1
AND dt < TRUNC (SYSDATE) + 1
SELECT SUM (CASE WHEN d = 1 THEN qty END) AS day_1
, SUM (CASE WHEN d = 2 THEN qty END) AS day_2
, SUM (CASE WHEN d = 62 THEN qty END) AS day_62
FROM got_d
See the links I mentioned earlier for getting exactly the right number of columns, and dynamic column aliases. -
Please help! Looking for script to insert current date on page.
I currently use a Dreamweaver Extension that lets you insert
current date and time on your web page.
The problem is, I don't know Javascript and cannot edit the
Javascript codes to "remove the time"
I only need the current date that will change every day.
Do you know where I can get this script, I goggled and got
several but I'm looking for something authentic.
Also is it possible to have your page validate when you use
Javascript embedded in your HTML?
Thanks everyone,
Patrickquote:
Originally posted by:
Newsgroup User
Webethics wrote:
> The problem is, I don't know Javascript and cannot edit
the Javascript codes
> to "remove the time"
> I only need the current date that will change every day.
JavaScript generates the date by using the clock on the
computer of each
visitor to your site. If a visitor's clock has the wrong
date, your site
will also display the wrong date.
> Do you know where I can get this script, I goggled and
got several but I'm
> looking for something authentic.
I don't know what you mean by "authentic". Date generation in
JavaScript
is one of the most basic features of the language, so if it
works, it's
"authentic".
> Also is it possible to have your page validate when you
use Javascript
> embedded in your HTML?
Yes, but you shouldn't embed JavaScript in XHTML.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
So mr. Powers are there people that use Javascript Date in
their page?
Would you recommend it?
I could use PHP but I don't know PHP,
How do I come up with the string in this format, say,
Wednesday, October 29th, 2008 that will change to a new day
according to the server time and date.
Thanks so much for your help and I have two of your books! I
will be taking PHP classes in December.
Patrick -
Prob in populating the current date in drop down
I want to get the current date into a drop down list.
There are three drop down.
1.Month 2. Day 3. Year.
If anytime the page loads there should be current date in the drop down list. and if any one wants to change he can change the date accordingly.
Can any one help me in sorting out this prob.
I can think of getting the current date in the drop down by keeping it in the 1st option of the select tag. But when you click on the list the current date is not at proper location compared to other numbers in the list.
Please reply.
Message was edited by:
aniketh_parmarfunction addit(){
var dd = new Date();
var yearnow = dd.getFullYear(); //gets 4 digit year
//use getDate() & getMonth() methods in seperate fns, and populate
//date and months
for (var i=yearnow; i <= yearnow + 25 ;++i){
addOption(document.getElementById("year"), i, i);
function addOption(selectbox,text,value)
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}in your jsp:
<body onload="addit();">
<form>
<select name="month">
</select>
<select name="day">
</select>
<select name="year">
</select>
Have a seperate fn, and using the above 3 methods get
today's (current) month, day & year.
then something like,
document.getElementById("year").selectedIndex = currYear;
document.getElementById("month").selectedIndex = currMonth; //0 is Jan and 11 is Dec
document.getElementById("day").selectedIndex = currDate; -
Function module reqd for fiscal period using current date
Hi,
Is there any function module which gives fiscal period using current date.
Thnaks,
MaheedharHi Maheedhar,
Try the code below.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Regards,
Amit.
Maybe you are looking for
-
Display HTML code in WebDynpro for ABAP
Hi, I would like to display a html page in a WebDynpro View, ie: I have the html code in a "string" variable and would now display this string now not with the html tags visible, but as a "real" html page. I found a thread in WebDynpro for ABAP but I
-
What application should i use to create the xml data as the input data for XFA template
HI, I need to generate pdf or html document form from existing XDP with the given xml formatted data set. We usually use word to generate content for those XFA template, as the data should be in xml format content in word document should be able to c
-
Import Standard Business Area of Oracle Applications
Dear all, I install Discoverer Administration 4i and i create EUL (Apps) to connect to Oracle Applications 11.5.0, when I import Standard(BASE) Business Area of Applications ,some BA are imported but not all. Can anyone help me to import all BA ? Tha
-
Dear HP, I’m writing to you to complain. I know you probably get this on a daily basis but I’m quite disappointed in your product and felt you should know how upset and disappointed I am in it. About 2 ½ years ago I ran into an issue while starting o
-
Windows mobile 6.1 & adobe reader with zoom?
i need a reader that will allow me to zoom in on my documents, the current reader that's on my phone won't allow me to do this, which makes it pretty darn useless. if i can't zoom in on my docs, i can't read them because the text is too small... phon