![sap abap web dynpro tutorial sap abap web dynpro tutorial](https://www.saptutorial.org/wp-content/uploads/2016/10/display-alv-web-dynpro-abap-service-call-4.jpg)
" set single attribute lo_el_context -> set_attribute ( name = ` PDF ` value = lv_pdf ). " get element via lead selection lo_el_context = wd_context -> get_element ( ). DATA lv_pdf TYPE wd_this -> element_context - pdf. DATA ls_context TYPE wd_this -> element_context. DATA lo_el_context TYPE REF TO if_wd_context_element. CONCATENATE l_pdfstring l_xline INTO l_pdfstring IN BYTE MODE. Change it by adding &sap-themeSAPBELIZE to the URL.
![sap abap web dynpro tutorial sap abap web dynpro tutorial](https://www.saptutorial.org/wp-content/uploads/2016/10/display-alv-web-dynpro-abap-service-call-2.jpg)
You will see that the application is not shown with the FIORI guideline, but with theme SAPTRADESHOWPLUS. IMPORT my_data TO l_xline FROM DATA BUFFER lv_buffer IN CHAR - TO - HEX MODE. Run the Web Dynpro application SEPMWDPOLIST (you can find it in the Workbench (SE80) as a sub-node of the Web Dynpro component with the same name). EXPORT my_data = lv_string TO DATA BUFFER lv_buffer.
![sap abap web dynpro tutorial sap abap web dynpro tutorial](https://www.tutorialspoint.com/sap_abap/images/web_dynpro.jpg)
" Convert to PDF CALL FUNCTION 'CONVERT_OTF' EXPORTING format = 'PDF' IMPORTING bin_filesize = lv_bytecount TABLES otf = ls_job_output_info - otfdata lines = lt_lines EXCEPTIONS err_conv_not_possible = 1 err_bad_otf = 2. * Implement suitable error handling here ELSE. "Smartforms call CALL FUNCTION lv_fnam EXPORTING control_parameters = ls_ssfctrlop output_options = ls_output_options giw_p0001 = ls_p0001 IMPORTING job_output_info = ls_job_output_info job_output_options = ls_job_output_options EXCEPTIONS formatting_error = 1 internal_error = 2 send_error = 3 user_canceled = 4 OTHERS = 5. ls_output_options - tdprinter = 'SAPWIN'. ls_output_options - tdtitle = sy - title. "Output options ls_output_options - tdnoprev = 'X'. "Print Parameters ls_ssfctrlop - no_dialog = 'X'. "Get Dynamically Generated Smartform function module CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZOVH_SIMPLE_SMARTFORM' IMPORTING fm_name = lv_fnam. "Get employee data SELECT SINGLE * FROM pa0001 INTO ls_p0001 WHERE pernr EQ '10008289' AND begda LE sy - datum AND endda GE sy - datum. "Internal Tables DATA : lt_lines TYPE TABLE OF tline. "Structures DATA : ls_line TYPE tline, ls_ssfctrlop TYPE ssfctrlop, " Control Parameters ls_output_options TYPE ssfcompop, " Output Options ls_job_output_info TYPE ssfcrescl, " Job Output Info ls_job_output_options TYPE ssfcresop, " Job Output Options ls_p0001 TYPE p0001. "Variables DATA : lv_buffer TYPE xstring, lv_string TYPE string, lv_fnam TYPE rs38l_fnam, lv_bytecount TYPE i, l_pdfstring TYPE xstring, l_xline TYPE xstring.