Javascript in ABAP is throwing error
Hi all,
We are having some IAC applications, the older version is ECC 4.6 . All the applications are working fine there.
Now that we have migrated from ECC 4.6C to ECC 6.0, we have just copied all the IAC applications to the new system.
When tested in the new system. one of the applcitions is throwing a Javascript error.(i.e., the ABAP dump is pointing to the Javascript ParseInt method.)
The error is "0.00 could not be converted into numerical value"."ITS_EXPRESSION_NOT_NUM".
My question is:
Is there any possibility that ECC 6.0 is not recognizing the java script of 4.6C(specially the ParseInt functionality).
is there any help documents which give us code samples for syntax to be followed when writing the java script in ABAP.
Any clue to resolve the error would be greatly appreciated.
Thanks & Regards,
Kavitha
Hi Marcin,
Thankyou for your quick reply.
It is server side scripting only. but i have already chekced the link which u sent me. i did not find anything realted ... we are not able to debug the issue?
This is the place where it is throwing the error:
var lv_pct=`FREM-TBR_PCT[j]`
if (parseInt("`lv_pct`") == `i`)
is the syntax of the code is correct?
Do you want me to send the whole code to you?
Also please tell me if there any way to debug the javascripts for this IAC applications.
Thanks & Regards,
Kavitha.
Similar Messages
-
Javascript call themebasedfoi.centerToTheme() throws error
Hello,
i am developing a poc for a customer and i am really pleased how easy it is to get a map set up and running. The map is created with the javascript api and is running in a browser window. The target is to integrate the map in biee dashboard. And this is working fine too. But i have a problem, that could be a showstopper: i want to center the bounding box of the map around the selected fois. Ther selection of the fois ist realized by parameters in the url and this is working fine also.
If i insert the line
themebasedfoi.centerToTheme();
nothing happens and the error console of my browser throws the error
this._f249 is null
http://intranetserver:7777/mapviewer/fsmc/jslib/oraclemaps.js <- Version: Ver11_B090225 Line 10769
and
Keine Elemete Gefunden (No elements found)
http://myserver:7001/mapviever/mcserver <- my own mapserver
My source to create the map is:
<html>
<head>
<!--META http-equiv="Content-Type" content="text/html; charset:UTF-8"-->
<script type="text/javascript" src="http://intranetserver:7777/mapviewer/fsmc/jslib/oraclemaps.js"></script>
<script type="text/javascript">
var baseURL = "http://myserver:7001/mapviewer";
var baseMapEloc = null;
var mapview;
function display_map()
baseMapEloc = new MVMapTileLayer("elocation.world_map", "http://intranetserver:7777/mapviewer/mcserver");
mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addBaseMapLayer(baseMapEloc);
// var mpoint = MVSdoGeometry.createPoint(10, 51, 8307);
// mapview.setCenter(mpoint);
// mapview.setZoomLevel(4);
// mapview.addNavigationPanel("east");
// mapview.setHomeMap(mpoint, 4);
var themebasedfoi = new MVThemeBasedFOI('foi_partner','apexws_kpatenge.theme_partner_bi','https://secure_intranetserver/mapviewer/foi');
themebasedfoi.setBringToTopOnMouseOver(true);
var country = getURLParameter("COUNTRY_PARAM");
var partner = getURLParameter("NAME_PARAM");
var city = getURLParameter("CITY_PARAM");
var parameters;
themebasedfoi.setQueryParameters(country,partner,city);
mapview.addThemeBasedFOI(themebasedfoi);
themebasedfoi.centerToTheme();
mapview.display();
function getURLParameter (ParamName)
var strURLParamstrURLParamReturn = "";
var strHref = window.location.href;
if (strHref.indexOf("?") > -1 )
var strQueryStr = strHref.substr(strHref.indexOf("?"));
var aQueryStr = strQueryStr.split("&");
for (var iParam = 0; iParam < aQueryStr.length; iParam++ )
if (aQueryStr[iParam].indexOf(ParamName+"=")> -1)
var aParam = aQueryStr[iParam].split("=");
strURLParamReturn = aParam[1];
break;
return unescape(strURLParamReturn);
</script>
</head>
<body onLoad="javascript:display_map()">
<div id="map" style="width: 500px; height: 450px;"></div>
</body>
</html>With centerToTheme() i only get a gray square, without the map is displaying properly and with the setHomePoint() i get the right view for the map with no query parameters.
I thank you in advance for every hint that helps me to solve this...
Wolfgang
Edited by: user10446099 on 25.03.2009 02:51Hi lqian ,
Thank you for your answer. But now i get a gray square with the endless ticking clock. Could it be that the zoomToTheme() function is not able to work if the Base map and the themeBasedFoi are on different map servers? Because i am working on an intranet map server with a worldmap and an other intranet map server where i developed the themebasedfoi. And the map is working until i call setBoundingTheme(true).
Perhaps i have to create a worldMap on the map server where i have development access?
I think this code should work (slightly modified your code):
var themebasedfoi;
var baseMapEloc;
function init_map(){
//get the base map
baseMapEloc = new MVMapTileLayer(...,myBaseMapServer);
//create the theme:
themebasedfoi = new MVThemeBasedFOI(...,...,myLocalDevelopmentMapServer);
//setup your query parameters
thembasedfoi.setQueryParameters(...);
//tell MapViewer to automatically 'bound' the map extent to the results of this theme after it came back from server with FOI data:
themebasedfoi.setBoundingTheme(true);
//call the zoomToTheme function after the map is loaded
themebasedfoi.addEventListener('after_refresh', center_map); // i got this from thread 875965 from melih you answered also
//now add the theme to the MVMapView handle (which will initiate the theme AJAX request to the server):
mapview.addThemeBasedFOI(themebasedfoi);
function center_map()
themebasedfoi.zoomToTheme();
}Thank you so far :)
Wolfgang
Edited by: user10446099 on 25.03.2009 16:44 -
Why Webdynpro framework is throwing error in this testcase
Hi All,
In my requirement i'm using the WTGXXX(for Discount field) in Webdynpro ABAP.
If I validate the entries there is a standard check performed by the webdynpro framework when entries other than the numercie fields are given.
This is a webdypro ALV.
For Ex:
when the discount is given as (9-33) it is throwing the error that "The entered value can only contain numerical characters" but it is not throwing any error for (9-(9/22)) or (9-(42)) instead it is calculating the values which is a good feature. But why, (9-33) this case is not handled.
I tried to keep the value in duegging it is working fine.
Before any event gets trigerred for the above cases the value is calculated by the framweork by defalut.
Some times some cases are handled sometimes not.
I'm unable to get this behavior of the framework.
For the first time (9-3*3) calcuation is throwing error from the 2nd time onwards this is giving the correct output. When I load the view for the first time and do this check then error is thrown, second time when the other calcuations are done and again do this calcaulation then this error is not shown instaead it is giving me 0 which is the result.
This case applies to the cases where the expressions result in 0 (defalut values)
One mroe test case for this is - (9-9).
Eventhough the user knows the result of these expresions, these are throwing errors.
How to handle this.
I tired handling this with own DE/Domanin CURR 15 but for the 1st time this error is theon 2nd time on wards the reuslt is shown correct.
Isn't a special case.
When I bound the table again with INITIAL data then again the erorr is thrown for that case.
ie I have one RESET button where i will bind the table again with the INITIAL table entries then agian the error is thrown for (9-3*3).
Is there any SAPNOTE applied or Exceptions to this. Please let me know.
Please replicate the same in Webdynpro Java also and share the reasons.
Currently I'm doing this by taking the string only to avoid these erorrs in case of Zero.
Regards,
Lekha.Hi
Use another forum for Webdynpro questions: Web Dynpro ABAP
BR, Sergei -
SPIMport is throwing error when import .aspx file second time onwards
Hi,
when I am trying to import already existing file (second import) the import is throwing error -
Error: Value does not fall within the expected range.
[ListItem] Debug: at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow)
at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow)
at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)
at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw)
at Microsoft.SharePoint.SPListItem.get_Item(Guid fieldId)
at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
Verbose: Performing final fixups.
Progress: Import completed.
Finish Time: 2/5/2015 4:37:25 PM.
Duration: 00:18:41
Total Objects: 5
Finished with 0 warnings.
Finished with 1 errors.
I am unable to debug also. Though import is happening successfully. Thanks in advanceHi
Use another forum for Webdynpro questions: Web Dynpro ABAP
BR, Sergei -
ABAP short dump error while creating an invoice
Hi All,
We are creating a delivery(Unit is EA) for the material for which the Unit Conversion is maintained as 1CS = 48 EA. So while creating a delivery If I maintain the delivered quantity is less than 24, I am not able to create an invoice.It's throwing an ABAP short dump error BCD zerodivide run time error.
If I deliver greater than or equal to 24, then the invoice is created without any issue
I have checked if there is any CMIR record but no record is maintained.
Can anyone help me out on this?
Regards,
ManjunathHi Manju,
Can you post the dump screen shot, which should contain the source code for that dump.
Regards,
Krishna -
Regarding ABAP initial load errors
hi experts
I have below errors left while doing Initial load for AS ABAP as follows
Error type 1:
Error :runFunctionsInString($FUNCTION.sap_encryptPassword()$$) got exception - Exception:org.mozilla.javascript.JavaScriptException: java.lang.UnsupportedOperationException: java.lang.ExceptionInInitializerError
I referred page 37 in System landscape configuration guide. but could not understand what and where password has to be set.
Could you please suggest me how to solve this two problem.
Also i would like to know where the Users, roles,profiles will be written in Identity store.
regardshi guys
Regardless of this error, i got the users/profiles/roles written in Identity center, i am able to see in monitoring webpage.
But how to solve this error is my concern...appreciate if you can give me some ideas
regards -
I have to apply SP11 for my PI7 instance on Windows Oracle.
I applied the Kernel and ABAP patces using SPAM.
Now to apply the Java patches, I started JSPM and it throws error :
SID................: PI7
Hostname...........: skzw26x
Install directory..: E:/usr/sap/PI7
Database...........: Oracle
Operating System...: $(/J2EE/StandardSystem/CentralInstance/J2EEEngineInstanceHost/OpSysType)
JDK version........: 1.4.2_15 Sun Microsystems Inc.
JSPM version.......: 7.00.9.2.1.4.35
System release.....: 700
ABAP stack present.: true
The execution ended in error.
Cannot initialize application data.
Could not extract value with key SAPSYSTEM from file E:/usr/sap/PI7/SYS/profile/PI7_DVEBMGS10_skzw26x. A possible reason could be that the path to the directory containing the sappfpar executable is not included in the PATH environment variable.
Could not start process sappfpar.
Error while executing process sappfpar.
java.io.IOException: CreateProcess: sappfpar pf=E:/usr/sap/PI7/SYS/profile/PI7_DVEBMGS10_skzw26x SAPSYSTEM error=2
More information can be found in the log file E:\usr\sap\PI7\DVEBMGS10\j2ee\JSPM\log\log_2007_10_12_11_58_40\JSPM_MAIN_1_01.LOG.
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
com.sap.sdt.jspm.phases.PhaseTypeJSPM
com.sap.sdt.jspm.gui.JspmUiException
Cannot initialize application data.
JSPM_MAIN
JSPMPhases
NetWeaver Upgrade
SAPJup
Java Upgrade
Please advise.
I followed several threads here but the issue still exist.
Thanks and regards,
BhaskarBarry,
You are the man. I ignroed this error as I was reading thorigh the big log file that came out of it.
The error is gone.
Thanks,
Bhaskar -
Help req for check customer table maintenance with XD02 if not throw error
hello ABAP GURUS,
check customer of the table maintenance with XD02 if not throw error i have given the codition for passing the values in the table but before that it has to check whether the customer i am passing in to the table is a customer from xd02.Here whatever no i am passing it is accepting it should not happen, but when i give the customer which is not a customer it should not accept but it has to throw the message as 'customer does not exist.Its urgent please help me
TYPES: BEGIN OF TY_KNVI,
KUNNR TYPE KUNNR,
TATYP TYPE TATYP,
TAXKD TYPE TAKLD,
END OF TY_KNVI.
DATA : VALIDFROM TYPE GUEBG,
VALIDTO TYPE GUEEN.
DATA : IT_KNVI TYPE STANDARD TABLE OF TY_KNVI,
WA_KNVI TYPE TY_KNVI OCCURS 0 WITH HEADER LINE.
DATA : V_NAME TYPE SYUNAME.
SELECT KUNNR
TATYP
TAXKD
FROM KNVI
INTO TABLE WA_KNVI
WHERE KUNNR = YYV_CFORM-KUNNR
AND TATYP = 'ZCST'
AND TAXKD = '1'.
V_NAME = SY-UNAME.
YYV_CFORM-ENTEREDBY = V_NAME.
IF SY-SUBRC NE 0.
MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'.
ENDIF.
I have used the following code to enter the data into the table maintenance it is working fine and throwing the error when the tax type is not the one which i have given in the select statements but the problem is when i have given the customer no which is not there in the XD02 tcode, it is accepting and showing the error message as MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'. now i have to check the customer no from XD02 and if it is existing in that tcode it should allow to save in the table maintenance otherwise throw a message as the 'Customer no does not exist, this I am unable to write so how can i check please help me .
thankx in advance.
Edited by: soni khadary on Apr 22, 2008 7:55 AMHi Kelly,
I guess <wa_tab>-handle_style is of type lvc_t_styl therefore you can do the following:
ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
"I assume you know your non-key fields' names so you can use subrotuine to perform update on each of them
ls_edit-fieldname = 'First field name' .
PERFORM update ls_edit.
ls_edit-fieldname = 'Second field name'.
PERFORM update ls_edit.
ls_edit-fieldname = 'Third field name'.
PERFORM update ls_edit
FORM update USING fs_edit type lvc_s_styl.
field-symbols: <style_tab> type lvc_t_styl,
<style_wa> type lvc_s_styl.
LOOP AT <tab> ASSIGNING <wa_tab>.
if e_row = sy-tabix .
"get you style table
assign component 'HANDLE_STYLE' of structure <wa_tab> to <style_tab>.
"as <style_tab> is typed fully you can read the row you are interested in
read table <style_tab> assigning <style_wa> with key fieldname = fs_edit-fieldname
if sy-subrc = 0.
"update this entry
<style_wa> = fs_edit.
* modify table <style_tab> from <style_wa>.
endif.
endif.
endloop.
endform.
Note!
Though, this should work, the use of RTTI as Uwe suggested would be best practise approach as far as dynamic programming is concerned. Anyhow it is still up to you which one you pick.
Regards
Marcin
I noticed now that this line is not necessary
modify table <style_tab> from <style_wa>.
as we simply are working with field symbols, so changes made to <style_wa> are already visible in that table <style_tab>.
Edited by: Marcin Pciak on Mar 15, 2009 12:44 PM -
SharePoint Designer: throwing error while open my sharepoint web applicaiton
When i try to open web application in sharepoint designer. I can't able to open it throw error like this
An Error occured accessing your Microsoft sharepoint foundation site files. Authors - if authoring against a web server, please contact the webmaster for this server's web site. WebMaster - please see the server's application event log for more detailsThis error occurs if you try to use a reverse proxy to rewrite the response body contents for a SharePoint site as well. We were attempting to inject a Google analytics tracking javascript in the body of all responses. The code never did show up
successfully and this error message resulted as well. We eventually discovered a web solution out on Codeplex that allows you to add the Google analytics tracking script. This article hinted at the root cause:
http://support.microsoft.com/kb/329362/en-us -
Acrobat Standard 9 : app.viewerVersion is throwing error.
I'm using Acrobat 9 standard in Windows platform.
I have a vb 6.0 application and I have to find the version of
Acrobat installed on the user machine. I'm using the below code but it is throwing error :
Error Message:
Run-time error '-2147417851 (80010105)':
Automation error
The server threw an exception "
How can I find the version of Acrobat available in a
machine? The below code works with Acrobat 8.0
installed machine but fails with Acrobat 9.0 standard
Dim oAVDoc As Acrobat.CAcroAVDoc
Dim oPDDoc As Acrobat.CAcroPDDoc
Dim oJSO As Object
Dim iOK As Boolean
Private Sub Form_Load()
Set oAVDoc = CreateObject("AcroExch.AVDoc")
iOK = oAVDoc.Open ("<< required parameters>>")
Set oPDDoc = oAVDoc.GetPDDoc
Set oJSO = oPDDoc.GetJSObject
MsgBox (oJSO.App.viewerVersion)I get much the same problem with VB6, Acrobat 9 Pro and WinXP SP3. When I single step the line:
oJSO.Collab.showAnnotToolsWhenNoCollab = True
in debug I go to the error handler for my Sub. Inspecting the VB Err object has Number = -2147417851 and Description = "Automation error
The server threw an exception." I get a Microsoft crash notice about Acrobat a short while later.
I've experimented with the JavaScript debugger in Acrobat and you can execute Collab.showAnnotToolsWhenNoCollab = True and reference the value of Collab.showAnnotToolsWhenNoCollab in the console. The problem appears only when accessing Acrobat Javascript through the Interapplication Communication API.
If anyone can help it would be appreciated. I tried Adobe's Acrobat support and they were no help at all. -
PL/SQL throwing errors! trying to alter dates
the following code keeps throwing errors, I was wondering if it is due to me getting confused when to use ":" before a variable and also ":=" when setting values?
Can anyone see what I am doing wrong?
Here is the code, at the moment it is throwing an error on line 44
ORA-06550: line 44, column 1:
PLS-00103: Encountered the symbol "" when expecting one of the following:
CODE.....
DECLARE
QNStart DATE;
QNFinish DATE;
Q1Start DATE;
Q1Finish DATE;
Q2Start DATE;
Q2Finish DATE;
Q3Start DATE;
Q3Finish DATE;
Q4Start DATE;
Q4Finish DATE;
Q5Start DATE;
Q5Finish DATE;
QNT NUMBER;
Q1T NUMBER;
Q2T NUMBER;
Q3T NUMBER;
Q4T NUMBER;
QNR NUMBER;
Q1R NUMBER;
Q2R NUMBER;
Q3R NUMBER;
Q4R NUMBER;
BEGIN
case current_date
when current_date between to_date('01-JAN', 'DD-Mon') AND to_date('31-MAR', 'DD-Mon') then
QNStart := to_date('01-JAN', 'DD-Mon');
QNFinish := to_date('31-MAR', 'DD-Mon');
when current_date between to_date('01-APR', 'DD-Mon') AND to_date('30-JUN', 'DD-Mon') then
QNStart := to_date('01-APR', 'DD-Mon');
QNFinish := to_date('30-JUN', 'DD-Mon');
when current_date between to_date('01-JUL', 'DD-Mon') AND to_date('30-SEP', 'DD-Mon') then
QNStart := to_date('01-JUL', 'DD-Mon');
QNFinish := to_date('30-SEP', 'DD-Mon');
when current_date between to_date('01-OCT', 'DD-Mon') AND to_date('31-DEC', 'DD-Mon') then
QNStart := to_date('01-OCT', 'DD-Mon');
QNFinish := to_date('31-DEC', 'DD-Mon');
End Case
:Q1Start := ADD_MONTHS(:QNStart,-3);
:Q1Finish := ADD_MONTHS(:QNFinish,-3);
:Q2Start := ADD_MONTHS(:QNStart,-6);
:Q2Finish := ADD_MONTHS(:QNFinish,-6);
:Q3Start := ADD_MONTHS(:QNStart,-3);
:Q3Finish := ADD_MONTHS(:QNFinish,-3);
:Q4Start := ADD_MONTHS(:QNStart,-4);
:Q4Finish := ADD_MONTHS(:QNFinish,-4);
:Q5Start := ADD_MONTHS(:QNStart,-5);
:Q5Finish := ADD_MONTHS(:QNFinish,-5);
select COUNT(COUNT(*)) INTO :Q1T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q1Start AND :Q1Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q2T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q2Start AND :Q2Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q3T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q3Start AND :Q3Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q4T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q4Start AND :Q4Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :QNT from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :QNStart AND :QNFinish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q1R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q2R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q3R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q4R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q5Start AND Q5Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :QNR from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN QNStart AND QNFinish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
EXECUTE
Cheers
SimonDave had given you already some good advice.
Your code is not only too complicated, but you have also probably a bug in it. You have for instance a QNstart as to_date('01.01, 'dd.mm') and a corresponding QNfinish as to_date('31.03', 'dd.mm'). As this means, it is the time portion at 00:01, you are missing the complete last day of this interval. So you better do:
declare
l_QNstart date;
l_Q1start date;
l_Q1finish date;
l_q1t number
begin
l_QNstart := trunc(sysdate, 'Q');
l_Q1start := add_months(l_QNstart, -3);
l_Q1finish := l_QNstart;
-- your condition is now
select count(count(*))
into l_q1t
from ff_actions f, ff_action_type_lov a
where f.date_entered >= l_Q1start and f.date_entered < l_Q1finish
and a.action_score = 'y'
and f.input_type = a.action_name
group by f.company_name;
end;
/Message was edited by:
Leo Mannhart
btw: what is the difference between Q1Start / Q3 Start and Q1Finish / Q3Finish resp.? -
Hi BI Experts,
I have an issue in the report output. The query is giving the data but the report is not showing the same.
when nonexisting values are given, report is throwing ERROR instead of giving blank page. Client is expecting blank page or dummy page with tables or headings etc but not the error message.
Please suggest a solution for this.
Let me know if anybody needs any other information regarding this.
Thanks in advance.you need to use no data found logic in order to get blank or any message saying no data found for that selected value.
check this link
https://blogs.oracle.com/xmlpublisher/entry/no_data_found
or
send me your sample xml having data and no data and template i can try at my side. email: [email protected]
assign me some points if helpful -
I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...
Hi Leo22,
Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
Jeremy L.
National Instruments
Jeremy L.
National Instruments -
REPORT ZPSMARTFORM1.
tables: zptable1.
types: begin of ty_zptable1,
f1 type zf1,
f2 type zf2,
f3 type zf3,
end of ty_zptable1.
data: itab type table of ty_zptable1 with header line.
data: wa type ty_zptable1.
select f1 f2 f3 from zptable1 into table itab.
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = .
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
this is my driver program.In my form interface there are tables,import,export are there where i have to declare tables data.If i am putting wa means it is throwing error.Please show me the clear information.
Edited by: Julius Bussche on Nov 14, 2008 10:09 AMREPORT ZPSMARTFORM1.
tables: zptable1.
types: begin of ty_zptable1,
f1 type zf1,
f2 type zf2,
f3 type zf3,
end of ty_zptable1.
data: itab type table of ty_zptable1 with header line.
data: wa type ty_zptable1.
select f1 f2 f3 from zptable1 into table itab.
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = .
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Plz for this driver program. Give me the exact solution.I am passing the information like itab like zptable1 ther ein the smart form table. Even now i am getting error.Here in this driver program i passed itab = itab means .I am not getting solution.If i have to change any function module name means plz tell me.What i have to put there.Plz give me the correct solution -
SSRS dataset throws error when another stored procedure is called inside dataset stored procedure
Hello;
I am using Report Build 3.0, I have a simple report which gets data using dataset which is created from a Stored Procedure. I have another stored procedure which updates the data in the table which is used for the report. I want to get the live data on report everytime
the report is run so that I call that stored procedure (sp_updatedata) inside my report dataset stored procedure and here where my report fails as it throws error while creating dataset.
Here is sample:
sp_updatedata (this only returns "Command(s) completed successfully"
Create Proce sp_getReportData
As
Begin
Exec sp_updatedata -- I call it to update the data before it displays on the report
Select * from customers
End
If I remove this line it works.
Exec sp_updatedata -- I call it to update the data before it displays on the report
Thanks
Essa MughalHi MESSA,
According to your description, you create a dataset based on a stored procedure. In this procedure, it calls another procedure. Now it throws error when creating dataset. Right?
In Reporting Services, when creating dataset, all the query or stored procedure will be executed in SSMS. So if the procedure can be executed in SSMS, it supposed to be working in SSRS. However, it has a limitation in SSRS. In a dataset, it can only return
one result set.
In this scenario, I don't think it's the issue of calling other procedure inside of procedure. Because we tested in our local environment, it works fine. I guess the sp_updatedata returns a result set, and the "select * from customers" returns
another result set. This might be the reason cause the error.
Reference:
Query Design Tools in Report Designer SQL Server Data Tools (SSRS)
Reporting Services Query Designers
If you still have any question, please post the error message and the store procedure (sp_updatedata).
Best Regards,
Simon Hou
Maybe you are looking for
-
How to uploade apps from iphone 4 to ipad mini
How do I upload my apps from my iphone 4 to my ipad mini
-
How to configure oem 2.1.0 on the client machine to detect nodes on the server
I've oracle 8.0.5 running on a solaris 2.6 server. I also have oem 2.1.0 running on my NT workstation. But oem won't automatically detect nodes on the server. IA is running on the server and the client very well What do you guys think
-
I have problem shutting down mac book pro os x lion
I have setup os x lion on my mac book pro which i bought after 2010. Over 90% when i want to shut down, the process stop at the end and rounding circle appear for so long that i should turn off the system by pressing and holding power bottom. I do ve
-
I have issu Hot Key I Unable to adjust brightness and contrast
please solve my issue.
-
Get Date Modified for SWF at runtime
This seems like it should be something pretty obvious but I haven't been able to figure out how to get the time stamp (date modified) for the swf that I am in. I want to be able to get the date the swf was published for debugging purposes. Thanks.