SAP WebDynpro for ABAP

SAP WebDynpro for ABAP

Uploading Excel files using WebDynpro for ABAP

For more tips, tutorials, Interview questions, certification questions, please visit

Create an attribute as shown below. Select Context Tab./Intf” from the list. For more tips. Procedure: 1. 5. please visit SAPTechnical. Go to transaction SE80. tutorials. certification questions. 4. 3. Interview questions.SAP WebDynpro for ABAP Uploading Excel files using WebDynpro for ABAP Scenario: To upload an excel file using WebDynpro Application. Double-click on the View. 2. Create a new WebDynpro component by the name ZEXCEL_UPLOAD. Select “WebDynpro .

Interview questions. please visit SAPTechnical. Create a node as shown below: For more tips. certification questions.SAP WebDynpro for ABAP . tutorials.

certification questions.SAP WebDynpro for ABAP 7. For more tips. please visit SAPTechnical. Interview . tutorials. Create attributes for the DATA_TAB node like below.

File Upload 2. tutorials.SAP WebDynpro for ABAP 8. Interview questions. Table Insert Element FILE_UPLOAD for Uploading File. We would be designing the screen of our application with the following elements: . Double click on View. For more tips. Button 3. please visit SAPTechnical. certification questions.

tutorials. Insert an Element TABLE and do binding by right clicking on it and select Create Binding. certification questions. Insert Element Button. Interview questions. 10. please visit SAPTechnical.Set its Text property as UPLOAD. Create a new action for button.SAP WebDynpro for ABAP 9. For more .

Set Column’s header property as below. 12. Select element File upload and set its DATA property as shown below: For more tips. 11. Interview . tutorials. please visit SAPTechnical.SAP WebDynpro for ABAP By pressing Enter button Binding will be done. certification questions. Same way set header property for the Age column too.

fs_table TYPE str_itab. certification questions. END OF . For more tips. lo_el_sflight TYPE REF TO if_wd_context_element. please visit SAPTechnical. name(10) TYPE c. i_data TYPE STANDARD TABLE OF string. Write a code as given below.SAP WebDynpro for ABAP 13. TYPES : BEGIN OF str_itab. l_xstring TYPE xstring. lo_nd_sflight TYPE REF TO if_wd_context_node. age(10) TYPE c. tutorials. Interview questions. l_string TYPE string. DATA : t_table1 TYPE STANDARD TABLE OF str_itab. Now select View’s method list Double click on ONACTION_UPLOAD method. METHOD onactionon_upload .

certification questions. tutorials. 15. LOOP AT i_data INTO l_string.SAP WebDynpro for ABAP fields TYPE string_table. Activate the Program and create an application by right clicking and save it. Test Application. data_table TYPE if_main=>elements_data_tab. Interview questions. 14. * get single attribute wd_context->get_attribute( EXPORTING name = `DATASOURCE` IMPORTING value = l_xstring ). APPEND fs_table TO t_table1. please visit SAPTechnical. READ TABLE fields INTO lv_field INDEX 1. lo_nd_sflight = wd_context->get_child_node( 'DATA_TAB' ). fs_table-age = lv_field. CALL FUNCTION 'HR_KR_XSTRING_TO_STRING' EXPORTING in_xstring = l_xstring IMPORTING out_string = l_string. SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data. READ TABLE fields INTO lv_field INDEX 2. SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields. ENDMETHOD. lo_nd_sflight->bind_table( t_table1 ). For more tips. DATA : t_table TYPE if_main=>elements_data_tab. lv_field TYPE . * Bind With table Element. ENDLOOP. fs_table-name = lv_field. .SAP WebDynpro for ABAP Output: Click on Browse. For more tips. please visit SAPTechnical. Interview questions.Select An EXCEL file with two Columns. certification questions.

and Excel data will be displayed like below. please visit For more tips.SAP WebDynpro for ABAP Click on UPLOAD Button. Interview questions. please visit SAPTechnical. tutorials. certification . For more tutorials on Adobe forms.

Sign up to vote on this title
UsefulNot useful