‎2007 Mar 08 3:01 PM
Hi,
I have a dynpro 0100 with a status.
I want to insert a image in the dynpro ( size: all the dynpro) to create a friendly dynpro. How i can do it?
Thanks
‎2007 Mar 08 3:02 PM
‎2007 Mar 08 3:02 PM
‎2007 Mar 08 3:13 PM
Hi,
May be this will help you.
1. Create Object Pc_Main_Container
Exporting
container_name = 'G_MAIN_JPG_CONTAINER'
Exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
2. Create Object G_Jpg_Viewer
Exporting
Parent = pc_Main_Container
Exceptions
Error = 1
Others = 2.
3. Call Method pc_Jpg_Viewer->Load_Picture_From_Url
Exporting
Url = w_FileName
Importing
Result = w_Error_Code
Exceptions
Error = 1
Others = 2.
4. Call Method pc_Jpg_Viewer->Set_Visible
Exporting
Visible = 'X'
Exceptions
Cntl_Error = 1
Cntl_System_Error = 2
Others = 3.
aRs