File Upload And In Webdynpro Abap

File Upload And In Webdynpro Abap Rating: 5,5/10 9038votes

Upload and Download Files in Webdynpro ABAP by Nagendran R, Enteg Infotech, Bangalore, India Go to T-Code- SE80, Create a Web Dynpro Component(Zfile_upload in. Attach files with save, retrieve and delete functionality in. Create a ui element FILE_UPLOAD and. Retrieve and delete functionality in Web Dynpro ABAP. Upload XLSX file in WebDynpro ABAP and view its content. You can see many posts in WebDynpro ABAP Form about reading an Excel file and showing its content in a.

Dear exports I want to upload a excel file and display the data in broswer using abap webdynpro. My excel file format is.XLSX.

Web Dynpro AbapFile Upload And In Webdynpro Abap

But I am not able to upload it because when I browse the file and click on upload button an error raised. And I am a fresher in this platform so I have no much knowledge to solave this error. Can anyone kindly help me to solve the error. I have create the application by using the following steps. I have create a webdynpro component using SE80. Withen the context tab of view I have create 1 node with 2 attribute(name, age) and another attribute(datasource) 3.

Withen the layout tanb of the view i have create 3 UI Elements like 4. Withen the method 'ONACTION_UPLOAD' I have put the following codes. TYPES: BEGIN OF str, name ( 10 ) TYPE c, age ( 10 ) TYPE c, END OF str. DATA: t_table1 TYPE STANDARD TABLE OF str, i_data TYPE STANDARD TABLE OF string, lo_nd_data TYPE REF TO if_wd_context_node, lo_el_data TYPE REF TO if_wd_context_element, l_string TYPE string, fs_table TYPE str, l_xstring TYPE xstring, fields TYPE string_table, lv_field TYPE string. DATA: t_table TYPE if_main =>elements_data_tab, data_table TYPE if_main =>elements_data_tab. Wd_context ->get_attribute ( EXPORTING name = `DATASOURCE` IMPORTING value = l_xstring ). CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE' EXPORTING FILENAME = l_xstring I_BEGIN_COL = 1 I_BEGIN_ROW = 2 I_END_COL = 2 I_END_ROW = 10 TABLES INTERN = i_data * EXCEPTIONS * INCONSISTENT_PARAMETERS = 1 * UPLOAD_OLE = 2 * OTHERS = 3.

IF SY -SUBRC 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

SPLIT l_string AT cl_abap_char_utilities =>newline INTO TABLE i_data. * Bind With table Element.

LOOP AT i_data INTO l_string. SPLIT l_string AT cl_abap_char_utilities =>horizontal_tab INTO TABLE fields.

READ TABLE fields INTO lv_field INDEX 1. Fs_table -name = lv_field. READ TABLE fields INTO lv_field INDEX 2. Fs_table -age = lv_field. APPEND fs_table TO t_table1. Lo_nd_data = wd_context ->get_child_node ( 'DATA_TAB' ). Cronica De Familie Petru Dumitriu Pdf Viewer. Lo_nd_data ->bind_table ( t_table1 ).

Now I have Save and acivate the component 6. When I have run the application by uploading the excel file an error raised. And the erroe screenshot is Can anyone please help me to solve this problem. If i am not able to solve it then I can't uplode excel file which contains customer master data of my organisation. So Please help me to solve my issue. Thanks and regards Rashmita Parida Tags: • web_dynpro.