Regarding modulepool

I wnt to do background settings ( like colors, pictures) for modulepool screens, is it possible?
Thanks in advance

hi Lakshmi,
Example for a Picture control
Steps:
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.    
Example for calling a list with colors displaying the text in List processing
REPORT demo_leave_to_list_processing .
TABLES sdyn_conn.
DATA: wa_spfli TYPE spfli,
      flightdate TYPE sflight-fldate.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100.
  CALL SCREEN 500.
  SET SCREEN 100.
ENDMODULE.
MODULE call_list_500 OUTPUT.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS space.
  SUPPRESS DIALOG.
  SELECT  carrid connid cityfrom cityto
    FROM  spfli
    INTO  CORRESPONDING FIELDS OF wa_spfli
    WHERE carrid = sdyn_conn-carrid.
    WRITE: / wa_spfli-carrid, wa_spfli-connid,
             wa_spfli-cityfrom, wa_spfli-cityto.
    HIDE: wa_spfli-carrid, wa_spfli-connid.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.
ENDMODULE.
TOP-OF-PAGE.
  WRITE text-001 COLOR COL_HEADING.
  ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
  WRITE sy-lisel COLOR COL_HEADING.
  ULINE.
AT LINE-SELECTION.
  CHECK not wa_spfli-carrid is initial.
  SELECT  fldate
    FROM  sflight
    INTO  flightdate
    WHERE carrid = wa_spfli-carrid AND
          connid = wa_spfli-connid.
     WRITE / flightdate.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.
This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.
The flow logic of screen 100 is:
PROCESS BEFORE OUTPUT.
  MODULE status_0100.
PROCESS AFTER INPUT.
  MODULE cancel AT EXIT-COMMAND.
  MODULE user_command_0100.
The PAI module user_command_0100 calls screen 500 using the CALL SCREEN statement. This screen encapsulates a basic list. It has the following flow logic:
PROCESS BEFORE OUTPUT.
  MODULE call_list_500.
PROCESS AFTER INPUT.
The module call_list_500 defines the basic list and switches to list processing. Since the next screen after list processing is screen 0, screen 500 is a one-screen screen chain. After list processing, control returns to the position in user_command_0100 from which screen 500 was called.
If the user selects a line on the basic list, a detail list appears. This is achieved through the event block AT LINE-SELECTION. The program also contains event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION, which define page headers for both the basic list and detail list.
Since there is only one list system in this program, there is no need for case distinctions within the list events.
Good Luck and thanks

