Average data Row for a layout in BPS
Hi,
I have a Row with 2007 Data In My BPS layout and i want the another row showing average per month of 2007 data (ie) 2007/12.
I think this can be achieved by FOX. But i am not sure where i get this Formula function option.
Can any one please help me out how to achive this.
Thanks for the help
With Regards
Neetu
Edited by: Nithya Reddy on Jul 30, 2008 8:20 PM
Hi
I need your help.
I just need to add a simple TOTAL ROW for my BPS LAYOUT.
I only have the allowance to define column total checking the total check box in the data columns and then defining the C(1):C(7) in the total field.
But when trying to define a total for rows i also select the checkbox of total in the data column section and write the R(1):R(10) in the TOTAL field, but i get a sintax error.
Please help me, i just need to have a row for totals in my layout. Thanks in advance for your valuable help.
Regards
Carlos España.
Similar Messages
-
Cannot read the next data row for the data set
Hi,
My report runs fine when I view in VS, data shows fine when I run the query in the data window, but when I publish it to the server, I get the above error. I am running SQL server 2005 RTM and I have re-deployed the entire solution.
Any ideas?Hi All,
Upon investigation found that there was an issue with converting varchar value to datatime datatype in Stored Procedure and that is why report was throwing error.
I ran same report in BIDS and got clear error message
An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the dataset xxx. (rsErrorReadingNextDataRow)
The conversion of a varchar datatype to a datetime datatype resulted in an out-of-range value
Once I corrected this, It is working fine.
Thanks Shiven:) If Answer is Helpful, Please Vote -
Web based data entry for BCS layout
Dear Gurus,
Please advice how to enter the data using web layouts into the BCS cube. I know that we cannot simply generate the layouts from BCS workbench like we can do using BPS0 for Business planning transactional cube, but I know that BCS also has this feature available to use web for entering transaction data.
Please advice.
Thanks
AbhinavHi Jide,
BCS offers an own fexible upload which you could use for the non SAP companies, without BW ETL
you can create a BCS task for the BCS Monitor where you can load flatfiles.
check: http://help.sap.com/erp2005_ehp_02/helpdata/en/52/6d973bef5cf61de10000000a11402f/frameset.htm
for the SAP companies you can use the "Load from datastream" to load data from a BW Infoprovider:
check: http://help.sap.com/erp2005_ehp_02/helpdata/en/52/6d973bef5cf61de10000000a11402f/frameset.htm
I hope this answer is helpfull for you. -
RsProcessingAborted Cannot read the next data row for the dataset rsErrorReadingNextDataRow
This is a pretty generic exception. I thought I would post this note as my searches for a solution were not very helpful.
In my case the error was due to a recurring deadlock due to a missing database option for Read Committed Snapshot on this new subscriber database.
Turning on Verbose Logging revealed: System.Data.SqlClient.SqlException: Transaction (Process ID 89) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Adding this to RsReportServer.Config (remove comments) did the trick.
<!-- <system.diagnostics> -->
<!-- <switches>
-->
<!-- <add name="DefaultTraceSwitch" value="4" />
-->
<!-- </switches>
-->
<!-- </system.diagnostics> -->
...RayTurning on Verbose Logging revealed: System.Data.SqlClient.SqlException: Transaction (Process ID 89) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Adding this to RsReportServer.Config (remove comments) did the trick.
<!-- <system.diagnostics>
-->
<!-- <switches>
-->
<!-- <add name="DefaultTraceSwitch" value="4" />
-->
<!-- </switches>
-->
<!-- </system.diagnostics>
-->
...Ray -
BPS BW 3.5 - Editing style for web layouts
Hello all.
I am trying to find out how to change style for web layout on BPS on BW 3.5 Does an old system with custom css files no longer work? Where could I find info about unified rendering and how to change styles in it?Timofei,
it's all documented here:
http://help.sap.com/saphelp_nw04/helpdata/en/c8/0d79ee29ee47edaec7fe6786543ff9/frameset.htm
Regards,
Marc
SAP NetWeaver RIG, US BI -
I have a simple column chart grouping on 1 value on the category axis. For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis. I right click on the data series and choose "Add calculated series...". I choose moving average. I want to move the average over at least 2 periods.
When I run the report, I get the error "Formula error - there are not enough data points for the period". The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5). When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
I don't think this is entirely acceptable for our end users. At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart. Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
Thank you,
DanI was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
<ChartFormulaParameter Name="Period">
<Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
</ChartFormulaParameter>
What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
A side note:
If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML. -
How can I do for a row of a query be data provider for a variable?
Hi friends, I have a problem !
How can I do for a row of a query be data provider for a variable?
I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
Best regards,
Gustavo LiberadoIn this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
Then once you understand the basics you add the code to your real program.
If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area. -
To Identify changed data in planning layout in BPS
We have a planning layout in BPS which user can change data on individual cell. We also have an EXIT function to distribute data to this layout.
User changes data on cells then executes the EXIT function to distribute data. During debugging, we see the changed entry with delta amount in the XTH_DATA table. However, there are many entries with similar characteristics; hence we cannot identify the particular changed data, i.e., the changed sales amount, in XTH_DATA of EXIT function.
Is there any configuration and/or function to show only the changes data? Any comments/hints are greatly appreciated.
Best regards,
SamHi,
When you enter for a particular characteristic and remaining characteristic if you left bank , it will store as # in layout and samething will also in cube. you can check it cube also.
for eg.
profitcenter com.code sales revenue
100 # 10
if you want to avoid this then you have to enter all characteristic values.
Regards,
Siva. -
Query to return separate rows for date range including NULLs
I'm trying to write a query that will return all customers from table 1. Table 1 also provides a start date and an end date that may be different for different customers. Left join with Table 2 provides all matches and NULL if NO matches.
If there is any match at all, I do not get the NULLs for other dates. There should be a match for each date from start to end. How can I write the code so that my return will loop thru each date and provide the match or NULL?Sorry. I am somewhat new to this and am not sure what you are requesting. I receive a return of all customers with the code below but if customer 1 has a start date of 1/1/15 and a stop date of 1/5/15 and a document exists for 1/1/15 and 1/3/15
I do not receive the rows with NUL for 1/2/15, 1/4/15, and 1/5/15 which is what I'm trying to accomplish. If there is no match at all, I only receive the one row with NULL and I would like to see a row for each date from start to stop.
SELECT T1.IDNumber,T1.StartDate,T1.StopDate,T3.SignDateTime
FROM
Table1 T1
INNER
JOIN Table2
T2
ON
T1.CustID
= T2.CustID
LEFT
JOIN Table3
T3
ON
T1.CustID
= T3.CustID
WHERE
T1.StartDate
> '2015-01-20 00:00:00.000'
AND
(T3.ReportID
IN ('DOC1',
'DOC2',
'DOC3') OR
T3.ReportID
IS NULL)
AND
T2.YesNo
= 'Y' -
Displaying data in one row for for 2 tables without relaiton
I Have 2 tables without any relation and there is a common field and i want to display data like below
table refdet
1)
refdt----------refbr----refamt----refcat
10-aug-09---10-----34234-----101a
10-aug-009--11----23245-----102a
1-AUG-09----10----455.98----104A
19-aug-09-12-----10000-------103B
2) brdet
trdt---------brn-----brtot-----------brcat
11-aug09--10-----454000-------A
09-aug-09-12-----550000-------B
30-sep-09--10-----430000------A
09-aug-09-11-----550000-------B
i want to display data for each branch refdet.refbr = brdet.brn
refdet
Br10
refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
Br 11
10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
Br12
19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------B
i tried the following query but its not working
select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
from brdet a,refdet b
where a.refbr (+) = b.brn
union all
select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
from brdet a,refdet b
where a.refbr = b.brn (+)
its not giving the records on each row for both side its creating separte rows for each records in both table.
rgds
jytohi
-Hi jytohi,
Please lean back for a moment and study your question. Ask yourself, is this a reasonable way to ask a question?
Jopefully you'll reach the answer, "No it isn't, I need to.."
1. Turn these
1)
refdt----------refbr----refamt----refcat
2) brdet
trdt---------brn-----brtot-----------brcatinto CREATE TABLE statements.
2. Turn these
10-aug-09---10-----34234-----101a
10-aug-009--11----23245-----102a
1-AUG-09----10----455.98----104A
19-aug-09-12-----10000-------103B
11-aug09--10-----454000-------A
09-aug-09-12-----550000-------B
30-sep-09--10-----430000------A
09-aug-09-11-----550000-------Binto INSERT INTO statements
3. Turn this
refdet
Br10
refdt----------refbr----refamt----refcat-----trdt---------brn-----brtot-----------brcat
10-aug-09---10-----34234-----101a-------11-aug09--10-----454000-------A
1-AUG-09----10----455.98----104A------30-sep-09--10-----430000------A
Br 11
10-aug-009--11----23245-----102a -------09-aug-09-11-----550000-------B
Br12
19-aug-09-12-----10000-------103B------09-aug-09----12-----550000-------Binto properly formatted expected output, along with a reasonable explanation of why
4. Turn this
select distinct null as refdt,null as refbr,null as refamt,null as refcat,b.trdt,b.brn,b.brtot,b.brcat
from brdet a,refdet b
where a.refbr (+) = b.brn
union all
select distinct a.refdt,a.refbr,a.refamt,a.refcat,null as trdt,null as brn,null as brtot,null as brcat
from brdet a,refdet b
where a.refbr = b.brn (+)into a properly formatted query
And last, put everything in into curly brackets {noformat}{noformat} to preserve formatting and blank space.
Best regards
Peter -
Hi there,
I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
database using the fillby query.
It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
each click of the fillby button.
also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered.
so actually 2 questions here:
1. how to populate a new row for each click of the fillby button
2. how to delete records from data grid view after an item has been entered
Thanks
VishwasHello,
The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
Some examples
Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
The following article with code shows this but does not address adapters.
Conceptually speaking the code in the second code block shows how to get the new key
Public Class Form1
Private Sub StudentsBindingNavigatorSaveItem_Click(
sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
Me.Validate()
Me.StudentsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
End Sub
End Class
Get new key taken from
this article.
Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
Dim Success As Boolean = True
Try
Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
cmd.CommandText = InsertStatement
cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
cn.Open()
cmd.ExecuteNonQuery()
cmd.CommandText = "Select @@Identity"
Identfier = CInt(cmd.ExecuteScalar)
End Using
End Using
Catch ex As Exception
Success = False
End Try
Return Success
End Function
In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
Additional resources
http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
VStest.console.exe Query for a Data Row Result DURING Test Execution Status
I started with the following
thread and was asked to create a new thread.
I have the following test that reads a .csv as a data source.
/// <summary>
/// Summary description for Test
/// </summary>
[TestCategory("LongTest"),
TestCategory("Visual Studio 2013"), TestMethod]
[DeploymentItem("data.csv")]
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV",
"|DataDirectory|\\data.csv",
"data#csv",
DataAccessMethod.Sequential),
DeploymentItem("data.csv")]
public void Create_And_Build_All_Templates()
testmethodname = "Create And Build All Templates ";
LaunchVisualStudio2013();
When I run the test from VStest.console.exe, I see the following:
vstest.console.exe /testcasefilter:"TestCategory=LongTest" /settings:"C:\testing\CodedUI.testsettings" /logger:TRX /logger:CodedUITestLogger C:\AppTests\CodedUITest.dll
Microsoft (R) Test Execution Command Line Tool Version 12.0.31101.0
Copyright (c) Microsoft Corporation. All rights reserved.
Running tests in C:\testing\bin\debug\TestResults
Starting test execution, please wait...
I want to report on the status of the iterations DURING the test run from VStest.console.exe, like how the test explorer window does this.
How can I achieve the output below (notice the (Data Row ) values) ?
vstest.console.exe
/testcasefilter:"TestCategory=LongTest"
/settings:"C:\testing\CodedUI.testsettings"
/logger:TRX
/logger:CodedUITestLogger
C:\AppTests\CodedUITest.dll
Microsoft (R) Test Execution Command Line Tool Version 12.0.31101.0
Copyright (c) Microsoft Corporation. All rights reserved.
Running tests in C:\testing\bin\debug\TestResults
Starting test execution, please wait...
Test Passed - Create_And_Build_All_Templates (Data Row 1)
Test Passed - Create_And_Build_All_Templates (Data Row 2)
Test Failed - Create_And_Build_All_Templates (Data Row 3)
Test Passed - Create_And_Build_All_Templates (Data Row 4)
Ian CeicysJack, again the results are printed to the std. out console AFTER the test data row has been completed. Is there a way to query VSTest.console and find out which test\data row is being executed so it can be written out to the console
DURING the test run?
I put together the following screencast showing the issue:
http://www.screencast.com/t/IrxxfhGlzD
Also here is the github repo with the source code that I included in the screen cast:
https://github.com/ianceicys/VisualStudioSamples2015
Take a look at LongRunningDataDrivenTest.sln
Unit Test
[TestClass]
public class UnitTest
public static int _executedTests = 0;
public static int _passedTests = 0;
public void IncrementTests()
_executedTests++;
public void IncrementPassedTests()
_passedTests++;
[TestInitialize]
public void TestInitialize()
IncrementTests();
Console.WriteLine("Total tests Row executed: {0}", _executedTests);
[TestCleanup]
public void TestCleanup()
if (TestContext.CurrentTestOutcome == UnitTestOutcome.Passed)
IncrementPassedTests();
Console.WriteLine("Total passed tests: {0}", _passedTests);
private TestContext testContextInstance;
/// <summary>
/// Long Running Test
/// </summary>
[TestCategory("Long Running Test Example"),TestMethod]
[DeploymentItem("data.csv")]
[DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV",
"|DataDirectory|\\data.csv",
"data#csv",
DataAccessMethod.Sequential),
DeploymentItem("data.csv")]
public void LongRunning_TestMethod_Takes_Over_30_Seconds_to_Run()
WaitTime(Convert.ToInt32(TestContext.DataRow["WaitTime"].ToString()));
public void WaitTime (int waittime)
Thread.Sleep(waittime);
public TestContext TestContext
get { return testContextInstance; }
set { testContextInstance = value; }
data.csv
WaitTime,
13000
19000
10000
11000
15000
Ian Ceicys -
How to aggregate a column based date column (for weekly single row)?
How to aggregate a column based date column (for weekly single row)?
Hi,
Consider the below statement for daily bases which is ok
SELECT ID, DATE, SUM(AMOUNT) FROM TABLE_NAME GROUP BY ID, DATE ORDER BY ID, DATE
The same like the above statement, I want output on weekly, fortnightly, and monthly bases, How to do this? Need your help... -
Hi
As the questions states, how do I average data with 78,74,73 and 55 points respectively and obtain an array of 78 points?
When I use the plus vi, Labview somehow produces an array of 55 points when I do the average (see attached vi).
I have been unlucky in trying to get good results.
Can anyone help?
Thank you.
Attachments:
average4.vi 40 KBThe add function is polymorphic. It accepts arrays as well as numerics, but you need to understand one thing about array operations in LV. Operations performed on arrays of different sizes will always (I think) work based on the smallest array. For example, if you auto index 2 arrays of different sizes into a for loop, the number of times the loop will run will be the size of the small array. The same is true here - when you wire 2 arrays of different sizes to the add function, only the first N elements of the larger array get processed. The rest are dumped. That's why you get 55 elements.
Attached is a modification of your VI which shows 2 things:
The bottom part is your algorithm, only cleaned up. Note how much easier it would be to read now. You should always write clean code. Also, note that I have changed the representation on some of the data from DBL to I32. This is because this is the representation the array function work with and your code had the DBLs coerced for no reason.
The top part is a different algorithm which should do what you want. Note that like Mike said, the arrays with smaller sizes will have 0s appended at the end, so if you want to avoid that, you will have to modify the last part, where the averaging is done and only divide those columns which are long enough.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world!
Attachments:
average4MOD.vi 63 KB -
HOW to Restrict the input Help for 0MATERIAL in the BPS Layout
Hi,
I have requirement to Restrict the input Help for 0MATERIAL in the BPS Layout.
For Example if the Planning Package is Restricted to SALES ORGANISATION ( 3000 ) then the system shuold check the 0MAT_SALES where SALES ORGANISATION IS "3000" )AND PASS THE Material Numbers to the 0material list.
I have Copied the standard Funtcion group "UPF_VARIABLE_USER_EXIT" to Z fucttion and have attached to Z Variabe as User Exit .
this Variable is Attached to 0material in the Planning Pakage. So tha now the 0MATERIAL is restricted to the variable which is having the User Exit.
But how to acces the Values of Planning Package for which the Layout is bein Executed from this Z User Exit ???
I Know how to restrict the input help, but my only problem is that how to get the values of Planning package through this User Exit.
Please suggest if it is possible.
Regards,
Nilesh LabdeHi Nilesh,
As I understand from your question,you know how to restrict but the issue is to know the value in the package with which you need to restrict.
There are two tables which can help you finding the value used in package for sales organisation:
1. UPC_PACKAGE
2. UPC_OPTIOS
How to use ?
From UPC Package you will get one GUID, Hit the second table UPC_OPTIOS with this GUID.
In field "FIELDNAME" enter the name of the characteristic whose value is req (sales organisation in your case)
Hope this helps you
Mann
Maybe you are looking for
-
After entering this: "/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5"in the terminal this is the message I get with still no luck on being able to update the extension... Mar 17 23
-
Error message when attempting to view the video.
When attempting to watch a video posted to Facebook or on a forum, I get an error message when attempting to view the video. "An error occurred while processing your request. Reference #50.8dd8d3d1.1354457866.1cac8e50". I'm able to view videos via Yo
-
How to create time dependant master data table in R/3?
Hi gurus, I am new to BW.I try to execute the 'Time dependant Attribute' into BW.in my scenario my source system must give me the data like "salesrep ID,Manager ID,Date to,Date from,Sales region". I like to know how to define this master dat
-
HT201303 ITUNES PURCHASES AND CREDIT CARD VERIFICATION
Can someone please tell me why I need to go through the processing of verifying my credit card every time I make a purchase (even for 10 cents) . If I make three purchases in a day, I end up signing in three times, entering my credit card information
-
Needs BAPI name to create shopping cart in background-SRM 5.0
SRM Experts, We have a scenario where users has to enter more than 100 line items in the shopping carts. So we are thinking about following solution... User will enter all required information in a spread sheet and save it in a txt file. We will deve