<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAP HTML Viewer  - GET and POST method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569018#M1432564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I was looking for an answer and finally I get it.&amp;nbsp; please see this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/x/GQx2Gg" title="https://wiki.scn.sap.com/wiki/x/GQx2Gg"&gt;https://wiki.scn.sap.com/wiki/x/GQx2Gg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos Andres Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Apr 2016 23:07:06 GMT</pubDate>
    <dc:creator>carlosandres_gonzalez</dc:creator>
    <dc:date>2016-04-10T23:07:06Z</dc:date>
    <item>
      <title>SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569013#M1432559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with SAP HTML Viewer control. I've seen that with this controller i can load an external html page, such as &lt;/P&gt;&lt;P&gt;in the SAPHTML_DEMO1 example report. I wonder if is possible provide data from the report to html page through the controller, and receive data from the html page, after a page submi, and acquire it from the ABAP side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 12:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569013#M1432559</guid>
      <dc:creator>former_member998879</dc:creator>
      <dc:date>2010-01-29T12:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569014#M1432560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davide ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS cl_myevent_handler DEFINITION.

  PUBLIC SECTION.
    METHODS: on_sapevent
               FOR EVENT sapevent OF cl_gui_html_viewer
                 IMPORTING action frame getdata postdata query_table.

ENDCLASS.                    "cl_myevent_handler DEFINITION
DATA: evt_receiver TYPE REF TO cl_myevent_handler.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF html_control IS INITIAL.
    prog_repid = sy-repid.

    CREATE OBJECT my_container
        EXPORTING
            container_name = 'MAIN'.

    CREATE OBJECT html_control
         EXPORTING
              parent    = my_container.
    IF sy-subrc NE 0.
*
    ENDIF.