Similar Messages

  • Regarding modulepool table control

    hi experts,
    can u plx tell me how can i retrive item table data  trhu modulepoool table control?
    plz help with a sample code
    thnx in advance

    search the sdn and u would find a lot of samples, just like this.
    [table control|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/learn%2bmaking%2bfirst%2btable%2bcontrol]

  • Regarding SINO. in modulepool programing

    hi experts,
    i m inserting the data into my customized database table with the help of table control.for deletion purpose i m using sino field in my database table..what i want is without inserting sino in the table control (o/p screen) the database table will automatically
    take the sino depending upon the row insertion.what logic sud i use in pbo or pai to get the sino in database table..plz help me .its urgent.if possible plz send me the code related to this scenario.
    thnx in advance

    Hi Ravi
    You can use number range for automatically generation of sequence no.
    The transcation is SNRO.
    I don't know whether it is the answer to ur question.
    Naresh

  • Regarding checkboxes in modulepool

    gdmrng experts,
                          cud u plz tell me how to handle checkboxes in the module pool screen ,plz send me the logic,,,,,,if i enable the checkbox then what will i write,,,, as i new to module pool....thnx in advance.

    Hi,
    Do something like this in your PBO section.
    loop at itab with tc...
    module modify_tc.
    endloop.
    in the main program.
    module modify_tc.
    loop at itab where mark = 'X'.
    endloop.
    if sy-subrc = 0.
    loop at screen.
    screen-input = 0.
    modify screen.
    endloop.
    endif.
    endmodule.
    Thanks
    Ashu

  • Warning message in Modulepool

    Hi All,
    How to create a warning message in Modulepool.
    Thanks
    Basheer

    Hi,
    Use the following Way You can use it in PAI.
    message 'Please Enter the correct Customer ID' type 'E'.
    Remember 1 thing that it will Block all of your input field, to handle this you will have to use the following in the u201CFlow Logicu201D.
    process after input.
      chain.
        field:  field1,
                field2,
                fieldn.
        module user_command_0001.
      endchain.
    After using Chain EndChain you will be able to use these input field.
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Feb 4, 2009 7:36 PM

  • Download and Upload Modulepool program

    hai all,
       Could any one say how to Download and Upload Modulepool program from sap.
    Thanks,
    Jeevan.

    Hi Puduru
    Welcome to ABAP forums.
    If you just want to export Module pool program once, you can use transaction SE80 and menu point Utilities->More Utilities->Upload/Download->Download option ( for each include / component ).
    Save it as a text file and then repeat the same process.
    Here's other programs for the same functionality. You can use one of them.
    http://www.members.tripod.com/abap4/Upload_and_Download_ABAP_Source_Code.html
    http://sap.ittoolbox.com/code/d.asp?d=1623&a=s
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/finding your code in bsp applications.article
    http://www.geocities.com/rmtiwari/Resources/Utilities/WebViewer.html
    http://www.dalestech.com/
    Dont forget to rewards pts, if it helps ;>)
    Regards,
    Rakesh

  • Drop down box in a modulepool

    Hi,
    I am creating a modulepool with a drop down box in one of the dynpros. I have managed to fill it with values using the 'VRM_SET_VALUES' function module.
    The problem comes when running the modulepoool. The field displays the drop down box with the correct values, but it does not take the values I select. The first opcion is the defualt, and even though I choose a different one it does not take the change.
    Is there something missing?
    Thanks in advance,
    Nerea.

    Hi Nerea,
    Check with this code
    TYPE-POOLS: VRM.
    TABLES SPFLI.
    TABLES SSCRFIELDS.
    DATA flag.
    DATA: NAME TYPE VRM_ID,
          LIST TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS PS_PARM LIKE SPFLI-CARRID  AS LISTBOX VISIBLE LENGTH 10
    USER-COMMAND
    fcodex.
    data: i_spfli type spfli occurs 0 with header line.
    PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
    USER-COMMAND
    fcodey.
    INITIALIZATION.
      NAME = 'PS_PARM'.
      DATA T TYPE I VALUE 0.
    SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
    SPFLI.
      loop at i_spfli.
        VALUE-KEY = i_spfli-CARRID.
        VALUE-TEXT = i_spfli-CARRID.
        APPEND VALUE TO LIST.
      endloop.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.
    AT SELECTION-SCREEN.
      if sy-ucomm eq 'FCODEX'.
        REFRESH LIST.
        CLEAR LIST.
        PQ_PARAM = ' '.
        NAME = 'PQ_PARAM'.
        SELECT  * FROM SPFLI WHERE CARRID = PS_PARM.
          VALUE-KEY = SPFLI-connid.
          VALUE-TEXT = SPFLI-connid.
          APPEND VALUE TO LIST.
        ENDSELECT.
      endif.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
          CALL FUNCTION 'VRM_SET_VALUES'
            EXPORTING
              ID     = NAME
              VALUES = LIST.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      clear i_spfli.
      refresh i_spfli.
    select * into table i_spfli from spfli where carrid = ps_parm and connid
    = pq_param.
      loop at i_spfli.
        WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
       'DEPARTURE TIME :', I_SPFLI-DEPTIME.
      ENDLOOP.
    Reward with point if it is helpful
    Regards
    Alfred

  • Select-options in ModulePool

    hi experts,
    I am facing one issue regarding the modulepool programming . In Module Pool Programming I am using select-options, I want to upload the selected ranges and also the excluded values as zeros in the database.Please any one help me.

    You can use the Select-Option as Ranges in a select statement....if you want exclude Zeros in DB you can use a simple condition.....WHERE VALUE > 0...
    Regards

  • Table control in modulepool

    Hi,
    I have table control in modulepool.I have to edit some cells in my table control and update the same fields in actual table after pressing save button.And also I should maintain the modified field in some Ztable.
    Plese provide me the code if any body having the same scenario.
    It is urgent.
    Thanks
    suresh

    refer these
    http://sap.niraj.tripod.com/id25.html
    http://sap.niraj.tripod.com/id29.html
    <b>http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm</b>
    regards,
    srinivas

  • Difference between ordinary report and modulepool

    Hi sdn peoples,
                               I like to know the difference between modulepool and ordinary
    report.why we go for module pool ..list me the difference pls..
    regards& thanks ,
    veera

    Hi,
    Module pool programs are created in abap development work bench (TCODE: SE80).
    Here we can do all the works whatever you can do in abap.
    Module pool programs are also called dialog programs.
    The module Pool are reports prepared for different screens and to manage the sequeence of events of these screens, in the transaction SE80 you can see all the dynpros that you have for this kind of report, add new ones, add all types of element to the report.
    Process Before Output is the part of the dynpro code that is precessed before the user can do anithing with the data in the screen
    Process After Input is the part of the dynpro code that is preocessed after the interaction with the user.
    module pool programs are excuited using Tcode
    Thanks,
    Shankar

  • How to put field  as a mandatary in modulepool

    Hi,
    i want to put the fields as a mandatary in modulepool send me ur valueble adviice
    urgent
    advanced thanks,

    hi,
    In the PBO .
    do like this.
    loop at screen.
    if screen-name_of_field is initial.
    *error message.
    exit.
    endif.
    endloop.
    <b>the besdt method is use CHAIN END CHAIN</b>
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
    ELSE.
    PERFORM conn_obj_check.
    ENDIF.
    ENDIF.
    ENDMODULE. " modify_screenfields INPUT
    Regards
    Reshma

  • How to call Report output in Modulepools

    hi
    can any one suggest me
    How to call Report output in Modulepools
    i have a push button in modulepool after clicking that pushbutton i need a report output
    how to do this
    Thanks & Regards
    kalyan

    Hi Kalyan,
    From Module pool program you have to go display A Report output..
    So at User-Command of PAI use LEAVE TO LIST PROCESSING.
    Regarding this check the Demo program DEMO_LEAVE_TO_LIST_PROCESSING.
    And for further reference please check this SAP Help
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm
    For more help please check this thread
    Re: LEAVE TO LIST-PROCESSING
    Hope this would help you.
    Good luck
    Narin

  • I need how to insert records in ztable through modulepool

    Hi All
        I created a modulepool screen, in that i placed some fields from ztable.
       Now i enter the record in that screen text area and push submit button it would be
      store in ztable.
    plz some one help me by sending the INSERT code for that
    Thanks
    Lokesh

    Hi,
    Check out the following code.
    TABLES: Ztable.                          .
    DATA : BEGIN OF IT OCCURS 0,
          sortl LIKE kna1-sortl,
           SGTXT LIKE MSEG-SGTXT,
           WERKS LIKE MSEG-WERKS,
           LGORT LIKE MSEG-LGORT,
           END OF IT.
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
            LEAVE PROGRAM.
        WHEN 'CANCEL'.
            LEAVE PROGRAM.
        WHEN 'SAVE'.
           ztable-agency = it-sortl.
            ztable-AGENCY = IT-SGTXT.
            ztable-WERKS = IT-WERKS.
            ztable-LGORT = IT-LGORT.
            INSERT ztable.
       MESSAGE S100(ZMMABAP) .
       IF SY-SUBRC NE 0.
       MESSAGE E101(ZMMABAP).
       ENDIF.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    *&      Module  STATUS_1000  OUTPUT
          text
    MODULE STATUS_1000 OUTPUT.
      SET PF-STATUS 'Zstatus'.
      SET TITLEBAR 'title'.
    ENDMODULE.     
    Reward points if helpful.
    regards,
    CS

  • Could anybody plz send some faq's on modulepool?

    Hi experts,
    I'm very new to module pool.
    could anybody plz send some faq's on modulepool?
    regards.
    venkat

    Module Pool Programming
    http://www.allsaplinks.com/dialog_programming.html
    http://sap.mis.cmich.edu/sap-abap/abap09/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://sap.mis.cmich.edu/abap-00/
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    http://sappoint.com/abap.html
    http://www.sap-img.com/abap.htm
    http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/abap/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://www.sappoint.com/faq/faqdiapr.pdf
    http://www.allsaplinks.com/dialog_programming.html
    Check the following Link
    http://www.sappoint.com/faq/faqss.pdf

  • How i can set break point in standard sap modulepool

    how i can set breakpoint in standard sap modulepool

    If you know the program name, it is no different from normal setting of break point.
    It will have a break point button in the abap editor.
    Place the cursor on the line and set the break point.
    Then run the transaction in another session.
    Or type /h from the transaction itsefl to start the debugging.
    see the wiki faqs section for debuging
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+debugger&
    Regards,
    Ravi

Maybe you are looking for