SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Можно ли html-код, сохраненный в String передать в Browser?



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Jan
Специалист
Специалист



Joined: 29 Feb 2008
Posts: 82

PostPosted: Mon Apr 21, 2008 3:55 pm    Post subject: Можно ли html-код, сохраненный в String передать в Browser? Reply with quote

Можно ли html-код, сохраненный в String передать прямо в Browser? Только не сохраняя перед этим на диск, как это сделано у меня сейчас:

CALL FUNCTION 'SOTR_SERV_STRING_TO_TABLE'
EXPORTING
text = lf_strng
TABLES
text_tab = lt_w3htm.

CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\temp\SmartForm.htm'
filetype = 'ASC'
TABLES
data_tab = lt_w3htm.

CALL FUNCTION 'WS_EXECUTE'
EXPORTING
document = con_x
program = 'c:\temp\SmartForm.htm'.

Нужно строку lf_strng открыть на прямую в Browser-е

Заранее спасибо за помощь.
Back to top
View user's profile Send private message
Alex80
Старший специалист
Старший специалист


Age: 43
Joined: 24 Jan 2008
Posts: 129

PostPosted: Tue Apr 22, 2008 11:01 am    Post subject: Re: Можно ли html-код, сохраненный в String передать в Brows Reply with quote

Jan wrote:
Можно ли html-код, сохраненный в String передать прямо в Browser? Только не сохраняя перед этим на диск

См. программу RSDEMO_HTML_VIEWER.
Code:
DATA:
      gcl_gui_html_viewer TYPE REF TO cl_gui_html_viewer,
      g_doc_url TYPE char80,
      lt_w3htm TYPE TABLE OF char255.

CALL METHOD gcl_gui_html_viewer->load_data
      IMPORTING
        assigned_url = g_doc_url
      CHANGING
        data_table   = lt_w3htm.

    CALL METHOD gcl_gui_html_viewer->show_url
      EXPORTING
        url      = g_doc_url.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.