How to find if a particular context node attribute is changed.
Hi,
When a screen is opened, the context node attribs has some values. On some event, i wanted to check if one particular attribute in the context node has changed. Is it possible to figure this out.
(ps note that I need not find if any change has happened to the entire table but only one column (attribute) of the node. Note that the node has cardinality 0...n. So there are multiple possible values)
Thanks in advance.
regards,
suresh.
Hi,
If you use the [Context change log|http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/f95e42ff93c153e10000000a1550b0/frameset.htm]
and loop over the result table, looking for a certain attribute name and node name,
you'll get all the changes of that attribute, for all elements in that node.
grtz,
Koen
Similar Messages
-
How to bind UI Element with Context Node Attribute Element
Hi,
I'm building my view dynamically in the wdDoModifyView method.
Is it possible to bind a "TextView" element to a specific element of an attribute node?
Scenario:
Node_Employees
|
+- Attribute_Code
|
+- Attribute_Name
Node Contents:
Employees
|
+- Code: 1, Name: Employee 1
|
+- Code: 2, Name: Employee 2
|
+- Code: 3, Name: Employee 3
I need to do something like binding a TextView UI element to the "Name" attribute of the element #2, what would result to show "Employee 2" on my view.
How can I do this?
Thanks in advance,
Geraldo.Hi Saravanan,
First I populate the context node and it won't change during view's lifecycle. After that, I build my view and bind the TextView UI elements to the node context attributes elements.
If the node has 10 elements, I will build 10 TextView UI elements and bind them to each attribute element.
Regards,
Geraldo Brígido. -
Read Context Node/Attribute option in webdynpro code wizard not available
Hi Expets,
I am new to webdynpro Abap, i have developed a small application to set default values for two fields. i want to use code wizard to implement the code. When i click on code wizard icon in application tool bar, i have found lot of option like Method call in current controller, method call in used controller, Instantiate used component ... etc. But i didn't find the option Read Context Node/Attribute. Do i need to do any settings to get that. Kindly suggest. Your help will be greatly appreciated.
VenkatHi,
Check the NW release,
I checked with NW 7.02 - 2 tabs were available.
with NW 7 - only 1 tab was available which you mentioned.
Additional tab (Context ) might have been added after NW release 7.0.
Regards
Manas Dua -
How to search data from a context node.
Hi Friends,
Thanks for ur help for previous problem . I am facing some other problem i.e how to
search data from a context node.
i have a context node :-
Car(main node) which consist of details, owners, engine and Brand as its sub node.
the value attibutes of difft nodes are:-
Car- category
Details- Mileage, Price, registration_no, miles_used
owner - name, phnno,addrs
Brand - main_brand, co_brand
Engine- Bhp,Rpm
Now i have to apply a search criteria on the basis of price, miles_used .
pls help to implement that .
Thanks & regards
Pravin jhaHi PRAVIN,
What I can understand from your problem is that, you have a list with various properties and you want to display them and search them in your WD App. If I am correct, use the following approach:
Instead of using "details, owners, engine and Brand" Nodes, use the attributes inside the parent node. i.e in the node Car, add all the attributes viz. Mileage, Price, registration_no, miles_used, name, phnno,addr etc.
Now you can create a table of this node "Car" and can easily search on the basis of any criteria.
I hope this solves your issue. If you are looking for something else, please revert, I'll be happy to help you.
Cheers!!!
Umang -
How to find out that particular structure is used in which tables
Hello Friends,
Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
Thanking you guys in advance.
Regards,
JitendraDear,
When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
Thanks & Regards,
Vijaya Bhaskar A -
How to find out the particular form available language?
hi ,
how to find out the particular form available language?
pls could u clirify the dought.
regards
eswarI guess you wrongly closed the thread without any answer.
utilities --> version, it will give all the list of languages of SAPScript.
Or goto SE71,
Press F4, in place of form name and goto unclassified forms, you will see all form names with available languages.
Regards,
Sairam -
How to modify the data of Context Node of type table in BSPCOMP WB
Hi,
I have context node which is of table type. Now, beofre displaying the table, I have to delete few entries from this context node.
Could you please help me out, how exactly I can handle this?
Component: BP_DATA (Enhanced)
View: MarketingAttributesEOVP
Context Node: ATTRIBUTES
Thanks,
SandeepMake use of ON_NEW_FOCUS method of the context node to achieve the same. Get the collection first and then iterate it remove the entities which are not needed and then set the rest of the collection. You can also check standard code for reference.
Rg,
Harshit Kumar -
Error while genetrating gettter method on Context node attribute
Hi,
I am working in SAP CRM 7.0 Ehp1.Now I need to create get_p_a and set_p_a method
on context node attribute.But while selecting attribute and clicking on right and selecting
on generate P-Getter,getting an error (error message - View not copied or enhanced with wizard; processing not possible).
This is a custom context node attribute and need to create gettter,setter method.
Kindly assist on this or suggest is there any way to create method on required context node attribute.
Regards
VirenHi there,
Creation of Getter Setter is not possible for the AET Generated Views and Components.
It seems your view is generated using AET Table enhancement feature of Ehp1 and the context node is thus a based on a Z BOL object created by a feature of AET of Ehp1
For such context node, generation of getter setters is not possible with right click.
If you need any of GET_ , SET_, GET_P_ or GET_V , then you need to copy the GET_P_XYZ etc method you find on context node class.
Hope this helps
Thanks & Regards
Suchita -
How to set default value to a node attribute programmatically?
Hi Experts
How to set a default value to a context node attribute programmatically? Any code snippet will be really helpfull. I am talking about the attribute inside a node in context.
Note: This is for webdynpro for ABAP
Thanks
GopalHi Gopal,
Assume you have the node called TEST and attribute called NAME then to set the value of NAME, you can use the following code say in WDDOINIT method or any other method.
data:
Node_Test type ref to If_Wd_Context_Node,
Elem_Test type ref to If_Wd_Context_Element,
Stru_Test type If_Componentcontroller=>Element_Test ,
Item_NAME like Stru_Test-NAME.
navigate from <CONTEXT> to <TEST> via lead selection
Node_Test = wd_Context->get_Child_Node( Name = wd_This->wdctx_Test ).
get element via lead selection
Elem_Test = Node_Test->get_Element( ).
set single attribute
Elem_Test->set_Attribute(
exporting
Name = `NAME`
Value = 'Value').
Note: You can use Weddynpro code wizard to get this code. (Ctrl+F7)
Regards,
Srini. -
How to find optimal multi splits for numerical attributes in Decision Tree
Hi experts,
I would like to know how to find optimal multi splits for numerical attributes
in Decision Tree Learning.
For splitting categorical attributes, gini and gain index are used and the splits that
produce the best gain are selected.
However, in case of numerical attributes
how do you find the best splits?????
Please help me !!Yordan's suggestion is correct, though the documentation is a bit outdated.
You can use the single parameter + sweeper mode or define your own custom ranges in the BDT module with the Parameter Range setting
Regards,
aK -
How to read context node/attribute data of diff UI component of same screen
Hi,
I am new to CRM and as well as BSP, Now the requirement is, at the time of Lead creation, when the end user enters customer code and sales area i need to fetch and display the customer group 1 value( VIP,KAM etc) based on the customer's sales area, ( these are sales area specific values).
but the problem is Customer code is in diff UI component and sales area data is in diff UI component .
1) customer code attribute is in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT.
2) sales area fields are in the UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET.
3) I have created new field(customer type to display the customer group 1 value "VIP") in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTLEADH.
To display the value in the context node BTLEADH, i need to know the sales area data which is entered in BTORGSET.
Kindly let me know how to read the data which is in diff UI component of the same Lead creation screen.
i written following code in context node BTLEADH, atttribute New Zfield, in get method, but not able solve, please guide me.
DATA: LR_ENT TYPE REF TO CL_CRM_BOL_ENTITY,
LR_COL TYPE REF TO IF_BOL_ENTITY_COL.
LR_ENT ?= ME->TYPED_CONTEXT->BuilHeader->COLLECTION_WRAPPER->GET_CURRENT( ).
LR_COL = LR_ENT->GET_RELATED_ENTITIES( IV_RELATION_NAME = 'BuilSalesArrangementRel' ).
LR_ENT ?= LR_COL->GET_FIRST( ).
IF LR_ENT IS BOUND.
LR_ENT->GET_PROPERTY_AS_VALUE( EXPORTING IV_ATTR_NAME = 'DIVISION' IMPORTING EV_RESULT = LV_DIVISION ).
ENDIF.
I'll appreciate if you can provide me some documents to refer.
awaiting for your responses.
Thanks
BhanuHi Gangadhar,
I think i have not clearly explained my requirement, let me put it once again. My requirement is, I have to read two UI component data, validate and display some value in one new zfield which is in one of the UI components.
I need to display customer's sales area specific data like customer group 1 value in that new zfield. for that i need Customer code and as well as sales area data from the screen.
1) customer code attribute is in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT.
2) sales area fields are in the UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET.
3) I have created new field(customer type to display the customer group 1 value "VIP") in UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTLEADH.
As per my understanding, in the context node BTLEADH, GET_METHOD of atttribute New Zfield, i have to read customer code from UI component BT108H_LEA, View BT108H_LEA\Detail, Context node is BTPARTNERPROSPECT and Sales area data from UI component BTORGSET, View BTORGSET\OrgSetData, Context node is BTORGSET based on the values, validate and display the data.
But as per your recent reply you are asking me to write the code in get_property_attribute---division. so i didnt understand.
Kindly clarify if i am wrong.
awaiting for your response.
Thanks
BHanu -
How to create a table type context node
Hi,
I am trying to create table type context node. While creating, in the wizard no where I can see the option for this.
Could you please let me know how can I do this?
In one standard component: SRQM_INCIDENT_H, I can see multiple table type context nodes. Not sure how and why?
Thanks,
SandeepHI Sandeep,
When you right click on context node and create , a wizard will open. In that Wizard in one sreen it will ask for type of view. There you have to select Table View.
Regards,
Lakshmi.Y -
How to delete a dynamically created context node ?
Hi
I have created a context node dynamically and have added the check boxes to the node.
But when i am refreshing the page it is giving me the following excepiton:
com.sap.tc.webdynpro.progmodel.context.ContextException: DataNodeInfo(DwdReportView.Person): duplicate name for attribute attr1
I am writing the following code in wdDoExit() method so that the node is invalidated and all dynamically added nodes and attributes are destroyed from the metadata.
The code is :
wdContext.getContext().reset(false);
or
wdContext.getContext().reset();
or
wdContext.nodeName().invalidate();
I have tried all the above mentioned code snippets but it is still giving me the same exception.
Please help me resolve this issue.
Thanks in advance.
Regards
ShailyShally,
A better forum to place your question is the forum.
To your question: the wdDoExit() method is only called once i.e. when the view is destroyed from memory. Just like the wdDoInit() mehtod is called only once at initialisation of the view.
Try refactoring your code, so that upon initialising of your context, the old version of it is removed.
Hope this helps.
Regards,
Alain -
How to get value from one context node to otehr contect conde in diff views
Hello Guru's
We have a rek which is of getting the value from one context node to other context node,
for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
Inputs are highly appricated.......Hello,
Thanks for your Reply
But my rek is i want to get value from different views
eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
for this which method should i use to chive this.
Thanks.. -
How to find for a particular WBS element thourgh which budget has consumed
Hi ,
I have a WBS element C-09864/001/002. In CJ33 system is showing Budget amount 90,000 and distrbuted 90000. So total budget has consumed. Now if i want to know how the budget has consumed ,means in what ways it has consumed like PR or POs and what are those PR& PO doucment numbers.
Apart from PR & PO s directly by posting FI documet also , is there chance for consuming budget .If yes how to find ?
Thanks & regds
ramachadraApart from PR & PO s directly by posting FI documet also , is there chance for consuming budget .If yes how to find ?
-> transaction MIRO, CJ88, KO88
You can use the steps I have provided to check this.
Regards, Gordon
Maybe you are looking for
-
I'm new to the Mac, new to Aperture 3 (running Trial at the moment). Came from PC and PS CS2 and Adobe Bridge. I have most of my pics in folders organized by date (2008-01-13) and inside the folders, the pics have their original file names - img7832.
-
Macbook Pro Attached monitor looks fuzzy
I just got a Macbook Pro last week. I had a Samsung monitor attached to my Mac Mini. I tried attaching the Macbook Pro monitor to the Samsiung monitor, but the display is looking a little soft. Suggestions? (Not buying an officla Apple Display that I
-
Comedy Central HD not working for me, but SD is?
I noticed this the other day, i am using a Tivo HD with cablecard, and for some reason channel 690 comedy central HD just says searching for signal. But the SD channel 190 works fine, any else seen this?
-
Apple AND Microsoft techs stumped; workarounds impractical. I need help.
I've got one that techs at Apple and MS have so far been unable to resolve, except with workarounds that aren't really practical. The problem I'm going to describe happened first in Office v.X. Not knowing where those discs were to reinstall even if
-
Will the macbook air 2GB be able to play World Of Warcraft: Cataclysm?
Would the new MacBook Air 13" 2010 with 2BG of memory be able to run World of Warcraft: Cataclysm smoothly -on lower settings, of course-? Thanks for any help you can provide.