Variant for a Report
Hello..
I have a report which has date as select option..
This report executes both in foreground and in background...
In foreground it runs for the date the user enters...
In background I want it should run for the current system date..The report will be scheduled daily at 11 pm. so each day it should take the current date as its input ...
How is this possible???
Hi,
If you are using SAP 4.7 versions, while saving the variant:
Give the variant name and description.
Click the check box, only for background processing.
Then for the date variable , in the field attributes, click check box Selection variable. Then press selection variables button. Press Dynamic date calculation (Traffic light for D column will turn green).
Then click the list box, and select Current date.
Save the variant.
If it is ECC 6.0,
Click the check box, only for background processing.
Then in the selection variable column for the DATE field, There will be an F4 help. Select D - Dynamic date calculation.
Then in name of variable (Input only using F4 column), press F4 and choose 'Current date'.
This is an easy solution by using Variants. There is no need to change your code, if you use this method.
Best Regards,
Suresh
Similar Messages
-
How to Save Multiple Variants for a Report at a time?
Hi Experts,
I have a report in one server and I have copied the same into another server.
And now I also have to copy the variants of that report.
There are totally 192 variants for the report. So, is there any easier way to copy all those variants for the new report that I have created, rather than re-creating the variants one-by-one manually.
Note:There is no connection to both the servers. So I cannot transport them.
Thanks in advance.Basis can do a export and import transport, still if don't have connection between boxes.
or
check this
http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm
a® -
How to setup variants for webdynpro report in ABAP? Help!
Hi Experts,
I have a webdynpro for ABAP report with selection screen.
How to setup variants for webdynpro report in ABAP?
Thanks
GopalHi Gopal,
There is no concept of Variant in Webdynpro ABAP. But in our project we have some tool to do that. Its not release to the client I think. In my scenarieo, We create the Screen variant and program name will be supplied to the tool that will generate the ouput in PDF and Selection screen in One view. But the same is not avilable .
If you want the same concept in Webdynpro ABAP, you need to go for Dynamic programming only. This is the only option is avilable.
Warm Regards,
Vijay -
Hi Experts,
Does anyone know if it's possible to create variants that serve for multiple reports? If so, how?
I have 10 very similar reports which use the same selection screen defined in an include for all of them.
Regards,
SimonHi,
It is not possible to create variant for multiple reports as it is said as
you must create a separate variant for each report and then save it with the report where the values will be used.
refer this line in the link
http://web.mit.edu/SAPR3/docs/webdocs/reports/rpRFvariant.html -
How to create variant for HIER reports
Hello,
I have to run program RKDBAT02(Background Processing for Drilldown Reports) from a FM that i created.
i have to run this program with a variant that i need to update with the values from my FM.
My problem is tha I am trying to use the regular variants FM as RS_VARIANT_VALUES_TECH_DATA to get the variants
fields that i have to load or fm RS_CREATE_VARIANT and in the parameter report name i put the HIER report name.
I keep getting an error that this is not a report. I can put the program hier report name which is a long string,
but the string name change dynamically between clients.
I need a way to load the variant of the hier report .
TNX
Yifatfill in the values in the selection screen and then hit the save as button.
give it a name, enter. the variant is now save.
M. -
Selection variant for a report painter
Hi,
I created a report painter report. I want to create a default selection variant for a specific user. For example, I want user GIRARDJU to have company code=ADM, period 6 to period 13. I tried to create a variant and call it U_GIRARDJU but it doesn't work like it does for the standard SAP reports...
Any suggestions?
Thanks a lot,
JulienHi,
First go to the report you have created.
Then save the selection criteria you want & give an appropriate name to your variant (eg: /INOKA).
When you execute the report next time, this variant will be there, & by double clicking it you'll get the saved information.
Best regards,
Inoka. -
Experts,
How to save variants in web reports? I have seen this functionality before in the web reports, but somehow, it seems to have dissappeared.
Can you help me please with the same?
Kindly treat this as urgent.
Thanks,
M.Hi Mukund,
Check this........
http://web.mit.edu/SAPR3/docs/webdocs/reports/rpRFvariant.html
http://www.sapfans.com/forums/viewtopic.php?p=777953&sid=bfca9510c83be1320c66499f2a024862
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a101b894-0b01-0010-6c90-e70766b33256 -
Hi All,
In my client Shop Floor Users are daily using the transaction COOIS to know the order information. We created a variant for that, even though every time users has to select the variant from the list to execute the transaction.
Working Environment: ECC 5.0
Question: 1
Is there can we set this variant globally i.e., when ever (who ever) getting in to the screen will automatically executed with the defined variant value.
Additional info: Variant values have to be populated in the selection screen of the transaction COOIS automatically, who ever enter in to the screen.
Question: 2
Is there can I define variant specific to the user i.e., when ever the corresponding user login in to system with the specific user id and get in to the transaction will automatically executed with the user specific variant value.
Additional info: Variant values have to be populated in the selection screen of the transaction COOIS automatically, when the specific users enter in to the screen.
Please guide me the step by step procedure to the above (Question 1 & Question 2)
Thanks in Advance.Variants can be of 2 types.
1: Global: This means it can be used by anyone whoever logs in
2: User Specific: This means it can be user specific and other users may not see it.
Create user specific variants for individual users. -
Report Painter: Create variant for specific report created
Hello,
My knowledge in very weak in report painter.
In the initial screen of a report created to analyse the budget by internal order whe have the year and the period of analysis.
By default, for every user the year is 2010 and the period of analysis is from month 1 to month 1.
My question, and I am sorry to ask such a simple question, is how can we change this initial screen?
The aim is to have for every user, when connecting the report, by default the year 2011 and the period of analysis from month 1 to month 16?
Thank you.
Best Regards.
R.Hi
1. Go to GRR3 and identify the variable used in your report
2. Go to GS12 / GS13 and check the variable definition
May be some default value is specified there / or it is formula variable... Double click on the formula variable and you can check how it is defined...
For the variable related to PERIOD - You need to specify a different variable for the From & To and specify the default value as 1 and 16
Br, Ajay M -
Selection screen variant for report
Hi,
Can we restrict the selection screen variants for reports by user? For example my report is ZREPORT. Different users can save variants for the report. When they choose a variant for executing the report, they would like to see only the variants they created.
By default SAP lists all variants created (irrespective of who created).
Thanks
AnilHi,
If you want the other users doesn't want to execute (Not see) other variant..you can check if that user has created the variant in the AT SELECTION-SCREEN event..
By checking VARI-VARIANT against the table VARID and check if sy-uname <> VARID-ENAME.
Thanks,
naren -
How do we create a variant for report which runs in the background?
Hi,
I want to create a report which will have some variants and will be running in the background?
The main intention is to transfer the data from one database into another. Please explain the step by step process.
Regards
AmitHi Amit,
When you run a report program in foregorund(If you have a selction-screen), by pressing F8 button, it takes you to the screen where when you press execute button, the report is executed.
In this screen, you can enter the requirec values which you wish to store in the variables in the selection-screen and press SAVE button, then a variant will be created. You can create the required variants for your report and then when executing the same report in background, the process goes in this way,
Go to SE38->Program-> Execute->Background, there you can give the variant name and press EXECUTE IMMEDIATELY and your program runs in background for the given variant.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T -
Background processing for ABAP report with selection screen
Hi ABAP Gurus,
I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
Any ideas/comments on the problem and how this can be overcome?
Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
Thanks in advance.
Shivani.Yes. My report has a selection-screen which requires user input. But I have created a variant for the report and trying to run it in background using this variant. But facing this problem.
Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
I have never faced such a situation before.
Any hints/tips why this happens and how this can be overcome in the future?
Thanks in advance.
Shivani. -
User specific default variant for FBL1n FbL5n
Friends,
I am trying to create a variant for FBL1n report layout for specific user. Now the issue is the user has to go and select his specific variant every time he executes FBL1n. Is there any way by which we can default the specific variant for specific user.
Any help is much appreciated.Hello,
Go and change the variant selection settings in FB00. You select the relevant variant.
Regards,
Ravi -
Run time eroor for customer report after upgrade DYNP_TOO_MANY_RADIOBUTTONS
Hi friends,
I am getting runtime error after upgrade of our systems from sap 4.7 to ECC 6.0.There is a report which has three radio butons,in which third radio button is set as default .there are 5 variants for the report.If select any variant which selects the second radio button.Getting runtime error.
The error is DYNP_TOO_MANY_RADIOBUTTONS_ON.
Thanks & Reghards,
ManojMight be case two buttons are set on at single time....
see this:
handle the exception on radibutton.
DYNP_TOO_MANY_RADIOBUTTONS_ON -
Loading user defined variants for selection screens
hi everybody,
i want to add a feature to my report which automatically loads a variant for a report.just like iw38, where the variant for the main selection-screen is automatically set when you name it like "U_<username>". sadly i couldnt find anything helpful by debugging the report.
is there a certain function module to load specific screen-variants?
thanks,
dspHi dsp,
There is a table
VARID - Variant directory.
it consists of all the variants according to the user name, date & time.
You can do something like this,
data: it_variant type standard table of varid,
wa_variant type varid.
Initialization.
select * into corresponding fields of table it_variant
from varid
where report = sy-repid
and ename = sy-uname.
sort it_variant descending by edat etime.
delete adjacent duplicates from it_variant comparing ename.
loop at it_variant into wa_variant.
*CLEAR W_VARIANT.
*W_VARIANT = wa_variant.
CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
EXPORTING
report = sy-repid
variant = wa_variant-variant
EXCEPTIONS
VARIANT_NOT_EXISTENT = 1
VARIANT_OBSOLETE = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Hope it helps you,
Regards,
Abhijit G. Borkar
Maybe you are looking for
-
My camera Canon G3 (i know it's old) no longer connects to iPhoto (8.1.2) on my iMac, I have checked with my friends iMac same model iPhoto version and it works fine using my cable, I would appreciate any help getting this sorted
-
I have problem in games when i buying
I have problem in games when i buying how can i fix it what the selotion help me please
-
Link into Web Console to a Specific Workstation
At our customer, we are running ZAM 7.5. Ist there any way, to link into the Web Console from outside, to a specific workstation? e.g. http://myserver:port/rtrlet/rtr?wksname=MyAssetTag The service desk is working with another tool, to deal with user
-
Is this major?! Hardware test error code 4M0T/4/40000002:HDD-0
I ran a thorough hardware test on my 2010 iMac11,3 yesterday and came up with this error code. I then used disk utility to try to repair the disk and ran another thorough hardware test and the same code appeared. Does anyone know what this error code
-
Where can I buy a Dreamweaver CS6 upgrade, now that Adobe has eliminated all "Buyware?"
I want to upgrade to CS6, not interested in the Cloud model at all. Any help here?