‎2008 Aug 18 7:03 AM
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
‎2008 Aug 18 7:37 AM
Hi ,
check this , u may get some idea
http://help.sap.com/saphelp_erp2005vp/helpdata/EN/46/bb182fab4811d4968100a0c94260a5/frameset.htm
regards
prabhu
‎2008 Aug 18 7:38 AM
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.