Regarding creation of node element
Hi
i hav a doubt regarding creation of node element. u can create new node element using method create(cn)Element available either directly from wdContext or from wdContext.node(cn) where cn is any context node.
can any one plz explain me what's the difference between two.
does it has any thing to with node being singelton or non-singelton?
also can anyone explain me the difference between add and bind method.
thanks.
hi
good
Data Binding Methods
If a property can, or must be bound to the context, the respective bind and bound methods are available.
● The bind methods bind the value of a property to the context element specified by the path.
The name of the method is created according to the following pattern:
BIND_<runtime name of the property>.
Example: table, property: design, method: BIND_DESIGN.
● The bound methods return the path of the context element to which a property is bound and return NULL if no binding exists.
The name of the method is created according to the following pattern:
BOUND_<runtime name of the property>.
Example: table, property: design, method: BOUND_DESIGN.
ADD METHOD->
Two add methods that add an element.
○ If only the element is transferred as parameter, then the element is added at the and of a list
○ If an index is transferred as well, then this element is transferred at the specified index position.
http://help.sap.com/saphelp_erp2005/helpdata/en/66/18b44145143831e10000000a155106/content.htm
thanks
mrutyun^
Similar Messages
-
Question regarding creation of xml-elements with numerical values
When i create xml-documents from xml stored in the database (xmltype table based on an xml-schema), i find that numerical values which were stored as 0.395 (with the "." as the decimal separator) are retrieved as .395.
Is it possible to apply a format mask so that the numerical value is retrieved as 0.395?
thanks, Bart
N.b. Note that i select a complete xml-fragment. So my problem seems related to the storage or retreival of 'schredded' XML. I do not use SQL/XML-functions with relational data, in which case i know how to apply a format mask.I don't use XSLT, i just query the XML-documents stored in an XMLType column with a simple SQL-statement.
I have posted a simple example over here Re: Is it possible to influence the creation of empty elements? -
Creation of cost element or not for GBB-VAX,GBB-INV and UMB
Dear Experts,
I have few doubt regarding creation of cost element. Whether i will create Cost element or not.
1) GBB-VAX - used in PGI(Vl02n)We have costing based COPA .whether we will create cost element or not.If i will create cost element then need to be bydefault in okb9 with PSG tick.
2) GBB-INV- Used for Material taging(MI01,MI04,MI07)whether we will create cost element or not.If i will create cost element then what will be my cost object and how i will charge from my product costing.
3) UMB- is used whenever standard price is changed. Shall i create cost element for the same
If yes hen what will be my cost object and how i will charge from my product costing.
Request you to help me on the same.
regards
RR1) GBB-VAX - No, Goods Issue for sales order with no assignment object and hence without Cost Element
2) GBB-INV- Yes to post expenditure/income from inventory differences
3) UMB- Yes
Regards
KS -
Regarding : Creation of child nodes in a outlinefield
Hi,
I am facing a few problems in creating a child node. I read elements from an array to populate the outline field. The array has exact definitions as to what should be a parent and child respectively. While I am able to create nodes at the parent level, I am unable to create child nodes for any parent. I discovered that the value for the parent node is getting lost. I have tried to use some of the methods to arrive at the parent node, but to no anvil. Could some one suggest how exactly to get the value of the parent node so that the child node can be assigned to the parent.
Thanks In advance.
Balasubramaniam Sures
[email protected]
P.S : I have seen the examples Simple Outline field and File Browser. No clues from here.I take it that you are traversing through the array and loading each
element into the OutlineField. At the risk of stating the obvious, for
each element you must also identify it's parent. This is necessary to
set the relationship from the child to the parent or vise versa.
If you are already doing this and are still having difficulty, the
problem may be as simple as setting the IsFolder property of the parent
node. Unless this is done, it's child nodes will not be visible.
Van Vuong
Lead Technical Analyst
Office: 972.985.5289
VoiceNow: 972.330.0822
Internet: [email protected]
PAGE NET
From: bala[SMTP:[email protected]]
Sent: Friday, October 03, 1997 12:32 PM
To: '[email protected]'
Subject: Regarding : Creation of child nodes in a outline field
Hi,
I am facing a few problems in creating a child node. I read elements from an
array to populate the outline field. The array has exact definitions as to
what should be a parent and child respectively. While I am able to create
nodes at the parent level, I am unable to create child nodes for any parent.
I discovered that the value for the parent node is getting lost. I have
tried to use some of the methods to arrive at the parent node, but to no
anvil. Could some one suggest how exactly to get the value of the parent node
so that the child node can be assigned to the parent.
Thanks In advance.
Balasubramaniam Sures
[email protected]
P.S : I have seen the examples Simple Outline field and File Browser. No
clues from here. -
RE: Regarding : Creation of child nodes in a outlinefield
Hi, Balasubramaniam:
Try to set the isFolder attribute of your parent display node to TRUE.
This may solve your problem. Also, check isFilled attribute of display
node, you might find the answer.
Hope this helps.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x233
Fax 201.261.1399
E-mail : [email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Friday, October 03, 1997 5:32 PM
To: '[email protected]'
Subject: Regarding : Creation of child nodes in a outline field
Hi,
I am facing a few problems in creating a child node. I read elements =
from an array to populate the outline field. The array has exact =
definitions as to what should be a parent and child respectively. While =
I am able to create nodes at the parent level, I am unable to create =
child nodes for any parent. I discovered that the value for the parent =
node is getting lost. I have tried to use some of the methods to arrive
=
at the parent node, but to no anvil. Could some one suggest how exactly =
to get the value of the parent node so that the child node can be =
assigned to the parent.
Thanks In advance.
Balasubramaniam Sures
[email protected]
P.S : I have seen the examples Simple Outline field and File Browser. No
=
clues from here.I take it that you are traversing through the array and loading each
element into the OutlineField. At the risk of stating the obvious, for
each element you must also identify it's parent. This is necessary to
set the relationship from the child to the parent or vise versa.
If you are already doing this and are still having difficulty, the
problem may be as simple as setting the IsFolder property of the parent
node. Unless this is done, it's child nodes will not be visible.
Van Vuong
Lead Technical Analyst
Office: 972.985.5289
VoiceNow: 972.330.0822
Internet: [email protected]
PAGE NET
From: bala[SMTP:[email protected]]
Sent: Friday, October 03, 1997 12:32 PM
To: '[email protected]'
Subject: Regarding : Creation of child nodes in a outline field
Hi,
I am facing a few problems in creating a child node. I read elements from an
array to populate the outline field. The array has exact definitions as to
what should be a parent and child respectively. While I am able to create
nodes at the parent level, I am unable to create child nodes for any parent.
I discovered that the value for the parent node is getting lost. I have
tried to use some of the methods to arrive at the parent node, but to no
anvil. Could some one suggest how exactly to get the value of the parent node
so that the child node can be assigned to the parent.
Thanks In advance.
Balasubramaniam Sures
[email protected]
P.S : I have seen the examples Simple Outline field and File Browser. No
clues from here. -
Cardinality: automatical creation of initial elements
Hello,
as far as I know the systems automatically creates elements when the cardinality is 1..1 or 1..n. Now I would like to know when exactly the system does this creation of initial elements.
One of my context nodes has a cardinality of 1...1. In some cases I can't set the attributes because there is no element. Therefore I want to have a better understanding of when the system creates initial elements.
Best regards, HergenHi,
A context element is created automatically, if
- it is declared with cardinality 1..1 or 1..n and
- there is no supply function declared for this node.
If a supply function is declared, it has to make sure that the cardinality is fulfilled.
The creation of the first element is done at the same time as the supply function would be called, if there werde any.
This means: as soon as you access the element (e.g. by reading or writing any of it's attributes) the element is created.
So there should be no need for you to worry about the time, at which the element is created.
I assume that the element is not created, because you have declared a supply function.
Ciao, Regina -
Creation of PL Element without it being a cost element
Hi
I have to asign two PL elements in T code 0KEK for transfer of material between two profit centers. The two elements should not be <b>cost elements</b> but they should be PL Elements to be used only in PCA.
We have to create PL elements through FS00. But the system automatically creates a new cost element when i create a GL as a PL nature. Pls let me know how to create a PL element without it being a cost element.
Regards
Sanil BhandariHi Sanil
IN OB13
Controlling integration tab
select : Manual creation of cost element and create GL accts.
Hope this works
Best Regards
Ashish Jain -
Hi,
I am working on special project of Automation of all utility billing and housing system for a big company in SAP.
For that I have to create 26 tables and obviously I am creating a lot of dataelements.
Now the problem is my quality dept says that I should use the inbuilt data elements and refrain from creating new ones. In this case the field label is not matching my field. He says that who is going to see the table and says that you can change the field description in reports as you like. Is it justified.
I can see that there are more than 500 standard datalements created for a char field of length 4 by SAP. but none of the description matches my field description. if the case is of reducing the load then does sap recommend not to create z data elements.
Can we create dataelement just for the sake of field label and what is the other purpose of a dataelement if not
How much load will be generated by creating a dataelement.
kindly give some insight into the need to create dataelements.Hi!
If your Quality people are that much particular about creation of data elements, there is one way to solve this problem. Use standard data elements.
I know here you will get a doubt that after creating a maintenance generator you will not be able to see the description whatever you want in SM30. For this follow the below procedure.
While creating maintenance generator you will give the function group name right, go to SE80 -> and give the function group name there -> double click on the screen number of maintenance -> click on element list tab -> click on 'Texts/I/O templates' tab -> now against the field names under 'Text or I/O Field' column remove the value '+____________' and type the field description there -> repeat the procedure for all the fields -> now save, check and activate the screen as well as function group.
Now if you go to SM30, you can see the field description for every field.
This is somewhat time consuming, but it may help you.
Reward points, if useful.
Regards,
Venkat. -
Creation of cost elements automatically
Hi,
When I selected "manual creation of cost elements" in OB13, Then we can create a group of cost elements in OKB2 followed by OKB3 and SM35.
Even I need to do same thing I when I select " automatic creation of cost elements" ??
I tried selecting " automatic creation of cost elements". and I checked in KA03 whether it had created any cost element automatically. but it didnt created any thing...
Please suggest..Dear Santosh Dharana,
Good Question. i can clarify you. this question
1. when you select in ob13 create cost elements manually
when your are using in obk2 we have to maintain here Acc from no. to Acc to no. ranges for Gl's and cost element categeory.
after we can run batch in put in obk3 & SM 35 it's updated successfully.
Note: After execute, *when you are try create another GL account with cost element we have to give cost element categeory by manually.
2.when you select in ob13 create cost elementsAutomatically
when your are using in obk2 we have to maintain here Acc from no. to Acc to no. ranges for Gl's and cost element categeory.
after we can run batch in put in obk3 & SM 35 it's updated successfully.
Note: After execute, when you are try create another GL account with cost element we don't have to give any cost element categeory here system automatically give .
Please try it. i worked for this one
Thanks & Regards
shankar -
How to get the current node element by its value?
e.g,:
wdContext.current<b>Deal</b>Element().setAttributeValue("<i>deal_id</i>","<i>aaaaaaa</i>");
above code can get the result i wanna.
but now i wanna in terms of its node'name to set attribute vaue of itself. in other words,i have no idea about how to get the current node element by its name"<b>Deal</b>".Hi Wing,
The answer is there in your question itself.
wdContext.currentDealElement()
will give you the current node element by its name"Deal" or you could use
wdContext.nodeDeal().getCurrentElement()
or you could use
wdContext.nodeDeal().getElementAt(wdContext.nodeDeal().getLeadSelection())
Regards,
Sudeep -
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 . -
Restrict Creation of Cost Elements
Hi All,
I have a situation in which I have to restrict creation of Cost Elements for some of my P&L GL accounts. Is there any way I can restrict them. Any help would be appreciated.
Thanks
MKRHi MKR,
I would recommend not to have any validations for this.. This is the heart of the whole system and needs to be maintained in a very disciplined way
If you put hard stops for such things, people will never understand the relevance of things and slowly the mind set evolves like "Unless the system gives a hard stop, any thing and every thing can be done"... So, they go on creating nuisance in the system till the system stops them
Moreover, there is no logic by which you can control this even if you try for an ABAP check... If you do still, it will propose probs in future...
Provide the authorization for creating/changing cost elements to one single person who understands the system well and have a central control...
Regards
Ajay M -
Detailed Navigation gets cleared on clicking any node element
Hi All,
I have created a custom framework page by modifying the SAP standard Framework Page. Also I have customized the Top Level Navigation .
The problem is when I click on any node element in the Detailed Navigation, the entire Detailed Navigation gets cleared (greyed out) and no node elements are displayed. Any idea why this is happening?
Any kind of help is greatly appreciated.
Regards,
AdrenIs it a query region or a custom search region? What is the code written to null the date fields?
Is there any flow where the values are retained?
--Shiv -
BAPI for Production order creation against wbs element
dear all,
I am using BAPI (BAPI_PRODORD_CREATE) for Production order creation against wbs element.I am putting following input paramters in this
material no,
order type
plant
qty
basic start dt & end dt
wbs
But during GRN it is not taking the account assignment as project stock i.e. its picking movement type 101 but it should be 101Q.
For this what changes are required.
regards
ravi aroraHi,
2 options i can think of:
1. Create a BDC program by recording co10
2. Create a planned order with order type PR using BAPI_PLANNEDORDER_CREATE, specify the WBS element & other details. Now use BAPI_PRODORD_CREATE_FROM_PLORD to create a production order with reference to the planned order created earlier.
I believe option 2 should meet your need. Check & revert.
Regards,
Vivek -
How to pass all values from one node element to created node element?
Hi
I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
How do we rectify this problem!!!
Thanks in Advance
SrikantHi Anil
I've created the node named: TableNode
and the name of the node from which i want to get the data is : Li_Required_Node
the Node Structure is
Context
|_ Zs_Quantity_Input
|_Output
|_Node_Required_Node
|_Schddt
|_TableNode
|_CmpDate
The Schddt has some 7 values
The code Snippet is as follows:
IPublicPricesComp.ITableNodeElement nodeElement;
IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
int counter3Max = wdContext.ILi_Required_Node().size();
for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
nodeElement = wdContext.createTableNodeElement();
scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
nodeElement.setCmpDate(scheduleElement.getSchddt());
wdContext.nodeTableNode().addElement(nodeElement);
On writing the above code and then binding the node to a table column only one value getting displayed
Where can be the error?
Thanks in Advance
Srikant
Maybe you are looking for
-
How to do multiple shell scripts in AppleScript
I got some solutions from previous posts on how to run sudo in Applescript, but there is still some minor syntax issues when I try to get to the destination directory. Usually in shell script I just type cd directory-destination in several lines to b
-
How do I put a search bar on my music app
I bought a iPad now in nov and the music app does not have a search bar to go straight to the song or tittle , how do I get one on there?
-
'No account assignment exists for service line' - BAPI_REQUISTION_CREATE
Hello, Getting straight to the point. I am creatin a PR from one system to another system(SAP to SAP) thru BAPI_REQUISITION_CREATE by getting its detail from the former system thru BAPI_REQUISITION_GETDETAIL. PR for materials is working fine but when
-
Different Logical Systems ?
HI, is it possible to use another Logical Systemname (Sender Service) ? i know 2 possibilities. 1) Change the LS in the SLD but i can´t do that because a lot of companies using this LS. 2) Check "Using sender from payload" but this is already changed
-
Exit Code 6: Can't install the Photoshop CS6 beta (Win 7)
Can't install the Photoshop CS6 x64 beta on Win 7 Pro x64 (i7 CPU [email protected] GHz; 16 GB Ram, 1.7Gb NVidia) BTW, the contact support link is pointing to the staging site Here's the error log: Exit Code: 6 Please see specific errors and warnings