Picture in selection screen (saved in clustertable) how to load?

Hi everybody,
we got an ABAP on wich a picture should be displayed.
As we want wo have the picture in a transport ( to dispatch the ABAP on several other SAP systems ), we decided to store it in a cluster table:
This is the way we store it:
   CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
*   CODEPAGE                      = ' '
      filename                      = file
      filetype                      = 'BIN'
     TABLES
       data_tab                      = pict_tab.
   EXPORT pict_tab = pict_tab TO DATABASE indx(hk) ID id.
When I now want to display the picture I (hopefully) can use:
   IMPORT pict_tab = pict_tab FROM DATABASE indx(hk) ID id.
My question is: How can I convert pict_tab to an appropriate format so that it fits for the class cl_gui_picture
Thanks Regards
Mario

unfortunatelly no answer :-(

Similar Messages

  • Picture in Selection Screen

    Dear Experts
    My problem is when i am Putting Picture in Selection Screen I was able to change its width but not its Height,can anyone tell me How to Change its Height..
    Thanks in Advance
    Somesh

    Hi
    check this one
    REPORT y_pic_show .
    DATA:
    docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    PARAMETERS: p_dummy TYPE c  .
    AT SELECTION-SCREEN OUTPUT.
      PERFORM show_pic.
    START-OF-SELECTION.
    *& Form show_pic
    FORM show_pic.
      DATA: repid LIKE sy-repid.
      DATA: file_name LIKE sapb-sapfiles,
      file_type LIKE bdn_con-mimetype.
      repid = sy-repid.
      IF docking IS INITIAL .
        CREATE OBJECT docking
        EXPORTING
        repid = repid
        dynnr = sy-dynnr
        side = cl_gui_docking_container=>dock_at_right
        extension = '200'
        EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5.
        CREATE OBJECT picture_control_1 EXPORTING parent = docking.
        CHECK sy-subrc = 0.
        CALL METHOD picture_control_1->set_3d_border
          EXPORTING
            border = 0.
        CALL FUNCTION 'DP_PUBLISH_WWW_URL'
          EXPORTING
            objid    = 'HTMLCNTL_TESTHTM2_SAP_AG'
            lifetime = 'T'
          IMPORTING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
    Load the picture by using the url generated by the data provider.
        IF sy-subrc = 0.
          CALL METHOD picture_control_1->load_picture_from_url_async
            EXPORTING
              url = url.
        ENDIF.
      ENDIF .
    ENDFORM.                    "show_pic
    More on controls demo at transaction DWDM
    reward points to all helpful answers
    kiran.M

  • Insert picture in selection screen.

    Hi,
    Can some one suggest how to insert picture in selection screen?
    Thanks
    Deep

    Hi,
    I have inserted a picture in my classical report. According to the position where you want can be adjusted. If you know how to upload Logo in SMW0 then upload and just copy paste the code that i have shown will display the image.
    DATA: docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
    html_table LIKE w3html OCCURS 1,
    return_code LIKE w3param-ret_code,
    content_type LIKE w3param-cont_type,
    content_length LIKE w3param-cont_len,
    pic_data LIKE w3mime OCCURS 0,
    pic_size TYPE i.
    * END OF DO NOT CHANGE----------------------*
    FORMAT HOTSPOT ON.
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    DATA: ANSWER TYPE I.
    ANSWER = A + B.
    WRITE:/ ANSWER.
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    * PERFORM show_pic1.
    START-OF-SELECTION.
    *& Form show_pic
    FORM show_pic.
    DATA: repid LIKE sy-repid.
    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 = 90
    left = 40
    top = 30
    width = 190.
    *CHANGE POSITION AND SIZE ABOVE*****************
    IF url IS INITIAL.
    REFRESH query_table.
    query_table-name = '_OBJECT_ID'.
    *CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
    query_table-value = 'YREDDY'. "name which u have given in SMW0
    APPEND query_table.
    query_table-value = 'YLOGO'.
    APPEND query_table.
    *FORMAT HOTSPOT ON.
    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.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    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.
    FORMAT HOTSPOT OFF.
    ENDFORM.

  • Showing Picture At Selection screen.

    Hi,
    I want to show Picture from my PC hard drive at selection screen of abap program ( SAP repo. mime type i know but i want specially from my hard drive on pc ).
    how it can be possible ? if possible give code.
    Thanks,

    Hi
    if you have a simple report " selection screen of abap program 1000  ".... I think it´s not possible....
    but.
    If you have a "handmade" dynpro 0100 > try to use a HTML Container ( its start a Internet Explorer .. ) and shows you the gif, jpeg..
    But it´s easier to use a external/internal UI adress ( Webspace ) for the picture, as the dektop space fg
    Best reg Robert

  • Select Screen - Maintain Display Variant - How to setup

    Hi Fellow Developers,
    I want to create a report which on the selection screen has F4 help defined to maintain the fieldcat.
    The fieldcat is then used to build a table for the report, based on the fields for display in the fieldcat.
    I have the table build routines, but need the F4 Help to maintain the fieldcat which is defined as type lvc_t_fcat.
    Any suggestions.
    Thanks.

    use F4IF_INT_TABLE_VALUE_REQUEST function module to get f4 help in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>.
    Thanks
    Venkat.O

  • How to attach a logo to a selection screen?

    I needed to show the logo on the selection screen of a report.
    So I went through several postings on this topic, created and uploaded the logo via OAER against the PICTURES object.
    Per the posting, it tells to pass the value C:\logo.gif' as the url
    I did so - but the logo does not appear on the screen.
    So I went thorugh some demo programs - the demo programs are looking for entries in wwwparams table and are hard coding the object id while fetching these entries.
    I looked for my entry in the wwwparams table, but nothing got updated into this.
    Let me know if I am missing anything..
    Thanks,
    Ven

    Hi,
    Please check this thread..
    Picture in selection screen
    THanks
    Naren

  • How to remove spaces at selection screen coming from logical database

    Hi Experties,
    When we hide some selection from the logical database.  The spaces still occupied and this make our selection screen looks awkward.
    How to remove the spaces left by hidden selection ?
    Regards
    Nislina

    Hi,
    I came across your un-answered question while searching for a solution on the similer problem. Though I couldn't fine a solution on SDN, but figured out one myself. Thought its a good idea to share it.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group4 = '003'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Here screen-group4 contains the sequence number of the select-options field starting from 000 onwards.
    You may like to assign points and close the question.
    Kind Regards,
    Khalid Mustafa

  • How do you view a picture in full screen?

    how do you view a picture in full screen?

    kylewalters wrote:
    how do you view a picture in full screen?Normally with a sam adams and a salami sandwich. How do you do it?

  • Problem in multipule selection screens in a single report.

    Hi experts,
    I have created one report with multiple selections screen. There i am using Layouts for each screen. The problem is whenever i press F4 in layout fields it is going to display all variants, bcoz the program name is same,so how can i segregate the variants for particular selection screen. Please suggest how to do. send the code if you have.
    Thanks and regards,
    Pavan.

    check out the following documentation. use handle or logical group. you can provide any 4 char field to screen 1 and for screen 2 then fill the same when you press F4
    A variant is identified uniquely by:
    the program to which it is assigned (REPORT)
    the handle if, e.g. several lists with various structures and data are called (HANDLE) in a program (I_CALLBACK_PROGRAM)
    The handle is a unique user-assigned CHAR(4) field, which assigns the call to the current internal output table structure.
    Example:
    Various lists can be output in program x, depending on a user action.
    Display variants are to be able to be defined for each of these lists.
    This functionality is guaranteed by assigning a HANDLE for each list. If variants are saved for this program and handle, the handle must not change.
    the logical group if, e.g. the same list is made with different settings (LOG_GROUP) via different transactions
    The logical group is a unique user-assigned CHAR(4) field which determines the assignment.
    Example:
    The program x is called via the transactions T1 and T2. The field catalog fields offered to the user vary depending on the transaction code by assignment to logical groups.
    If variants are saved for the program and logical group, the logical group must not change.
    the user name, if variants are saved user-specifically (USERNAME)
    This parameter is never entered manually as the variant name is unique.
    the variant name (VARIANT).
    This parameter is only to be entered if a particular variant is to be read and the list is to be output with this variant via this structure.

  • Limit list of values in variable selection screen

    Hi
    Apologies if this has been asked / answered elsewhere, but I thought I would put it out there, at least while I continue trying to find a solution.
    We have a requirement to limit the data from which a user is allowed to select values in the variable selection screen. I know how to write the ABAP code that will return the list of data from which the user can choose, but not sure how to implement that in the query variable.
    Essentially, the BEx query needs an input on username, and the current user should be able to choose from a list of usernames. That list of usernames should only be usernames to which the current user has access.
    Don't worry about the linking of current user to user names, that is taken care of in our DSO.
    What I am after, is limiting the data that comes back when the "F4 Help" type button is pressed on the variable screen.
    I can default a value in the customer exit variable using ABAP code in the i_step = 1 loop, but that doesn't seem to effect the list of data available for selection.
    Any decent ideas?
    Cheers,
    Andrew

    Hi Andrew,
    As charlie suggested go for Analysis authorization that is the simplest approach to restrict values for any object, in another way you can use following BADI for value restriction using ABAP code, refer the below link.
    [http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-BW_BADI_F4]
    By using customer exit you can only populate default values but you will not be able to restrict F4 help values.
    Regards,
    Durgesh.

  • Caption in the Variable Selection Screen

    Hi,
    I have my queries in web templates on WAD. I want to attach a description for each report which shows on the top of the selection screen, how can I do it. For example i have a P&L monthly report with the selection screen include a selection for Fiscal Period and GL Account, I want to have the caption :
    "P&L Monthly". How can I achieve this
    Thanks
    Rashmi.

    Hi,
    I have tried it but it is showing the caption once i enter the variables and get into the web template. I want it to show on the variable selection screen as well. How can i do it
    Thanks
    Rashmi.

  • Selection screen pushbutton

    I have designed one push button on the selection screen below to input fields. If I press that button then I need to do some bdc programs after that I need to display log in the output screen. For this what I did is I have created perform statement in at selection screen event. And I am calling all the transactions inside of that form. But I am not able to display log in the output screen as it is under at selection screen event. So how to provide the log in the output screen after pressing push button.
    What I did is under start of selection I am looping messtab internal tables. The log displaying after I press execute button but it is not displaying after I press push button.
    Please help me what logic I have to build for this.
    Thanks a lot in advance.

    Try something like this.
    REPORT  RICH_0001.
    tables: sscrfields.
    selection-screen PUSHBUTTON  1(20) pb_test user-command PB1.
    at selection-screen.
      if sy-ucomm = 'PB1'.
         sscrfields-ucomm = 'ONLI'.
      endif.
    start-of-selection.
    write:/ 'StartOfSelection has been executed'.
    Regards,
    Rich Heilman

  • Month in report from selection screen

    Hi Experts,
    I have to create a report which should display like :-
    PLANT  |  MONTH  |  TARGET  |  PVDONE  |
    2000     |  Aug2007 |   50           |   20           |
    2000     |  Sep2007 |   30           |   10           |
    3000     |  Aug2007 |   40           |   10           |
    3000     |  Sep2007 |   30           |   5             |
    Target means No. of materials whose phy.inventory not done for the month ,
    PVDONE means No. of materials whose phy. inventory done for the month.
    In selection screen inputs are Plant, Month & storage location.
    The problem is how to get all the materials selected in the selection screen for choosen plant. how to put the month n selection screen in a internal table to diplay and perform calculations
    Regards
    Nik

    Hi,
    Based on the month and year input get the First date and last date of the Month and use this range in your selection screen.

  • Additional Fields on Selection Screen of VF04

    Hi,
    I need to add a new field to selection screen of VF04. How can i achieve this?
    Regards,
    Jayant
    Edited by: jayant vikram on Oct 6, 2009 9:15 PM
    Moderator message - This is almost a duplicate - post locked
    Edited by: Rob Burbank on Oct 6, 2009 11:49 AM

    Hi,
    I need to add a new field to selection screen of VF04. How can i achieve this?
    Regards,
    Jayant
    Edited by: jayant vikram on Oct 6, 2009 9:15 PM
    Moderator message - This is almost a duplicate - post locked
    Edited by: Rob Burbank on Oct 6, 2009 11:49 AM

  • Selection screen to run process chain with variables

    Hello Experts,
    I have a business requirement where i need to create have a selection screen for the user to input the fscal year and fiscal variant.Based on the input, a process chain, which has a dtp to load to open hub will execute. The dtp will be fed with the input in the selection screen.
    Any idea how to go along with the codings.
    Points will be assigned.
    Thanks

    Hi Prabhakar,
    Whenever you do a BDC recording and create a program to handle BDC, an include BDCRECX1 is added automatically in the program. It contains the code for processing BDC.
    In the include, you have code for subroutines like BDC_DYNPRO,BDC_FIELD. And in the main program , you have to call these functions in order to perform BDC.
    Since your requirement is to do BDC processing when an event occurs, you have to hard code it.
    Copy paste the code for BDC_DYNPRO and BDC_FIELD like this in the screen like this.
    FORM bdc_dynpro  USING  program
                            dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0075   text
         -->P_0076   text
    FORM bdc_field  USING fnam
                          fval.
      DATA : nodata VALUE '/'.
      IF fval <> nodata.
        CLEAR bdcdata.
        bdcdata-fnam = fnam.
        bdcdata-fval = fval.
        APPEND bdcdata.
      ENDIF.
    ENDFORM.
    So what you have to do is
    1) First do the BDC recording using SHDB and create a program , which contains automatically generated code for the recording.
    2) In the previous program where you need to code for BDC handling corresponding to events, just copy paste the code in the newly created program  like
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    3) If you want the processing to be in foreground ,
    write the statement
    ws_mode = 'A'.
        CALL TRANSACTION 'MM02' USING bdcdata MODE ws_mode
                              MESSAGES INTO messtab.
    (In this case , the transaction is MM02).
    This will work.
    Regards,
    SP.

