Recursive node mapping
Hi everybody,
i would like to ask if it is posiible to map context node with recursive node from controller to view. I try to do that by the recursive subnode is disabled. When that is not possible can that any one explain why?
Regards
Bogdan
Hello Bogdan,
Recursive context nodes cannot be mapped. You may refer this <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ea/a5384162316532e10000000a1550b0/frameset.htm">article</a>
Best Regards,
Bala
Similar Messages
-
Hello PI people.
I have a problem reguarding to a XSD file (standard DSML found here: [DSMLv2|http://www.oasis-open.org/committees/dsml/docs/DSMLv2.xsd]).
When I Import it as external definition to PI Integration builder it all works fine but if I undfold the message "Filter" the there is problem with the defintions for "not" and after one more fold on "and" or "or" the same problem is shown. It looks like PI understands the XSD but it just not permit recursive nodes?
Is it the XSD that dosent meet the PI standard or is it a internal thing in PI that needs to be activated to handle recursive nodes i XSD?
(When a message is mapped with this DSML all the error prone nodes are stripped..)
// JesperHello Jesper,
You can refer to this document for supported XSD and WSDL:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00a9a425-1769-2a10-9196-bd8eeed72e4c
Once you open this excel document go to row 94 for Recursive Data Structures, it says it is supported but there is a reference to row 143 which says
Recursive data structure must be expanded in design-time manually to the desired depth
If what you are thinking is dynamic recursion, then it is not possible. You have to use Java Mapping/XSLT for that. Now as for the nodes not displaying, right-click on the node and then select expand recursive structure.
Hope this helps,
Mark -
Webservice model recursive nodes
Hi,
I have a webservice with a response with a recursive element. Is it possible to use this as a model?
when I import the service I don't see the recursive element mapped to a node.
kind regards,
PieterI have the same problem, can anyone help?
-
Do Componenten Interfaces support recursive nodes?
Hi
I've created a simple componenten interface with a recursive node, but after save and manually refresh (display another object and display ci again) the recursive node has gone?
Is it a bug, or aren't recursive supported by component interfaces?
thx in advance.
Fabianfollowing restrictions apply on recursion nodes:
1. You cannot nominate a recursive node to act as the data source in a context mapping relationship. Recursive node structures are restricted to the scope of a single controller.
2. The root node of a context cannot be used for a recursion.
Thanks,
kranthi. -
Data node mapped to Adobe Form empty - Web Dynpro ABAP
Hi,
I've created a web dynpro component in ABAP. One of the view contains an interactive Adobe form.
Form properties : Data source and pdf source are mapped
Enabled checked
Submit action mapped to a method. This method reads the node mapped to the form.
Form Layout: Used ZCI Layout and Inserted web dynpro script (XML interface)
Dragged attributes from data view to create text fields.
Submit button used from Web dynpro native group
I could not read data from the form.
When I submit the form, data is not captured in the context.
I have used the same context for view and could save the data from the view. But from the adobe form, I cannot read the data.
Is there anything I missed. I have been on this since 2 days with no solution. I dont see any mistake but the form doesnt work.
Version: Adobe Designer : 8.1 (from market place)
SAP Netweaver 2004s SP18
Any help on this is appreciated.
P.S. Used all possible help from SDN existing posts and SAP notes.
Thanks in advance,
SrinivasHi Srinivas,
place a button on webdynpro view it self then try.
make sure your form is working in interactive mode.
else keep this conde in modifyview method.
method WDDOMODIFYVIEW.
data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
check first_time = abap_true.
LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018<<ID_OF_YOUR_UIELEMENT>>u2019).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
endmethod.
or try these links
For More Information look at the link below.
http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
Please look into SAP Notes: 1229392
You can also look at the elearning below:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
Regards,
Mahesh -
[Tree] item and node order ! (Recursive Node)
I made a wd4a has organizatonal structure tree. but I have some problem with the org tree.
I want to have a tree(org structure) in item(person) and node(organization) order.
Root Root
|- Person 1 |- Head Dept
|- Person 2 | |-Person 3
|-Head Dept -> | |-Person 4
| |- Person 3 |-Sales
| |- Person 4 |- Person 1
|-Sales |- Person 2
( to be displayed) (current displayed)
Whiat's the problem?
Although the both of them have a same contents, I really want to display in person and org order .
Plz. help.I solved this problem myself and it makes me very so tired.
I guess that Recursive node tree have some bugs.
If a node have one recursive node and one sub-node and some kinds of attributes,
we have to make a decision on how to display and sort them(sub-node and attributes)
There is a example below as I really want to sort them.
C_Drive Folder
- file 1
- file 2
- Folder 1
- file3
- Folder 1-1
- Folder 2
Context
|-Folder Node
| |-File Node
| | |-File Name attribute
| |-Folder Name attribute
| |-Folder_Content -> Recursive Node
When you meet this situation,you must implement the context nodes and
the names of context node and recursive node must be in alphabet order you want to display.
I am sorry for my crumsy writting English. -
How to manipulate recursive node with context api?
Hi, all.
I made a recursive node in my context. So it is like a tree.
When I choosed one child node in my tree, how can I get it`s current element?
Thanks a lot.Hi Louis
Check this PDF link
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/constructing%20a%20recursive%20and%20loadable%20web%20dynpro%20tree.pdf
Also check this elearning link.It gives info of supply function
https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/60086bd5-9301-2b10-6f97-a14366a5602b&overridelayout=true
Regards
Ruturaj -
Dynamic context in web dynpro abap: recursion node is possible?
Hi,
i'm working with web dynpro ABAP and I need to create a dynamic recursion node. Is possible?
thank you.
Regards.
AlHello Saravanan,
this is my code that creates a context node with recursion node, but supply_method i never called. why? could you help me?
CALL METHOD lr_root_info->add_new_child_node
EXPORTING
name = y_name
is_mandatory = abap_false
is_multiple = abap_true
is_mandatory_selection = abap_false
is_multiple_selection = abap_true
is_singleton = abap_true
is_initialize_lead_selection = abap_true
is_static = abap_true
supply_method = 'SUPPLY_NAV_LIST'
RECEIVING
child_node_info = lr_node_info.
ls_attribute-name = 'TEXT'.
ls_attribute-type_name = 'STRING'.
CALL METHOD lr_node_info->add_attribute
EXPORTING
attribute_info = ls_attribute.
ls_attribute-name = 'ENABLED'.
ls_attribute-type_name = 'WDY_BOOLEAN'.
CALL METHOD lr_node_info->add_attribute
EXPORTING
attribute_info = ls_attribute.
lr_node_info->add_recursive_child_node( child_name = y_name_nav child_info = lr_node_info is_static = abap_false ).
Thank you.
Al -
How to get current node element for recursive node.
Hello Xperts,
I have a requirement where I need to find the current node element of the recursive node.
I was trying following code for the same
Data:
selected_elem type ref to if_wd_context_element.
selected_elem = WDEVENT->GET_CONTEXT_ELEMENT( NAME = 'CONTEXT_ELEMENT' ).
selected_elem ->get_static_attributes(
IMPORTING
static_attributes = sel_attri ).
But it does not work for me and I always get 1st node value.
Please help me in this issue.
-AshutoshHello ,
If you implementing a simple tree ( not table tree ) and you want the selected element for
OnLoadChildren event .
Then create an importing parameter CONTEXT_ELEMENT of type IF_WD_CONTEXT_ELEMENT
in the event handler of onLoadChildren .
Webdynpro framework automatically filled up the context element with the current node in the tree .
I tried it , It really worked for me .
If you have a table tree then you need to create an importing parameter PATH of type String in tha event handler .
Webdynpro frame automatically fills the PATH .
the use can use the following method to get the element from the PATH .
wd_context->path_get_element( path ).
I tried it , It also worked for me .
Regards
Vivek
PS : please provide the points if answer is helpful . -
Check result for Data Type: PriceDerivationType | http://alfuttaim.com/xi/storeConnectivity:
Data type Data Type PriceDerivationType | http://alfuttaim.com/xi/storeConnectivity points to itself
Hi Experts ,
I have a datatype part of sap standard content which has a recursive node ( poniting to itself).
I have to copy it to a local name space and use it . When i try to copy it and activate it i am getting this
error .
"Check result for Data Type: PriceDerivationType | http://alfuttaim.com/xi/storeConnectivity:
Data type Data Type PriceDerivationType | http://alfuttaim.com/xi/storeConnectivity points to itself"
Please let me know how do i go abt activating this object.
Thanks in advance and best regards,
AnilHi Anil,
When you copy it local namespace, verify the namespace is local or the one which is poiting to itself.
If this is pointing itself, manually you change the namespace which you want and activate it.
Hope this helps.
Regards
Shankar. -
Hi everyone,
I have a scenario in which the source structure contains an indicator A and 1 or 2 source nodes (X & Y, both 0..unbounded). Node X will always be in there where Y will only be in there if A = true. Target node is T (0..unbounded). Now, they way I like it to work is if A = true then map Y -> T, else if A = false map X -> T.
However, the if function doesn't seem to work well with nodes.
To illustrate, in this scenario the mapping would produce 4 target nodes T, because A = true and occurence of Node Y is 4.
Any help appreciated. Thanks.
<A>true</A>
<X>
<X1>bla</X1>
<X1>bla</X1>
<X1>bla</X1>
</X>
<X>
<X1>bla</X1>
<X1>bla</X1>
</X>
<Y>
<Y1>bla</Y1>
<Y1>bla</Y1>
<Y1>bla</Y1>
</Y>
<Y>
<Y1>bla</Y1>
<Y1>bla</Y1>
</Y>
<Y>
<Y1>bla</Y1>
<Y1>bla</Y1>
</Y>
<Y>
<Y1>bla</Y1>
<Y1>bla</Y1>
</Y>Hi jp,
createif based on A = true/false will only create the target node once but I want it to be there n times based on the occurence of the source node X or Y.
I've uploaded a screenshot to further illustrate the problem
http://www.flickr.com/photos/24514021@N04/3118023808/
ihFsmType is the indicator, if empty I'd like to use InvoiceHistory for the node mapping, if ihFsmType != empty then sfh_hist. -
Hi
During message mapping normally we do element to element mapping. But could you please tell me when we will go for root node to root node mapping ??
Is it like that when the target root node's cardinality is greater than 1 we will go for root node mapping. Are there any other situations where we will go for root node mapping ?
thanks
kumarHi Kumar
We can have the root node mapping in the following cases:
1. If we have a field on the target side that needs to occur as per the business requirement but the root parent node is optional i.e. with occurance 0...n, then we can map the target root node to an empty constant so as to make it occur.
2. If we have a source field that can occur many number of times at runtime and we have the corresponding target field that occurs only once at runtime but it's parent node can occur same number of times as of the source field then in that case we map the target parent node to the source field with the following condition as if the source field exist create the target parent node.
I think that it helps you with some scenarios.
Amit -
Reading and modifying data in a recursive node
Hi All,
I am using a TreeByNesting column in a table UI element of my component.
For this purpose I have created a node in the context - ('TREE') which contains a recursive node - ('RECURSIVE_TREE').
What would be the simplest way to read the data from this node ? And how do I go about changing a single line of information
within the node ?
Thanks,
FathimaWhat would be the simplest way to read the data from this node?
Reading data from a recursive node is no different to reading any normal node. It's just that you have a very simple way of holding the same structure.
Once you have a reference to the element of a node (a single line of data), then updating it is no different to updating a line of a table.
More issues are associated with making and setting lead selections for an element (all parent elements also need to be lead selected and no child elements). Searching through the hierarchy, etc.
Where I have used this functionality I have often set up search tables with the key data that I want to search in a flat table and a reference to the corresponding element - much easier to search then - without having to resort to recursive coding!
Could you elaborate a little on what exactly you are having an issue with?
Cheers,
Chris -
WD ABAP: Lead selection on a recursive node
Hi,
I would like to know if lead selection is permitted on a recursive node in WD ABAP.
As of now, methods 'set_lead_selection_index' or 'set_lead_selection' do not cause lead selection to change in my view, and the lead selection rests only with the first row in my table..(I have set the rowSelectable property to YES for my table.)
Also, method call 'set_selected' performed on my target element does not solve the problem.
Any help much appreciated!
Best Regards.Hi Adithya,
Yes, you can have a leadSelection on a recursive node and it can be changed by the same methods that are used for non-recursive ones.
Best regards,
Thomas -
WD ABAP: Recursion Nodes that Repeat Tree Nodes with Embedded Tables ???
At Rich H's suggestion, I'm posting this here as well as in the blogs.
Suppose you've got a tree context with a node that has a table embedded under it. (For example, the TREE_WITH_TABLE view of WDR_TEST_EVNT has this kind of context substructure.) Call this node "NODE_WITH_TABLE."
You now define a recursion node underneath "NODE_WITH_TABLE" and specify "NODE_WITH_TABLE" as the repeated node for this recursion node. Call this recurion node "RECURSION_NODE".
Lo and behold - the table fills properly when you're on any instance of "NODE_WITH_TABLE", but not when you're on an instance of "RECURSION_NODE".
I'm hoping that:
a) I'm doing something wrong;
OR
b) There's an easy work-around/alternative I'm not seeing
OR
c) SAP will give recursion nodes enough memory to carry any table(s) embedded in the nodes they're repeating.
'Cause I sure don't want to have to define "n" levels of tree-nodes that have different copies of the same table(s) embedded in them.
Message was edited by: Armin Reichert/people/david.halitsky/blog/2006/08/16/recursion-nodes-that-repeat-tree-nodes-with-embedded-tables-in-wd-abap-not
Maybe you might want to back out your weblog as it is not really a place to ask these types of questions. Think of it this way, if you are allowed to do this type of weblog, what is stopping any other weblogger. Hence the weblogs would just be another forum, which I don't think anyone wants.
Regards,
Rich Heilman
Maybe you are looking for
-
Weather App Affecting my Data Usage
Hi Community, Back in October 2013 when I changed my IPhone from a 4S to a 5S I had to go from an “Unlimited” plan to Tiered plan. I went to a tiered planned capped at 2 GB per billing cycle. This didn’t bother me because I would never use all of m
-
List wrapping in back ground scheduling
HI folks, I am executing a program which displays an alv list ,when run in the foreground ,there are no issues. when i run from the selection screen ,giving the option as run in background,and when i check the o/p in sm37 ,the list is getting wrap
-
How to unblock my ipod touch? Anyone?
Hay, I have a ipod touch that is blocked because my little brother pressed a wrong access code to many times. i have tried to connect it with iTunes but then it says that i have to fill in the access code on the ipod first. But that's not possible. D
-
Change background colour in Photos app
Hi there, Just updated the OS and iPhoto has been replaced by Photos app. How do I set the background colour to my preferred dark grey, rather than the garish and interfering white? I can't find the settings to do this, have checked Views and Prefere
-
IPad password is not in Australia. For this reason, I can't buy anything.
I Want to change the purchase location to Australia from America