Dynamic Heading (date range)
Hi,
We are using SAP BI 7.0. We want to set the heading of a report to change dynamically on changing the free characteristics. e.g; if the report name is "Sales Analysis", on filtering the report by monthwise (say, 01.05.2011 to 31.07.2011),
we want the heading of the report to change automatically to "Sales Analysis from 01.05.2011 to 31.07.2011".
Please help if you have any solution or alternative for this.
Thanks.
- Gaurav
Hi
you have to create text variable with replacement path...
check the following link which will guide you how to achive this
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80c171b3-b56f-2d10-cba7-ac1e758e3017?quicklink=index&overridelayout=true
Regards,
Ranganath.
Similar Messages
-
SSRS 2008 R2 - Dynamic header data stays the same when exporting
Background:
I have a SSRS 2008 R2 report with a single Tablix.
The data is grouped by InvoiceID, with each appearing on a separate page.
I'm displaying some of the detail data in the group header row using Expressions similar to the following:
="Invoice # " & ReportItems!InvoiceID.Value"
The data referred to by my ReportItems statements are all hidden in the detail row (Advanced Mode, the Hidden Value for the Static Row Group is set to false).
Problem:
When I Preview the report in Visual Studio, everything looks as it should - the dynamic header data changes correctly with each group.
However, whenever I export the results (I've tried all the formats), the header data is the same for every group - its taking the values from the first group and using it in all the groups.
I've copied the same expressions into my Totals row, and the data is correct when exported; its only happening in my header rows.
Any help in resolving this is greatly appreciated, thank you.Hi Alex,
According to your description, you have a header with expression contains ReportItems. Now you find it shows incorrect result when exporting to a file. Right?
In Reporting Services, it has reported some similar issue that the ReportItem returns unexpected result when exporting. In this scenario, since you just want to show the group name in each page as a header for detail rows. So you can make the
detail rows group on the Group. Then delete the Group column but still keep the group. After that add a row above detail row (Out side of group) and put in "=Fields!InvoiceID.Value". Now it will show the corresponding Group name
when you set page break between each group instance. We have tested this case in our local environment. Here are screenshots for your reference:
Reference:
SSRS
field expressions using ReportItem refrences have unexpected results when exporting
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Dynamic header data in Sapscript
Hi everybody,
How can i print header data dynamically? for eg: Window PERMIT
| | | Permit |
| | ORDER | No 1 |
| LOGO | 1000000120 | No 2 |
|
|
|
No ...
|
|___________ |_______________________________|_________________|
| |
|
|
|
|
|
|
|
MAIN
|
|
|
|
|
|
|
For your information : I have a loop with internal table of permits in driver program, and i call WRITE_FORM inside loop.
Problem : Only the last row is printed.
Please help me to solve this problem.
Best regards,
YounesHi Younes FETTAH
the main window is the only place for dynamic content. if your header size is dynamic and affects the size of the main window, you have to print the header information inside the main window.
if you can leave the size of the window fixed, you can use seperate windows.
if not, id suggest to define an output structure for a whole line
you can separate the content by using /E statement
MAIN-Window
/E HEADER
/E MAIN
btw. dont use _ and | characters to print a frame. Use Box-Command and do dynamic box printing. Note that you can print a BOX like a _ if the parameters are right. the fortune is that the preview and the output is the same.
regards
Stefan Seeburger -
Hi experts,
i need to create dynamic variant for date range (so_date-low, so_date-high): sy-datum-1.
that will bring the data in the report for yesterday.
How can i do this?
i know how can i make variant for so_date-low
i dont know how can i do that on so_date-high.
thanks,
Michal.1. Execute the report and you will get your selection screen then press save
2. system will take u to variant screen , select the line of your date select-options field from the list and scroll right
3. double clik on "selection variable " column and select "D"
4. double clik on "Name of variable" last column and select "Current date - xxx,current date + yyy" system will provide you popup with "Enter a value xxx" and "Enter a value for yyy" and enter value 1 in xxx and 0 in yyy
and save the variant . now your S_DATE_LOW will be system date - 1 ie yesterdays date
a® -
Creation of internal table dynamically based on the Date Range entered
Hi SAPgurus,
I have been facing one issue i.e creation of internal table dynamically based on the date range entered in the selection screen. For example the date range I am giving as 06/2006 to 08/2006, it should display the Fieldcatelog dynamically, this part i have completed but the only issue I am facing is to populate the sales data into that fields.
Right now my program is displaying the ALV like this.
Ex:
<b>CSR District 06/2006 07/2006 08/2006 totals</b>
Shiva New York 10.00
Shiva new york 30.00
Shiva new york 40.00
but it should display like this
<b>CSR District 06/2006 07/2006 08/2006 totals</b>
Shiva New York 10.00 30.00 40.00
80.00
Please help me in this scenario, how to acheive like this..
Thanks & Regards,
Sivaram KandulaHi Sivaram,
I also got the same requirement . i saw rich and your code whatever you have uploaded.i have created dynamic internal table but i am facing the issue to populating the data to my dynamic internal table.
Sivaram, can you please explain your code after this.
*<dyn_table>
*tab_item.
LOOP AT tab_item.
ASSIGN COMPONENT 1 OF STRUCTURE <dyn_wa> TO <dyn_table>.
ASSIGN COMPONENT 2 OF STRUCTURE <dyn_wa> TO <dyn_table>.
* <dyn_wa> = tab_item-bztxt.
* <dyn_wa> = tab_item-total.
* APPEND <dyn_wa> TO <dyn_table>.
** <dyn_wa> = tab_item-total.
** ASSIGN tab_item-bezei TO <dyn_wa>.
* APPEND <dyn_table>.
ENDLOOP.
how you are puting the loop at tab_item. but tab_item is already commented.
can you send me the code after that.
i am sending some part of my code.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = gt_fCAT1
IMPORTING
ep_table = new_table.
ASSIGN new_table->* TO <dyn_table>.
create data new_line like line of <dyn_table>.
assign new_line->* to <dyn_wa>.
select vbeln
fkart
vkorg
vtweg
fkdat
spart
fksto
from vbrk
client specified
into table gt_vbrk
where mandt = sy-mandt
and fkart in ('ZF5','ZFR')
and vkorg = '1100'
and vtweg = '20'
and fkdat in s_fkdat
and spart = '06'
and fksto = ' '.
if gt_vbrk[] is not initial.
select vbeln
fkimg
prsdt
netwr
matnr
arktx
werks
mwsbp
from vbrp
client specified
into table gt_vbrp
for all entries in gt_vbrk
where vbeln = gt_vbrk-vbeln
and werks in s_werks
and matnr in s_matnr.
endif.
select mnr ltx spras from t247
into table it_t247
where spras = 'E'.
data: lv_month1 type vbrp-prsdt,
name1(3) type c,
s_month type string,
s_month1 type string,
s_month2 type string.
* lv_netwr1 type vbrp-netwr,
* lv_mwsbp1 type vbrp-mwsbp.
loop at gt_vbrp into gs_vbrp.
gs_final2-matnr = gs_vbrp-matnr.
gs_final2-arktx = gs_vbrp-arktx.
gs_final2-fkimg = gs_vbrp-fkimg.
lv_month1 = gs_vbrp-prsdt.
read table it_t247 into wa_t247 with key mnr = lv_month1+4(2).
if sy-subrc eq 0.
name1 = wa_t247-ltx.
endif.
concatenate name1
lv_month1(4) into s_month SEPARATED BY '_' .
CONCATENATE S_MONTH 'QTY' INTO S_MONTH1 SEPARATED BY ''.
CONCATENATE S_MONTH 'VALUE' INTO S_MONTH2 SEPARATED BY ''.
gs_final2-month = s_month.
lv_netwr1 = gs_vbrp-netwr.
lv_mwsbp1 = gs_vbrp-mwsbp.
gs_final2-MONTH_QTY = S_MONTH1.
GS_FINAL2-MONTH_VAL = S_MONTH2.
gs_final2-value = lv_netwr1 + lv_mwsbp1.
append gs_final2 to gt_final2.
clear: gs_final2. "lv_name2.
endloop.
if gt_final2[] is not initial.
sort gt_final2 by matnr month ascending .
loop at gt_final2 into gs_final2.
gs_final2_01 = gs_final2.
collect gs_final2_01 into gt_final2_01.
endloop.
endif.
ENDIF..
Regards
Ankur -
Section Break conflicts with Dynamic Header in RTF which loads XML data
Hi,
I have dynamic header in my rtf file which loads data from XML generated by rdf file.
I have section break on start group of body. but it does not display dynamic header value. If i remove section break then it display dynamic header.
I have to display dynamic header and section break is also required there.
Please give me solution of this issue.
Regards
Farooq
Edited by: user8849418 on Jun 27, 2012 12:05 AMflyeminent wrote:
However in my particular case, the dynamic list is not known until the user choose to view a table. Then move the call from the getter to the bean's action method. -
Dynamic Variant for Date Range
Making the Variant for Date or Date Range Dynamic in the Selection Screen of any Program.
There are actually many ways you can make the Variant for Dateu2019s Dynamic.
1. Providing he Values in the Variant Variables.
2. By creating the variables in the table TVARVC
3. By Initializing the values in the program itself.
I saw many posts with respect to these and found that everyone has their own way of dealing. Even I wrote code in the program initialization to get this done.
Here in this post I am showing you the easiest option which is available in the Variant creation.
EX : If you want to execute the batch job based on a date range.
SY-DATE u2013 60 days , that means always your program should execute the batch job based on System Date. And the variant should change accordingly.
Following are the step by stop to do that.
1. Select your program and select the Variant Radio button and then Click on Display.
2. It will pop up a screen with variant option below the program name.
3. Enter the Variant name and click on Create
4. You will see a screen, with the Attributes button.
5. Once you click on the Attributes button, it will take you a screen with selection option.
6. In my scenario my input is based on Calender Day, so select the Selection Variable for Calender Day: You will find 2 options T & D.
7. Select D: Dynamic date Calculation, then select the Name of Variable (input using f4). You can find many options.
8. Scroll down the Variant Attributes and select current date u2013 xxx, current date + yyy
9.Though it seems to be inactive, just double click on the row to provide the date range.
10. Just enter the value for xxx and yyy to get you dynamic range based on number of days
11. In my scenario I have to consider System Date u2013 60 days. 0 means current day.
12. Click on OK to check the range has been reflected or not. Then save the Variant and check the value by executing the program with saved Variant.
You can check the same in blog with all the screen shots attached but this thing is so easy you don't require screen shots.
Regards
Shankar ChintadaHi Shankar,
It would be great if you can put this information in Wiki .
Pravender -
Cascading Pick List with date range as first, second pick list is dynamic
Specifically, how is this accomplished?
It does not seem possible to make first pick list static. If allowed this would be perfect.
The system seems to only allow the first parameter to be dynamic if the second parameter is dynamic. No range seems to be available for date when second parameter is dynamic.Consider a 3rd-party tool as a solution (for a list of such tools, see http://www.kenhamady.com/bookmarks.html).
There is at least one Crystal report viewer with its own special implementation of dynamic & cascading parameters. It would allow you to use any type of parameter within the cascade. However, you will need to create a separate rpt to implement each dynamic parameter. So in your case, you will have one main report, using a dynamic parameter that's implemented as a separate rpt, which has a date range parameter.
Cheers,
- ido -
Date range parameter in heading
Post Author: hstevens
CA Forum: Formula
Given that I've successfully set up a parameter to prompt for a date range, can I now somehow use that in a heading? Is there someway to extract the dates from that? Or do I have have to set up two parameters - one for the beginning and one for the end date?
Thanks.Post Author: Jean Antoine
CA Forum: Formula
To see all values entered, you would need to read and display every element in the array (multivalue). Something like this:
StringVar MVpos;
NumberVar nMaxLen := UBound(multivalue parameter); // sets the upper limits for the values the user entered
FOR i:=1 to nMaxLen Do
If i=1 Then
MVpos := multivalue parameter[i]
Else
MVpos := MVPos ', ' multivalue parameter[i];
Here, multivalue parameter represents the parameter you've created. You can place this formula in your header and see every entery entered.
Best of luck! -
I'm on ECC6.0, and looking to set up a dynamic date range in a variant.
The date range is a select-option on my selection screen.
I can easily setup the dynamic date for the 'low' value in the range,
but I can see no way to also declare a dynamic date in the 'high' value.
I also looked in TVARV maintenance and it doesn't seem possible there
either, as there's no way to declare variable values.
If I can't resolve this, I will have to change my program to include a
default high date and use that.
But even that may not work if we call the variant, which may overwrite
my default in the high value of the range with a blank value.
Does anyone know how to do this?
Thanks in advance for your help.Hi Jagan,
If you save the variant you can choose some options for the select-option. If you choose selection variabel type D (dynamic date calculation) you can choose out of several Names of Variables that provide for a LOW and HIGH value.
If you use type T, you can choose a variable that is stored in tabel TVARVC. You can add your own variable to table TVARVC using SE16.
Regards........
Chaitanya. -
Dynamic date range in the variant
Hi,
We have a background job that is scheduled to run on every 25th. One step of the job has a selection screen which has a Payment date range which is to have the dates 25th of previous to the 24th of the current month.
So every month this needs to be updated dynamically. For ex: If I look at the variant of the step of the job in period 04 the date should be "03/25/2010 to 04/24/2010". If I look in Period 05 then it should be "04/25/2010 to 04/25/2010".
Can anyone tell me if this can be achieved through a variant or does this have to be put in the code?
Regards,
raj/You can create a dynamic variant using STVARV following the steps in the given link...
http://wiki.sdn.sap.com/wiki/display/ABAP/Creatingdynamicvariantusingtable+TVARV
Now, the values in TVARVC need to be updated for each period. It can be done scheduling a separate BDC program, which runs for each period and updates the values. So, your date values will be changed for a new period by the background job and program variant wil pick up automatically the values from TVARVC. Check this link, which depicts a similar kind of requirement.
Re: Update TVARVC Table Dynamically
You can also calculate the values in intialization event each time the program runs as suggested by Sumit. But, if you need a variant then it won't help. The advantage with TVARVC is you can maintain different set of variants with different values. -
Can I create "Dimension value range" dynamically from data?
Hi,
Can I create "Dimension value range" dynamically from data?
RegardsYou need to have a Database Link between two servers. Then you could do execute that statement without any problem. Try to create a database link with the help of
CREATE DATABASE LINK command. Refer Document for further details -
Dynamic Date Value for Date Range Parameter - Scheduling in BI
Hi,
I am New to BO Enterprise XI R3. I want to schedule the Crystal report which takes Date Range as parameter. Is any option available to calculate From Date automatically based on Current Date based on the range required?
Currently, Parameter option accepts parameters and enterprise process the report for configured parameters. In this case, report always prints only for configured date range eventhough report generated after one month. I am expecting report has to print data for date range (eg. 1 weeks, 4 days, or any range) based on system current date.
Thanks in Advance,
Venkateswaran.PI'm am in the same situation. I need to be able to have the date parameter dynamically change based on the current day's date when I schedule a report. However, because this parameter comes from a Stored Procedure from the database, it cannot be modified in the Report Designer (as far as I know). I've tried to set a default for it to use "currentdate" but it doesn't seem to take. Anyone know if this can be accomplished in the scheduler?
Thanks
-Tom -
Scheduling WebI reports for Dynamic Date Ranges
Hello Everyone,
Our Env is BOBJ XI 3.1 SP2 FP2.5 integrated with SAP NW BW 7.02 EPH1
We are trying to schedule few WebI reports which can be used on ad-hoc basis as well. Some reports need to get data from starting of the month to today (like MTD) and few are with dynamic date ranges.
In case of relational universes i used to do Magic Date as mentioned here : http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts
But for OLAP Universes i have written a MDX filter prompt as :
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
<CONDITION OPERATORCONDITION= "Between">
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0)='First Day of Month','First day of Current Month\First day of Current Month',@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0))"/>
<CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0) > '1/1/2100 12:00:00 AM',''1/1/2010 12:00:00 AM'',(@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0))"/>
</CONDITION>
</FILTER>
We are getting MDX erros because IIF can only return numeric values. So are there any other approaches for dynamically scheduling the reports or can the above MDX prompt be modified to make it work ?
- Vamsi ChIngo,
When we schedule the WEBI report we use the BEX query with a variable based on a customer Exit .
There are good examples in
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
In order to avoid providing a hard coded date restriction in the BEX query we want to have a flexible date range solution (e.g. data from 1.1.2011 until yesterday).
Is the folloing scenario possible:
Scheduled webi report with a hard coded date e.g. 1.1.1900 (for the BEX variable)
The BEX query should return the data from 1.1.2011 until yesterday (dynamically) if date = 1.1.1900
else it should return the data (for the e.g. adhoc reporting)
Is a customer exit like this possible ?
Pseudo code:
IF date = 1.1.900 then return sysdate-1 else return entered date
For a relational universe I always used a magic date condition -
How to use a dynamic SQL data as the header ?
I'm using BO XI Rel 2. I have hard coded the report headers, but i do have a table wherein the header data is available. I like to fetch the HEADER information from the table, rather than hard coding. How to go about it?
Example: "Statement of Closing" is the header.
The above output can be retrieved by using the below query!
Select Form_desc from TBS_FORMS where form_id = 'tbs1a';
form_id is a common link between tables!! Since the actual report data has multiple value as output, just by plugging the query in the header, i'm getting #multivalue error!!!!
In oracle reports, i have something called place holder to achieve the above objective. In BO, how to go about it?
Edited by: Karthik Ganesan on Dec 28, 2008 1:22 PMSorry, that doesn't solve my problem. Please read the question more closely - I want my USERS to be able to do this without changing their configurations. My users are public school elementary teachers and parents. I can't ask them to toggle any settings - I'm looking for a way that my users can do this on their own.
Thanks
Maybe you are looking for
-
Audio recording, chipmunk voice and stuttering?!
Hi all, I use the Elgato Game Capture HD with my MacBook Pro to record gaming videos. I use a standard USB headset with a mic to record live commentary over the top, this setup has always worked fine for me, until yesterday. After recording my video,
-
Batch Management @ Plant level in ECC 6.0
Hi, I want activate the Batch Management @ Plant level in ECC 6.0 and when select the Plant level and save it , i am getting the information error like " THIS Type of conversion is not Yet Activated" . So i needs to activat @ plant level , what i
-
Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, ERROR: DW050 ... WARNING: DW016 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 15 error(s), 4
-
I have a file at url: http://dl.dropbox.com/u/16813292/boating_projects/pilot_house/Tabernacle_Test.m4v that I can open with Safari, Google Chrome, Opera, and Camino but not with Firefox 5.0.1. Firefox gives me a dialog suggesting I need QuickTime fo
-
Connecting to SMB; Shows no contents.
Hello. One of our users at our company uses a mac pro with snow leopard. We have an odd problem where only ONE of servers cannot be accessed by the mac. The machine CONNECTS into the server, sees the folder structure, however it will not show ANY con