Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform output in html

Former Member
0 Likes
478

Dear all ,

I want to take smartform output in html format . the logos are not coming as well as the header template the records are coming in next line not side by side .my code is :

gs_output_options-xsfcmode = 'X'.

gs_output_options-xsf = 'X'.

gs_output_options-xsfoutmode = 'A'.

gs_output_options-xsfformat = 'X'.

xsfparam_line-name = 'GRAPHICS'.

xsfparam_line-value = 'EXTRACT'.

APPEND xsfparam_line TO gs_output_options-xsfpars.

xsfparam_line-name = 'GRAPHICS-DIRECTORY'.

xsfparam_line-value = c_gr_dir.

APPEND xsfparam_line TO gs_output_options-xsfpars.

xsfparam_line-name = 'CONTENT-ID'.

xsfparam_line-value = 'ENABLE'.

APPEND xsfparam_line TO gs_output_options-xsfpars.

...........................................................................................

CALL FUNCTION fm_name

EXPORTING

control_parameters = gs_ssfctrlop

output_options = gs_output_options

.......................................................

p_graphics[] = gs_job_output_info-xmloutput-xsfgr[].

p_html = gs_job_output_info-xmloutput-trfresult

............................................................................

CONCATENATE 'C:\TEST\TC1_' p_vbeln '.html' INTO p_file.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = html_len

filename = p_file

filetype = 'BIN'"'ASC'

  • trunc_trailing_blanks = 'X'

TABLES

data_tab = p_html-content

..............................................................................

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = p_file

Dear all ,

I want to take smartform output in html format . the logos are not coming as well as the header template the records are coming in next line not side by side .my code is :

gs_output_options-xsfcmode = 'X'.

gs_output_options-xsf = 'X'.

gs_output_options-xsfoutmode = 'A'.

gs_output_options-xsfformat = 'X'.

xsfparam_line-name = 'GRAPHICS'.

xsfparam_line-value = 'EXTRACT'.

APPEND xsfparam_line TO gs_output_options-xsfpars.

xsfparam_line-name = 'GRAPHICS-DIRECTORY'.

xsfparam_line-value = c_gr_dir.

APPEND xsfparam_line TO gs_output_options-xsfpars.

xsfparam_line-name = 'CONTENT-ID'.

xsfparam_line-value = 'ENABLE'.

APPEND xsfparam_line TO gs_output_options-xsfpars.

...........................................................................................

CALL FUNCTION fm_name

EXPORTING

control_parameters = gs_ssfctrlop

output_options = gs_output_options

.......................................................

p_graphics[] = gs_job_output_info-xmloutput-xsfgr[].

p_html = gs_job_output_info-xmloutput-trfresult

............................................................................

CONCATENATE 'C:\TEST\TC1_' p_vbeln '.html' INTO p_file.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = html_len

filename = p_file

filetype = 'BIN'"'ASC'

  • trunc_trailing_blanks = 'X'

TABLES

data_tab = p_html-content

..............................................................................

CALL METHOD cl_gui_frontend_services=>execute

EXPORTING

document = p_file

1 REPLY 1
Read only

brad_bohn
Active Contributor
0 Likes
429

This question (logos and html smartform output) has been discussed several times related to email sending. Try searching the forum. You may find some relevant info in other posts. Have you tried reaching the url that's generated for the logo?