Picture visibility in module pool

hello ppl.
i have developed a program using module pool. i have displayed a logo on the initial screen using the class CL_GUI_PICTURE. i require to hide this logo or make it invisible on the next screen, but should always be displayed on the initial screen. i tried using SET_VISIBLE method, but its not working.
pls gimme some suggestions .
thnks...

Hi,
either use screen-group field value or
use as
loop at screen.
field-name[
screen-active    = '0'.
screen-input     = '0'.
screen-output    = '0'.
screen-invisible = '0'.
endloop.
Regards
ricky

Similar Messages

  • Add Picture to a Module pool screen

    Any anyone know how to load a picture,im module pool
    I have already uploaded a BMP file in se78.
    After that do anyone know how to upload the picture
    in the Module pool screen.

    ok. first create a container then place this picture in ur container.
    For detail.
    go through this program......
    create object cust_container
      exporting
        container_name              = 'MYCONTAINER1'
    create object picture
      exporting
        parent = cust_container
    clear url.
    path = 'Zex'.
    perform get_url using path.
    CALL METHOD picture->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>display_mode_fit
    EXCEPTIONS
       ERROR        = 1
       others       = 2
      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 METHOD picture->load_picture_from_url
      EXPORTING
        url    = url
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form get_url using  p_path.
    DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
      DATA html_table LIKE w3html OCCURS 1.
      DATA return_code LIKE  w3param-ret_code.
      DATA content_type LIKE  w3param-cont_type.
      DATA content_length LIKE  w3param-cont_len.
      DATA pic_data LIKE w3mime OCCURS 0.
      DATA pic_size TYPE i.
      REFRESH query_table.
      query_table-name = '_OBJECT_ID'.
      query_table-value = p_path.
      APPEND 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.
      IF sy-subrc = 0.
        pic_size = content_length.
      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.
    endform.                    " get_url
    Regards
    Abhishek

  • PICTURE ON  A  MODULE POOL SCREEN

    Hi All.
    I have an issue in module pool program.
    I designed a screen with number 100.
    on this screen they want to put some picture...like some logo.
    Is it possible to put the picture on this screen 0100.
    Please can any body ,help me to solve this issue.
    Thanks in advance,
    Regards,
    Eswar.

    Hello,
    You can use picture control to attach a picture to your screen.The sample code is below:
    The custom container in the screen layout is named as 'CONTAINER'.
    REPORT SAMPLE.
    DATA: picture type ref to cl_gui_picture,
    cont type ref to cl_gui_custom_container.
    DATA: I_EVENTS TYPE CNTL_SIMPLE_EVENTS,
    WA_EVENTS TYPE CNTL_SIMPLE_EVENT,
    OK_CODE TYPE SY-UCOMM,
    p_url type cndp_url.
    Class click definition.
    PUBLIC SECTION.
    METHODS: click_handle for event picture_click of cl_gui_picture
    importing MOUSE_POS_X MOUSE_POS_Y.
    endclass.
    DATA: click_variable type ref to click.
    class click implementation.
    method click_handle.
    DATA: X_POS(5),Y_POS(5).
    X_POS = MOUSE_POS_X.
    Y_POS = MOUSE_POS_Y.
    MESSAGE I000(OK) WITH 'Picture Click' X_POS Y_POS.
    endmethod.
    endclass.
    START-OF-SELECTION.
    call screen 100.
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'GUI'.
    SET TITLEBAR 'xxx'.
    if cont is initial.
    CREATE OBJECT CONT
    EXPORTING
    CONTAINER_NAME = 'CONTAINER'.
    CREATE OBJECT PICTURE
    EXPORTING
    LIFETIME =
    SHELLSTYLE =
    PARENT = cont
    NAME =
    EXCEPTIONS
    ERROR = 1
    others = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    wa_events-EVENTID = picture->EVENTID_PICTURE_CLICK.
    wa_events-APPL_EVENT = 'X'.
    append wa_events to i_events.
    CALL METHOD PICTURE->SET_REGISTERED_EVENTS
    EXPORTING
    EVENTS = i_events.
    create object click_variable.
    set handler click_variable->click_handle for picture.
    CALL METHOD PICTURE->SET_3D_BORDER
    EXPORTING
    BORDER = 1.
    CALL FUNCTION 'DP_PUBLISH_WWW_URL'
    EXPORTING
    OBJID = 'HTMLCNTL_TESTHTM2_SAP_AG'
    LIFETIME = cndp_lifetime_transaction
    IMPORTING
    URL = p_url
    IF SY-SUBRC = 0.
    CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL_ASYNC
    EXPORTING
    URL = p_url.
    ENDIF.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
    WHEN 'BACK'.
    LEAVE PROGRAM.
    WHEN 'NORMAL'.
    CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL.
    WHEN 'FIT'.
    CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT.
    WHEN 'NORMAL_C'.
    CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_NORMAL_CENTER.
    WHEN 'FIT_C'.
    CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
    WHEN 'STRETCH'.
    CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
    WHEN 'CLEAR'.
    CALL METHOD PICTURE->CLEAR_PICTURE.
    WHEN SPACE.
    CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL
    EXPORTING
    URL = P_URL.
    IMPORTING
    RESULT = RETURN.
    CALL METHOD CL_GUI_CFW=>FLUSH.
    endcase.
    endmodule.
    Also check demo program:RSDEMO_PICTURE_CONTROL
    <b>TO GET DIFFERENT PICTURES</b>:
    (The following is <b>Judith Jessie Selvi's</b> reply for a similar query.Unfortunately I'm not able to track the URL of that thread).
    Refer this link
    1... create a logo using paint shop and save it as tifffile then using RSTXLDMC (is a program name) used to upload logo
    2.....create a logo using paint shop and save it as bmpfile then using SE78 you can do this.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIIMAGE/BCCIIMAGE.pdf
    http://www.sap-img.com/human/linking-employee-photos-using-sap-archive-link.htm
    Transaction OAOR,
    - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    Regards,
    Beejal
    **Reward if this helps

  • PICTURE IN MODUL POOL DYNPRO

    HI !!!
    how can i put a sap picture in a modul pool dynpro?, i already uploaded to de r/3 system, but i dont know how to put it in the dynpro.
    Thanks and Regards

    hi Luis,
    Refer
    PICTURE ON  A  MODULE POOL SCREEN
    Add Picture to a Module pool screen

  • Using images in module pool programming.

    Can anyone tell the way to display an image in a module pool program screen?
    If its not too much of a headache, please give a detailed code.

    Hi Sahil,
                  Well you might want to take a look at the following link. I used SE78 to upload the picture and then used the picture in the module pool screen. I think that you can upload almost any picture using se78.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/uploading%2bse78%2bpictures%2bin%2bscreen
    Edited by: Aditya  Niyogi on May 26, 2008 11:25 AM

  • Icon display in Module pool screen not visible to some users

    Hi,
    I have added an icon in one of the module pool screen with dynamic quick info.  The page is rendered fine and the info is also displayed well for most users except some.  I can't figure out why the icon is not being displayed for some users.
    Do someone has any solution for this?
    Thanks,
    Sumith

    As I recall, the icons are actually stored in a file on each PC so some users may have a corrupted or out-of-date file with the icons.  You can look for posting on "how to add an icon" to see a discussion on this topic.
    I found some useful info at:
    Create and Add Icons to table ICON?
    Message was edited by: Charles Folwell

  • How to get the Grand Total in Module pool Screen

    Hi Frds.
         How to get the Grand Total in Module pool Screen
    Example i have 10 different materials
    for each matarial has different moving . But in my case matarials is doesnt matter here
    10 material Moving Average price to do Frand total and display in one column...
    Please Help me out Frds.
    Regards,
    Kabil

    Hi
    You need to calculate the total in a module of PAI (or PBO) event:
    PROCESS PAI.
       LOOP.....
       ENDLOOP.
      MODULE CALCULATE_TOTAL.
      MODULE CALCULATE_TOTAL.
        GRAND_TOTAL = 0.
         LOOP AT ITAB,
            GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
        ENDLOOP.
    ENDMODULE.
    In this way the grand total will be calculated as soon as the user presses enter or another command.
    You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop,

  • Custom module pool + Amount field decimals display same as standard screen display

    Hi All,
    Requirement: A custom module program screen field has to be designed which displays decimal values of amount fields same as amount fields in standard screen.
    Standard screen behavior: If the standard screen fields are observed, they refer to data elements WRBTR or AZSOL_F05A (transactions FB50/FB03/FB01). However, number of decimal places that are visible on screen are dependent on the currency that is provided.
    Both the data elements have 2 decimal places.
    For currency USD two decimal places are displayed - in TCURX - decimal places are two.
    For currency JPY or CLP - zero decimal places are displayed  - in TCURX - decimal places are zero.
    i.e., even though the screen field refers to data element or domain that has the characteristic to show 2 decimal places, based on currency, decimal places are adjusted.
    I would like to know how this is happening on standard screen fields.
    Solution Required for: How to make the custom screen amounts to display same number of decimal places as standard screen amount fields.
    P.S: Before posting the query here, research has been done in SDN and other places. It has been identified that quantity fields adjustments are discussed. However for amount field even though discussed earlier, did not reach a conclusion.
    I would like to get a solution for this one.
    Thanks in advance.
    Goutham.

    Thank you all for taking time to take a look at this query.
    This issue has been resolved.
    Resolution: If the standard transactions (FI transactions in specific) are observed, whenever there is a field that displays amount value, there will be a corresponding field (may not be beside the amount field, somewhere on the screen or in the same sequence of screens) where the currency key value would be entered.
    For instance, if you look at FB50 - there is field on top for the user to input currency key value (like USD or CLP or INR).
    When any amount field is declared - this currency key field is provided as the reference field in the screen attributes of the amount field.
    In short, in the custom module pool program, provide a field that holds currency key value and use this field as reference field for the amount fields.
    Do repond to this thread if the resolution is not clear.
    Thank you all once again.
    Goutham.

  • Guidelines for setting Application Module Pool Size Parameters?

    Are there guidelines for setting the application module pool size parameters, such as initial pool size, maximum pool size, etc., based on the expected number of users or other factors? I've read the developer guide sections (ch 28-29), but still don't have a good feel for how to correctly set the optimal values for the pool configuration parameters? Even more importanty, how do I monitor the pool's efficiency during runtime to determine if the pooling parameters are configured correctly?
    This will be critical to performance and scalability, so I'm looking for a way to get some visibility into how the pooling is working during production operation to assess whether there are bottlenecks/constraints/ineffeciencies?
    Note I am using Tomcat as the java runtime container; ADF BC / JSF jdev 10.1.3.1
    Thanks in advance and Merry Christmas!

    KUBA - were you able to resolve these issues and if so are there any lessons learned you can share?
    I'm hoping someone from the ADF team can answer our original question including guidelines for setting pool parameters and how to monitor the pool's performance while running in production.
    thanks

  • Problem in Screen field position ( Module pool )

    Hi Experts,
    We changed the screen field position ( GUI ) of SAP standard module pool program.  we had taken the access key from SAP and modified the layout.
    Our Problem :   We had transported  these change request to Quality and Pre Production. The changes are transferred correctly in Quality .  when coming to Pre Production the changes are not visible on  the screen.
    Checks Performed :  1. We had analyzed the Transport request - They are imported correctly.
                                        2. We had rechecked the layout that we had changed its good and correct.
    Can you experts help me out in identify the exact solution for this problem.
    - Best Regards,
    Sudhakar Puppala
    Edited by: CRM Sudhakar on Sep 16, 2010 11:25 AM

    Hi, no idea can be given without having a look..
    but just check the screen layout in the pre-production itself..instead checking transport..

  • Module-pool edit mode to non edit mode

    Dear friends ,
    I am working with module-pool, In that  when i enters value that field should become Visible mode   and should  not allow user to edit amount  Please guide me .
    thanks & regards

    Hi try this way...
    PROCESS BEFORE OUTPUT.
      MODULE status_<screen>.
    * Table control for OUTPUT
      LOOP WITH CONTROL <TableControl>.
        MODULE Modify_screen.
      ENDLOOP.
    MODULE Modify_screen OUTPUT.
    * Table control reading values from input screen & displaying on screen
      READ TABLE <Internal table>    INDEX <Table control >-current_line.
    * Logic for screen Display Mode when User enters data
      IF <ITAB>-FIELD is not Initial.       "This means User has enterd Data for the Particular Row
        LOOP AT SCREEN.
          IF screen-name = 'ITAB-FIELD'.       "Passs the table/WorkArea with Field name to make field Display mode
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.
    Prabhudas

  • How to add  help documentation in a module pool screen?

    Hi ,
    I have to add documentation for a module pool screen. I have added the documentation for the program in se38 but what can I do to make it visible on the screen I have designed.
    Since I am new to module pool, kindly explain me step by step.
    Thanks,
    Nidhi

    Hello Nidhi,
    if you want at field level you use
      PROCESS ON HELP-REQUEST. in flow logic of screen.
    one mre thing you can add one text edit control on screen and put your text in screen

  • How to create a ListBox in module pool program in 3.1i system ?

    Hi All,
    How to create a ListBox of type module pool program in 3.1i system ?
    when i tried creating, the listbox option is disabled.
    Thanks in advance.
    Edited by: gulab zehra on Aug 20, 2009 1:26 PM

    Hi,
    please go through this...
    LIST BOX                    
          Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
          In screen painter to create a input/output field into list box we use  'L" as a value for dropdown attribute for the i/o field.  In screen painter to determine the type of method that will be used to fill the value list we use the attribute value list. If it is blank, the value list will be filled by the first column of the input help assigned to the screen field. This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system. SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field. If a function code is attached to the list box the selection of a value triggers a PAI otherwise PAI will not trigger.  LIST BOX in SELECTION SCREEN
        List Box is created in selection screen using PARAMETERS statement with
    AS LISTBOX addition other attributes like VISIBLE LENGTH (width of listbox) can be specified with the declaration. PARAMETERS name AS LISTBOX VISIBLE LENGTH n.
       The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So we should declare TYPE-POOLS VRM before using this FM.
    Some important types declared in the VRM type group are
    VRM_ID
       It refers to the name of the input/output field associated with list box
    VRM_VALUES
      It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C
    that will be used to create the list values.
    CALL FUNCTION  'VRM_SET_VALUES'
      EXPORTING
          ID                  = name of screen element, it is of TYPE VRM_ID
          VALUES      = internal table containing values, of TYPE VRM_VALUES
    Thanks
    Ashu Singh

  • Help in uploading image using module pool programming!!!

    hi all
       I need a help from you all...iam designing my company's Visitors Identity card...im workin in module pool programming,i need to know wat function module should i use to get jpg image n to display it...
    i hav tried it using DP_PUBLISH_WWW_URL func module but it asks for OBJID dono wat should i give...i referred SAP_PICTURE_DEMO.....
    <b>plz suggest me with some solutions to diplay image which is stored in desktop....</b>
    asha.......

    hi,
    u try this importing jpeg image  in transcation oaor .
    in that give class name as pictures and class type as ot and execute it.
    in that u import which image u want to say for suppose a DUMMY.
    FORM TOP_OF_PAGE.                                           "#EC CALLED
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
            EXPORTING
                <b>I_LOGO             = 'DUMMY'</b>
                "'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY =  GT_LIST_TOP_OF_PAGE.
    ENDFORM.                    "TOP_OF_PAGE
    this top of page u use in FM
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         I_BACKGROUND_ID                   = 'ALV_BACKGROUND'
         I_CALLBACK_PROGRAM                = sy-repid
         I_CALLBACK_PF_STATUS_SET          = gc_pf_status_set
         I_CALLBACK_USER_COMMAND           = GC_USER_COMMAND
        <b> I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'</b>
    this may solve ur problem.

  • How to upload logos in module pool programs?

    hi frnds,
    My requirement is to upload the logo in the module pool screen.Can any one explain in detail? its urgent.

    Hi,
    First you need to upload using OAER or OAOR.
    you need to have containers, and you need to use classes.
    data: DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
    using this method you can set background picture.
    CALL METHOD DG_DYNDOC_ID->SET_DOCUMENT_BACKGROUND
    EXPORTING
    PICTURE_ID = DL_BACKGROUND_ID.
    Here is the sample code
    Create a screen
    Place a custom container for the picture on the screen.
    Name the container GO_PICTURE_CONTAINER.
    Type pool for using SAP icons
    TYPE-POOLS: icon.
    Declarations
    DATA:
    go_picture TYPE REF TO cl_gui_picture,
    go_picture_container TYPE REF TO cl_gui_custom_container.
    MODULE status_0100 OUTPUT.
    IF go_picture_container IS INITIAL.
    Create obejcts for picture and container and
    setup picture control
    CREATE OBJECT go_picture_container
    EXPORTING
    container_name = 'PICTURE_CONTAINER'.
    CREATE OBJECT go_picture
    EXPORTING
    parent = go_picture_container.
    Set display mode (Stretching, original size etc.)
    CALL METHOD go_picture->set_display_mode
    EXPORTING
    DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
    EXCEPTIONS = 1.
    Load picture from SAP Icons. To oad a picture from an URL use method
    load_picture_from_url
    CALL METHOD go_picture->load_picture_from_sap_icons
    EXPORTING
    icon = icon_delete
    EXCEPTIONS error = 1.
    ENDIF.
    ENDMODULE. [/code]
    check the below link.
    http://www.sapgenie.com/abap/controls/picture.htm
    Award points if helpful.
    Regards,
    Shiva KUmar

Maybe you are looking for

  • Do files need to be upgraded too?

    I just upgraded to Lion. I store my files on an external back up drive. Because I just upgraded, should I re-copy those files to the external drive? Or are they the same? Do they become Lion files? Lastly, what is the best way to repair permissions a

  • My earphone jack got stuck in my iPhone 5?

    Basically, I was walking home from school and I was using genuine earpods, and they were faulty anyway (they didn't play music correctly, the artists voices couldn't be heard and I could only hear one instrument) but since I walk alone, it's better t

  • How to receive goods through Inbound Delivery?

    Hi All, I have created a PO with confirmation control for IBD and OA. Then I created an IBD referring the PO and then I did Post Goods Receipt through the IBD. In he document flow, I can see a confirmation of service but when I checked the stock of t

  • Two ForeignKey to define in the same table

    using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public class CustomerBase public CustomerBase() this.Payments = new List<PaymentBase>(); this.Documents =

  • CLOSING AN AIR APPLICATION

    I am writing an air application.  If a user clicks the close button up in the titlebar, I want to be able to create a pop-up that asks if they would like to save their project before exiting.  The problem is that the program just exits without displa