Create Multiple dynamic Node in Web Dynpro Abap
Hi Friends,
I need your help.My object is to create Multiple dynamic dropdown UI element.I am able to create this dynamic Dropdown element. But i need to assign default different values to this dropdown elements.So i created dynamic nodes for each dropdown and created attribute with same name as that of value table.
My issue is its giving me error as : -
Lower-Level Node with Name ZDCN_BRD_STATUS.ME Does Not Exist
Help me to rectify this error..
Regards,
Santosh
Hi,
This information is not enough for anybody to help you. Write more in detail about your code and where exactly in the code this error is coming.
One trial experiment can be that you split your problem into two or more level.
Create several nodes in your context with attribute and sample data.
Create Dynamic UI (DDBI) and Bind these attributes to your DDBI.
When it works perfectly, then tryout how to create the Node and attribute dynamically. This way you are not making it too complex to solve this problem.
Similar Messages
-
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 -
Create dynamic table in web dynpro abap
Hi Friends,
I want to create several tables in a web dynpro. For this reason I have created a View, a group1 and a context node.
Now I want create a table for each characteristic group from cabn in the ui group1.
For this reason I want to use create_table_from_node and I have to craete dynamicly attributes in the node.
Is it the propper way or is there a different approach.
So in this case
1. I read the node
2. craete attribute for each characteristic group in this node
3. create a UI Table with create_table_from_node for each attribute
4. bind the data to the UI Table
Can I do the same without to craete attributes?
Thank in advance.
RG. JimbobHi Jimbob,
Have you looked at using the row-repeater UI element? You could then have as many tables as per your characteristic groups.
Although this would be more difficult if the attributes of each table were to also be only known at run-time. (I'm not sure that this is the case though from your description of the issue.)
so have a context of the form:
Context Root
--->node_characteristic_group (0..n)
>node_char_group_details(0...n) (non-singleton child node)
then bind your row repeater to node "node_characteristic_group " and bind the table inside the row repeater to node "node_char_group_details".
Each time you had a new element in the node_characteristic_group you would get a new table...
Much easier to support that anything dynamically created.
Cheers,
Chris -
Portal dynamic iView from Web Dynpro ABAP?
I wish to use a "Dynamic iView" from a Web Dynpro ABAP application, but it appears the API is only available in Web Dynpro Java. Can this feature be used from Web Dynpro ABAP, or can this be accomplished in another way?
Scenario: I have two iViews on a page, one Web Dynpro ABAP and another iView whose source I want to change dynamically based on something a user clicks in the Web Dynpro ABAP.
Dynamic iView:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/a72c155df77038e10000000a422035/frameset.htmSo you are suggesting the WDA fires an event to a new WDJ that we would need to create that would in turn use the Dynamic iView service mentioned in that help document?
-
Create portal user using web dynpro abap application
Dear All,
I would like to know is it possible to create portal user-id through web dynpro abap application.
My requirement is
> I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
> I will click on submit, one unique id will get created. This unique id will be the login id for portal.
I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
If it is possible to create the portal users using web dynpro abap pls share the code as well.
Regards,
Swapnil IndulkarHi swapnil,
I think by using BAPi.. BAPI_USER_CREATE1 you can create.
Please check this...
Create portal user from webdynpro abap
Creating user and assigning a group through code
user administration su01
How can i get the portal user id from logon ticket in the webdyn 4 ABAP
Cheers,
Kris.
Edited by: kissnas on May 21, 2011 8:47 AM -
Web Dynpro ABAP Stylesheet - Portal Integration
We have a Web Dynpro ABAP being displayed through a Portal iView. The Portal server and the Web Dynpro ABAP server are separate. Our problem is in getting the Web Dynpro ABAP to use the stylesheet of the Portal.
We can make this work by forcing an external stylesheet (via application parameters, global Dynpro settings, or passed on the end of the URL), but we have to hard-code the full URI of the Portal stylesheet. This would be very hard to manage if we hard-code every iView's CSS location (or set every individual Web Dynpro's application parameters), and we want instead for the Portal to supply whatever the user's stylesheet is dynamically.
So what we want is: if we change the Portal stylesheet, the Portal would just pass the new stylesheet URI to our ABAP Web Dynpro iViews without manual modification of the iViews.
Here is an example of what works:
http://our-abap-server.com/sap/bc/webdynpro/sap/cprojects?sap-ep-themeroot=https://our-portal-server.com/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/ourportalstylesheetname
Shouldn't the Portal iView automatically pass sap-cssurl or sap-ep-themeroot to Web Dynpro ABAP? We have "Supply Portal Stylesheet" checked on the iView it just doesn't pass anything to the Web Dynpro ABAP. Why wouldn't SAP pass this parameter dynamically to the Web Dynpro ABAPs? Is this a product error?
There seems to be a great deal of confusion about this on the SDN message forums... I think this may be the core issue.
We are using a 7.0 SP13 Portal with an ECC 6.0 SP12 backend.Now that you mention it, I ran into that exact same issue -- the application parameters didn't work for hard-coding the theme. The fix ended up being the web server semicolon thing I mentioned earlier (that was why the parameter didn't make it to the backend).
The themeroot is automatically sent to the backend from the portal, so you shouldn't really have to manually send it as a parameter anyways.
I'd suggest talking to your network guys. Also this could be the result of the SP you are on (we're on 13 for the portal and the backend system -- maybe this feature doesn't work in some earlier SP's?). There are also some options to force the theme as a WD application parameter on the backend side, which you could check into. Details on those are here:
[http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm]
Also you could look at the requests being made by installing HttpAnalyzer in your browser. You can inspect "post" parameters going from the portal to the backend system. One of those posts (the first one to the backend system) should contain the parameter sap-cssurl (same kind of thing as sp-ep-themeroot). This is where our problem turned up as this parameter was not being posted.
Lastly, make sure that your frontend portal and backend portal are in the same domain. For instance:
frontend.domain.com
backend.domain.com
If your backend and frontend are in different domains it messes all kinds of things up, including stylesheets I think. If you can't get around this, then read about domain relaxing (but I highly recommend getting the domains the same).
When we started, ours were:
portal.dx.company.com
sap.company.com
This created all kinds of problems. Putting our systems in the same domain with the same protocol and fixing our little semicolon web server problem fixed basically all of our portal complaints. Up until that time, we had also had many problems with session management (backend sessions were getting stuck until the HTTP timeout).
That's all I know. Good luck. -
How to add screen elements at run time on button click in Web Dynpro abap?
Hello All,
I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
Please help.
ThanksHi Ajinkya,
This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
Cheers,
Amy -
Adobe form to save data using Web Dynpro ABAP
Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
creating Adobe offline form using Web Dynpro ABAP same time.
I have several questions and hopefully, many gurus like you will provide answers.
I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
using interactive form. Is there any detail explanation/example on this?
I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
I am sure I didn't install/configure something correctly.
Anyone has any idea what I didn't do?
I have another question, but I will wait till later after I figure out above ones first.
Thanks for all your help in advance.
JohnHi John,
In the WD4A view, there is a button "Show/Hide Layout Preview".
Click on that button to be able to see the Layout.
Note that this button is next to the Pretty Print button.
regards,
Reema. -
Need Treestructure implementation in Web Dynpro abap
hai all,
i am trying to create a tree structure in Web dynpro abap ,
can any one provide the relavent document for the tree structure creation.
Thanks,
sreevathsava.Gok
-
WD ABAP: Shopping cart in Web Dynpro ABAP
Hi all,
I need to create a shopping cart in Web Dynpro ABAP. How does the concept of shopping cart work? and what are the steps in doing it? Thanks for your help.
Thanks,
Sravanthihi michael
Your scenario says that you would like retrieve materials from one table row and then pass them to the sales order bapi to create a sale order.
if my understanding of your requirement is correct then can give some more information so that it would be easy to provide an example
regards
ravi -
Reading Dynamic Table Values in interactive form (web Dynpro ABAP)
Hi All,
I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
How can I resolve this problem.
Thanks and Regards,
Boopathi Mthat means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
probably addNew() mathos may be useful to you.
it appends a new record to the record set.
xfa.sourceSet.dataConnectionName.addNew()
also when on the exit event of the table field, do the following:
var i = xfa.parent.index
$record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname) -
How to create calendar in web dynpro abap
Hi ,
how to create calendra in web dynpro abap.
Thanks in advance.
Regards, Chetanhi,
For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
Regards,
Jithin -
Dynamic table columns in web dynpro abap
Hi,
In my current project I have got a requirement whose solution I am not able to figure out.
My requirement is this:
I will have a table containig budget owners name(since its compensation management in HR).There will be a table popin inside this table on the click of the personal number of the budget owner. Now the table popin will have another table with all employees name under that particular budget owner.
The problem is that the table inside the popin will not be having fixed columns.Actually the columns will be coming from a standard java web dynpro application (say in the form of an internal table).
My requirement is this how can this be handled?Can we include all the possible columns in the node(which i bind to the child table) and make them visible/invisible during runtime? or create a dynamic node and assign it to the table(but in this case a node needs to be bound to the table during design time,what to bind?) ?
Can u please help along with code snippets.
Thanks and Regards,
Saikat.Thnx for the input.
I am abke to make the table columns inside the popin visible/invisible.
I have a tabstrip.Indise one of the tabs is my main table and inside one of the columns is the popin.Inside that a transparent container and finally the table inside that.
This is the code that worked for me.
METHOD wddomodifyview .
DATA lr_root_container TYPE REF TO cl_wd_uielement_container.
DATA lr_table_popin TYPE REF TO cl_wd_table_popin.
DATA lr_transparent_container TYPE REF TO cl_wd_transparent_container.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_table_in_table_popin TYPE REF TO cl_wd_table.
DATA lr_node_header_node TYPE REF TO if_wd_context_node.
DATA lr_node_item_node TYPE REF TO if_wd_context_node.
DATA lr_tabstrip TYPE REF TO cl_wd_tabstrip.
DATA lr_tab TYPE REF TO cl_wd_tab.
data lr_tc type ref to CL_WD_TRANSPARENT_CONTAINER.
data lr_table2 type ref to cl_wd_table.
DATA lr_table2_column TYPE REF TO cl_wd_table_column.
IF first_time = abap_false.
lr_root_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_tabstrip ?= lr_root_container->get_child( id = 'TABSTRIP1' ). "GETTING THE TABSTRIP
lr_tab ?= lr_tabstrip->get_tab( id = 'TAB1' ). "GETTING THE TAB INSIDE TABSTRIP
lr_table ?= lr_tab->GET_CONTENT( ). "GETTING THE CONTENT(TABLE IN THIS CASE) INSIDE TABSTRIP
lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_MAIN_PERNR' ). "GETTING THE COLUMN INSIDE THE TABLE
"Table popin
lr_table_popin ?= lr_table_column->GET_POPIN( ). "GETTING THE POPIN INSIDE THE TABLE
lr_tc ?= lr_table_popin->GET_CONTENT( ). "GETTING THE CONTENT(TRANSPARENT CONTAINER IN THIS CASE)INSIDE THE TABLE
lr_table2 ?= lr_tc->get_child( id = 'TABLE_EMPLOYEE' ). "GETTING THE EMPLOYEE TABLE INSIDE THE TRANSPARENT CONTAINER
lr_table2_column ?= lr_table2->get_grouped_column( id = 'TABLE_EMPLOYEE_PERNR' ). "GETTING THE COLUMN INSIDE THE TABLE
lr_table2_column->SET_VISIBLE( '02' ). "SETTING VISIBILITY FOR THE COLUMN
ENDIF.
ENDMETHOD.
But I'm still considering the dynamic node concept.Lets see if this works out or not.If not then I'll have to go for the dynamic node thing.
Thanks,
Saikat -
Problems creating new Web Dynpro ABAP application
All,
I am following this tutorial to create my first Web Dynpro ABAP application
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/501b42b5815133e10000000a155106/frameset.htm
In this tutorial I was asked to create a component as Local object.
But after giving the name of the component, I get an alert saying
"Object can only be created in SAP Package"
When I confirm this, I was shown a "Create Object Directory entry" dialog box which asks for attributes like Package.
And this box has Local Object button, when clicked I get the message "Test Objects cannot be created in foreign namespaces".
I found some other article through Google
http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_I.pdf
According to this, I tried to give $TMP as Package. But still have the same error
"Test Objects cannot be created in foreign namespaces"
Where am I and what should I do to create a new project?
Thanks.Thanks Abinav.
My problem is with naming convention only. Component name starting with Z solved my problem. -
Created in Web dynpro Java or Web dynpro ABAP
hi all,
I have a web application running. Its UI is created either in web dynpro java or web dynpro ABAP. Is there any way by which we can find out that in which form of UI technology is it created; in web dynrpo java or web dynpro ABAP ?Hi,
I am really not sure if this is recommended..
Try some negative testing on the application. If the application crashes, the trace of the error occured will tell you what kind of development has been adopted for the Web Dynpro application.
Another hint can be the port number in the Application URL. If it is not 50xxx, and is somewht like 8xxx, it is surely Web Dynpro for ABAP.
Regards,
Alka.
Maybe you are looking for
-
Hey my lock screen button and home button jammed it doesnt work.How can I fix this problem.But first of all I live in Turkey.But my Iphone 4 is bought from apple store victoria gardens CA.Do I have warranty in Turkey ?
-
Can I import photos from iPhoto to my iPad?
Just a quick question, would it be possible to download photos and videos especially, from iPhoto to my iPad? I have a few videos that I would like to keep on my iPad, but are too big to send via email. Thanks
-
Windows virtual machine on a Mac mini
Can the Fusion drive in a Mac mini be partitioned to run a Windows7 virtual machine?
-
Hi When i use transaction CATS_DA, on the selection screen i get a button for Last Used Variant. Is it possible to get the same button available when using transaction CATA or CATC etc? thanks in advance JG
-
If I start Reports Builder OC4J from Startup. and if I type the following into my browser http://myserver:8888/reports/servlet/rwservlet?report=C:\Oracle\Ora9iDS\reports\j2ee\reports_ids\web\test\MyTest.rdf&destype=cache&p_jdbcpds=sa/sa@mydbserver:14