Maybe you are looking for

  • Open and close application at some hour.

    Is it possible that Automator opens one or more applications at, for example, 3 in the morning and close it/them 4 hours later? If possible, how can I do it? Thanks.

  • REPORT VIEWER- PRINT BUTTON- NOT PRINTING ONLY IN SOME MACHINES

    I built a project in VS2008(VB.Net) and it uses RDLC reports...When ive published my software i tried and it works fine and can print successfully on my machine but when i tried on the target machine i can export to pdf but i cant print the files dir

  • Artwork doesn't show with version 5.0.1

    I updated my ipod with the iOS 5.0.1.  The album artwork doesn't show even if they all appears in Itune.  Any idea to resolve this problem?

  • IMovie 11 Slideshow image quality issue

    Hi, when I am creating a slideshow with iMovie from still images, I have a severe loss of image quality. I have tried to search forums up and down, but did not find any help or solution for that. The loss of quality is kind of dramatic. Any ideas, su

  • Wanted Honolulu HI FCP 5 Studio User with discs

    Hi Honolulu FCP Studio User, I moved from New York City back to my hometown of Honolulu HI. In the process of moving, I lost my discs for FCP Studio 5, the bundle that includes Compressor, Motion, DVD Studio Pro 4 and of course FCP 5. I had to get my