Web Dynpro ABAP - Select Option and ALV Component Usage
Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get a dump on select-option definition.
Note
The following error text was processed in the system ECD : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server ITAWSECCS01D_ECD_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I went in debug and the piece of code dumping is:
lt_range_table =
wd_this->m_handler->create_range_table( i_typename = 'S_PROJ' ).
Is there someone who can help me?
Thanks in advance,
Stefano.
Hi,
I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial
Web Dynpro ABAP - Select Option and ALV Component Usage
In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.
Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd637
I implemented and generated the web dynpro with success but when i execute a test i get
an error as
Note
The following error text was processed in the system EI6 : Exception condition "TYPE_NOT_FOUND" raised.
The error occurred on the application server EC6IDES_EI6_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP
I have created a table zmy_table and trying to make USERID field as a select-options.I've written the code as shown below .
data: itab type standard table of zmy_table,
wa type zmy_table.
data:
node_employee type ref to if_wd_context_node,
elem_employee type ref to if_wd_context_element,
stru_employee type wd_this->element_employee ,
item_userid like stru_employee-userid.
navigate from <CONTEXT> to <EMPLOYEE> via lead selection
node_employee = wd_context->get_child_node( name = wd_this->wdctx_employee ).
@TODO handle not set lead selection
if ( node_employee is initial ).
endif.
get element via lead selection
elem_employee = node_employee->get_element( ).
@TODO handle not set lead selection
if ( elem_employee is initial ).
endif.
alternative access via index
Elem_Employee = Node_Employee->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Employee is initial ).
endif.
get single attribute
elem_employee->get_attribute(
exporting
name = `USERID`
importing
value = item_userid ).
select *
from zmy_table
into table itab
where userid = item_userid.
node_employee = wd_context->get_child_node( 'EMPLOYEE' ).
node_employee->bind_elements( itab ).
Is there someone who can help me and can tell am i doing wrong?
Thanks in advance,
Dheeraj
Similar Messages
-
Web Dynpro Abap: Select-Options: Save Selection Data
Hello,
I am using select-options in web dynpro abap. Need to add a feature where the user can save his selection values as a variant.
All I can think of is getting all the selection values and saving these into a Z table.
Can you suggest a better way?
Thank you.
IreneHi Irene,
Alas, it's currently not possible. You could write your own wrapper though adding a save button. Inside of the action handler you could retrieve the range tables of all fields, convert their content to a structure you like and save it a fitting db table. My suggestion is to use XML and a DB table with a XSTRING field in the data section to store the range table values.
Using personalization will allow you to customize your ui and to hide certain select option fields.
Best regards,
Thomas -
Web dynpro abap Select-option: upload data from clipboard
Hi Experts,
I have a select option in my ABAP Webdynpro application. My requirement is to give the "upload from clipboard" functionality for this select option as it is possible in normal R3. Please help me on this issue as it is client requirement.
Thank you in advance.
NarendraNarendranath Reddy wrote:
Hello Thomos,
> thanks for your valuable reply.
>
> I found the clipboard button in WDR_SELECT_OPTIONS component which is disabled. Is it possible to enable that button using
> enhancement and write the code as required ?
>
> Thanks & regards
> Narendra
No. The button was disabled because the underlying framework support hasn't been delivered yet. We need this feature implemented in the underlying JavaScript engine (which customers/partners shouldn't attempt to change or extend) before Web Dynpro can use it. -
Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
Hi Guys,
Can someone tell me, what is the Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
Regards
Sankar>
sankar.cgsl wrote:
> Hi Guys,
>
>
> Can someone tell me, what is the Access Key for Trial Version Web Dynpro ABAP 7.01 and 7.02
>
>
>
> Regards
> Sankar
HI Sankar,
I think it is not to get from this forum. You have to download the trail version and follow the instructions for installation.
Once you installed the software, you can request for the License key with your SCN credentials.
Follow this link for 7.02 Trial [/people/horst.keller/blog/2010/12/09/abap-trial-version-702-available-in-scn|/people/horst.keller/blog/2010/12/09/abap-trial-version-702-available-in-scn] -
ALV in Web dynpro ABAP - Export option as HTML
Hi All,
I am developing a webdynpro application for which output will be in ALV.
Here the requiremnet is to save the file in HTML format.
But the Standard ALV in web dynpro has only the option to export the result in Excel and PDF.
Could any one suggest or tell me that is there any customized way to add the HTML format option in the ALV.
The output of the ALV should be saved as HTML.
Note: In R/3, The ALV provides us with both Excel and HTML format.
Thanks,
ArunaHi,
You should be looking [http://weblogs.sdn.sap.com/cs/blank/view/wlg/20046?page=last&x-order=date|http://weblogs.sdn.sap.com/cs/blank/view/wlg/20046?page=last&x-order=date]
And also look in code exchange place . -
Hi all,
I have create a select-options with 5 fields and alv and a button(get list) in webdynpro, i have to retrieve the values into alv from table through select-options by clicking on button.
and i have written a function module for select options. so based on input, the values are fetched from table in function module.
i am getting confused with the coding part, so can anybody tel me the coding part for alv by calling function module nd how to pass the values to function module(i,e select-option fields.)
( written code for select-options in wddoinit)
Thanks all in advanceHi VANI,
I hope you have declared the component usage for select option properly.
Now do as follows:-
1. Add 2 attributes in the tab 'Attribute' to implement select option for a particular field.
Like i want to implement select option in PO_NO ( EKPO-EBELN) & ITEM_NO( EKPO-EBELP).
Declare usage in properties in particular view:-
Declare attributes :- M_HANDLER_Report - Type ref to - IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS_Report - Type ref to - IWCI_WDR_SELECT_OPTIONS
In WDDOINIT :-
create instantiate component usage from code wizard.
then set normal properties for display:-
WD_THIS->M_WD_SELECT_OPTIONS_REPORT = WD_THIS->WD_CPIFC_SELECT_OPTION_REPORT( ).
init the select screen
WD_THIS->M_HANDLER_REPORT = WD_THIS->M_WD_SELECT_OPTIONS_REPORT->INIT_SELECTION_SCREEN( ).
WD_THIS->M_HANDLER_REPORT->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
To assign a field in select option code like below:-
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELN' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELN' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
to add more field proceed as above again with different field.
create a range table that consists of this new data element
LT_RANGE_TABLE = WD_THIS->M_HANDLER_REPORT->CREATE_RANGE_TABLE( I_TYPENAME = 'EBELP' ). " enter the data element of the field
add a . field to the selection
WD_THIS->M_HANDLER_REPORT->ADD_SELECTION_FIELD( I_ID = 'EBELP' "field name
IT_RESULT = LT_RANGE_TABLE I_READ_ONLY = READ_ONLY ).
Now in particular action by which you want to get values bind to your alv table:-
Declare variable and field symbol to hold values from selection
DATA: RT_PO_NO TYPE REF TO DATA.
DATA: RT_ITEM_NO TYPE REF TO DATA.
FIELD-SYMBOLS: <FS_PO_NO> TYPE TABLE,
<FS_ITEM_NO> TYPE TABLE,
Retrieve the data from the select option
RT_PO_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELN' ).
Assign it to a field symbol
ASSIGN RT_PO_NO->* TO <FS_PO_NO>.
Retrieve the data from the select option
RT_ITEM_NO = WD_THIS->M_HANDLER_REPORT->GET_RANGE_TABLE_OF_SEL_FIELD(
I_ID = 'EBELP' ).
Now use select statement to get data from table
Select < field name > FROM < table name > INTO CORRESPONDING FIELDS OF TABLE < internal table to hold data > WHERE
PO_NO IN <FS_PO_NO> AND
ITEM_NO IN <FS_ITEM_NO> .
Regards,
Monishankar C -
New Web Dynpro ABAP Related eLearnings Available
Although not a question, I thought using a forum thread to let everyone know about some new Web Dynpro ABAP realted eLearning sessions might be useful. These focus on new features in NetWeaver 7.01 and give a little sneak preview to some features coming later this year in NetWeaver 7.02. I try to publish new sessions twice a month.
Web Dynpro ABAP: Dynamic Context Creation, Mapping, and Data Binding (NetWeaver 7.0)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89
Web Dynpro ABAP: Defaulting Select-Option Values (NetWeaver 7.0)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
Web Dynpro ABAP: Drag and Drop (NetWeaver 7.01)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0760510-a2d5-2b10-de9f-d897679696e3
Web Dynpro ABAP Flash Islands Tutorial: Google Maps (NetWeaver 7.01)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f16eef-91ef-2b10-4fb5-d709436f3cc3
Web Dynpro ABAP Flash Islands Tutorial: Multiple File Upload (NetWeaver 7.01)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b274e
Tutorial on ABAP HTTP Client REST Service Calls (using Polestar OnDemand)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/608ef65d-1ff9-2b10-b582-d6445b691719
Web Dynpro ABAP Tutorial: ACFUpDownload and ACFExecute (NetWeaver 7.01)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
ABAP Language and Tools 7.02 Preview (Also shows new features in WDA - 7.02)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90db53c4-812d-2c10-0789-dc18f6c9c725
Web Dynpro ABAP - Islands Revisited (NetWeaver 7.01)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0c91fc0-932d-2c10-4ca7-f5774950c8e3
NetWeaver Business Client 3.0 Preview (NetWeaver 7.02)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207c3b88-8c2d-2c10-00bc-bf10a7158f2b
Future topics coming later this month: "How to do Long Polling/Reverse AJAX in Web Dynpro ABAP 7.02" and "Database Locators and Streams for large STRINGs and XSTRINGS in 7.02".
I'm also always looking for suggestions for future eLearning topics.Hello Thomas.
I got some questions for you.
I think you are a great expert on SAP Development Subject.
I saw the webdynpro tutorials that you appended on this board.
When I saw the tutorial there were some persons work with me.
And they were suprised with the beautiful graphics. It's M~uch better than the webdynpro Screens( like colours or Designs) that I use until now.
So. I want to change my webdynpro development enviroment excatly the same thing as the tutorial's one.
And I found there is URLS. That means Unified Rendering Light Speed.
It changes Some of webdynpro's development attributes.
And I also think it can spoils some or all the webdynpro components that existed before I applied URLS.
I have two questions.
one of the questions is this. If I apply URLS on my system, whether the system does get any negative effedcts from the applying.
The other question is this. I have a experience that use NWBC. And the Tutorial's GUI looks similar to NWBC. I want to know the GUI's name and What should I do if I use it on my system.
Component Version - ECC 6.0
Enhencement Package Version 3
Thank you for your concern and reading.
I deeply Appreciate you,
Regards,
Jonghwan -
Coding standards for Web dynpro ABAP
Hello all,
Can anybody please help me by providing the code review checklist for Web dynpro ABAP?
Thanks and Regards,
Rohini ShankarHello friend,
WebDynpro *
1 Do not implement Data intensive operations in UI layer
2 Avoid database selects in the WebDynpro code.Use the corresponding BAPIs ,Methods
3 Are ABAP OO Classes like Assistance class are being used for application coding ?
4 Are Windows/Views only used for the sole purpose of hosting views and context?
5 Are a reasonable number of views put in a single WD Component instead of creating multiple WD Components ?
6 Unneccessary usage of dynamic programming and dynamic component avoided
7 Are singleton nodes used in case of nesting in the context ?
8 Is deep nesting of containers, Groups and Tabstrips avoided ?
9 Is the UI element TreeByKey or TreeByTableNestingColumn used instead of the Tree UI element ?
10 Is the checkbox "Accessibility Checks Active" ticked in the WD Component properties
11 Are the WD Component Instances deleted when no longer needed (IF_WD_COMPONENT_USAGE=>DELETE_COMPONENT)
12 Are the OTR texts defined for all the labels, texts(where ever appropriate) in properties of all the UI elements
13 Has the Generation limit been checked for all the components developed
14 Sufficients commets are written at the beginning of every major block to explain the processing logic.
*Error Handling *
1 Is SY-SUBRC checked after CALL function modules
2 Use Assertions if you face unexpected errors which usually never ever occur!
Extended Check and Clean Up
1 Have following been removed :
· Unused variables
· Unused text elements
· Unused tables from TABLES statement
· Commented out parts of the code
· Code segments which do nothing
2 Is extended program check completed and all errors/warnings removed
These are the things which i used for my project.
Thanks,
Sri Hari -
How to save file in km using web dynpro abap
Hi Experts,
We have a requirement that file should be saved in a folder in km, the name of the folder should be the employee number.
Could you please tell me how to create folder with employee number in KM and store file in it using web dynpro abap.
Thanks and Regards,
Santhoshi.Thanks Naga Raju Meesala.
How come all these methods are deprecated...getEP5User
Also, since I am building a weddynpro DC, what is the proper way to include these jar files as Used DCs?
Now proceed in the same way with the variable PORTAL_HOME and add the following .jar files:
u2022 \lib\prtapi.jar The portal runtime APIs
u2022 \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.ep5.jar The user management APIs of the Enterprise Portal 5.0 are deprecated, but still in use in SAP NetWeaver 04
u2022 \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar KM Repository Framework APIs
u2022 \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar Repository Framework Utility: URL Generator
u2022 \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar Repository Framework: Repository Services
u2022 \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar Repository Framework Utilities -
Select Options and Search Help in ABAP Dynpro
Hi Guys,
I am new to ABAP WD. We are workin on ABAP Stack of the Portal with no DB Tables n data. we have to fetch the data from R/3 and display it on the Dynpro screen.
But here the problem is the Standard Search Help attached to the data elements cannot fetch any data, as by default it searchs the ABAP stack for the data. Is there any work around for the same wherein i can fetch the data from R/3 and display it when user requests for the search help.?
Please let me know.
Thanks and Regards,
SagarHi,
You can also use freely programmed help here.......
Please check the following links for
OVS
http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
OVS Help in Web Dynpro ABAP
Freely programmed
http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
regards
Pranav -
How to fix few rows in ALV after filtering on a column in Web Dynpro ABAP
Hi,
I have the following requirement:
In an ALV, when i filter based on a column, then this filter should not be applied to 2 of its rows.
These rows relate to totals. The totals are manually calculated as they require other component information too.
Along with the filter result, these total rows have to be displayed.
Let me know in case ALV in Web Dynpro ABAP supports this functionality.
Regards,
RekhaHi,
ALV table does not support this functionality.
You can display the total in an another table instead.
I had the same requirement with total and had to display the totals separately.
Thanks,
Feroz -
How to add button ui element in alv table data in web Dynpro ABAP
Hi Experts,
I have one requirement,
Actually I was devloped normal table in web Dynpro ABAP
in that i have one column Display as a button .
when i select that button need to display some data.
same requirement i need to devlope in alv table.
i am going to attach file please check.
Thanks in advance.
Regards,
Subba Reddy.Hi,
You can create Button in your ALV table column with below code
DATA lo_button TYPE REF TO cl_salv_wd_uie_button.
CREATE OBJECT lo_button.
CALL METHOD lv_value->if_salv_wd_column_settings~get_column
EXPORTING
id = <your column name>
RECEIVING
value = lo_system_select_hdr.
lo_button->set_enabled( value = abap_true ).
lo_button->set_text( value = 'Avaliable List' ).
lo_button->set_tooltip( value = 'Avaliable List' ).
lo_system_select_hdr->set_cell_editor( value = lo_button ).
And for button click action,
Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
Thanks
KH -
When to use 'Web dynpro ABAP' and when to go for 'Web Dynpro Java'
Hi,
I am trying to learn 'Web dynpro ABAP' from tutorials available on SDN as i am presently working in ABAP. I am also Java learned.
Please tell me the selection criteria for using Web Dynpro component / application using ABAP or JAVA.
Regards,
TanayaHi,
Go through this
Web Dynpro: ABAP or Java?
WebDynpro for ABAP Vs Java
Re: Javascript future in Webdynpro (JAVA and ABAP)
Javascript future in Webdynpro (JAVA and ABAP)
PradeeP -
Cannot see Ecatt option in context menu in web dynpro abap in SE80 ECC 6.0
Hi ,
I saw a presentation by Thomas in which there is option of recording ecatt script on context menu in web dynpro abap application.we are on ECC 6.0 we are trying to record WDA applications and test them by using Ecatt but I am unable to see the option of recording the ecatt script in SE80 editor.
Why could this be happeningThanks ,
I saw that disappointing note ...any other way to automate web dynpro abap testing ? please advise. -
Web Dynpro ABAP: Assigning of Conversion Exits in ALV
Hi,
We are currently developing a generic data display application using ALV technology in Web Dynpro ABAP. "Generic" means that the structure of the data is created dynamically during runtime (using RTTS) and that even the contained data elements are created dynamically without any relation to DDIC. The generation is based on metadata like field name, data type, length, decimals, conversion exit.
Our problem is that we were not able to find a way to assign the conversion exit of a data element ("column") in Web Dynpro ALV. Without this feature, no output conversions will take place since the data elements have no relation to DDIC. In the "classical" ALV, this could be easily done using method SET_EDIT_MASK of class CL_SALV_COLUMN.
Is there a similar method in WebDynpro ALV or at least an alternative approach to assign a conversion exit to a column or cell?
Thanks for your help in advance.
Best Regards,
SvenHello Sven Hader,
As you said you are generatiing the metadata like field name, data type, length, decimals, conversion exit dynamically.
Can you please let me know how you are diong this?
Meanwhile, you can try this approach to assign a Conversion exit to ALV Table column attribute dynamically.
DATA: lv_data TYPE dd04v,
lv_mode_ext2int type ESEBOOLE. "Conversion mode that you are in
read the data from the database
CALL FUNCTION 'DDIF_DTEL_GET'
EXPORTING
name = lv_ddobjname
state = iv_object_state
langu = iv_langu
IMPORTING
dd04v_wa = lv_data
EXCEPTIONS
illegal_input = 1
OTHERS = 2.
CHECK NOT lv_data-convexit IS INITIAL.
CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_INPUT'
INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_input.
CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_OUTPUT'
INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_output.
IF lv_mode_ext2int = 'X'.
ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_input
TO <lv_funcname>.
ELSE.
ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_output
TO <lv_funcname>.
ENDIF.
(3) call the conversion exit
CHECK <lv_funcname> IS ASSIGNED.
TRY.
CALL FUNCTION <lv_funcname>
EXPORTING
input = iv_value
IMPORTING
output = ev_value.
IF sy-subrc <> 0.
ENDIF.
CATCH cx_sy_dyn_call_illegal_func
cx_sy_dyn_call_illegal_type
cx_sy_dyn_call_param_missing
cx_sy_dyn_call_param_not_found. "#EC NO_HANDLER
ENDTRY.
Endif.
I hope it should work.
Thanks,
Bharath.K
Edited by: Bharath Komarapalem on Dec 16, 2008 2:47 PM
Maybe you are looking for
-
Using WindowsXP, and e-mail via Yahoo,browser is Firefox 4.0.I get the following error message when accessing yahoo mail site:"http://us.f831.mail.yahoo.com/dc/launch?action=welcome&yy=1782408664&.rand=0qrsdp1o...Windows can not find(the above addres
-
After 2,1 update cannot call from 3G
The long waited 2.1 is good for nothing, contrary is worst than before: - I try to call from my contact, start dialing and in a second call end. On E work fine. - Contact still lagging - Reception and voice quality same bag quality. And probably more
-
HT1925 loading a cd into itunes
itunes is not recognising a cd in my drive and i am not prompted if i wish to load the cd into itunes???
-
Statistical posting to cost center
Hi gurus, My client requirement is while doing goods issue against goods issue that cost should post to cost center as statistical,,, is it possible to do so...Pls help me on this... Thanks, Ram
-
Can anyone help? My config is: Processor 2 x 2.26 GHz Quad-Core Intel Xeon Memory 32 GB 1066 MHz DDR3 ECC Graphics ATI Radeon HD 4870 512 MB Software OS X 10.8.1 (12B19) The error log is: Interval Since Last Panic Report: 157984 sec Panics Since