MCTE Report Missmatch Values as compared to VA05N
Dear All,
Issue is regarding MCTE Report. However, a new Distribution Channel was included and the required changes was done in customization w.r.t the Info Structure S003 to execute MCTE Report.
Once the infostructure was activated with the required changes, all the statistical data was updated through Tcodes OLI7, OLI8, OLI9.
But, In MCTE the values are incorrect as compared to the report VA05N. Say for eg., the order quantity in MCTE REPORT is doubled as compared to VA05N. Similarly, other values too are incorrect.
Hope the issue is cleared.
Valuable inputs will be of great help, as this Info structure is updated many times so the issue is adding on.
Request your valuable inputs and guidance for the same.
Thanks in advance and regards,
Vijayashree
HI Vijayashree,
The reason for that error used to be in following possibility:
1, there are no update groups for the selected billing document in OLI9
which means field STAFO in table VBRK and VBRP is empty.
2, the billing document is not statistical relevant.
Please have a look at the note 406294, which describes how to
assign the update groups. This can be done for header (transaction OVRO)
and item data (transaction OVRP).
For already existing documents you have to perform a statistical setup
as described in the note 64636. You have to check the flags
'Redetermine update group' and 'Update documents'. Please note: You have
to run the jobs with sequence 'Sales orders (transaction OLI7)
Invoices (OLI9)' in your case.
I hope it can help you to solve the question.
Regards
Ruy Castro
Similar Messages
-
Use a single variable value to compare with 2 characteristics
Hi guys
I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
eg : I hv 2 characteristics in Infocube
Launch date & Closing Date
Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
with regardsBobby,
if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
You want to display only the rows where A(user input)=B=C.
Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
Call Transaction CMOD for the definition of the customer exit (if not already existing!).
Create a new project, maintain the short text, and assign a development class.
Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation.
Then double-click on ZXRSRU01. If the include doesnt exist you have to create it; assign a development class and a transport request.
Enter the coding:
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'ZB'.
(and you have to repeate the same code also for the variable 'ZC' !)
IF I_STEP = 2.
READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
WITH KEY vnam = 'ZINPUT'.
if sy-subrc = 0.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
endif.
L_S_RANGE-sign = 'I'.
L_S_RANGE-opt = 'EQ'.
append L_S_RANGE to e_t_range.
ENDIF.
ENDCASE.
Save and activate the coding and the project.
Now go to your query and use these two new variables to restrict B and C....et voilà !!!
Let me know if you need more help (and please assign points !!! be generous !!!)
Bye,
Roberto -
I am trying the below URL to get the WEBi report from SAP BO using the Rest Webservice support that is now available.
http://{serverIP:serverPort}/biprws/raylight/v1/documents/{documentId}
I am able to get the report but as I compare the same report response when using SAOP Webservice, there seems to be a mismatch in the response. Here is what I see in the SOAP response:
</td><td c="1" ><cell ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" sid="-10"><ct >Some arbitrary value</ct><value type="xs:string">Some arbitrary value</value></cell>
But when I run it through REST, I am missing the <value ..> tag:
</td><td c="1" ><cell ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" bt="1" sid="-10"><ct >Some arbitrary value</ct></cell>
Apart from this right at the start of the xml response, I see some property mismatch as well.
SOAP has this property extra:
<property name="output.format.xml.valuemode">yes</property>
While REST has these property extra:
<property name="output.format.xml.option.style">1</property>
<property name="output.format.xml.styledict.fontplatform">html</property>
<property name="output.format.xml.td.bandinfo">yes</property>
<property name="source.selected">data</property>
<property name="xelement.xml.object">yes</property>
<property name="xelement.xml.object.usemap">yes</property>
<property name="xelement.xml.object.usersupportedformat">image/png</property>
I am not sure if:
the <value ...> tag miss is because of these missing/extra properties or
current REST support has some issues
For my application the value tag is a must and I can't do without this, but with REST it seems no way to obtain that.
Any help or pointer(s) in this regard is appreciated!Hello Milind,
According to our Product Owner Sam Polichouk, the solution should be available for you in 4.1 SP3, which is currently scheduled for release by the end of March 2014 (subject to change). The product team recommends that you get the raw, unformatted data values from within the Dataset specific call. This data contains a type to tell the end user what kind of data it is, so you can format it or use it properly.
The updated documentation for the SDK will be available at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page once the Support Pack is publicly released. -
Dynamically set report field value
In my old classic VB project, I was able to set a report field value using the following simple line of code.
someReport.SomeField.SetText u201Cabcu201D
This was nice and simple, now with crystal reports .Net I do the following:
((TextObject)someReport.SectionX.ReportObjects["SomeField"]).Text = u201Cabcu201D;
Itu2019s simple enough but seems too elaborated compared to the good old VB6.
Not that is a big deal but is there a simpler way (Classic VB6 style) to set a field on a report without me having to create my own utility method to u201Csimplifyu201D things?
Thanks.Perhaps using a formula?
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
Other than that, InProc RAS, but if the solution you have is complicated, you ain't seen nothing yet
- Ludek -
How to accessing current row report column value in Lov Query?
Hi,
which access methods (eg. bind variables, substitutions, ...) for getting the current row report column value can be used in the "Lov Query" property of a report column?
As what I know of and what I have read on the forum there are no bind variables for the report columns. For the "Link Text" property it seems that the column values exist as substitution strings (#COLUMN_NAME#). But they don't work in the Lov Query. => And would be good because of a hard parse each time the Lov query is executed.
The following post (Re: Simulating a correlated sub query in lov
is showing a solution to use package variables for temporary storage of the referenced value, but the only problem with that solution is that if a new record is added with the "Add rows to tabular form" process the package variable still contains the value from the last queried row! Is there a way (variable, APEX package, ...) to determine if the lov query is executed for a new record so that the package can return null?
I know that I could write the package in a way that the value is immediately cleared when lov_pkg.keyval is called (one time read), but then I would have to create several variables if I'm accessing the value multiple times in the query or in another query => I think an one time read solution would be very obscurely.
Thanks for your help
Patrick
http://inside-apex.blogspot.comHi Patrick,
I agree that it's a waste to continually use Ajax to go back to the server to get the contents of a dynamic select list.
There are no bind variables for any row item - but what you do have, as per my previous post, is the value of the data entered by the user in the first row. You can pass this into your application process (using get.add("VARIABLENAME", value)), which can use it to retrieve the correct LOV in your Ajax code - this will give you a "bind variable" that your process can use.
What you could do, however, is generate hidden select lists on your page - one for each possible LOV list and replace the contents of the new row's select list with the contents of the appropriate hidden select list. This is easy to do with javascript (using innerHTML functions). Obviously, though, the usefulness of this depends on the number and size of the select lists.
Even if you don't generate them to start with, you can keep a copy of any select lists returned by Ajax in the DOM for use on new rows. So, if you have retrieved a select list, you will have a copy of it in DOM which you can then copy into the new row. If you don't have the list in DOM, use Ajax to get it, store a copy of it and copy it into the new row.
Which method you use will depend on the number/size of select lists needed. If they are few in number and/or size, I would suggest generating hidden lists. If they are large, use Ajax to get them once, store them and then retrieve them from the DOM when needed.
There is another thread here where Arie recommends going to the server every time to make sure you get the most up-to-date data for the lists. If you want to follow this advice, for this reason, use get.add("VARIABLENAME", value) to pass the value to your process. If this is not an issue, you can use one of the other methods I outlined above.
Regards
Andy -
Crystal Report Viewer 11.5 Java SDK - How to set sub report parameter value
Good day!
I have a report with 3 sub-reports in the detail section. Main report has two parameters and each sub-report has one parameter in turn. We have our own JSP to receive parameter values from the user. I am using the following code to do the parameter value setting later into the report. Parameter value setting works for main report, but not for the sub-report.
I get an Error, for the first sub-report, from the viewer saying:
The parameter 'parametername' does not allow null values
On this article: [article link|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333233323331%7D.do]
It says to set the report name of the parameter field to the name of the sub report. On this aspect, assuming this tip/solution works, I would like to read the names of the sub-reports and their parameter names. I do not want to hard-code them into our application.
Here is my current code:
sdk.occa.report.data.Fields parameterFields = new Fields();
I have a HashMap of <parameterName, parameterValue>
Iterate through the map
report.data.ParameterField aParameterField = new ParameterField();
aParameterField.setReportName(""); //main report
report.data.Values theValues = new Values();
ParameterFieldDiscreteValue aParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
aParameterFieldDiscreteValue.setValue (aValue);
theValues.add(aParameterFieldDiscreteValue);
aParameterField.setName(parameterName)
aParameterField.setCurrentValues(theValues);
parameterFields.add(aParameterField);
viewer.setParameterFields(parameterFields);
Please look at the line:
aParameterField.setReportName(""); //main report
Here's where I would like to say
if (parameter is subreport's parameter) then setReportName(subreport name);
ThxIt was little difficult to navigate down the objects to find the sub reports and their parameters. I am attaching the code:
May be there are other ways to do the same.
public String getReportNameForParameter (String parameterName, ReportClientDocument reportClientDoc)
String result = "";
boolean found = false;
try {
SubreportController src = reportClientDoc.getSubreportController();
DataDefController ddc = reportClientDoc.getDataDefController();
IDataDefinition idd = ddc.getDataDefinition();
Fields fs = idd.getParameterFields();
Iterator fiter = fs.iterator();
while (fiter.hasNext()) {
IField ifld = (IField) fiter.next();
if (parameterName.equals(ifld.getName())) {
found = true;
//System.out.println ("\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
if (!found) {
IStrings reportNames = src.getSubreportNames();
//System.out.println (" Sub Reports If Any ...");
if (reportNames != null) {
Iterator iter = reportNames.iterator();
while (iter.hasNext()) {
String repName = (String) iter.next();
//System.out.println ("\t Sub Report Name " + repName);
ISubreportClientDocument srcd = src.getSubreport(repName);
ddc = srcd.getDataDefController();
idd = ddc.getDataDefinition();
fs = idd.getParameterFields();
fiter = fs.iterator();
while (fiter.hasNext()) {
IField ifld = (IField) fiter.next();
if (parameterName.equals(ifld.getName())) {
result = repName;
break;
//System.out.println ("\t\t Field Name/Description/HeadingText: " + ifld.getName() + "/" + ifld.getDescription() + "/" + ifld.getHeadingText());
//System.out.println ("********************************************************** ");
catch (Exception exc) {
System.out.println ("Error/Exception while trying to find the report name for parameter [" + parameterName + "]");
System.out.println ("*******************************************************************************************");
exc.printStackTrace();
return result; -
Column link - call java script & assign current report column value to item
Hi,
How to call java script and assing current report column value to item?
I have a button column in the report to 'delete' the selected row.
I want to first show dialog box with message 'Are you sure?'. If yes, process to delete
will be executed, else no action.
In order to fire JS, I used Column Link ->Target=URL.
Problem: The alert is showing but I don't know how to pass selected row's primary
key value to process (to delete selected row).
I have a item which can be used to store selected primary key value but don't know how to assign the value
when button pressed.
Thanks in advance
DipOk. The issue has been resolved by following way.
PAGE PROCESS: delete_request
begin
delete xyz
where id = :P8_id;
commit;
end;BUTTON URL:
javascript: DelRec(null,'CREATE', 'f?p=&APP_ID.:8:&SESSION.:delete_request:NO::P8_id:#id#');Java Script:
<script language="JavaScript1.1" type="text/javascript">
function DelRec(msg, req, url){
var confDel = msg;
if(confDel ==null){
confDel= confirm("Are you sure?");
}else{
confDel= confirm(msg);}
if (confDel== true){
redirect(url); }
</script> -
Passing Interactive report item values to flash chart.
Hello,
I am trying to pass an interactive report item value to a 2D column chart type in the chart query as :IR_EMPNO but the item value comes as null and the chart does not show any data. when I am passing this value to another form item and referencing it in the chart query as :P2_EMPNO, it works fine!! have anyone encountered such problem? Please help.
Regards.Thank you Varad...
Unfortunately, I am still getting no data found. (and there IS data).
a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
3) Where Fishery_id = :IR_P2_FID
Where Fishery_id = &IR_P2_FID
Thanks again!
Pamela -
Passback the report item value?
how to passback the report item value?
below is passback form item value...
function passBack(Val1)
opener.document.getElementById("P2_FID").value = Val1;
opener.document.getElementById("P2_FID").focus();
close();
then what would be javascript fuction for passback report item value?Hey Skud,
I am trying to implement something similar and definitely need assistance. Were you able to resolve this issue? -
Hi Experts, Crystal report mutiple value selection using checkbox in 8.81
Hi,
I am using Crystal report multiple value selection option using checkbox in 8.81 sap b1 pl 05.but i want default all check box value should be selected.
How do we achieve same.
Thanks
Rajkumar Gupta
Edited by: Rajkumar Gupta on Jul 11, 2011 5:45 AMDear Raj,
As per me, this can't be done in current version of SAP 8.81.
Alternate way is use SDK
Thanks
Kevin -
Dynamic Heading not translated in report template "Value Attribute Pairs"
Hello,
I created a report in which I use application item names in the column heading of the items.
When I use the report template "Value Attribute Pairs" the heading displays not the contents of the application item names but the exact contents of the headings.
for instance:
application item name "trm_label_1" has the value : "Naam".
I created a report based on the SQL: select x.name from persons x
The heading of column "name" is: "&TRM_LABEL_1.".
The report shows the text "&TRM_LABEL_1." instead of "Naam".
When I change the report template in "Standard" the substitution is done well.
Can anyone explain what (not) happens and how I can fix this problem?
Gr.
RobHi Rob,
You can do this by choosing as Headings Type: PLSQL in the Column Attributes.
You would have something like Deptno:DName:Loc:&APP_ITEM.
Where the first columns are normal text and the last one is an application item.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://apex-evangelists.com/
-- http://apexblogs.info/ -
SCCM 2012 R2 - Software metering Reports Parameters Value not appear to choice
Hello Every Body
I hope to get answer as soon as possible
I have SCCM 2012 R2 & SQL Server 2012 SP1, my problem is ( all software metering Reports Parameters Values Not appear so I cannot select
Note:-
( All parameters Available Value set to Get Values From a Query)Has it been over 45 days since you created the active SWM rules? Do all (most) other SWM reports
work?
all other reporting in SWM which doesn't ask for month and year working
only the problem in year & Month Parameters Values
note:-
these reports doesn't need a 45 days to work, alwasy when i install SCCM reports working only from the second day of installation -
Javascript - Referencing report column value
Hi,
In my application I have a report "Test" with some columns. In column "PFT_PCODE" the possible values are either 1 or 2.
What I want is to display the report table cell in red, if the value in "PFT_PCODE" is 1, or the table cell in orange, if the value in "PFT_PCODE" is 2, respectively.
I tried to make something in Javascript, based on a Vikas' example. I put in the
Region Header:
<style type="text/css">
.rot {
background-color: red;
.orange {
background-color: orange;
</style>
Region Footer:
<script type="text/javascript">
var spans=document.getElementsByTagName('span');
for (var j=0;j<spans.length;j++) {
if (spans[j].className=='farbe') {
var td=html_CascadeUpTill(spans[j],'TD');
if (document.getElementsById('#PFT_PCODE#').value == 1) {
td.className = 'rot';
else {
td.className = 'orange';
</script>
The column "PFT_PCODE" is marked as CSS class "farbe".
Unfortunately it's not working, I'm not sure if I reference the report column value right. Since I'm a beginner in Javascript I would be glad for help.
I put my (reduced) application on apex.oracle.com for testing.
Workspace: app
Login: [email protected]
PW: riponi
Thanks in advance,
RogerHi Roger,
In your report, if you do a View Source, do your report headers have id's on them - that is, the TH tags that contain the headings?
If so, you could use:
<script type="text/javascript">
function hilite(f1)
var h = document.getElementById(f1);
var t = h.parentNode;
while (t.tagName != 'TABLE')
t = t.parentNode;
var rows = t.rows;
var k;
var j;
var c;
var headers = t.getElementsByTagName("TH");
for (k = 0; k < headers.length; k++)
if (headers[k].id == f1)
c = k;
for (k = 1; k < rows.length; k++)
j = rows[k].getElementsByTagName("TD")[c];
if (j.innerHTML == '2')
j.style.backgroundColor = 'purple';
j.style.color = 'yellow';
if (j.innerHTML == '1')
j.style.backgroundColor = 'red';
j.style.color = 'white';
</script>Put that in the page's HTML Headers setting.
In the report region's Region Footer, add in:
<script type="text/javascript">
hilite('PFT_PCODE');
</script>This will find the heading's TH cell, work out where it is in the row, then loop through all remaining rows and check the TD cell in the same column, highlighting the cell using background and font colours.
Andy -
Unable to pass report column value to url in select statement. Please help
Hi all,
I am trying to pass the report column value as follows:
select key, num,
case when Attachmentcnt(KEY) != 0 then
'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'And I am passing values as follows:
{noformat}
'#KEY#,'#NUM#','9' ELSE null
END Attachment
from tableA
{noformat}
But, I am not able to figure out correct sysntax to pass these column values. Can anyone give me some help. I appreciate it.
rgds,
Suma.
Edited by: sumak on Jun 23, 2009 12:11 PM
Edited by: sumak on Jun 23, 2009 12:22 PMSuma,
If you're trying to generate a column with a URL, try something like the following:
select key, num,
case when Attachmentcnt(KEY) != 0 then
'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
|| tableA.key || ',' || tableA.num || ',' || :P91_PREVPG
else NULL
end
FROM tableA;
But the best way to pass these would include checksum values against the values of your parameters (to make sure a user doesn't hack them). You'll need to check the Apex User manual for details - See "Understanding Session State Protection".
Good luck,
Stew -
How to update a column value by comparing old value by using DML Handler...
Hi Can anyone post the DML Handler code for updating a column value by comparing the old value.
Thanks,
RayHi,
Here is an example of a DML handler.
BEGIN
DBMS_APPLY_ADM.SET_DML_HANDLER(
object_name => 'scott.emp',
object_type => 'TABLE',
operation_name => 'UPDATE',
error_handler => false,
user_procedure => 'strmadmin.update_column',
apply_database_link => NULL,
apply_name => 'MY_APPLY');
END;
This DML handler which will send any LCR matching the specified conditions to the strmadmin.update_column for customised processing.
You can write the strmadmin.update_column procedure so that it extracts the old values from the LCR. You can then use the old values from the LCR to identify the row in the table. Once you identify the row, you can update it as you want.
I haven't really tried to do any customised processing using DML handlers, but this should work.
Hope this is of help.
Sujoy
Maybe you are looking for
-
Normally, when I click on Bookmarks at the top of my screen, the list of websites that comes up includes a little icon to the left of each bookmark. Now I only get a list. No icons. What has happened to the little four-colored flag for Hotmail, the '
-
No essbase connection in SmartView 11.1.2.5
Hello, Server EPM 11.1.2.3, compact deployment : After uninstalling SmartView 11.1.2.3 and installing SmartView 11.1.2.5 : Connection OK to Hyperion Planning & Reporting and Analysis Framework, Connection KO to Essbase : No Essbase provider in Shared
-
HT1430 ipod touch not resetting
I have an Ipod Touch 3rd Gen that is stuck. When you power on the "slide to unlock" does not work. I tried to reset by pressing both sleep and wake at the same time for more than 10 sec but that didn't work. How can I reset the Ipod and get it uns
-
I have been looking at BLAF Guidline Specification. I am using it as a guid for building our Portal solution. But lately there have been som problem with this pages. The links to the gif are lost, and the education link does not work. I hope you can
-
OT - BBC Surfing Film shot on HDV & cut on FCP airing sunday
Hi everyone, Just to let you know there is a great film airing sunday as part of "The Natural World" ... Its a very stylish surf/environmental film set in Hawaii featuring Jack Johnson. apart from the fact its a great film (I didn't cut it but a good