Dynamic Programing : WebDynPro ABAP
Hi expert ,
I need to create UI element (Text_view) dynamically ,
can anyone send the code for that one .
Thanks & Regards
Sankar.M
Hi,
Refer to this link -
Dynamic Programing
Regards,
Lekha.
Similar Messages
-
How to add Image dynamically in Webdynpro ABAP
Hi Experts,
How to add Image dynamically in Webdynpro ABAP.
My requirement is i maintain all the images in a table.
image source has to pick the table URl dynamically and display.
is that possible in webdynpro?
and also please give the suggesion,
without using MIME objects is that anyway to get images?
Thanks in advance.
Regrads,
JeyanthiHi,
are those icons wou want to display then. he following code will be useful.
data : lo_IMG type ref to CL_WD_IMAGE.
LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
lo_cont->add_child( the_child = lo_img ).
here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
Regards,
Anil kumar G -
How to bind a bapi dynamically in webdynpro abap program
Hi Gurus,
I want to bind a bapi dynamically in my webdynpro abap program. I have four bapis in my program. During run time depending on requirement appropriate bapi should be binded to context node. Please send me links to documents or code urgently. Points will be rewarded.
Thanks,
k.c.hi
good
go through this link,hope this ll help you to solve your problem
http://www.vnsg.nl/temp/138624816/A1-WDA_Themadag.pdf
http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/elaborations/14-WebDynpro-Dataflow.pdf
thanks
mrutyun^ -
How to create a roadmap ui element dynamically in webdynpro abap?
Dear team
iam new for webdynpro my question is how to create the road map programme dynamically using webdynpro
could you tell me what are the steps i have to take, what are the elements i have to bind?
and what code & where i have to write the code?
regards
sathyaHi Sathya,
Write the follwing code in WDDOMODIFYVIEW method to create a Dynamic ROADMAP and also create an attribute of
type string to control the selection of steps in road map.
method WDDOMODIFYVIEW .
data : lr_ele type ref to if_wd_view_element.
data : lr_rm type ref to cl_wd_road_map.
data : lr_step type ref to cl_wd_road_map_step.
data: lr_container type ref to cl_wd_transparent_container.
data : lr_flowdata type ref to cl_wd_flow_data.
CALL METHOD view->get_root_element
receiving
root_view_element = lr_ele.
lr_container ?= lr_ele.
CALL METHOD cl_wd_road_map=>new_road_map
EXPORTING
id = 'ROADMAP'
receiving
control = lr_rm.
CALL METHOD lr_rm->bind_selected_step
EXPORTING
path = 'VALUE'.
CALL METHOD cl_wd_flow_data=>new_flow_data
EXPORTING
element = lr_rm
receiving
control = lr_flowdata.
CALL METHOD lr_container->add_child
EXPORTING
index = 1
the_child = lr_rm.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'ONE'
name = '1'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 1
the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'TWO'
name = '2'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 2
the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
EXPORTING
id = 'THREE'
name = '3'
receiving
control = lr_step.
CALL METHOD lr_rm->add_step
EXPORTING
index = 3
the_step = lr_step.
endmethod.
Then you can use the context attribute to navigate between the steps and do respective actions. -
How to make field visible and invisible dynamically in webdynpro ABAP
Hi Experts,
I am working on simple webdynpro application, in which I have two radio buttons and three fields.
When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
Please help out.
Thanks
BasanagoudaHi Prabhu,
I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
Thanks
Basu -
Hiding an UI element dynamically in webdynpro ABAP
Hi Gurus,
I want to hide a Interactive form UI element dynamically at run time. Please let us know how to proceed with this and provide the code for this, which will be helpful.
Thanks
Rahulhi ,
bind the VISIBLE property of the UI element with a context attribute created in the CONTEXT tab. This context attribute should be of type WDUI_VISIBILITY
u can refer this code
wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible
regards,
Amit -
How to change the select options selection text dynamically in webdynpro abap ?
I am using standard interface WDR_SELECT_OPTIONS.... i want to change the Selection text dynamically in my select options.I.E. if the select option is for VBELN field than i want to change its description SALES ORDER Number through Code to some other text.
If anyone can please help me in this.Hi,
You can achieve your requirement as below
Get the range table of your selection field as below
data lt_range_table type ref to data.
wd_this->m_handler->GET_RANGE_TABLE_OF_SEL_FIELD(
exporting
i_id = 'VBELN'
receiving
rt_range_table = lt_range_table ).
Update the selection field with new description - 'Your New Text'
wd_this->m_handler->UPD_SELECTION_FIELD(
exporting
I_ID = 'VBELN'
I_DESCRIPTION = 'Your New text'
I_IS_AUTO_DESCRIPTION = abap_false
IT_RESULT = lt_range_table ).
You can also pass the other parameters as per your requirement
Hope this helps you.
Regards,
Rama -
Submit dynamic program in ABAP
Hi,
I have to take the name of the program from the user in parameter on the selection screen and then call it. for this purpose i have used SUMBIT stmt as follows:
parameters : p_pname(15), "program name
p_var(15). " name of the varaint
start-of-selection.
SUBMIT p_pname with SELECTION-SET eq p_var.
But the above code gives a dump stating the program p_pname doesn't exist.
Kindly tell me how should this be done?
Regards,
Mansi.
Edited by: SAP USER on Jul 10, 2008 10:09 AMHi,
Refer below code
SUBMIT zk_ra_enhancement "TO SAP-SPOOL
"IMMEDIATELY 'X'
"WITHOUT SPOOL DYNPRO
USING SELECTION-SCREEN 1000
WITH cn_pspnr CP st_wbs-low
WITH koagr = c_cost_ele_grp
WITH r_budat BETWEEN g_first_date_in_period AND g_last_date_in_period
AND RETURN.
Regards,
Prashant -
ABAP Certification - What exactly means the "dynamic programming" topic?
Hi all,
Actually i´m studying for my ABAP exam and i´d like to know what exactly means dynamic programming(of ABAP Advanced topic, take a look at http://www50.sap.com/useducation/certification/curriculum.asp?rid=493&vid=5).
Is it only about creating a new program dynamically? or anything else? I just want to know where will be my focus on it.
thank you!
AndréDynamic programming could refer to a number of things, but here I assume that it refers to such things like, creating a dynamic internal table at runtime, and/or using RTTS, or it could mean, simply using fields symbols.
Regards,
RIch Heilman -
Exercises for Dynamic Programming
Hi Everybody,
I am New to Dynamic programming in ABAP-Webdynpro.
Can any body suggest me few webdynpro exercises so that I can Practice.
Regards,
XavierHi,
check these programs
DEMO_CONTEXT_MENU_DYNAMIC
DemoDynamic
WDR_TEST_DYNAMIC
WDR_TEST_DYNAMIC_1
WDR_TEST_DYNAMIC_2
WDR_TEST_DYNAMIC_3
WDR_TEST_DYNAMIC_CI
Also check this blog really help ful to you
Dynamic Programming in Web Dynpro ABAP - Introduction and Part I
Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783
Edited by: suman kumar chinnam on Oct 23, 2008 7:42 AM -
Hi All
Can anyone send me some good documents in the below topics, it is urgent
1) Dynamic Programming
2) ABAP Objects
A Good documents will get rewarded.
Thanks PrasadParameter mapping
normal ABAP is process oriented, where is OOP-ABAP is a new methodology in ABAP which uses object oriented programming.
we have C++, java, C#, etc as OOP languages.
ABAP has also implemented the OOP technology.
it uses classes, methods and interfaces instead of functiongroups and function modules.
As part of SAPs long-standing commitment to object technology, Release 4.0
of R/3 will contain object-oriented enhancements to the ABAP programming
language. SAPs object strategy is based on SAP Business Objects and now
covers modeling, programming, interfacing, and workflow. By using principles
like encapsulation, inheritance, and polymorphism, the object-oriented
extensions of ABAP will support real object-oriented development. This will
result in improvements in the areas of reusability, maintenance, and quality of
code. SAP offers an evolutionary approach toward objects which leverages
SAPs own and its customers investments in existing business processes,
functionality and data.
follow this link ABAP OBJECTS with good examples.......
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
check the below links lot of info and examples r there
http://www.sapgenie.com/abap/OO/index.htm
http://www.geocities.com/victorav15/sapr3/abap_ood.html
http://www.brabandt.de/html/abap_oo.html
Check this cool weblog:
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sap-img.com/
http://www.sapgenie.com/
http://help.sap.com
http://www.sapgenie.com/abap/OO/
http://www.sapgenie.com/abap/OO/index.htm
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://www.sapgenie.com/abap/OO/index.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
these links
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
these are the links
Check this for basic concepts of OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
Tabstrip
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
Editable ALV
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
http://www.sapdevelopment.co.uk/reporting/alvhome.htm
http://www.sap-img.com/abap/what-is-alv-programming.htm
http://www.sap-img.com/abap-function.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/alv/alvtree%5Calvtree_basic.htm
http://esnips.com/doc/ad20dca9-6182-4903-8d8f-96a66dc8590c/ALV.pdf
http://www.sap-img.com/abap-function.htm
Classical ALV:
http://www.geocities.com/mpioud/Abap_programs.html
OOPS ALV:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Also Chk this standard Programs.
ABAP_OBJECTS_ENJOY_0 Template for Solutions of ABAP Object Enjoy Course
ABAP_OBJECTS_ENJOY_1 Model Solution 1: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_2 Model Solution 2: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_3 Model Solution 3: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_4 Model Solution 4: ABAP Objects Enjoy Course
ABAP_OBJECTS_ENJOY_5 Model Solution 5: ABAP Objects Enjoy Course
DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects
DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen
DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects
DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration
DEMO_ABAP_OBJECTS_INTERFACES Demonstration of Interfaces in ABAP Objects
DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects
DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
Reward points if found helpful -
DYNAMIC PROGRAMMING IN WEBDYNPRO ABAP.
Hi Experts
How to create input field dynamical and when i click on the input field drop down ui should display,If i click n time the input field that many drop down should be displayed this should be done using dynamic programming.
Waiting for Reply.
Thanks & Regards.
kittuHi,
Please search before posting.. discussed many times.
To create Input field dynamically, follow like this...
DATA LR_CONTAINER TYPE REF TO CL_WD_UIELEMENT_CONTAINER.
DATA LR_INPUT TYPE REF TO CL_WD_INPUT_FIELD.
DATA LR_LABEL TYPE REF TO CL_WD_LABEL.
DATA LR_TABLE TYPE REF TO CL_WD_TABLE.
DATA LR_BUTTON TYPE REF TO CL_WD_BUTTON.
DATA LR_GRID_DATA TYPE REF TO CL_WD_GRID_DATA.
DATA LR_FLOW_DATA TYPE REF TO CL_WD_FLOW_DATA.
DATA LR_MATRIX TYPE REF TO CL_WD_MATRIX_HEAD_DATA.
LR_CONTAINER ?= VIEW->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
CALL METHOD CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD
EXPORTING
BIND_VALUE = ATTRIBUTE
ID = ATTRIBUTE
RECEIVING
CONTROL = LR_INPUT.
lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input ).
lr_input->set_layout_data( lr_matrix ).
LR_CONTAINER->ADD_CHILD( LR_INPUT ).
ENDIF.
Cheers,
Kris. -
Can I use logical databases in a WebDynpro ABAP program?
can I use logical databases in a WebDynpro ABAP program?
I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee). So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.Hello, Tiberiu.
You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
Regards,
Andre
PS: Pls reward points if it helps. -
Filling dynamic drop down in adobe interactive form( webdynpro ABAP)
HI all,
Im new in Webdynpro ABAP, my requirement is to fill drop down list in adobe interactive form. i created adobe form and its working fine.
I Created context like ROOT(cardinality 1:1)->DATANODE cardinality 0:n. This context is for drop down and in wddoinit i did like this.
IN WDDOINIT ,
DATA lo_nd_root TYPE REF TO if_wd_context_node.
DATA lo_nd_datanode TYPE REF TO if_wd_context_node.
DATA lo_el_datanode TYPE REF TO if_wd_context_element.
DATA ls_datanode TYPE wd_this->elements_datanode.
navigate from <CONTEXT> to <ROOT> via lead selection
lo_nd_root = wd_context->get_child_node( name = wd_this->wdctx_root ).
navigate from <ROOT> to <DATANODE> via lead selection
lo_nd_datanode = lo_nd_root->get_child_node( name = wd_this->wdctx_datanode ).
get element via lead selection
lo_el_datanode = lo_nd_datanode->get_element( ).
ls_datanode[] = lt_dna_value[].
CALL METHOD lo_nd_datanode->bind_table
EXPORTING
new_items = ls_datanode
set_initial_elements = ABAP_TRUE.
index =
while executing i'm getting this error ": WebDynpro Exception: ADS: com.adobe.ProcessingException: No output was generated while rendering: Stream for: PDFOut.(200,101). " . can u please tell me how to bind value for drop down.
I created sample table in same form and i binded same value to table, that time its executing fine.
can u please tell me solution for this Scenario.
Thanks
Hemachandran.
Edited by: hemachandran R on Sep 12, 2008 2:27 PMhi,
My requirement, is to use dynamic drop down in dynamic table. I am using webdynpro abap.
i populated the value in drop down.
Its working fine but the problem is how to fill the default value in drop down. because i want to bind the default value which im getting specify value from the table.because each row
im getting different values, like first row
CAR
, that CAR want to fill as a default value in drop down and second row as
BIKE
that BIKE want to fill as default value in drop down ( example drop down contain car , bike , cycle).
In adobe form i binded like this
$record.DATANODE.DATA[*].DNA_RATING
i dont know whether this one is correct or wrong .
im getting default value as empty.
please give me some solution how to do this.its very urgent
thanks
hemachandran. -
Creating a dynamic valuehelp in webdynpro abap
Hello,
I am doing some development in Webdynpro Abap.
At this point I am unable to use the standard valuehelp provided in the system for selecting some values in an SAP HR system. Would there be any code samples for coding a custom value help in Webdynpro for ABAP. One of the things I have to be able to do is to dynamically generate the values of the valuehelp based on the value of some other fields on the screen that I am coding.
Any code samples or links will be appreciated.
Thanks for your help.
Best Regards
Sumit Agarwal.hi,
Check out OVS Input help.
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
I hope this will help you.
Thanx.
Maybe you are looking for
-
Double quotes issue with GUI_UPLOAD
Hello Gurus, I'm uploading a tab delimited file from my PC using GUI_UPLOAD. I've a description field (Char 40) in my input file which contains characters like double quotes or commas or single quotes. Whenever there is a comma or a double quote in t
-
Can workflows be triggered by Web Service updates?
Hi, From our testing it appears that the workflows are not triggered by updates via the web services. In particular we have a workflows as follows: Workflow Name: Opportunity Contact Role Delete Record Type: Opportunity Contact Role Trigger Event: Wh
-
Hello, I've encountered a problem in what seems to be a very simple series of events. So simple that the error does not come up anywhere in the Soundtrack Pro User's Manual. I sent one audio clip into soundtrack pro from fcp using the "send to" comma
-
How Can I reconfigure or reinstall Discoverer 11 after cloning DB & EBS 12i on same host?
Hello, I am running Oracle rdbms 11.2.3, EBS 12.1.3 & Discoverer 11i on the same host. I have just cloned DB & EBS from PROD onto TEST and found out that Discoverer (fusion) cannot be cloned. How do get Discoverer (fusion) to work? Is it easier to re
-
Why I can't set exp bit ?
policy-map match class exp_0 class exp_1 class exp_2 class exp_3 class exp_4 class exp_5 class exp_6 class exp_7 class-map match-all exp_2 match mpls experimental topmost 2 class-map match-all exp_3 match mpls experimental topmost 3 class-map match-a