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

Display graphics using BSP Application

Former Member
0 Likes
482

Hi,

I want to create a BSP application that displays a graphic on screen.

I know how to do it using a smartfrom ,but is there any other way to display a graphic from SAP.

We have stored Signatures of some users on SAP.

When I enter a SignID of a user ,BSP Application should display signature on Portal screen.Is it possible.Please Advice.

Thanks in Advance.

Venkat

2 REPLIES 2
Read only

Former Member
0 Likes
414
Read only

Former Member
0 Likes
414

BSP applications showing standart sap screens in netweawer.

You can use Picture control for screen and select the mime object in system and show user in container.

there is sample. I hope so the help.


REPID = SY-REPID.

  CREATE OBJECT PICTURE_CONTROL_1
    EXPORTING
      PARENT = DOCKING.

  CHECK SY-SUBRC = 0.

  CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
    EXPORTING
      BORDER = 5.

  CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
    EXPORTING
      DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.

  CALL METHOD PICTURE_CONTROL_1->SET_POSITION
    EXPORTING
      HEIGHT = 40
      LEFT   = 5
      TOP    = 170
      WIDTH  = 90.

  IF URL IS INITIAL.
    DATA:
     qaktar TYPE  ZW3QUERY .

    REFRESH QUERY_TABLE.

"SELECT * FROM ZUSER  FROM MIME OBJECT. 

    qaktar-NAME  = '_OBJECT_ID'.
    qaktar-VALUE = 'YOUR MIME OBJECT'.

  "  APPEND QUERY_TABLE.
    APPEND qaktar TO QUERY_TABLE.

    CALL FUNCTION 'WWW_GET_MIME_OBJECT'
      TABLES
        QUERY_STRING        = QUERY_TABLE
        HTML                = HTML_TABLE
        MIME                = PIC_DATA
      CHANGING
        RETURN_CODE         = RETURN_CODE
        CONTENT_TYPE        = CONTENT_TYPE
        CONTENT_LENGTH      = CONTENT_LENGTH
      EXCEPTIONS
        OBJECT_NOT_FOUND    = 1
        PARAMETER_NOT_FOUND = 2
        OTHERS              = 3.

    CALL FUNCTION 'DP_CREATE_URL'
      EXPORTING
        TYPE     = 'image'
        SUBTYPE  = CNDP_SAP_TAB_UNKNOWN
        SIZE     = PIC_SIZE
        LIFETIME = CNDP_LIFETIME_TRANSACTION
      TABLES
        DATA     = PIC_DATA
      CHANGING
        URL      = URL
      EXCEPTIONS
        OTHERS   = 1.

  ENDIF.

  CALL METHOD
    PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
    EXPORTING
      URL = URL.