Skip to Content
author's profile photo Former Member
Former Member

HTML BUTTON in module pool screen.

Hi,

I have a requirement to create a push button ( bigger push button ) along with Image on it in my custom screen . Can any one help me in this ??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 19, 2016 at 12:40 PM

    You can create a custom container of the desired size on your dynpro screen and connect CL_ABAP_BROWSER to this container using parameter CONTAINER of method SHOW_HTML.

    To show your "button" html you pass a string containing your picture formatted as a link. The href should be something like

    <A href=sapevent:"..."><img ...></A>


    You can react on event SAPEVENT of that class then.


    The documented CL_ABAP_BROWSER wraps the original GUI Control classes.


    For a demo see program DEMO_HTML_BROWSER.


    On how to handle pictures (saving them in a transportable way in the MIME repository), see Pictures from MIME Repository in HTML.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 12:06 PM

    Create an image (CL_GUI_PICTURE) in a customer container,

    • Fill it with a method like LOAD_PICTURE_FROM_SAP_ICONS, LOAD_PICTURE_FROM_URL_ASYNC or LOAD_PICTURE_FROM_URL.
    • React to click handling an vent like CONTROL_CLICK

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 19, 2016 at 12:09 PM

    Please search the forum for the CL_GUI_HTML_VIEWER control class, and for custom container (element of dynpros) to contain the control. See also the demo programs RSDEMO_HTML_VIEWER and SAPHTML_EVENTS_DEMO.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.