Getting error in creating trigger or CSQ
HI
I am facing a strange issue in doing any new config in my uccx vers 8.5.2 ,
I also uploaded the .cop file availabe in the cco .
while creating or doing any modifucation i am getting below error :
There was an error while interacting with the Database. "
or
An error occurred while saving the CSQ Configuration data. "
Also in the dignosis test in uccx cli i m finding the below test fail
est - tomcat_connectors : Failed - The HTTP and HTTPS ports are not responding to local requests. Please collect all of the Tomcat logs for root cause analysis: file get activelog tomcat/logs/*
and in the file get activelog tomcat/logs/* logg for localhost file getting the below last entry
[15/Dec/2011:00:05:19 +0530] 127.0.0.1 127.0.0.1 XuKR3_b9qn - 8080 GET /manager/list HTTP/1.1 200 1446 4
[15/Dec/2011:00:05:40 +0530] 127.0.0.1 127.0.0.1 XuKR3_b9qn - 8080 GET /manager/list HTTP/1.1 200 1446 4
[15/Dec/2011:00:06:01 +0530] 127.0.0.1 127.0.0.1 XuKR3_b9qn - 8080 GET /manager/list HTTP/1.1 200 1446 4
[15/Dec/2011:00:06:22 +0530] 127.0.0.1 127.0.0.1 XuKR3_b9qn - 8080 GET /manager/list HTTP/1.1 200 1446 4
[15/Dec/2011:00:06:42 +0530] 127.0.0.1 127.0.0.1 XuKR3_b9qn - 8080 GET /manager/list HTTP/1.1 200 1446 1
file view activelog tomcat/logs/localhost.2011-12-15.log
Dec 15, 2011 3:03:23 PM org.apache.catalina.core.ApplicationContext log
INFO: UCCX Plugin initializer::successfully initialized webapp :appuser
Dec 15, 2011 3:03:28 PM org.apache.catalina.core.ApplicationContext log
INFO: action: []: Verifying ModuleConfig for this module
Dec 15, 2011 3:03:28 PM org.apache.catalina.core.ApplicationContext log
INFO: action: []: Verification of ModuleConfig has been completed
Dec 15, 2011 3:03:32 PM org.apache.catalina.core.ApplicationContext log
INFO: UCCX webapp being initialized :dp, currently deployed UCCX webapp's count :5
Dec 15, 2011 3:03:32 PM org.apache.catalina.core.ApplicationContext log
INFO: UCCX Plugin initializer::initializing webapp dp
Dec 15, 2011 3:03:32 PM org.apache.catalina.core.ApplicationContext log
INFO: UCCX Plugin initializer::successfully initialized webapp :dp
i dount if this issue is causing the problem of adding any new entry ...
also in the unified servicibality page not getting list of any service ...
The serviceability page you have posted is not used for UCCX.
Look at "Cisco Unified CCX Serviceability" and make sure everything is "In Service"
Looking at your name this looks like a HA system. Are both systems up and running as you can't save changes if only one of the HA systems is up.
In "Cisco Unified CCX Serviceability" go to Tools/Datastore Control Center/Datastores and make sure all 4 of your datastores are replicating correctly
Graham
Similar Messages
-
Getting error while creating trigger!!
Hi Guys,
I am getting the following error while creating trigger in Oracle10g Database in TOAD environment.
Error: PLS-00306: wrong number or types of arguments in call to '='
Table details:
One of the column having BLOB Data type in the table.
In the trigger, I have compared :old and :new values.
CREATE OR REPLACE TRIGGER INPL.trigger_new
AFTER INSERT OR UPDATE OR DELETE
ON TABLE_NEW REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
action_flag VARCHAR2(1);
new_image BLOB;
BEGIN
IF UPDATING
THEN
action_flag := 'U';
ELSIF DELETING
THEN
action_flag := 'D';
ELSIF INSERTING
THEN
action_flag := 'I';
END IF;
IF (:NEW.image = :OLD.image)
THEN
new_image := '';
ELSE
new_image := :NEW.image;
END IF;
INSERT INTO TABLE_NEW(action_flag, date_changed,nimage,oimage) values(new_image,:old.image);
end;
Any one knows about this issue, please let me know with the proper solution.
Thanks for your immediate response!
Regards,
LakshmanCREATE OR REPLACE TRIGGER INPL.trigger_new
AFTER INSERT OR UPDATE OR DELETE
ON TABLE_NEW REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
action_flag VARCHAR2(1);
new_image BLOB;
BEGIN
IF UPDATING
THEN
action_flag := 'U';
ELSIF DELETING
THEN
action_flag := 'D';
ELSIF INSERTING
THEN
action_flag := 'I';
END IF;
IF (:NEW.image = :OLD.image)
THEN
new_image := '';
ELSE
new_image := :NEW.image;
END IF;
INSERT INTO TABLE_AUD(action_flag, date_changed,nimage,oimage) values(new_image,:old.image);
end;
I am getting the error in line at If condition
Error: PLS-00306: Wrong number or tpyes of arguments in call '='
Please let me know if any one knows exact solution!
Thanks in advance!
Regards,
Lakshman -
Getting error while creating the variable of Schema Element type
Hi everybody,
For creating a variable of schema element type I am doing the following steps...
Select 'Variables' after right clicking on bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type Choose, I expanded the my imported schema files. And selected a element type, then click ok to create this variable... I am getting the message...
IN ORDER TO SAVE IMPORTED WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED UNDER THE CURRENT PROJECT DIRECTORY.
What is mean by that.
I have imported the schema files in project. AFter that I have imported them into the WSDL also. Now why I am getting error while creating the variable. However I can create variable directly in .BPEL file then everything is fine. And it is working also. But what is mean with the above error? Why I am not able to create variable through GUI?
Thanks.Hi,
I have this same problem this morning, and I was going crazy, until I found this webpage on the internet:
[http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process|http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]
The idea is that the jdeveloper is not very good working with directories with spaces on the directory name. If you move all your work to a directory without spaces, it will work smoothly. At least, it had worked for me.
Regards,
Nacho -
Getting Error while creating Genric Datasource
Hi,
I was try to create genric extracter where i was getting error
While creating view genric extracter where i am getting error "Entry A ZV_ZFRT does not exist in DD02L - check your entry".
My requirement is need to create extracter which is getting populated from three modules like SD,MM,FI/CO.From these three module i am using several tables and some of the tables don't have relation btween these tables as like foreign key and refrence key.
Which extracter i need to create as given scenario?
Does view will fullfill with my requirement or any other extracter.
Please some one can help me in this scenario.
Answer would be great appreciate.Hi,
Rather than writing a program write a function module. Create a structure and include all the necessary fields in the structure. Then in the function module write the logic to extract the values for those fields. While creating the datasource specify the function module and structure name.
Refer this link:
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Hope this helps.
PB -
Getting error while creating the Shopping cart.
Hi ,
I am getting error while creating the Shopping cart.
a.Error in account assignment for item 1 (Item Testing SC )
b.Duplicates of Cost Centre T10063 are defined in SRM (Item Testing SC )
Kindly provide the solutions.
Thanks,
DevTry the following in the ERP backend system:
Standard Hierarchy Inconsistencies
Issue: one Cost Center is repeating in more than one node in Cost Center Standard Hierarchy.
Update from SAP Global support, the following was the email received:
in transaction KSH3 please run both the ambiguity and completeness check(Menu -> Extras -> Check and Help functions).
If you think that your standard hierarchy is inconsistent you can check that as following:
Run transaction Extras -> Hierarchy - Master data -> Test. The result shows you if there are in consistencies. If that is the case run also Extras -> Hierarchy - Master data -> Comparison.
Alternatively, you can run the report 'RKCORRH1' (TN SE38).
Run both the Hierarchy->Master data->test and the
Hierarchy->Master data->comparison.
As stated above inconsistency message showed after Test. Run the comparison and you get a similar message.
Once the above two are run, again when you go to test, the inconsistency disappears. -
Getting error while creating users in Peoplesoft
Have a good day
new fresh instance installed , getting error while creating users in peoplesoft
SQL ERROR FUNCTION SQLExec
ERROR POSISTION 52
RETRUN 904- ORA-00904 PSWDREQUPPER invalid identifier statement, select minpsdlength
pswdreqspecial pswdreqlower
PSWDREQUPPER, PSWDREQDIGITS,ALLOWDOPRID,PSWDEXPIRESDAYS FROM PSSECOPTIONS
original statement: SELECT MINPSWDLENGTH PSWDREQSPECIAL PSWDREQLOWER PSWDREQUPPERS
PSWDREQDIGITS, ALLOWOPRID, PSWDEXPIRESDAYS FORM PSSECOPTIONS>
RETRUN 904- ORA-00904 PSWDREQUPPER invalid identifier statement, select minpsdlength
pswdreqspecial pswdreqlower
PSWDREQUPPER, PSWDREQDIGITS,ALLOWDOPRID,PSWDEXPIRESDAYS FROM PSSECOPTIONS
original statement: SELECT MINPSWDLENGTH PSWDREQSPECIAL PSWDREQLOWER PSWDREQUPPERS
PSWDREQDIGITS, ALLOWOPRID, PSWDEXPIRESDAYS FORM PSSECOPTIONS
>
How is it possible that the first statement has ALLOWDOPRID column that does not exist, where as the original statement has ALLOWOPRID which does exist?
How is it possible that the second original statement has two more errors:
PSWDREQUPPERS should be PSWDREQUPPER
FORM should be FROM.
Please provide the actual error which is being raised, without editing.
Hakan -
I am getting error in createing new partition. orr error -14074
Hi , getting error in creating new partition as "ora-14074" partition bound must collate higher than that of the last partition"
Oracle version is - 9.2.0.6
OS version - SunOSHi,
show the statment that you want to create a new parition, and did you keep in mind the highest partition bound? Anyway, the problem seems to be easy to fix:
http://www.dba-oracle.com/t_ora_14074_partition.htm -
Getting error while creating Communication capability
Hi,
I am getting this error while creating communication capability of Host. I have successfully configured the TP communication capability. Even I have tried many times after changing the names given by me during configuration.
Error creating Communication Capability
java.lang.Exception : Error -: AIP-16012: Parameter: uri is unique for object Endpoint: Error -: AIP-11052: Writing following objects: Endpoint failed due to following constraint violation: ENDPOINT_UK. UNIQUE CONSTRAINT VIOLATION: java.sql.SQLException: ORA-20003: Endpoint_UK. Unique constraint violation ORA-06512: at "B2B.TRG_ENDPOINT_INS", line 17 ORA-01403: no data found ORA-04088: error during execution of trigger 'B2B.TRG_ENDPOINT_INS'
Please tell me what is the source of error.
Thanks in advance.
Regards,
Anuj DwivediHi I am getting this error while creating communication capability --
Error creating Communication Capability
java.lang.Exception : Error -: AIP-16012: Parameter: trading Partner is unique for object Certificate: Error -: AIP-11052: Writing following objects: Certificate failed due to following constraint violation: CERTIFICATE_UK. UNIQUE CONSTRAINT VIOLATION: java.sql.SQLException: ORA-20003: Certificate_UK. Unique constraint violation ORA-06512: at "B2B.TRG_CERTIFICATE_INS", line 20 ORA-01403: no data found ORA-04088: error during execution of trigger 'B2B.TRG_CERTIFICATE_INS'
Please tell that where could be the problem?
Thanks.
Regards.
Anuj Dwivedi -
Hi All,
I have a problem in creating a trigger.
I have two fields named last_updated_by, last_updated_date which
r common to all the tables.
If the user made any change to the exiting record, the values of
the those two colums should get changed automatically with the
username and sysdate.
When I wrote a trigger its giving mutation error.
Can I update these value by stored procedure via trigger?
I heard its possible by DBMS_JOB package. Can anyone give idea?
Thanks in Advance.
Regards
Gopinath KonaYou should only get the mutating table probllem if you're doing
SELCT or DML against the table the trigger's built on. Which
suggests that you're approaching this the wrong way.
Try CREATE TRIGGER blah blah
FOR EACH ROW
:new.last_updated_by := USER;
:new.last_updated_date := SYSDATE;
END;
If that's what you are doing then the problem lies elsewhere.
Rgds, APC -
Bad bind variable error on creating trigger
hi
im trying to create a trigger on a table in Oracle and I keep gettin this error:
PLS-00049: bad bind variable 'NEW.ID'
TeamID is a primary Key, it creates the sequence fine, but i get the error on the create trigger,
CREATE TABLE TBLTEAMS
TEAMID NUMBER(5),
NAME VARCHAR2(50 BYTE),
MANAGER VARCHAR2(50 BYTE),
COSTCENTRE NUMBER(9),
PARENTTEAMID NUMBER(5)
create sequence seq_Teamsautonumber;
create trigger trg_Teamsautonumber
before insert on tblteams
for each row
begin
select seq_Teamsautonumber.nextval into :new.id from dual;
end;
any ideas?You have said
:new.idthat means you are trying to load the sequence value into a column that doesn't exist in your table.
you would need to use
:new.teamidAssuming you are trying to auto-populate the TEAMID column on your table. -
Getting error in creating JCo destination for WebDynpro
Hi Guys,
I am getting an error in creating JCo Destination under Web Dynpro Content Admin.I am deploying MSS on Netweaver portal SR1 and ecc 5.0.I am getting a message"An error has occurred: "Failed to process the request."Contact your System Admin.
When I am seeing the details:
Web Dynpro client:
HTML Client
Web Dynpro client capabilities:
User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
Web Dynpro runtime:
Vendor: SAP, Build ID: 6.4009.00.0000.20041104173322.0000 (release=630_REL, buildtime=2004-11-18:22:17:10[UTC], changelist=298578, host=PWDFM027)
Web Dynpro code generators of DC sap.com/tcwdtools:
No information available
Web Dynpro code generators of DC sap.com/tcwddispwda:
No information available
Web Dynpro code generators of DC sap.com/tcwdcorecomp:
No information available
J2EE Engine:
6.40 patchlevel 87289.311
Java VM:
Java HotSpot(TM) Server VM, version: 1.4.2_07-b05, vendor: Sun Microsystems Inc.
Operating system:
Windows 2003, version: 5.2, architecture: x86
Error stacktrace:
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:871)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateJCODestinations(NameDefinition.java:272)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.updateNavigation(NameDefinition.java:237)
at com.sap.tc.webdynpro.tools.sld.NameDefinition.wdDoInit(NameDefinition.java:144)
at com.sap.tc.webdynpro.tools.sld.wdp.InternalNameDefinition.wdDoInit(InternalNameDefinition.java:223)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:274)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:555)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:43)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:398)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.makeVisible(ViewManager.java:620)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.performNavigation(ViewManager.java:263)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:737)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:350)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Please help me guys.
ParitoshYou should post your question to the Webdynpro forum:
Web Dynpro Java -
Hi Gurus,
I'm getting an error while creating a New project.
My code looks like this:
APPS.PA_PROJECT_PUB.CREATE_PROJECT
(p_api_version_number => l_object_version_number --IN Parameter
,p_commit => l_commit --IN Parameter
,p_init_msg_list => l_init_msg_list --IN Parameter
,p_msg_count => l_msg_count --OUT Parameter
,p_msg_data => l_msg_data --OUT Parameter
,p_return_status => l_return_status --OUT Parameter
,p_workflow_started => l_workflow_started --OUT Parameter
,p_pm_product_code => g_pm_product_code --IN Parameter
,p_op_validate_flag => l_op_validate_flag --IN Parameter
,p_project_in => g_project_in --IN Parameter
,p_project_out => g_project_out --OUT Parameter
,p_tasks_in => g_task_in --IN Parameter
,p_tasks_out => g_task_out --OUT Parameter
The out put params are: p_msg_count => 1
p_return_status => E
p_workflow_started => N
g_project_out.pa_project_id => 170000000000000000000
g_project_out.pa_project_number => ^
g_task_out_rec.pa_task_id => 170000000000000000000
End process record p_proj_insert => 1
Resetting the task count variable
when I checked the API code I found this:
PA_INTERFACE_UTILS_PUB.G_PROJECt_ID := null; --bug 2471668 ( not in the project context )
PA_PM_FUNCTION_SECURITY_PUB.check_function_security
(p_api_version_number => p_api_version_number,
p_responsibility_id => l_resp_id,
p_function_name => 'PA_PM_CREATE_PROJECT',
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_function_allowed => l_function_allowed
. I think I am getting the error because of this.
Now, question.
Do I need to run the Create Project from a specific Responsibility?
because when I ran the underlined query, I fpound the final status as 'N'.
I'm a HR guy and PA is a new world for me. Any help will be appreciated.
Thanks!!
VikyYou need to find any responsibility and userid that lets you create a project using the screen.
And then in your code, you need to set your context to that resp/userid.
Hope this helps
Sandeep Gandhi -
Getting Error while creating Document object after parsing XML String
Hi All,
I have been trying to parse an XML string using the StringReader and InputSource interface but when I am trying to create Document Object using Parse() method getting error like
[Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
Please find the code below which i have been experimenting with:
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.List;
import java.util.*;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import java.io.*;
public class TestMain {
public static void main(String[] args) {
String file = "";
file = loadFileContent("C:\\Test.xml");
System.out.println("contents >> "+file);
parseQuickLinksFileContent(file);
public static void parseQuickLinksFileContent(String fileContents) {
PWMQuickLinksModelVO objPWMQuickLinksModelVO = new PWMQuickLinksModelVO();
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
StringReader objRd = new StringReader(fileContents);
InputSource objIs = new InputSource(objRd);
Document document = builder.parse(objIs); // HERE I am getting Error.
System.out.println(document.toString());
What is happening while I am using builder.parse() method ???
Thanks,
Rajendra.Getting following error
[Fatal Error] :2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
seorg.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. -
Getting Error while Creating Context at RunTime
Hi All,
I am creating the Value Node and Value Attribute at Runtime, but i am getting Error of nullpointerException.....
Following is the code Snipet:
public void wdDoInit()
//@@begin wdDoInit()
IWDNodeInfo rootnodeInfo = wdContext.getNodeInfo();
IWDNodeInfo soNodeInfo = rootnodeInfo.addChild(
"SalesOrders",
null,
true,
false,true,
false,false,
true,
null,
null,
null);
soNodeInfo.addAttribute("OrderNo","ddic:com.sap.dictionary.integer");
soNodeInfo.addAttribute("SalesDate","ddic:com.sap.dictionary.date");
soNodeInfo.addAttribute("SalesRep","ddic:com.sap.dictionary.string");
soNodeInfo.addAttribute("LongText","ddic:com.sap.dictionary.string");
IWDNode soNode = wdContext.getChildNode("SalesOrder",0);
IWDNodeElement soElement = soNode.createElement();
soElement.setAttributeValue("OrderNo",new Integer(100));
soElement.setAttributeValue("SalesDate",new Date(System.currentTimeMillis()));
soElement.setAttributeValue("SalesRep","Dhruv Shah");
soElement.setAttributeValue("Long Text","Printer Supplies");
soNode.addElement(soElement);
//@@end
public static void wdDoModifyView(IPrivateMainView wdThis, IPrivateMainView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
//@@begin wdDoModifyView
if(firstTime)
IWDTransparentContainer rootElement = (IWDTransparentContainer) view.getRootElement();
rootElement.createLayout(IWDMatrixLayout.class);
IWDNodeInfo soNodeInfo = wdContext.getChildNode("SalesOrders", 0).getNodeInfo();
for(Iterator iter = soNodeInfo.iterateAttributes(); iter.hasNext();)
IWDAttributeInfo soAttrInfo = (IWDAttributeInfo)iter.next();
IWDLabel label = (IWDLabel)view.createElement(IWDLabel.class,soAttrInfo.getName() + "Label");
label.setText(soAttrInfo.getName());
label.createLayoutData(IWDMatrixHeadData.class);
label.setDesign(WDLabelDesign.LIGHT);
label.setLabelFor(soAttrInfo.getName()+ "Input");
rootElement.addChild(label);
IWDInputField ioField = (IWDInputField) view.createElement(IWDInputField.class,soAttrInfo.getName()+"Input");
ioField.createLayoutData(IWDMatrixData.class);
ioField.bindValue(soAttrInfo);
rootElement.addChild(ioField);
//@@end
So can anybody help me out......
Regards,
Dhruv ShahHi,
before this IWDNodeElement soElement = soNode.createElement(); line
check soNode is null
Pl post the entire stack.
Regards
Ayyapparaj -
Getting Error while creating Calculation view.
Hi Expert,
I was trying to create one simple calculation view using SQL script but getting below error.
/********* Begin Procedure Script ************/
BEGIN
create type var_out1 as table (ebeln varchar(10),menge decimal);
var_out = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );
var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );
var_out2 - CE_UNION_ALL (:var_out1,:var_out2);
END
/********* End Procedure Script ************/
I thought , i might need to declare a table type for output table var_out1 and var_out2. I tried by declaring table like below couldn't get any success.
create type var_out1 as table (ebeln varchar(10),menge decimal);
create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);
error:
Message :
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: CREATE TYPE is not allowed in SQLScript: line 5 col 2 (at pos 277)nSet Schema DDL statement: set schema "SAPEH2"nType DDL: create type "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" as table ("EBELN" VARCHAR(10), "AEDAT" DATE, "MENGE" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc" ( OUT var_out "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ***********/ n BEGIN n n create type var_out1 as table (ebeln varchar(10),menge decimal);n create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);n n t var_out = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );n t var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );n t var_out2 - CE_UNION_ALL (:var_out1,:var_out2);nnEND /******** End Procedure Script ************/n
Could you please help me to understand the cause of this?
Thanks,
GirdhariHi Lars,
Thanks for the reply.
If i understood correctly , you are suggesting to create var_out1 and var_out2 in output ? If yes can you please guide me on how to do that? I tried but did not find anything suitable to declare table.
Thanks,
Girdhari
Maybe you are looking for
-
Hi SAP Gurus, I have created LC in VX11N. When I am assigning the LC while creating the sale order, in the LC master, the open value is still remaining the same. It is not getting adjusted against the sale order value. Also, in the sale order LC scre
-
I'm running 10.4.11 and had Firefox 3.6.something. I installed the Firefox update, assuming that if it was not compatible with my OSX version, it wouldn't install. First mistake, huge. I need to go back to my previous version. I don't have system res
-
Download/install error in CC App
Hello, Whenever I try to download & install an app from the CC App installed on my Windows 7 64-bit laptop, I get this undefined download error (image attached). The only way to fix this is to re-install the CC app then go and try again, which then
-
While app run with foregin vendor
hai gurus, in app running T code F110 payment to foreign vendors in edit propsal showing error *error in creating payment document , read job log*
-
Freezes after playing video playlist
My 60G freezes after playing my video playlist. I have to wait until the battery runs down then plug it in to reboot it for it to work again. I took it back to Best Buy where I purchased it, and they installed the latest update. They claimed this wou