Accessing Deeply Nested Value
Thread followed on from [here|Access to SRM Variable;
Hi Folks,
Following on from a thread I started in the SRM forum, I now have access to a very deeply nested variable see [this|http://img59.imageshack.us/i/variable.png/] image for path.
How can I change the value in this variable using OO code?
All help is much appreciate,
Colm
Uwe,
I did not have access to that particular instance but I was able to use your help to find the values that I needed to change. I needed to create a post-exit enhancement on my WDDOINIT method and implement the following code. Thank you very much.
DATA: lo_wd_child_node TYPE REF TO if_wd_context_node,
lo_root_node TYPE REF TO if_wd_context_node,
lo_context TYPE REF TO if_wd_context.
lo_context = wd_context->get_context( ).
lo_root_node = lo_context->root_node.
lo_wd_child_node = lo_root_node->get_child_node( name = 'ACTIVE' ).
lo_wd_child_node->set_attribute( EXPORTING name = 'ACTIVE_LOC'
value = '02' ).
Edited by: Colm Gavin on Mar 9, 2011 12:46 PM
Similar Messages
-
Problem while trying to load or access OracleTypes.CURSOR value
Hi all,
I configured my datasource as follow
URL: jdbc:oracle:thin:@192.10.1.230:1521:interp
Driver Class Name: oracle.jdbc.xa.client.OracleXADataSource
an my namedquery is
+@NamedNativeQuery(name = "generaFoliosRenCot",+
*+ query = "{ ? = call pkg_renovaciones.fn_rencot_auto(:ageid) }",+*
*+ resultClass = FoliosGenerados.class,+*
*+ hints = { @javax.persistence.QueryHint(name = "org.hibernate.callable", value = "true") })+*
I'm using
<org.springframework.version>3.0.5.RELEASE</org.springframework.version>
<org.hibernate.version>3.5.4-Final</org.hibernate.version>
<com.oracle.jdbc.version>10.2.0.4.0</com.oracle.jdbc.version>
Weblogic 10.3.4
when i run my app on junit its run fine
but when i run my app on weblogic server the problem is when i call a function on oracle 9i the error is:
+*[02/08/2011 10:00:00 ERROR ServiceThrowsAdvice:doRecoveryActionDataAccess:26] - :::: ** ::::Problem while trying to load or access OracleTypes.CURSOR value; nested exception is org.hibernate.HibernateException: Problem while trying to load or access OracleTypes.CURSOR value*+
+*org.springframework.orm.hibernate3.HibernateSystemException: Problem while trying to load or access OracleTypes.CURSOR value; nested exception is org.hibernate.HibernateException: Problem while trying to load or access OracleTypes.CURSOR value*+
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:679)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at mx.grupocp.inter.model.dao.impl.FoliosGeneradosDaoImpl.generaFoliosRenCot(FoliosGeneradosDaoImpl.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy206.generaFoliosRenCot(Unknown Source)
at mx.grupocp.inter.controller.scheduler.jobs.impl.ExecuteShellsImpl.generaFoliosRenovCot(ExecuteShellsImpl.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:80)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.lang.Thread.run(Thread.java:619)
*+Caused by: org.hibernate.HibernateException: Problem while trying to load or access OracleTypes.CURSOR value+*
at org.hibernate.dialect.Oracle9Dialect.registerResultSetOutParameter(Oracle9Dialect.java:308)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1609)
at org.hibernate.loader.Loader.doQuery(Loader.java:717)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.doList(Loader.java:2294)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2172)
at org.hibernate.loader.Loader.list(Loader.java:2167)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:316)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1832)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:179)
at mx.grupocp.inter.model.dao.impl.FoliosGeneradosDaoImpl$1.doInHibernate(FoliosGeneradosDaoImpl.java:34)
at mx.grupocp.inter.model.dao.impl.FoliosGeneradosDaoImpl$1.doInHibernate(FoliosGeneradosDaoImpl.java:29)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
... 37 more
+*Caused by: java.lang.IllegalAccessException: Class org.hibernate.dialect.Oracle9Dialect can not access a member of class oracle.jdbc.driver.OracleTypes with modifiers ""*+
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:349)
at java.lang.Class.newInstance(Class.java:308)
at org.hibernate.dialect.Oracle9Dialect.registerResultSetOutParameter(Oracle9Dialect.java:306)
... 50 more
please help meHi,
Have a look at this tread:
Re: Problems of hibernate calling oracle stored procedure
Regards peter -
Flex Remoting - Deeply Nested ArrayCollections not Stongly Typed
I have a Flex 3 app which uses remoting. All works relatively well except for the following...
I have a deeply nested object graph as follows:
( btw: each VO uses [RemoteClass(alias="com.mypackage.xxx")] meta tags )
The main class is called "BrandVO" which contains an ArrayCollection on ProductLineVOs.
each "ProductLineVO" has an ArrayCollection of "ProductVO"s
each "ProductVO" has an ArrayCollection of "CaseVO"s, "UseVO"s, and "IngredientVO"s.
Pseudo Graphically:
+-BrandVO
+----ProductLineVO
+-------ProductVO
--------------CaseVO
--------------UseVO
--------------IngredientVO
+-------ProductVO
--------------CaseVO
--------------UseVO
--------------IngredientVO
+----ProductLineVO
+-------ProductVO
--------------CaseVO
--------------UseVO
--------------IngredientVO
+-------ProductVO
--------------CaseVO
--------------UseVO
--------------IngredientVO
...etc...
When I make the remoting call (AMF3) , I properly recieve back an ArrayCollection of BrandVOs...
(Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.BrandVO(@1234etc)
Expanding each BrandVO shows properly typed nested ProductLineVO elements...
(Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.ProductLineVO(@1234etc)
Expanding each ProductLineVO shows properly typed nested ProductVO elements...
(Debugging shows each item in the ArrayCollection [0]...[n] has a Value com.mypackage.ProductVO (@1234etc)
The problem then is when expanding each ProductVO, the nested CaseVOs, UseVOs, and IngredientVOs ( although they contain the proper data) are typed generically.
(Debugging CaseVOs shows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
(Debugging UseVOsshows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
(Debugging IngredientVOs shows each item in each ArrayCollection [0]...[n] has a Value Object (@1234etc )
I don't know why all the other VO's get typed correctly but CaseVOs, UseVOs, and IngredientVOs fail to be stongly typed and default to generic Objects.
I have checked the returning remoting call data ( with ServiceCapture ) and the objects coming back do have the correct types. The problem seems to be at the Flex level.
Anyone know why this would happen?
Is there a limit to object grpah depth beyind which objects get typed generically?
I thought perhaps is was because the ProductVO has 3 ArrayCollections ( CaseVOs, UseVOs, and IngredientVOs ), so I tried removing all but CaseVO and had the same problem... CaseVO was typed as Object.
Any help/thoughts would be gratly appreciated.
~eHey Michael,
Thank you for the quick response and helpful suggestion.
Sure enough, if I just call for a CaseVO, it still is generically typed as an Object; so your theory that Flex cannot match up the RO and VO seems to be the correct. I have reviewed the code however and can't see any discrepancies. If you have a moment, can you take a look at the following and see if any errors seem evident:
The Flex VO
==========
package com.mypackage.vo
[RemoteClass(alias="com.mypackage.admin.vo.CaseVO")]
public class CaseVO
public var caseId:int;
public var orderNumber:String;
public var productId:int;
public var qty:int;
public var caseWeight:Number;
public var measurementUnitId:int;
public function CaseVO()
The Romote Java RO
Notes:
1. The RO package is different then the VO package ( there is an extra "admin" dir component )
but that shouldn't matter should it?
( since the proper mapping is declared in the "alias=" of the VO )
2. I tried it w/o the serialVersionUID proerty and method
3. I tried it w/o the equals and hashCode methods
=================================================
package com.mypackage.admin.vo;
public class CaseVO implements Serializable
public static final long serialVersionUID = 1L;
private int caseId;
private String orderNumber;
private int productId;
private int qty;
private float caseWeight;
private int measurementUnitId;
public static long getSerialVersionUID() { return serialVersionUID;}
public int getCaseId() { return caseId; }
public void setCaseId(int caseId) {this.caseId = caseId;}
public String getOrderNumber() {return orderNumber;}
public void setOrderNumber(String orderNumber) {this.orderNumber = orderNumber; }
public int getProductId() {return productId;}
public void setProductId(int productId) {this.productId = productId;}
public int getQty() { return qty;}
public void setQty(int qty) {this.qty = qty;}
public float getCaseWeight() {return caseWeight; }
public void setCaseWeight(float caseWeight) {this.caseWeight = caseWeight; }
public int getMeasurementUnitId() {return measurementUnitId;}
public void setMeasurementUnitId(int measurementUnitId) { this.measurementUnitId = measurementUnitId; }
public boolean equals(Object other)
if (this == other) return true;
if ( !(other instanceof CaseVO) ) return false;
final CaseVO case = (CaseVO) other;
if ( case.getCaseId() != getCaseId() ) return false;
if ( !case.getOrderNumber().equals(getOrderNumber()) ) return false;
return true;
public int hashCode()
int result;
result = getOrderNumber().hashCode();
result = 29 * result + getCaseId();
return result;
Thanks,
~e -
How can I access the Attribute Values from the Search Region
Hi all,
I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
I don't know how can I access the data from the Search Region.
Please Help.
Regards,
Ranjithyou could access the parameters entered in search region by the user as follows:
You can get handle to the value entered by the user using queryListener method in af:query.
You can intercept the values entered as described
public void onQueryList(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
for ( Criterion c : searchList) {
if (c instanceof AttributeCriterion ) {
AttributeCriterion a = (AttributeCriterion) c;
a.getValues();
for ( Object o : a.getValues()){
System.out.println(o.toString());
//call default Query Event
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
public void onQueryTable(QueryEvent queryEvent) {
// The generated QueryListener replaced by this method
//#{bindings.ImplicitViewCriteriaQuery.processQuery}
QueryDescriptor qdes = queryEvent.getDescriptor();
//get the name of the QueryCriteria
System.out.println("NAME "+qdes.getName());
invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
FacesContext fctx = FacesContext.getCurrentInstance();
ELContext elctx = fctx.getELContext();
ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
me.invoke(elctx, new Object[]{queryEvent});
Thanks,
Navaneeth -
Get access to a value in a running while (with C++)
Good morning,
I have a serious problem. I run a Vi with a while loop (for acquisition). In this loop, there are many values. I want to access to them while the loop is running. The problem of my VI is it does not give me the value until the loop has not finished. But I want to acces to it before the end.
The ultimate objective is to access to this value in a C++ code. In this code, I implemented threads. But since Labview does give me back the value until the VI has not finised... but it must never finish. What does do Labview when I call the VI with values and pointers from C++ ? Can I access to the value inside the running loop in real time ?
Thank you for your answers.
G.DI think the best design is to completely separate both components from one another and define an appropriate interface inbetween.
One possible flavor of a design would be to have two executables (one LV, one .NET) which interface using some ethernet protocol (based on TCP or UDP). The .NET application sends commands, the LV application reacts and sends status information.
Example (displayed from the .NET application view):
You have one command to push a new set-point. You receive an acknowledge.
You have a command to request continuous status updates (potential parameter: update rate). You receive an update of the current value until you send a command to stop updates. This approach is often called "register/unregister" method.
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
To get the count of records and able to access the column value in a single
Hi
Is there any way to get the number of records in the query and access the column values
e.g
select count(*)
from
(SELECT department, COUNT(*) as "Number of employees"
FROM employees
WHERE salary > 25000
GROUP BY department ) a
This wil only get the Count, if i want to access each row from the inline view how can i do that.Your question is not clear.
Are you looking for total record count as well as count by department ?
Something like this?
SQL>
SQL> with temp as
2 (
3 select 1 dept ,10000 sal from dual union
4 select 1 dept ,25100 sal from dual union
5 select 1 dept ,30000 sal from dual union
6 select 1 dept ,40000 sal from dual union
7 select 2 dept ,10000 sal from dual union
8 select 2 dept ,25100 sal from dual union
9 select 2 dept ,30000 sal from dual union
10 select 2 dept ,40000 sal from dual )
11 select count(*) over( partition by 1 ) total_count,dept,
12 count(*) over(partition by dept) dept_cnt from temp
13 where sal>25000;
TOTAL_COUNT DEPT DEPT_CNT
6 1 3
6 1 3
6 1 3
6 2 3
6 2 3
6 2 3
6 rows selected
SQL> -
Access custom variable value in web.xml context-param?
My requirement or need is to access a variable value either in a class in my Model project or a backing bean in my View project. For example, one variable I need to access is an application server I am integrating with - 'testserver' or 'productionserver' - I want to be able to configure this within an external file so that I do not have to re-compile my application to change the variable.
I was thinking about placing this variable in the web.xml <context-param> section as:
<context-param>
<param-name>servername</param-name>
<param-value>testserver</param-value>
</context-param>
I need to access this value within a class (not a servlet) on an Application Module service method, though if needed, I could access it from a backing bean and pass it to the service method (less desirable.) Is this a good approach and how do access this variable from within a Java class including any imports I need to do (code example)?
Thanks and Happy New Year!
Hopefully most everyone is out spending time with friends and family versus stuck trying to complete a project like me...I found an example from SRDemo that provides what I was looking for:
String serverhostaddress =
FacesContext.getCurrentInstance().getExternalContext().getInitParameter("param-name-var-in-webxml"); -
Accessing check box values in to WF
Hi guys,
i am looping through a list to create simple table with some check boxes ( <FieldLoop for='loopvar' in='variables.apps[*]'> ). i have specified checkbox field name - as "loopvar"
<Field name='loopvar'>
<Display class='Checkbox'>
<Property name='label'>
<ref>loopvar</ref>
</Property>
</Display>
</Field>
how shud i pull / get the list of chek boxes selected on the userform in to WF? will the form return a list? and how shud be the name field syntax shud i use a ":varibales."? im confused. please guide me with the best practice to declare and access check box values
Edited by: tea_or_kapi on Nov 20, 2009 10:44 PMHi Raju,
Try this. Create another dataprovider within your web template? This new dataprovider refers to a similar query, but this query definition should restrict values CG1, CG2, CG3 and CG4. Assign this dataprovider to your checkbox. Then make sure the properties of the checkbox affect all other dataproviders.
Also, if this list is static, you could create an HTML checkbox object coding the options (cg1, cg2, cg3, and cg4) programmatically. Then add javascript code to produce the proper filtering based on the users' selections.
Let me know what happens.
Larry -
How to use parsing technique to access a particular value from a webpage
hi,
i'm in need of a coding to access a particular value from a webpage only by using its link. one of my friend said the we can do this by parsing technique. but i doesn't have knowledge about it. can any one help me?ksnagendran26 wrote:
hi,
i'm in need of a coding to access a particular value from a webpage only by using its link. one of my friend said the we can do this by parsing technique. but i doesn't have knowledge about it. can any one help me?I'm sorry could you explain in detail what do you mean by +"access a particular value from a webpage only by using its link"+? -
Access a nested symbol timeline from the main stage
Hi all,
Would love some help on accessing a nested symbol from the main stage please.
To set the scene.....
"Its an autumn day..
no sorry...just joking...
So i have a symbol called "NormalAnatomy" - its not on the main stage, but when a button is clicked it appears in the 'content' box which is just a rectangle on the main stage.
Inside "NormalAnatomy" symbol is another symbol called "Scrub_all" which is an animation
For users to view the animation they use a scrub bar like this lovely lady has invented:
Create Click and Touch Draggable Scrubbers with Edge Animate CC | sarahjustine.com
So for Sarah Justines scrubber to work - the main stage has a lot of actions added to it. Also the "timelinePlay" symbol is on the main stage
Its starts:
var symDur = sym.getSymbol("timelinePlay").getDuration();
var mySymbol = sym.getSymbol("timelinePlay");
var scrubber = sym.$("scrubber");
var bar = sym.$("bar");
sym.$("mobileHit").hide();
var dragme = false;
So I put my "NormalAnatomy" symbol on my main stage to see if the code would work and changed all the relevant details.. and indeed it worked!
var symDur = sym.getSymbol("NormalAnatomy").getSymbol("Scrub_all").getDuration();
var mySymbol = sym.getSymbol("NormalAnatomy").getSymbol("Scrub_all");
var scrubber = sym.getSymbol("NormalAnatomy").$("scrubber");
var bar = sym.getSymbol("NormalAnatomy").$("bar");
sym.getSymbol("NormalAnatomy").$("mobileHit").hide();
var dragme = false;
But i don't want the "NormalAnatomy" symbol to be on the main stage as I want it to appear in the 'content' box only when i hit a btn
So as soon as I took this symbol off the main stage, the scrubber doesn't work. So I click a btn, and the symbol appears in the content box but the scrubber doesn't work.
so I tried in front of the "NormalAnatomy"
getStage().
getStage("content").
getComposition().getStage().
getSymbol("content").
but nothing works
The main problem must be the fact that the NormalAnatomy symbol appears inside a content box so the MainStage actions doesn't know how to find it??
So my question is... what should I put in the main stage actions to make it access the "NormalAnatomy" symbol?
Thanks for your help in advance!On click handler for the symbol use
sym.getComposition().getStage().getSymbol("nameofsymbol").play();
or
sym.getSymbol("nameofsymbol").play();
replace the italics with the literal name of the symbol as it appears in the Elements panel.
Some API details found here (http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html) in the Work With Symbols section.
Darrell -
Generating Deeply nested XML from a flat file
Hi All,
I am working on a MQ to IDOC scenario.
I am getting a flat file as input. I need to convert it into XML( so that XI can understand it).
But conversion is into a "Deeply Nested XML from a Flat File" at sender side (JMS Adapter).
Any inputs on this.
Regards,
VikasYou can only convert flat file into xml structure with 3 levels.
If you need to convert flat file into deep nested xml structure, you have to do java mapping or xslt or abap mapping. There is a tool, I think it's called conversion agent by itemfield (bought by SAP), which can do pretty everything with conversion. Never used it though.
Jayson -
File access Permission numeric value 640
Hi,
I am picking up the files from one ftp directory. The file has access permission with value 640. When I am connecting to FTP Server with user id & passwrd I can move the files from from the directory to Arch directory. But when I am testing this with XI it is showing error in Adapter monitoring as "FTPEx: 11260001.bwh: The file access permissions do not allow the specified action".Any suggesting on this.
Regards,
Daniel.LACheck this and this should solve your problem
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https:///message/589420#589420 [original link is broken] -
C parser and deeply nested DTDs
Your C parser is VERY fast :-),
but I am having trouble with deeply nested DTDs.
I can do DTD validation for an internal DTD and a single external DTD file.
My problem is with a DTD which includes other DTDs to a depth of 5 levels.
I am using the C XML parser v2.0.7 on Solaris 2.6.
My XML docs & their DTD are for an OAG Purchase Order (056_add_po_003.dtd or 056_add_po_006.dtd).
As these are OAG 'standards based' XML I cannot change the XML or DTD nesting.
The screen dump & error message I get was:
The error code after calling xmlinit() was >0<
startDocument
In line 20 of 056_add_po_006.xml:
In line 31 of 056_add_po_006.dtd:
In line 19 of oagis_resources.dtd [parameter entity RESOURCES]:
In line 57 of oagis_segments.dtd [parameter entity SEGMENTS]:
In line 4 of oagis_fields.dtd [parameter entity FIELDS]:
LPX-00252: invalid entity replacement-text nesting
The error code after calling xmlparse() was >252<
=================
Line 4 was:
<!ELEMENT ACCTPERIOD %STRDOM;>
The error is always at the same line of the oagis_fields.dtd dtd independent of whether I delete or move the 'ACCTPERIOD ELEMENT' that was at line 4.
The sample OAG PO XML and its DTDs were:
056_add_po_006.xml
056_add_po_006.dtd
oagis_domains.dtd
oagis_extensions.dtd
oagis_fields.dtd
oagis_resources.dtd
oagis_segments.dtd
are available from OAG: http://www.openapplications.org/xml/loadform.htm
You need to register to get the OAG docs but it is free.
Thanks for your Help
Doug.The error message file lpxus.msg has a detailed explanation:
00252, 00000, "invalid entity replacement-text nesting"
// *Cause: Markup included from an entity must nest/group properly, that
// is, open/close markup must occur within the same entity.
// For example,
// <!DOCTYPE doc [ <!ENTITY e "</foo><foo>"> ]>
// <doc><foo>&e;</foo></doc>
// Is invalid since foo's start-tag occurs in the top-level
// document, but the close-tag is provided by the "e" entity.
// Both start and end must be provided by the same source.
// *Action: Stay away from tricky nonsense such as the above, it's
// not permitted.
null -
ABAP help with deeply nested items.
Gurus,
We have a requirement whence we need to sum up the key figures from one transformation layer going to the next. The challenge is, its a deeply nested structure. something like :
SalesOrderItem Higher Level Item KeyFig
1000 0000 30
1010 1000 20
1011 1010 10
1015 1010 20
1020 1010 20
1021 1020 10
1022 1020 50
1023 1020 10
1025 1020 20
So now, in the next layer we will be rolling it upto the 1000 , 2000...levels- in this example 1000 level only.
The round figure items(1010, 1020.....) are the individual kmats and the summation happens like this:
1. Items 1021, 1022, 1023 and 1025 roll up to 1020; sum = 90.
2. Now when 1020 rolls up to its higher level item which is 1010, the sum that rolls up from 1020 should be 90 + 20.
3. Ultimately when all items roll up to item 1000, the total sum will be 190.
Can someone please help me write this logic in ABAP?
Thanks!
ChrisYou can try this, but please put it through more examples. Assumption is that your highest level item will have higher item number as 0000 and that they are always sorted in the way it is given in your example.
DATA: BEGIN OF itab OCCURS 0,
posnr(6) TYPE n,
uposn(6) TYPE n,
qty TYPE p DECIMALS 2.
DATA: END OF itab.
DATA: itab2 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: itab3 LIKE itab OCCURS 0 WITH HEADER LINE.
DATA: v_total TYPE p DECIMALS 2,
v_posnr(6) TYPE n.
itab-posnr = '1000'.
itab-uposn = '0000'.
itab-qty = 30.
APPEND itab.
itab-posnr = '1010'.
itab-uposn = '1000'.
itab-qty = 20.
APPEND itab.
itab-posnr = '1011'.
itab-uposn = '1010'.
itab-qty = 10.
APPEND itab.
itab-posnr = '1015'.
itab-uposn = '1010'.
itab-qty = 20.
APPEND itab.
itab-posnr = '1020'.
itab-uposn = '1010'.
itab-qty = 20.
APPEND itab.
itab-posnr = '1021'.
itab-uposn = '1020'.
itab-qty = 10.
APPEND itab.
itab-posnr = '1022'.
itab-uposn = '1020'.
itab-qty = 50.
APPEND itab.
itab-posnr = '1023'.
itab-uposn = '1020'.
itab-qty = 10.
APPEND itab.
itab-posnr = '1025'.
itab-uposn = '1020'.
itab-qty = 20.
APPEND itab.
itab2[] = itab[].
*-- assumption is that if UPOSN = 000000, then there is no higher level
* item
LOOP AT itab WHERE uposn = '000000'.
itab3-posnr = v_posnr = itab-posnr.
DO.
LOOP AT itab2 WHERE uposn = v_posnr.
v_total = v_total + itab2-qty.
ENDLOOP.
IF sy-subrc <> 0.
EXIT.
ELSE.
v_posnr = itab2-posnr.
ENDIF.
*-- This item does not appear as a higher level item
ENDDO.
v_total = v_total + itab-qty.
itab3-qty = v_total.
APPEND itab3.
CLEAR itab3.
ENDLOOP.
LOOP AT itab3.
WRITE:/ itab3-posnr,
itab3-qty.
ENDLOOP. -
Accessing recordset field values using labview Active X
dear friends,
i have opened recordset using labview active X Refenum opening dbengine,workspace ,opendatabase,openrecordset
i need to access the field value from the record
but labview doesnot show any propery or methods that r related to fields ,except count.
in short i am looking for a code statemant in labview which is equivalent to VB
Recordset.Fields("Name").Value or Recordset.Fields(Index).Value
can anybody help
thanks in advance
regards
shridhar joshitry something like this .
"shridharjosh" wrote in message
news:[email protected]..
> dear Ben Schulte
> i am using MS Access Database and i opened
> Acitve X class and necessary database connection parameters
>
> thing is Fields is a collection in VB and
> has a two default properties 1-Count 2-Index
>
> I am Able to get count property but un succesfull in accessing index
> this is important inorder to acces the value of a individual field in
> a recordset
> i am attaching data vi with this please ahve a look at it
>
> thanks in advance
[Attachment Fields.PDF, see below]
Attachments:
Fields.PDF 175 KB
Maybe you are looking for
-
Field description in two line in ALV report
Hi , In ALV report I want the description for each field to be displayed in two lines . For example the description for field matnr is " Material No for grade A " which is displayed in one line . But i want to display it as : Material No
-
HP LaserJet Pro CM1415 Color Multifunction Printer series
I can not make my printer print darker when printing from the desktop. Any suggestions? All of the cartridges are new and I have already calibrated. Thanks!!
-
Creating and restoring a Boot Camp partition using Paragon
I am trying to restore a clone of the Boot Camp partition that's on my MacBook Air (Snow Leopard) to My MacBook Pro (Lion). I was told I could do this without requiring the Windows 7 installation disk by using Paragon Hard Disk Manager. I downloaded
-
Customer Shipping Port Details
Hi All, I have a requirement where my customer has 50 different ports we need to delivery at. So 50 different ship to party needs to be maintained. Is there any other way where we can maintain all this 50 different shipment points and choose while cr
-
Hi i am new to XI.how software component,technical system,Business System are related.is Business System is nothing but physically existed system in System landscape?how these are inter related.please suggest some answers Prasad