Develop MDM Heirarchy table using Webdynpro Tree
Hi
Can anyone let me know how i can build a MDM Heirarchy table using webdynpro tree.
Thanks
Can you be more specific? Is your problem with MDM or Web Dynpro? And what do you mean by "build an MDM Hierarchy Table"?
Walter
Similar Messages
-
Accessing KM Content using Webdynpro Tree Application
Hi,
I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
Does any body have code samples related to this? Can anybody help me out in fixing this issue.
Regards,
DivyaHello,
Here you have a sample to configure the environment, get access to KM and how to upload a file.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
Here, you have a sample code, where you instance a resource (a folder or file into KM repository) and you can do with it whatever you want.
final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
RID rid = new RID(strRid); --> path where your are looking for your folders. "/documents", for instance.
ResourceContext resourceContext = new ResourceContext(WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service"));
IResource r = aResourceFactory.getResource(rid, resourceContext);
Try and catch are missing, but that is the code to have an instance of a KM resource.
Regards,
David. -
Displaying KM content using Webdynpro Tree Application
Hi,
I want to create a webdynpro tree structure application which pulls out the KM Content into the tree Structure. How can i do that? Where can i give the KM path and make the KM documents reflect in the tree?
Does any body have code samples related to this? Can anybody help me out in fixing this issue.
Regards,
LeonHi
Try these
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f02b492c-7d76-2a10-86aa-e11e8388fde8
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3095f14c-29c5-2b10-f69e-edcb6f0f1367
Best Regards
Satish Kumar -
How to retrieve the data from MDM hierarchy table using MDM Java API
Hi,
I had a hierarchy table in MDM. This table had some column say x. I want to retrieve the values of this x column and need to show them in a drop down using MDM Java API.
Can anyone help me to solve this?
Regards
VallabhaneniHi,
Here is your code...
TableId Hier_TId = repository_schema.getTableId(<hierarchy table id>);
java.util.List list = new ArrayList();
ResultDefinition Supporting_result_dfn = null;
FieldProperties[] Hier_Field_props =rep_schema.getTableSchema(Hier_TId).getFields();
LookupFieldProperties lookup_field = null;
TableSchema lookupTableSchema = null;
FieldId[] lookupFieldIDs = null;
for (int i = 0, j = Hier_Field_props.length; i < j; i++) {
if (Hier_Field_props<i>.isLookup()) {
lookup_field = (LookupFieldProperties) Hier_Field_props<i>;
lookupTableSchema =repository_schema.getTableSchema(lookup_field.getLookupTableId());
lookupFieldIDs = lookupTableSchema.getFieldIds();
Supporting_result_dfn = new ResultDefinition(lookup_field.getLookupTableId());
Supporting_result_dfn.setSelectFields(lookupFieldIDs);
list.add(Supporting_result_dfn);
com.sap.mdm.search.Search hier_search =new com.sap.mdm.search.Search(Hier_TId);
ResultDefinition Hier_Resultdfn = new ResultDefinition(Hier_TId);
Hier_Resultdfn.setSelectFields(rep_schema.getTableSchema(Hier_TId).getDisplayFieldIds());
ResultDefinition[] supportingResultDefinitions =
(ResultDefinition[])list.toArray(new ResultDefinition [ list.size() ]);
RetrieveLimitedHierTreeCommand retrieve_Hier_tree_cmd =
new RetrieveLimitedHierTreeCommand(conn_acc);
retrieve_Hier_tree_cmd.setResultDefinition(Hier_Resultdfn);
retrieve_Hier_tree_cmd.setSession(Auth_User_session_cmd.getSession());
retrieve_Hier_tree_cmd.setSearch(hier_search);
retrieve_Hier_tree_cmd.setSupportingResultDefinitions(supportingResultDefinitions);
try {
retrieve_Hier_tree_cmd.execute();
} catch (CommandException e5) {
// TODO Auto-generated catch block
e5.printStackTrace();
HierNode Hier_Node = retrieve_Hier_tree_cmd.getTree();
print(Hier_Node,1);
//method print()
static private void print(HierNode node, int level) {
if (!node.isRoot()) {
for (int i = 0, j = level; i < j; i++) {
System.out.print("\t");
System.out.println(node.getDisplayValue());
HierNode[] children = node.getChildren();
if (children != null) {
level++;
for (int i = 0, j = children.length; i < j; i++) {
print(children<i>, level);
//end method print()
Best regards,
Arun prabhu S
Edited by: Arun Prabhu Sivakumar on Jul 7, 2008 12:19 PM -
Insert,update and delete data in a table using webdynpro for abap
Dear All,
I have a requirement to create a table allowing the user to add rows in it and update a row as well as delete a row from that table.To do this I guess I have to make use of ALV.But using ALV I am not able to enter data to a table where as I can make a column editable delete a row etc. please guide me to perform these operations(insert,update and delete) on table.
Thanks,
Reddy.Hi Sridhar,
By using ALV you can do all insert delete etc things. if you want to edit i mean you can yenter data in ALV.
Check this...
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1
Editing alv in web dynpro
editing rows in alv reports
Re: editing rows and columns in alv reports in webdynpro abap
Cheers,
Kris. -
How to update the database table using webdynpro??
Hi,
Can anybody helm me in updating database table....by entering the values on the output screen of webdynpro component??should i use any commit statement in function module ,which i used to update.hi martina....
consider you are having two input fields bound to attr1 and attr2.
now after pressing the save button:
just read teh two attributes to field1, field2 using code wizard. then
<db name>-<fieldname1> = <field1>.
<db name>-<fieldname2> = <field2>.
insert <dbname>.
---regards,
alex b justin -
Get Multiple Rows into internal Table using Webdynpro Alv Display ..
Hi guys ,
I need to find out the logic for getting all the selected rows into the internal table.
When i display the ALV Output on webdypro screen .
USer Selects multiple rows for further processing ..
Ineed to get all the rows selected by user into an internal table .
Please let me know how to achive this ...
Thanks in advance for quick reply
Regards
Saurabh GoelHi,
You need to use the method GET_SELECTED of IF_WD_CONTEXT_NODE to get the rows selected. Also ccheck for the paramters of that method, this retruns the element set.
This meets your requirement.
Regards,
Lekha. -
Inserting multiple records in to database table using webdynpro abap
Hi all,
I have created a username inputfield,a button and a table
with one coloumn.
If i enter names in the input field then the values should be
displayed in that table.
Even i have got the answer i am not able to insert
the values in to database(ztable) table.
i.e. only one value(1st) was inserted the second value was
not inserted ....
so kindly send me the coding to insert multiple records
into the database table......
by,
ranjithhi Ranjith,
If you want to insert multiple records from the webdynpro view table to database table then try the following code.
DATA lo_nd_tablenode TYPE REF TO if_wd_context_node.
DATA lo_el_tablenode TYPE REF TO if_wd_context_element.
DATA ls_tablenode TYPE wd_this->element_tablenode.
DATA it_tablenode LIKE STANDARD TABLE OF ls_tablenode.
navigate from <CONTEXT> to <tablenode> via lead selection
lo_nd_tablenode = wd_context->get_child_node( name = wd_this->wdctx_tablenode ).
get element via lead selection
lo_el_tablenode = lo_nd_tablenode->get_element( ).
get all declared attributes
lo_nd_tablenode->get_static_attributes_table(
IMPORTING
table = it_tablenode ).
MODIFY databasetablename FROM TABLE it_tablenode.
here it_tablenode is the internal table which holds the value from webdynpro view..
Regards,
Shamila. -
Prerequisites to Develop Adobe Interactive form using Webdynpro for Java
Hi All,
What are the prerequisites to develop adobe interactive form. In Service market place where I can get the download link of Adobe Designer and what are the stpes I need to follow in the configuration side. I have gone through the following link but I did not get any information related to configuration side. Can you guys please provide any help links related to adobe forms?.
Regards,
SureshHello,
you right the note is currecntly in update.
the path is:
http://service.sap.com/installations
Entry by Application Group
-> SAP NetWeaver
-> SAP NETWEAVER
-> SAP NETWEAVER 2004S
-> Installation & Upgrade
-> <coohse OS and DB>
-> Adobe LiveCycle Designer 7.1
Best regards,
Dezso -
Use MDM java Api for saving an image to mdm image table
Hi experts
I want to save an image from web dynpro java to MDM image table using java Api's
Can anyone provide a code snippet .
I am using MDM 7.1 sp6.
Thanks and regards
SureshHello Suresh
Unfortunatly, this is no possible, i mean, to load images to mdm repository through JAVA API.
Sure you can do it directly to database ( but for that you need to do saome investigation)
Here you can found JAVA API classes for MDM:
http://help.sap.com/javadocs/MDM71/
Next two classes are working with BLOBs (pdf, images, video, etc.) in MDM repository:
com.sap.mdm.blobs
com.sap.mdm.blobs.commands
Regards
Kanstantsin chernichenka
Edited by: kanstantsin_ch on Sep 8, 2011 2:36 PM -
How to call the RFC from R/3 to SRM, when we use webdynpro abap? (Urgent)
Hello
We use SRM Server 5.5 with classic scenario.
We want to call RFC in R/3 from webdynpro ABAP.
How can we do that?
We are developing the web report using webdynpro abap.
So we need some of R/3 data such like PR(EBAN)and PO(EKKO,EKPO).
When user choose the search parameter, report diplay the Shopping cart, PR and PO data on webdynpro. So we call the R/3 RFC to display the PR, PO data.
But I tired to call the RFC in R/3, We could not call it.
How to call the RFC from R/3 to SRM, when we use webdynpro abap?
Thank you,
Best Regards,
SH.Hi
<b>Please look at the following threads as well -></b>
WebDynpro in SRM
BAPI's /RFC's in SRM
BAPI to Change Shopping Cart by RFC
SRM60 and webdynpro
Webdynpro Services Exception
WebDynpro using BAPI has an error
SRM60 and webdynpro...
<b>SAP uses META Function modules in SRM to get data from R/3 back-end.</b>
<u>For getting Purchase requistion data, use the function modules -></u>
META_REQUISITION_CHANGE Change purchase requisition
META_REQUISITION_CREATE Create Requisition
META_REQUISITION_DELETE Delete/close purchase requisition
META_REQUISITION_GETDETAIL Display requisition details
META_REQUISITION_GETITEMS Display requisition items
META_REQUISITION_GETRELINFO Get Releasease Info for requisitions
<u>For getting Purchase order data, use the function modules -></u>
META_PO_CREATE Create purchase order
META_PO_DELETE Delete reservation
META_PO_GETDETAIL Display purchase order details
META_PO_GETITEMS Display purchase order items
META_PO_GETRELINFO Display purchase order release information
Hope this will definitely help. Do let me know.
Regards
- Atul -
MDM Hierarchy Table Into Tree (Java WebDynpro)
Hello all,
I have a requirement of showing a MDM Hierarchy Table into Tree UI element.
These are the steps am following:
1) MDM Connectivity
2) Using RetrieveLimitedHierTreeCommand command to retrieve tree structure of the table
3) Using getChildren() method of each node to get the children
4) Made a tree ui element with a recursive node
Now since the Hierarchy table can reach any level of nodes how do i write code for dynamic tree node/leaf generation?
Please guide me through with detailed steps/code if possible?
Regards,
Yogesh BhatiaHi Yogesh,
After getting the HierNode you have to recursively populate the hierarchy tree using the below code:
private void createHierarchyTree( parent_element, com.sap.mdm.data.HierNode HierNode)
if(HierNode != null && HierNode .getChildren() != null)
for(int iChildCount=0 ; iChildCount < HierNode .getChildren().length ; iChildCount++)
IPublic<comp name>.Iparent_element objTreeElement = parent_element.node<Recursive node name>().create<name>Element();
objTreeElement.setattr1(HierNode.getChildren()[iChildCount].getDisplayValue());
objTreeElement.setattr1_Recid(HierNode.getChildren()[iChildCount].getId().id);
parent_element.node<Recursive node name>().addElement(objTreeElement);
// call the method recursively
createHierarchyTree(objTreeElement, HierNode.getChildren()[iChildCount]);
This will populate the tree, you need to create an action in the tree view and link it to TreeNode Type action property using which you can get the selected value.
Hope this helps!!
Cheers,
Arafat -
Editing Tree UI for MDM Hierarchy tables ina WDJ application
Hi ,
We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
However, tree UI is used only for the display purpose. Is there anyway or any other UI available
using which we can achive edit option in the tree as well?
Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
Like PC move or SBU move from one hierarchy to another.
First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
Thank You,
Apoorva DaveYou could use a Tree UI element together with a detail view for editing the selected tree node. Or you could use a "TreeTable" which is a Web Dynpro Table with a TreeByNestingTableColumn.
-
Editing tree ui for MDM hierarchy tables in a WDJ aplication
Hi ,
We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
However, tree UI is used only for the display purpose. Is there anyway or any other UI available
using which we can achive edit option in the tree as well?
Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
Like PC move or SBU move from one hierarchy to another.
First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
Thank You,
Apoorva Davei think u can use the method addNodeType (IWDAbstractTreeNodeType nodeType, int index) to add/edit an element at a particular index in the tree.
but drag drop features i think are not supported in standard WD and u need to use a java script in the view to achieve this ?
thanks
-Adrivit -
Current selected element of table ( using tree )
Hi experts ,
I am using a tree by table UI in which master. I want to know text of current selected element of table (which is one of the column of table ) . as table is dynamically expanding or collapsing upon expanding or closing master column.
so i used follwing code in do modify view to get it
IWDTable tab = (IWDTable) view.getElement("Table1");
tab.mappingOfOnLeadSelect().addSourceMapping("row", "element");
public void onActionOnrowSelect
(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, int element )
//@@begin onActionOnrowSelect(ServerEvent)
//@@end
but above code also give me current row (an integer value) .
but its not solving my problem . as current row elemt is always not going to be same row in which table (data source for table).
can any body have solution ?
Regards
abhayHi Abay,
IWDTable tab = (IWDTable) view.getElement("Table1");
tab.mappingOfOnLeadSelect().addSourceMapping(IWDTreeNodeType.IWDOnLoadChildren.NODE_ELEMENT,"element");
datatype of the <b>element</b> should be <b>IWDNodeElement</b>
Or
You can use
IWDNodeElement IWDNode.getTreeSelection()
Ex: wdContext.nodeA().getTreeSelection()
Regards
Ayyapparaj
Maybe you are looking for
-
My iMac Not Working With My HP Laserjet 1020 Printer
Hello Everyone, Ok here is the problem my HP LaserJet 1020 has been working fine up until i upgraded to Snow Leopard i am currently running (10.6.2) and i have had heaps of issues with Snow Leopard i just don't know whats wrong with it i thought it w
-
JSP Dyn Page want to display "Loading..." img + message
Hi, we have EP6 SP2 environment. I have a JSPDynPage component that does a lot of preprocessing then loads the jsp page. Most of the time it spends in doProcessBeforeOutput() (has to connect to 2 backends and pull some data out). it is very slow load
-
How do I open an " not writable" catalogue?
I just upgraded my processor and OS to Windows 7. I reinstalled Lightroom 3. When I try to open a catalogue, I get an error message that it cannot be opened because it is not writable. Any suggestions?
-
Media Cache Not Found Error in Mavericks
Hello: In OS X Mavericks, I am trying to create a custom user template as part of an image to use on lab machines. I have everything working the way I like, even the preferred Adobe CC applications. In Premiere Pro CC, however, I have an issue. If a
-
Install a customer font - dynamic form design
Hi all, we set the parameter gs_docparams-dynamic mit abap_true for generating the form, beause we locate some form objects dynamically. Now we need to embed our customer font other licenses (for the dynamic form design). So, we installed the font (