Not getting any value in my method
Hi,
I wnat to use attributes value Company code in my custom method in the BUS ZZBUS2081 . company code is key field of another BUS BUS0002. For that I am using swc_get_element CONTAINER 'CompanyCode' COMPANYCODE. but when I am executing BUS zzbus2081,attributes value is populated but i am not getting this value in my custom method. please help.
You can try to do some thing like this
1. First if you want to access the key element of the BOR then first import the instantiated BOR from which you want to access the attributes.
In your case it is BUS0002
DATA: lv_obj type swc_object.
swc_get_element container '<name of the instantiated BOR>' lv_obj.
2.once you have the instantited bor element in the Mehtod then make use of the macro
SWC_GET_PROPERTY
please check the below snippet
swc_get_element container '_Workitem' lv_wi_object.
swc_get_property lv_wi_object 'Workitemid' lv_wiid.
Similar Messages
-
OWHS table not getting any value in PLD
I am trying to make a pld in which i want to pull the database table owhs and place the warehouse address i am not getting any value in the PLD however there is adress in the ware house field still its not getting me any result
Please help
Regards,
manishHi Manish....
Even if you get the OWHS table you wont get the address format as you desire. That is complete concatenated address. It will be like city, street, country like that.....
Regards,
Rahul -
Insane object error(The string control not getting any values)
In LabVIEW 8.2 i am using the string control to get the text from the users, and initially there was no problem at the time of development it works perfectly, after building the installer,
these string controls are not getting any string input, it seems like a disabled one, but actually it was not disabled, when we try to click over that through the mouse,
that text inputting cursor was not blinking over there,I screen looks as below, some error messages are thrown from the LabVIEW like insane object error, even
now there was the same problem in the source code itself, what to do rectify this. Only this part generates error all other remaining screen panels are working perfectly.This kind of problem can be a pain to locate. This often occurs when the wiring to or from a control or indicator is bery long, convoluted and hidden inside of structures or behind things. So first, you need to identify which VI specifically is generating the error by individually saving VIs and subVIs until you find the one that is generating the error. Now try and remember the last time that VI saved without a problem and what edits you made since then. Places where I have had this occur was when I drag-copied a control and a couple VIs into a small structure. Sometimes the wires would seem to conect up properly, but when I tried to save the VI I got this error. The solution was to disconnect all the wires associated with the VIs I had copied and rewire them.
Also, can you post the VI that is doing it? Shouldn't need the subVIs for this...
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Object - MLST_NETW container not getting the values?
Hi,
I created a custom FM for the object - MLST_NETW and event STARTED
and in the workflow container I created Element for this object - by selecting Obect type - MLST_NETW
Now the problem is - When we do status change in tcode - CJ20N it is triggering the custom worklfow but in the worklfow container it is not getting any values. Container fields are empty. I need to get the project defination field value to the workflow.
Can any one tell me what could be wrong?
Thanks in advance.
M.Hi Murali,
Yes. Binding for event to workflow not defined.
For that, press Ctrl + F8 in the workflow template then it will take you to verision dependent tab. There you can find the start events tab.
Here only you entered the Business object and event. Right? So there one button is there for binding. CLick on it and check whether event to workflow binding has done or not.
Event container EVT_OBJTYPE should binded with your workflow business object.
Thanks. -
Table TZC37 field STATU search help drop down is not pulling any values?
Hi,
In table TZC37 field STATU(Contract status) search help is not pulling any values( drop down list when execute the table values) .. but the table has values for this field.
And also I checked in the configuration, this field has values in the config also. But still the search drop down is not getting any values.
Can any one knows what could be the reason and how to solve this issue?
I am using this field in transaction FNVS when searching loan number based on Status field.
Thanks for your time.
Murali.Hi Micky,
I am using this in transaction FNVS (when searching Loan number based on Status field( this is Custom Search help added this field ( VDARL- SSTATI )
Value table for this data type - STATI is TZC37.
While getting records from these tables(TZC37 or VDARL ) I am trying to use drop down values for searching data using this field SSTATI. But its not showing any drop down values. It supposed to show what ever values exists for this field right?
I checked in the cofig of this table and values exists for this field.
Any help appreciated.
Thanks. -
Not getting attribute values in IPC routines Scenerio R/3 B2B using AP 7.0
Hi,
Our Scenerio is using ISA R/3 B2B using AP 7.0. I have developed IPC routines but when i debug my routines in SM53 I notice that I'm not getting any attribute value except for VKORG.
I'm pasting the code below. Please help me if I have to implement some BADI or do something more to get the attribute values.
I have defined the attributes properly in Routine assignment in tcode /n/sapcnd/ueass
userexitlogger.writeLogDebug("*requirment 901*" + "Plant = "plant"||ANZ_MONATE ="+ item.getAttributeValue(ANZ_MONATE_STR).toString()"||ANZ_JAHRE="item.getAttributeValue(ANZ_JAHRE_STR).toString()"||MATKL="item.getAttributeValue(MATKL_STR).toString()"||PSTYV="item.getAttributeValue(PSTYV_STR).toString()"||VKORG="item.getAttributeValue(VKORG_STR)"||PRSFD="item.getAttributeValue(PRSFD_STR)"||MVGR2="item.getAttributeValue(MVGR2_STR).toString()"||PRSDT="item.getAttributeValue(PRSDT_STR).toString()"||AUDAT="item.getAttributeValue(AUDAT_STR).toString());
I would reward points for help
Many Thanks n regards,
DipenderI would like to go through each Value of the xml file and give each Value a name
e.g. from the xml file <VentCount Value=1> Retreive the value above and giving it the name VentCount. Then I would beable to use the name vent count as follows:
setVentCount() //My own method can use as follows: setVentCount(VentCount); I would like to do his for ever value, each value with a specific name -
JPA Error:Could not get a value to be injected from the factory
HI friends ,
I am trying to replicate the example JPAEXample01 using JPA in CE1 from the blogs written by
Sabine Heider/Adrian Görler.
During the testing of the method create employee i am getting the following error.
"Could not get a value to be injected from the factory."
I tried couple of examples using the above process, still held up with same error.
Any pointers to trouble shoot this ?
Thanks in advance
Chandra DasariHI Isaias Cristiano Barroso,
There are lot of enries most of them pertaining to properties set to yes or no.
out of which therre are tow errors. the log is as follows
Message Info: Failed (javax.management.MBeanPermission,#[:j2eeType=trace,name=EndToEndCentralMBean,],isActive,getGuidByName,getTraceLevelByName,getTraceLevelByName,importTrace,isFileExistsLocally,removeTraceFile)java.lang.reflect.InvocationTargetException
Failed (javax.management.MBeanPermission,*,DISPLAY)java.lang.reflect.InvocationTargetException
category: com.sap.security.core.role.PermissionData
Location:com.sap.security.core.role.PermissionData.get(ClassLoader)
Frankly the above log is above my understanding ,Prob it may help to you undertand my the issue
Thanks once again -
Standar ws ProjectByPartyQueryResponse_In is not returning any values
Hi gurus,
I'm trying to use the standar webservice ProjectByPartyQueryResponse_In in our landscape in order to get all the projects related to the person responsible for the project but the web service is not returning any values.
When I execute the service -using soapui- with the following values (or any other value for that matters):
<PartyID>20000143</PartyID>
<PartyRoleCode>ZA</PartyRoleCode>
The web service always returns :
<Log>
<BusinessDocumentProcessingResultCode>5</BusinessDocumentProcessingResultCode>
<MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
<Item>
<TypeID>002(ECC_SE_COMMON)</TypeID>
<SeverityCode>3</SeverityCode>
<Note>No records returned for ZA 0020000143</Note>
</Item>
</Log>
The party Id exists and also de party role code and there is at least one project that has that party with that role. I'm sure because I use other web service to find a project by id and in the result the project has the <Party> section with those values.
I was looking for solutions, notes, threads in forums with no success, then i decided to debug the webservice and I did find the following line in the webservice code.
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = party_id AND
obtyp = 'PDN'.
when that line executes the select always returns 0 values, then I look in the table IHPA using the SE16 without any filter and I found that my records exists!! but the select does not get it. I was wondering why the select is not working and then I filter the data in the SE16 using the same values that the query does
for example:
PARVW= ZA
PARNR = 20000143
OBTYP = PDN
And I was surprised when the SE16 did not found any value even I was seeing in the previous screen with no filters!!!! And I supouse thats why the webservice is not working. I started making filters one by one, for example firts filtering just de PARVW = ZA and works, but when I filter just the PARNR = 20000143 the SE16 can't find any value, just when I put an * at the end of the number the SE16 returns all the values expected, Im guessing that the fields in the database has blanks at the end but this is a standar table and a standar program.
Have any of you had the same problem? is there anything that I can do? does anyone knows if this is an unkown bug? becaus I could'n find any note on the marketplace.
Any help would be appreciated.
Gustavo BalboaHi!
The problem were solved but not using the Badi, because the badi only let you change the value of the var party_id and that var is declared as PARNR (of type numeric with length 10), and no mater wat you do the two 00 can´t be removed.
We solved the problem with an enhancement point in the code at the method "party_get_data", look at the beginin and at the end. We just change the type of var used for party_id.. now we use a CHAR one insted the numeric used by the original code.
And we repeat the select...
Thank you very much for the help.
METHOD party_get_data.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, Start A
$$-Start: (1)----
$$
ENHANCEMENT 1 ZPARTY_GET_DATA. "active version
DATA : WA_PARNR TYPE I_PARNR.
DATA : WA_CHPAR(10) TYPE C.
ENDENHANCEMENT.
$$-End: (1)----
$$
DATA : temp_object_number TYPE ihpa-objnr,
field1 TYPE char50,
field2 TYPE char50,
field_role TYPE char50,
field_party TYPE char50,
st_object_number TYPE TABLE OF bapiprexp.
DATA : it_data TYPE TABLE OF st_data,
wa_data LIKE LINE OF it_data,
itab TYPE TABLE OF st_data,
wa LIKE LINE OF itab,
wa_project_details LIKE LINE OF project_details,
null.
Select Object number based on input Party and Role
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = party_id AND
obtyp = 'PDN'.
Select Project ID based on input Object number
LOOP AT it_data INTO wa_data.
SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
WHERE objnr = wa_data-pspid. "#EC CI_NOFIELD
ENDSELECT.
MOVE-CORRESPONDING wa_data TO wa.
APPEND wa TO itab.
ENDLOOP.
IF sy-subrc <> 0.
field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
CONCATENATE field_role role_code_external INTO field1.
CONCATENATE field_party party_id INTO field2.
MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ELSE.
MESSAGE s082(ops_se_prs) INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ENDIF.
LOOP AT itab INTO wa.
MOVE-CORRESPONDING wa TO wa_project_details.
APPEND wa_project_details TO project_details.
ENDLOOP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(2) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, End A
$$-Start: (2)----
$$
ENHANCEMENT 2 ZPARTY_GET_DATA. "active version
WA_CHPAR = party_id.
SHIFT WA_CHPAR BY 2 PLACES.
CLEAR party_return.
REFRESH party_return.
SELECT objnr INTO TABLE it_data FROM ihpa
WHERE parvw = role_code AND
parnr = WA_CHPAR AND
obtyp = 'PDN'.
Select Project ID based on input Object number
LOOP AT it_data INTO wa_data.
SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
WHERE objnr = wa_data-pspid. "#EC CI_NOFIELD
ENDSELECT.
MOVE-CORRESPONDING wa_data TO wa.
APPEND wa TO itab.
ENDLOOP.
IF sy-subrc <> 0.
field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
CONCATENATE field_role role_code_external INTO field1.
CONCATENATE field_party party_id INTO field2.
MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ELSE.
MESSAGE s082(ops_se_prs) INTO null.
CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
TABLES
return = party_return.
ENDIF.
LOOP AT itab INTO wa.
MOVE-CORRESPONDING wa TO wa_project_details.
APPEND wa_project_details TO project_details.
ENDLOOP.
ENDENHANCEMENT.
$$-End: (2)----
$$
ENDMETHOD. -
JAPEXample01 published in sdn:error Could not get a value to be injected
HI friends ,
I am trying to replicate the example JPAEXample01 using JPA in CE1 from the blogs written by
Sabine Heider/Adrian Görler.
During the testing of the method create employee i am getting the following error.
"Could not get a value to be injected from the factory."
I tried couple of examples using the above process, still held up with same error.
Any pointers to trouble shoot this ?
Thanks in advance
Chandra Dasari.HI Pritya Ranjan,
Let me know the entities and their relations ships you are using for quicker response.
To know the proper error, use the path as mentioned
nwa->problem management ->logs & traces->locks.
Email the error code,
The issue might be because of some many probabilities mentioned below.
Point no 1
Are you using Named queries : If so check the queries syntax, the syntax used here is different from regulat sql queries.
Point no 2:
Are you using Java DIctionary or generic db and connecting to max db?
check this part also
Point no 3:
Check your connection profile parameters:
Point no 4 :
Check the data-source-alias,persistence.xml and data-source.xml parameters..
Beacuse i trouble shooted a lot on JPA's and found why the typical error's occurs.
Regards
chandra dasari -
XMLTABLE function not returning any values if xml has attribute "xmlns"
Hi,
XMLTABLE function not returning any values if xml has attribute "xmlns". Is there way to get the values if xml has attribute as "xmlns".
create table xmltest (id number(2), xml xmltype);
insert into xmltest values(1,
'<?xml version="1.0"?>
<emps>
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>');
insert into xmltest values(2,
'<?xml version="1.0"?>
<emps xmlns="http://emp.com">
<emp empno="1" deptno="10" ename="John" salary="21000"/>
<emp empno="2" deptno="10" ename="Jack" salary="310000"/>
<emp empno="3" deptno="20" ename="Jill" salary="100001"/>
</emps>');
commit;
SELECT a.*
FROM xmltest,
XMLTABLE (
'for $i in /emps/emp
return $i'
PASSING xml
COLUMNS empno NUMBER (2) PATH '@empno',
deptno NUMBER (3) PATH '@deptno',
ename VARCHAR2 (10) PATH '@ename',
salary NUMBER (10) PATH '@salary') a
WHERE id = 1;
The above query returning results but below query is not returning any results because of xmlns attribute.
SELECT a.*
FROM xmltest,
XMLTABLE (
'for $i in /emps/emp
return $i'
PASSING xml
COLUMNS empno NUMBER (2) PATH '@empno',
deptno NUMBER (3) PATH '@deptno',
ename VARCHAR2 (10) PATH '@ename',
salary NUMBER (10) PATH '@salary') a
WHERE id = 1;
how to get rid out of this problem.
Thanks,
-ManiAdded below one in xmltable, its working now.
XmlNamespaces(DEFAULT 'http://emp.com') -
Communication Channel not getting any adapter
I am getting this error when i goto the ID and refresh the cache, but when i goto the SXI_CACHE it shows me the green light.
Unable to determine the name of the central Adapter Engine from the System Landscape Directory at this time. Notifications to the central Adapter Engine are therefore listed using the technical name of the Adapter Engine. This is usually structured as follows: af.<SAP System ID>.<Name of application server>
I am not getting any adapter in Communication Channel also getting java.LangNullPointer Error.
can somebody please help me as quickly as possible.
If possible can somebody please reply me the post installation of XI with complete screen shots.
on muiqbal2008 at gmail dot comThanks for the information sarvesh, i won't add the email from next time.
ok i am getting these erros.
1) in ID when i am trying to refresh the Cache.
com.sap.aii.ib.server.abapcache.CacheRefreshException: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.01.sapserver, string], target element type: SAP_BusinessSystem)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:488)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:140)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:370)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:294)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.processHTTPRequest(CacheRefreshRequest.java:142)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.handleHTTPRequest(CacheRefreshRequest.java:103)
at com.sap.aii.ibdir.web.abapcache.HmiMethod_CacheRefresh.process(HmiMethod_CacheRefresh.java:67)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:86)
at com.sap.aii.utilxi.hmis.sbeans.HmisLocalLocalObjectImpl10.process(HmisLocalLocalObjectImpl10.java:144)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:290)
at com.sap.aii.utilxi.hmis.web.workers.HmisExternalClient.doWork(HmisExternalClient.java:75)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
com.sap.aii.ib.bom.landscape.SLDElementNotFoundException: Unable to find an associated SLD element (source element: SAP_XIIntegrationServer, [CreationClassName, SAP_XIIntegrationServer, string, Name, is.01.sapserver, string], target element type: SAP_BusinessSystem)
at com.sap.aii.ib.server.sldquery.SLDQuery.dammiIlMioCentralAdapterFramework(SLDQuery.java:77)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:202)
at com.sap.aii.ibdir.server.abapcache.content.CacheCPA.addContent(CacheCPA.java:140)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:370)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.addContent(CacheRefreshRequest.java:294)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.processHTTPRequest(CacheRefreshRequest.java:142)
at com.sap.aii.ibdir.server.abapcache.CacheRefreshRequest.handleHTTPRequest(CacheRefreshRequest.java:103)
at com.sap.aii.ibdir.web.abapcache.HmiMethod_CacheRefresh.process(HmiMethod_CacheRefresh.java:67)
at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169)
at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178)
at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:86)
at com.sap.aii.utilxi.hmis.sbeans.HmisLocalLocalObjectImpl10.process(HmisLocalLocalObjectImpl10.java:144)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:290)
at com.sap.aii.utilxi.hmis.web.workers.HmisExternalClient.doWork(HmisExternalClient.java:75)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496)
at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
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(SingleThd.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
2) I am getting this error when i am trying to refresh the cache
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'http://sapserver:50100/CPACache/refresh?mode=full'. L...
CPA cache refresh (mode=full) successfully executed in 2297 milliseconds.
^
Although if i check the cache via SXI_CACHE it shows me the green light. -
Function Does Not Return any value .
Hi ,
I am wrtting the below funtion without using any cursor to return any message if the value enters by parameters
does not match with the value reterived by the function select statement or it does not reterive any value that
for the parameters entered .
E.g:
CREATE OR REPLACE FUNCTION TEST_DNAME
(p_empno IN NUMBER,p_deptno IN NUMBER)
RETURN VARCHAR2
IS
v_dname varchar2(50);
v_empno varchar2(50);
V_err varchar2(100);
v_cnt NUMBER := 0;
BEGIN
SELECT d.dname,e.empno
INTO v_dname ,v_empno
FROM scott.emp e , scott.dept d
WHERE e.empno=p_empno
AND d.deptno=p_deptno;
--RETURN v_dname;
IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN IF v_dname is NULL THEN
v_err :='Not Valid';
RETURN v_err;END IF;
ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN IF v_dname is NOT NULL THEN
RETURN v_dname; END IF;
ELSE
RETURN v_dname;
END IF;
END;
Sql Statement
SELECT TEST_DNAME(1234,30) FROM dual
AND IF I enter a valid combination of parameter then I get the below error :
e.g:
SQL> SELECT TEST_DNAME(7369,20) FROM dual
2 .
SQL> /
SELECT TEST_DNAME(7369,20) FROM dual
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "SCOTT.TEST_DNAME", line 24
Where I am missing .
Thanks,Format you code properly and look at it:
CREATE OR REPLACE
FUNCTION TEST_DNAME(
p_empno IN NUMBER,
p_deptno IN NUMBER
RETURN VARCHAR2
IS
v_dname varchar2(50);
v_empno varchar2(50);
V_err varchar2(100);
v_cnt NUMBER := 0;
BEGIN
SELECT d.dname,
e.empno
INTO v_dname,
v_empno
FROM scott.emp e,
scott.dept d
WHERE e.deptno=d.deptno
AND e.empno=p_empno
AND d.deptno=p_deptno;
--RETURN v_dname;
IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN
IF v_dname is NULL
THEN
v_err :='Not Valid';
RETURN v_err;
END IF;
ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
THEN
IF v_dname is NOT NULL
THEN
RETURN v_dname;
END IF;
ELSE
RETURN v_dname;
END IF;
END;
/Both p_empno and p_deptno in
SELECT TEST_DNAME(7369,20) FROM dualare not null. So SELECT will fetch some v_dname and v_empno. Since p_empno and p_deptno iare not null your code will go inside outer IF stmt and will execute its THEN branch. That branch consist of nothing but inner IF statement. And since v_dname is NOT NULL it will bypass that inner IF and exit the outer IF. And there is no RETURN stmt after that outer IF. As a result you get what you get - ORA-06503. Also, both if and elsif in your code check same set of conditions which makes no sense.
SY. -
Calling conn.close() not getting any response
Hi All,
I am using ActiveMQ
I am facing a unique issue, my code calls conn.close() method. But it didnt get any response fro 2 days, I think at least I should get a time out exception, isnt it?
To give you more details my applicaiton which calls this close() is in one network (DMZ) and activemq is running on different (internal) network.
Can somebody please reply ASAP, as I am not getting any clue to resolve this.
Thanks and Regards
Raaghu.KThe SAP XML Parser was not able to parse the reponse. So - I had to read the data on my own.
-
Interfacing S7-300 PLC with OPC variable not having any value
Hi, i am trying to interface a Seimens S7-300 PLC with LabVIEW with the MPI protocol. I followed the webcast "Connect to any PLC using LabVIEW". There are 2 problems that i face,
1. There is a Timeout Dialog Box which ofcourse times out the connection to the PLC. This allows a max time of 30seconds. Can i increase the Time out in any way?
2. When i create a variable as shown in the webcast, it does not have any value nor does it have a time stamp value as the variable in the webcast. I am uploading a picture here to make it clear. I wanted to know why does this happen? It does display the system variable values as being valid and also updates them.
Thanks.
LabVIEW 8.2,8.6,2009...still learning
Attachments:
bolen input error.JPG 106 KBHi David,
This is the webcast i am talking about
http://zone.ni.com/wv/app/doc/p/id/wv-263
I am using LabVIEW 8.6, NI OPC Servers to connect with an S7-300 PLC using the MPI protocol. Following the procedure outlined in the webcast:
Opened OPC servers:
1.Created a Channel.
2.Cose the device driver.
3. Set the serial communcations settings(Baudrate etc) according the configuration settings of the PLC.
After doing step 3 i get a dialog box asking me to set the time out period of the PLC (which i set to 30 seconds i-e the max that was allowable). I also set the write attemps before failure(which i set to 8).
4. Added a Device and gave it an arbitrary name.
5. Chose the device model.
6. Set the Device ID to 1.
Than i added a tag. Gave the name Input, the address of the input and all(which was accepted by the OPCServer).
After creating a tag when i open the OPC Client, all system variables are displayed as being valid and also get updated but the tag i created has no value and there is not updating taking place as indicated by the time stamp. I will change the tag and also see if i can upload a video of exactly what i am doing.
Thanks for your reply.
LabVIEW 8.2,8.6,2009...still learning -
Hi - Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please suggest how to over come this problem.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Did you make sure that your security software isn't blocking the pop-ups?
Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
*http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
Maybe you are looking for
-
Built-in iSight not detected in main account but ok in another one
Hello, After I have updated my macbook pro to MAc OS X Lion from MAC OS X 10.6.8, the webcam worked ok for one day, and then for unknown reason, I couldn't use it any more. The error occue with both two apple apps I have tested, Photobooth and faceti
-
LR3 Web Gallery Sequence Numbering bug?
Anyone else getting this problem with sequence numbering in the web HTML templates? Basically, as you jump through photos the photo number is always stuck on #1, never changes when you go to the next photo - should go 1, 2, 3, 4, 5... I just sent a b
-
Print dialog box appears unasked when user opens Firefox and starts browsing. Occasionally comes back on but usually stays away after it's been closed a few times.
-
Designer/2000 v2.1 with Rdbms 8.0.5 ,OAS 4.0 on NT
Hi, I installed Oracle server v8.0.5( enterprise edition) and Application server 4.0 on Win NT. It works fine. But when I try to install designer/200 v 2.1 or developer/2000 v2.1( server edition) on top , the installation stops in the middle by givin
-
Why do photos flicker when imported and played in FCP?
When I import certain photos (some, but not all), they flicker in FCP in various parts of the image, and they also have a funny flickering when played back on QT. I have scanned without any particular precaution. I was wondering if anyone could help