* register event
    myevent-eventid = html_control-&amp;gt;m_id_sapevent.
    myevent-appl_event = 'x'.
    APPEND myevent TO myevent_tab.
    CALL METHOD html_control-&amp;gt;set_registered_events
      EXPORTING
        events = myevent_tab.

    CREATE OBJECT evt_receiver.

    SET HANDLER evt_receiver-&amp;gt;on_sapevent
                FOR html_control.

  DATA: doc_url(80).

  CALL METHOD html_control-&amp;gt;load_html_document
    EXPORTING
      document_id  = 'ZVTLM1'
    IMPORTING
      assigned_url = doc_url
    EXCEPTIONS
      OTHERS       = 1.

  IF sy-subrc EQ 0.
    CALL METHOD html_control-&amp;gt;show_url
      EXPORTING
        url = doc_url.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_myevent_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD on_sapevent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR edaction.&lt;/P&gt;&lt;P&gt;    CLEAR edframe.&lt;/P&gt;&lt;P&gt;    CLEAR edgetdata.&lt;/P&gt;&lt;P&gt;    CLEAR edpostdataline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    edaction       = action.&lt;/P&gt;&lt;P&gt;    edframe        = frame.&lt;/P&gt;&lt;P&gt;    edgetdata      = getdata.&lt;/P&gt;&lt;P&gt;    postdata_tab   = postdata.&lt;/P&gt;&lt;P&gt;    IF NOT postdata_tab IS INITIAL.&lt;/P&gt;&lt;P&gt;      READ TABLE postdata_tab INDEX 1 INTO edpostdataline.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    edquery_table  = query_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   BREAK-POINT.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CASE action.&lt;/P&gt;&lt;P&gt;      WHEN 'VEHICLE'.&lt;/P&gt;&lt;P&gt;        PERFORM get_vehicle.&lt;/P&gt;&lt;P&gt;      WHEN 'INVOICE'.&lt;/P&gt;&lt;P&gt;        PERFORM get_invoice.&lt;/P&gt;&lt;P&gt;      WHEN 'REPORTS'.&lt;/P&gt;&lt;P&gt;        PERFORM reports.&lt;/P&gt;&lt;P&gt;      WHEN 'PRINT'.&lt;/P&gt;&lt;P&gt;        PERFORM print_invoice.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "on_sapevent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "cl_myevent_handler IMPLEMENTATION&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event mechanism of the Control Framework allows you to use handler methods in your&lt;/P&gt;&lt;P&gt;programs to react to events triggered by the control (for example, a double-click).1. Assume you are working with a custom control that has the ABAP wrapper cl_gui_xyz.&lt;/P&gt;&lt;P&gt;DATA my_control TYPE REF TO cl_gui_xyz.&lt;/P&gt;&lt;P&gt;Registering Events with the Control Framework&lt;/P&gt;&lt;P&gt;2. Define an internal table (type cntl_simple_events) and a corresponding work area (type&lt;/P&gt;&lt;P&gt;cntl_simple_event).&lt;/P&gt;&lt;P&gt;DATA events TYPE cntl_simple_events.&lt;/P&gt;&lt;P&gt;DATA wa_events TYPE cntl_simple_event.&lt;/P&gt;&lt;P&gt;3. Now fill the event table with the relevant events. To do this, you need the event ID&lt;/P&gt;&lt;P&gt;(event_id field). You can find this information in the Class Browser by looking at the&lt;/P&gt;&lt;P&gt;attributes of the class cl_gui_xyz. You must also decide whether the event is to be a&lt;/P&gt;&lt;P&gt;system event (appl_event = ' ') or an application event (appl_event = 'X').&lt;/P&gt;&lt;P&gt;wa_events-eventid = event_id.&lt;/P&gt;&lt;P&gt;wa_events-appl_event = appl_event.&lt;/P&gt;&lt;P&gt;APPEND wa_events TO events.&lt;/P&gt;&lt;P&gt;4. You must now send the event table to the frontend so that it knows which events it has to&lt;/P&gt;&lt;P&gt;direct to the backend.&lt;/P&gt;&lt;P&gt;CALL METHOD my_control-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;events = events.&lt;/P&gt;&lt;P&gt;To react to the events of you custom control, you must now specify a handler method for it. This&lt;/P&gt;&lt;P&gt;can be either an instance method or a static method&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Please revert to me if you need more help in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 13:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569014#M1432560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-29T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569015#M1432561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply, but i don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take for example the report SAPHTML_DEMO1. It simulates a browser into SAP GUI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My request is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i load an external html page ( for example &lt;A href="https://community.sap.com/www.abcd.xx/page.htm" target="test_blank"&gt;www.abcd.xx/page.htm&lt;/A&gt; ) which contains some html input field valorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I pressing a button (application item ) on a GUI  ( such as that used for refresh the page, &lt;/P&gt;&lt;P&gt;defined on "user_command_0100" module of the report wih the code HRFR ) get back the value of the html input field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to have explained it well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 15:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569015#M1432561</guid>
      <dc:creator>former_member998879</dc:creator>
      <dc:date>2010-01-29T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569016#M1432562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally i found a solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply look this report: SAPHTML_EVENTS_DEMO&lt;/P&gt;&lt;P&gt;It shows how variable are passed from ABAP to HTML and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 15:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569016#M1432562</guid>
      <dc:creator>former_member998879</dc:creator>
      <dc:date>2010-01-29T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569017#M1432563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone, thanks SDN!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2010 15:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569017#M1432563</guid>
      <dc:creator>former_member998879</dc:creator>
      <dc:date>2010-01-29T15:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HTML Viewer  - GET and POST method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569018#M1432564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I was looking for an answer and finally I get it.&amp;nbsp; please see this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/x/GQx2Gg" title="https://wiki.scn.sap.com/wiki/x/GQx2Gg"&gt;https://wiki.scn.sap.com/wiki/x/GQx2Gg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carlos Andres Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Apr 2016 23:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-html-viewer-get-and-post-method/m-p/6569018#M1432564</guid>
      <dc:creator>carlosandres_gonzalez</dc:creator>
      <dc:date>2016-04-10T23:07:06Z</dc:date>
    </item>
  </channel>
</rss>

