Insert a photo in screen painter or tab strip

Hi,
Please give me a solution for how to insert employee photo like jpeg in screen painter or tab strip control
thanks,
suresh

Hi,
Follow these step.
1. save that photo into bmp or tiff format.
2. Upload it into se78.
3. create a custome container with name 'PICTURE_CONTAINER'
*& Report  ZRU_DISPLAY
REPORT  ZRU_DISPLAY.
call screen 700.
*&      Module  STATUS_0700  OUTPUT
      text
MODULE STATUS_0700 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
DATA: W_LINES TYPE I.
  TYPES PICT_LINE(256) TYPE C.
  DATA :
  CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
  EDITOR TYPE REF TO CL_GUI_TEXTEDIT,
  PICTURE TYPE REF TO CL_GUI_PICTURE,
  PICT_TAB TYPE TABLE OF PICT_LINE,
  URL(255) TYPE C.
  DATA: GRAPHIC_URL(255).  DATA: BEGIN OF GRAPHIC_TABLE OCCURS 0,
          LINE(255) TYPE X,
        END OF GRAPHIC_TABLE.
  DATA: L_GRAPHIC_CONV TYPE I.
  DATA: L_GRAPHIC_OFFS TYPE I.
  DATA: GRAPHIC_SIZE TYPE I.
  DATA: L_GRAPHIC_XSTR TYPE XSTRING.
  .  CALL METHOD CL_GUI_CFW=>FLUSH.  CREATE OBJECT:
  CONTAINER EXPORTING CONTAINER_NAME = 'PICTURE_CONTAINER',
  PICTURE EXPORTING PARENT = CONTAINER.  CALL METHOD CL_SSF_XSF_UTILITIES=>GET_BDS_GRAPHIC_AS_BMP
    EXPORTING
      P_OBJECT       = 'GRAPHICS'
      P_NAME         = 'ABHITECH'
      P_ID           = 'BMAP'
      P_BTYPE        = 'BCOL'
    RECEIVING
      P_BMP          = L_GRAPHIC_XSTR
EXCEPTIONS
   NOT_FOUND      = 1
   INTERNAL_ERROR = 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.  GRAPHIC_SIZE = XSTRLEN( L_GRAPHIC_XSTR ).
  L_GRAPHIC_CONV = GRAPHIC_SIZE.
  L_GRAPHIC_OFFS = 0.  WHILE L_GRAPHIC_CONV > 255.
    GRAPHIC_TABLE-LINE = L_GRAPHIC_XSTR+L_GRAPHIC_OFFS(255).
    APPEND GRAPHIC_TABLE.
    L_GRAPHIC_OFFS = L_GRAPHIC_OFFS + 255.
    L_GRAPHIC_CONV = L_GRAPHIC_CONV - 255.
  ENDWHILE.
  GRAPHIC_TABLE-LINE = L_GRAPHIC_XSTR+L_GRAPHIC_OFFS(L_GRAPHIC_CONV).  APPEND GRAPHIC_TABLE.  CALL FUNCTION 'DP_CREATE_URL'
    EXPORTING
      TYPE     = 'IMAGE'
      SUBTYPE  = 'X-UNKNOWN'
      SIZE     = GRAPHIC_SIZE
      LIFETIME = 'T'
    TABLES
      DATA     = GRAPHIC_TABLE
    CHANGING
      URL      = URL.  CALL METHOD PICTURE->LOAD_PICTURE_FROM_URL
    EXPORTING
      URL = URL.
  CALL METHOD PICTURE->SET_DISPLAY_MODE
    EXPORTING
      DISPLAY_MODE = PICTURE->DISPLAY_MODE_FIT_CENTER.
ENDMODULE.                 " STATUS_0700  OUTPUT
This will solve ur requirement.

Similar Messages

  • How to  create a selection screen with two tab strips

    Hi Experts,
    I need to craete a selection screen '100' with two tab strips, in the 1st tab strip i need create some select options as subscreen and in other tabstrip i need to call the subscren '4000' of the program 'SAPLCTMS' . i need to call this screen as selection screen from the zprogram. please help me out.
    Thanks in advance...
    Sarath...J

    Hi,
    I have developed some code.
    It just displays a table control and after entering the values init, upon hitting the return button, the values will be put into table itab. Have a look and make necessary changes as you see fit.
    *& Report  ZMADHU_TBCNTL
    REPORT  zmadhu_tbcntl.
    DATA: BEGIN OF itab OCCURS 0,
         sel TYPE s_flag,
         matnr TYPE matnr,
         ersda TYPE ersda,
         ernam TYPE ernam,
      END OF itab.
    CONTROLS: tab_cntl TYPE TABLEVIEW USING SCREEN 100.
    *START-OF-SELECTION.
    CALL SCREEN 100.
    *END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TABCNTL'.   "pf status
    SET TITLEBAR 'xxx'.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANCEL' OR
             'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  ITAB_MODIFY  INPUT
          text
    MODULE itab_modify INPUT.
      CASE sy-ucomm .
        WHEN ' '.        " When pressed enter
    if itab-sel = 'X'.
          MODIFY itab INDEX tab_cntl-current_line.
          APPEND itab.    " append lines to internal table
          CLEAR itab.
    *endif.
      ENDCASE.
    ENDMODULE.                 " ITAB_MODIFY  INPUT
    *Screen 100 flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tab_cntl CURSOR
      tab_cntl-current_line..
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE select_data.
      LOOP .
        CHAIN.
          FIELD itab-matnr.
          FIELD itab-ersda.
          FIELD itab-ernam.
          MODULE itab_modify ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100.
    Hope it will helps to u.
    Thanks,
    Shankar

  • Picture in screen painter

    Hi,
    How to insert a picture in screen painter.?
    Thanks,
    Suresh

    Hi
    first Upload the image in SMW0 in binary format and give name as 'Zimage_LOGO'.
    Below find the code to display  Image in module pool program
    Data : CL_CONTAINER   TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
             CL_PICTURE     TYPE REF TO CL_GUI_PICTURE,
             WA_HTML        LIKE W3HTML,
            WA_MIME        LIKE W3MIME,
            WA_PARAM       LIKE W3PARAM,
            WA_QUERY       LIKE W3QUERY,
            LV_URL(256)    TYPE C,
            PIC_SIZE TYPE I,
            LV_text(28)  TYPE C VALUE 'Image Display Example'.
    In PBO event   write below code
    IF CL_PICTURE IS INITIAL.
    Create controls
        CREATE OBJECT CL_CONTAINER
          EXPORTING
            CONTAINER_NAME = 'CL_CONTAINER'.
        CREATE OBJECT CL_PICTURE
          EXPORTING
            PARENT = CL_CONTAINER.
        CALL METHOD CL_PICTURE->SET_DISPLAY_MODE
          EXPORTING
            DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_FIT_CENTER.
        WA_QUERY-NAME = '_OBJECT_ID'.
        WA_QUERY-VALUE = 'Zimage_LOGO'.
        APPEND WA_QUERY TO IT_QUERY.
        APPEND WA_HTML TO IT_HTML.
        APPEND WA_MIME TO IT_MIME.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            QUERY_STRING        = IT_QUERY
            HTML                = IT_HTML
            MIME                = IT_MIME
          CHANGING
            RETURN_CODE         = WA_PARAM-RET_CODE
            CONTENT_TYPE        = WA_PARAM-CONT_TYPE
            CONTENT_LENGTH      = WA_PARAM-CONT_LEN
          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.
        ELSE.
          PIC_SIZE = WA_PARAM-CONT_LEN.
          CALL FUNCTION 'DP_CREATE_URL'
            EXPORTING
              TYPE                       = 'image'
              SUBTYPE                    = 'X-UNKNOWN'
             SIZE                       =  PIC_SIZE
       DATE                       =
       TIME                       =
       DESCRIPTION                =
             LIFETIME                   = 'T'
       CACHEABLE                  =
       SEND_DATA_AS_STRING        =
       FIELDS_FROM_APP            =
            TABLES
              DATA                       = IT_MIME
       FIELDS                     =
       PROPERTIES                 =
       COLUMNS_TO_STRETCH         =
            CHANGING
              URL                        =  LV_URL
    EXCEPTIONS
       DP_INVALID_PARAMETER       = 1
       DP_ERROR_PUT_TABLE         = 2
       DP_ERROR_GENERAL           = 3
       OTHERS                     = 4
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
            CALL METHOD CL_PICTURE->LOAD_PICTURE_FROM_URL
              EXPORTING
                URL = LV_URL.
          ENDIF.
        ENDIF.
    Hope it shall be useful
    Regards
    Santosh

  • Screen painter looks different

    Hello experts,
    I am currently confused as to why screen painter(se51) looks different. I want it to be just like the old way where it looks like VB. buttons, checkbox, etc are shown on the left side. All I can  see is blank page. Thanks a lot guys!

    Hi,
    goto utilities->setting->screen painter(from tab)
    check graphical layout editor.
    you ll find the same screen painter again.
    what you see is the alpha numeric screen painter currently.
    regards,
    Kinshuk Saxena
    Ps: reward points if you find the post helpful

  • Radio Buttons and Tab Strips

    How Do Everyone!
    I have 3 tab strips in one selection screen.
    Each tab strip has 3 radio buttons on them. How can one
    find out out which button is pressed?
    e.g. Click on the second tab, the first radio button
         will be highlighted. However, the first radiobutton
         on the first and third tabstrips will also
         be highlighted.
    Can the radio buttons be set to null?
    Cheers
    Andy

    Each group of 3 radiobuttons needs to be associated with its own group.
    For example.
    report zrich_0001
           no standard page heading.
    selection-screen begin of screen 101 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: P_rad1 radiobutton group grp1 default 'X'
                                             user-command check,
                p_rad2 radiobutton group grp1,
                p_rad3 radiobutton group grp1.
    selection-screen end of block b1.
    selection-screen end of screen 101.
    selection-screen begin of screen 102 as subscreen.
    selection-screen begin of block b2 with frame title text-002.
    parameters: P_rad4 radiobutton group grp2 default 'X'
                                             user-command check,
                p_rad5 radiobutton group grp2,
                p_rad6 radiobutton group grp2.
    selection-screen end of block b2.
    selection-screen end of screen 102.
    selection-screen begin of screen 103 as subscreen.
    selection-screen begin of block b3 with frame title text-003.
    parameters: P_rad7 radiobutton group grp3 default 'X'
                                             user-command check,
                p_rad8 radiobutton group grp3,
                p_rad9 radiobutton group grp3.
    selection-screen end of block b3.
    selection-screen end of screen 103.
    selection-screen begin of tabbed block one for 20 lines.
    selection-screen tab (15) name1 user-command ucomm1
    default screen 101.
    selection-screen tab (17) name2 user-command ucomm2
    default screen 102.
    selection-screen tab (17) name3 user-command ucomm3
    default screen 103.
    selection-screen end of block one.
    initialization.
      name1 = 'Tab 1'.
      name2 = 'Tab 2'.
      name3 = 'Tab 3'.
    start-of-selection.
    Regards,
    Rich Heilman

  • Help me in tab strip with table control

    hi,
    can any body give me the idea regarding my requirment please urgent.
      my requirment is i created tab strip in main screen (111) and i created table control in subscreen (12).and i created one parameters with gui screen.if i execute that selection-screen it call tab strip .i am getting.but my requrment is when i execute selection-screen by default it will call tab strip with table data (recards) in to the table control fields which is in display mode.
    please help me urgent.
    with warm regards.
    khadar.

    yes u can create it.
    This is a sample program to create a tabstrip.
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
    PARAMETERS: USER(10) TYPE c,
                PWD(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 500.
    SELECTION-SCREEN BEGIN OF SCREEN 600 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-010.
    PARAMETERS: BUSNO(10) TYPE c,
                BUSNAME(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 600.
    SELECTION-SCREEN BEGIN OF SCREEN 700 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-010.
    PARAMETERS: TNO(10) TYPE c,
                TNAME(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN END OF SCREEN 700.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK sub FOR 10 LINES,
                        TAB (10) LOGIN USER-COMMAND LOGIN,
                        TAB (10) BUS USER-COMMAND BUS,
                        TAB (10) TRAIN USER-COMMAND TR,
                      END OF BLOCK sub.
    INITIALIZATION.
    LOGIN = 'LOGIN'.
    BUS = 'BUS'.
    TRAIN = 'TRAIN'.
    SUB-DYNNR = 500.
    SUB-PROG = SY-REPID.
    AT SELECTION-SCREEN.
    CASE SY-UCOMM                  .
    WHEN 'LOGIN'.
         SUB-DYNNR = 500.
    WHEN 'BUS'.
         SUB-DYNNR = 600.
    WHEN 'TR'.
         SUB-DYNNR = 700.
    ENDCASE.

  • How to insert tabstrip control in module pool screen painter

    Hi all!
    plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.

    To insert tabstrip just open layout of screen and press on the tabstrip button there .
    Use this souce code further to activate it .
    CONTROLS tabstrip TYPE TABSTRIP.
    DATA: okcode TYPE sy-ucomm,
    dynnr TYPE sy-dynnr,
    flag type flag,
    active like tabstrip-activetab .
    call SCREEN 100.
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    data: lv_okcode type syucomm.
    lv_okcode = okcode.
    clear okcode.
    case lv_okcode.
    WHEN 'TAB1'.
    dynnr = '0110'.
    WHEN 'TAB2'.
    dynnr = '0120'.
    WHEN 'TAB3'.
    dynnr = '0130'.
    WHEN 'TAB4'.
    dynnr = '0140'.
    WHEN 'TAB5'.
    "check authorization, if authorization fails
    flag = 'X'. "set the global flag
    active = 'TAB1'. "store active tab in global variable
    dynnr = '0110'. "set the screen number
    WHEN 'BACK' or 'EXIT'.
    leave program.
    ENDCASE.
    IF lv_okcode(3) = 'TAB'.
    tabstrip-activetab = lv_okcode.
    ENDIF.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'MAIN'.
    SET TITLEBAR 'xxx'.
    IF tabstrip-activetab IS INITIAL OR
    dynnr IS INITIAL.
    tabstrip-activetab = 'TAB1'.
    dynnr = '0110'.
    ENDIF.
    "set the activetab explicilty here
    if flag eq 'X'. "from authorization failure
    tabstrip-activetab = active. "'TAB1'
    clear flag.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT

  • How to insert a new line in table control created in screen painter

    hai,
    i am stuck up in the place where i need to insert a row of data in the table in screen developed in screen painter..cud some one help me out...

    You can try the following statement:
    MODIFY <DBtable> from table <itab>.
    Of course, you would need to append the user-entered data (from the screen) into the internal table first.
    Hope this helps.
    Sudha

  • How to get tabs in screen painter?

    Hi friends i am having 3 screens with numbers 100, 200, 300.
    I want to make this 3 screens into tabs like basicdata1, basicdata2 in mm02. Like when i click basicdata1 it has to open basicdata1 screen.
    Please can anyone share me the solution

    Hi,
    For this requirement you can create one screen with no .100.In that create 3 tabstrips.Tabstrips allow users to access multiple subscreens on one normal screen.For three tabs maintain properties, one sub screen is sufficient for the three tabs , design the layout and write the respective logic in flowlogic to switch between different tabs.
    Here is the sample code.....
    &----DECLARETION OF STRUCTURE -
    TYPES: BEGIN OF ST_KNA1,
            KUNNR TYPE KUNNR,
            LAND1 TYPE LAND1,
            NAME1 TYPE NAME1,
            ORT01 TYPE ORT01,
            PSTLZ TYPE PSTLZ,
            REGIO TYPE REGIO,
            TELF1 TYPE TELF1,
            BANKS TYPE BANKS,
            BANKL TYPE BANKL,
            BANKN TYPE BANKN,
            KOINH TYPE KOINH_FI,
            EBPP_ACCNAME TYPE EBPP_ACCNAME,
            END OF ST_KNA1,
            BEGIN OF ST_KNBK,
            BANKS TYPE BANKS,
            BANKL TYPE BANKL,
            BANKN TYPE BANKN,
            KOINH TYPE KOINH_FI,
            EBPP_ACCNAME TYPE EBPP_ACCNAME,
            END OF ST_KNBK.
    &--DECLARATION OF WORK AREA--
    DATA: WA_KNA1 TYPE ST_KNA1,
          WA_KNBK TYPE ST_KNBK.
    DATA: V_SCREEN TYPE SY-DYNNR VALUE '0110',
          OK_CODE TYPE SY-UCOMM,
          V_KUNNR TYPE KNA1-KUNNR.
    CONTROLS: TAB TYPE TABSTRIP.
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'TABSTRIPS'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'DISP'.
          CLEAR WA_KNA1.
          SELECT
                 KUNNR
                 LAND1
                 NAME1
                 ORT01
                 PSTLZ
                 REGIO
                 TELF1
                 INTO WA_KNA1
              FROM KNA1
              WHERE KNA1~KUNNR = V_KUNNR.
          ENDSELECT.
          IF NOT WA_KNA1 IS INITIAL.
            TAB-ACTIVETAB = 'TAB1'.
            V_SCREEN = '110'.
          ELSE.
            MESSAGE I003(Z50850MESSAGE).
          ENDIF.
      ENDCASE.
      CASE OK_CODE.
    &--CALLS SUBSCREEN  TO DISPLAY CUSTOMER NAME AND NUMBER--
        WHEN 'TAB1'.
          TAB-ACTIVETAB = 'TAB1'.
          V_SCREEN = '110'.
    &--CALLS SUBSCREEN TO DISPLAY CUSTOMER PERSONAL DETAILS--
        WHEN 'TAB2'.
          TAB-ACTIVETAB = 'TAB2'.
          V_SCREEN = '120'.
    &--CALLS SUBSCREEN TO DISPLAY CUSTOMER BANK DETAILS--
        WHEN 'TAB3'.
          CLEAR WA_KNBK.
          SELECT
                 BANKS
                 BANKL
                 BANKN
                 KOINH
                 EBPP_ACCNAME
                 INTO WA_KNBK
              FROM KNBK
              WHERE KUNNR = WA_KNA1-KUNNR.
          ENDSELECT.
          IF WA_KNBK-BANKN IS INITIAL.
            MESSAGE I003(Z50850MESSAGE).
          ELSE.
            TAB-ACTIVETAB = 'TAB3'.
            V_SCREEN = '130'.
          ENDIF.
        WHEN 'EXIT' OR 'BACK' OR 'CANCEL' OR 'STOP'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards,
    kavitha

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • Table control in Screen Painter

    Hi Friends,
    I have created a screen using screen painter. The screen is having 4 tabs (subscreen) and in all the subscreen, i have used table control to insert multiple lines in the table.
    The problem I am getting is that, the data of table control part is not getting inserted into the table.
    The program part is given below for reference.
    ======================================================
    PROCESS BEFORE OUTPUT.
      MODULE SECDAM_CHANGE_TC_ATTR.
      LOOP AT   IT_SECDAM
           INTO IT_SECDAM
           WITH CONTROL SECDAM
           CURSOR SECDAM-CURRENT_LINE.
        MODULE SECDAM_GET_LINES.
      ENDLOOP.
    MODULE STATUS_0109.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'SECDAM'
      LOOP AT IT_SECDAM.
        CHAIN.
          FIELD ZTDRDTL-DIVSN.
          FIELD ZTDRDTL-MATRL.
          FIELD ZTDRDTL-SLQTY.
          FIELD ZTDRDTL-DMQTY.
          FIELD ZTDRDTL-SSQTY.
          MODULE SECDAM_MODIFY ON CHAIN-REQUEST.
        endchain.
      ENDLOOP.
      MODULE SECDAM_USER_COMMAND.
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Flow-logic part:
    DATA : BEGIN OF IT_SECDAM OCCURS 0,
           DIVSN LIKE ZTDRDTL-DIVSN,
           MATRL LIKE ZTDRDTL-MATRL,
           SLQTY LIKE ZTDRDTL-SLQTY,
           DMQTY LIKE ZTDRDTL-DMQTY,
           SSQTY LIKE ZTDRDTL-SSQTY,
           END OF IT_SECDAM.
    CONTROLS: SECDAM TYPE TABLEVIEW USING SCREEN 0109.
    DATA:     G_SECDAM_LINES  LIKE SY-LOOPC.
    MODULE SECDAM_CHANGE_TC_ATTR OUTPUT.
      DESCRIBE TABLE IT_SECDAM LINES SECDAM-LINES.
    ENDMODULE.                    "SECDAM_CHANGE_TC_ATTR OUTPUT
    MODULE SECDAM_GET_LINES OUTPUT.
      G_SECDAM_LINES = SY-LOOPC.
    ENDMODULE.                    "SECDAM_GET_LINES OUTPUT
    MODULE SECDAM_MODIFY INPUT.
      MODIFY IT_SECDAM
        FROM IT_SECDAM
        INDEX SECDAM-CURRENT_LINE.
    ENDMODULE.                    "SECDAM_MODIFY INPUT
    MODULE SECDAM_USER_COMMAND INPUT.
      OK_CODE = SY-UCOMM.
      PERFORM USER_OK_TC USING    'SECDAM'
                                  'IT_SECDAM'
                         CHANGING OK_CODE.
      SY-UCOMM = OK_CODE.
    ENDMODULE.                    "SECDAM_USER_COMMAND INPUT
    =========================================================
    Kindly guide me the solution.
    TIA.
    Regards,
    Mark K

    Hi
      Try like this may be you will get it.
    process before output.
    module status_1000.
    loop at itab with control tabctrl cursor tabctrl-top_line.
      module assign_data.
    endloop.
    process after input.
    module user_command_1000.
    loop at itab.
    endloop.
    In flow logic.
    tables vbak.
    data itab like vbak occurs 0 with header line.
    controls tabctrl type tableview using screen 1000.
    data fill type i.
    *&      Module  Assign_data  OUTPUT
          text
    module assign_data output.
    move itab to vbak.
    endmodule.                 " Assign_data  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    module user_command_1000 input.
      case sy-ucomm.
        when 'EXIT'.
         set screen 0.
      endcase.
    endmodule.                 " USER_COMMAND_1000  INPUT
    *&      Module  STATUS_1000  OUTPUT
          text
    module status_1000 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    select * from vbak into table itab.
    describe table itab lines fill.
    tabctrl-lines = fill.
    Endmodule.
    Regards
    Haritha.

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Subscreen in Screen Painter

    Hi Friends,
    I have created a layout in screen painter using Tabstrip with wizard which is having Tabstrip control with four tabs. 
    Now I want to attach to table to each tab,so that I can input some data and save in the table.
    I request you to kindly guide me as to how to do the same.
    TIA.
    Regards,
    Mark K

    Hi
      Insert subscreens in 4 tabs and give names to those subscreens, and create these 4 screens and change the attributes of these screens to subscreen, and call them in main screen like this.
    process before output.
    MODULE STATUS_1000.
    call subscreen: <subscreen area1> including sy-repid s_no, -> <b>Screen no variable</b>
                             <subscreen area2> including sy-repid s_no,
    process after input.
      module user_command_1000.
    call subscreen : <subscreen area1>,<subscreen area2>.
    In the main screen code the program somewhat like this.
    *& Module pool       ZHTABSTRIP_CONTROL                                *
    program  zhtabstrip_control                      .
    tables : lfa1,kna1,mara,vbak.
    data : begin of itab occurs 0,
             lifnr like lfa1-lifnr,
             name1 like lfa1-name1,
             kunnr like kna1-kunnr,
             land1 like kna1-land1,
             matnr like mara-matnr,
             ersda like mara-ersda,
             ernam like mara-ernam,
             vbeln like vbak-vbeln,
             erdat like vbak-erdat,
             erzet like vbak-erzet,
           end of itab.
    controls : tabstrip type tabstrip.
    data: s_no like sy-dynnr value 100. -> <b>screen no which u r calling for the subscreen.</b>
    *&      Module  USER_COMMAND_1000  INPUT
          text
    module user_command_1000 input.
      case sy-ucomm.
        when 'VEND'.
         s_no = 100.
         tabstrip-activetab = 'VEND'.
        when 'CUST'.
         s_no = 200.
         tabstrip-activetab = 'CUST'.
        when 'MAT'.
         s_no = 300.
         tabstrip-activetab = 'MAT'.
        when 'SD'.
         s_no = 400.
         tabstrip-activetab = 'SD'.
        when 'EXIT'.
         leave program.
      endcase.
    endmodule.                 " USER_COMMAND_1000  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text
    module status_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    select * from lfa1 into corresponding fields of table itab.
    read table itab index 3.
      lfa1-lifnr = itab-lifnr.
      lfa1-name1 = itab-name1.
    refresh itab.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  STATUS_0200  OUTPUT
          text
    module status_0200 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    refresh itab.
    select * from kna1 into corresponding fields of table itab.
    read table itab index 1.
      kna1-kunnr = itab-kunnr.
      kna1-land1 = itab-land1.
    endmodule.                 " STATUS_0200  OUTPUT
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    refresh itab.
    select * from mara into corresponding fields of table itab.
    read table itab index 5.
      mara-matnr = itab-matnr.
      mara-ersda = itab-ersda.
      mara-ernam = itab-ernam.
    endmodule.                 " STATUS_0300  OUTPUT
    *&      Module  STATUS_0400  OUTPUT
          text
    module status_0400 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    refresh itab.
    select * from vbak into corresponding fields of table itab.
    read table itab index 7.
      vbak-vbeln = itab-vbeln.
      vbak-erdat = itab-erdat.
      vbak-erzet = itab-erzet.
    endmodule.
    Hope this code will give you some idea.
    Regards
    Haritha.

  • Passing the values from selection screen to screen painter

    Hello Friends,
    I'm making one report program in which im calling  one screen which i have designed, in my selection screen there is a select option for customer  tht accepts value range now i want to select all the customers entered in select options and pass these values in screen(screen painter).
    pls guide me how this can be done.
    Regards,
    Sunny

    Screen painter is a tool in ABAP dev workbench used to create the screens using the
    T-code SE51. In the screen painter, you can define the following interface elements with their associated attributes.
    1. Input/Output Fields
    2. Field Names
    3. Checkboxes
    4. Radio Buttons
    5. Group Boxes
    6. Sub screens.
    7. Pushbuttons with No Fixed Position
    Create a Z program in tcode SE38.
    Go to transaction SE51.
    Enter the created program name and screen number.
    Click on flowlogic tab. 
    Uncomment the statement u201C MODULE STATUS_0100 u201C. 
    CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN 'DISPLAY'.
          SELECT SINGLE Fileds to selsct
               INTO (interanl table or tablename-fileds)
          WHERE Condition.    WHEN 'CLEAR'.
          CLEAR table.
      ENDCASE.
    ENDMODULE.

  • How to enter values in ztable from screen painter

    Hi guys,
    I have a scenario,where i have to enter values in ztable for the values entered in  screen painter.The screen painter is supposedly having 10 columns. i enter the value in the grid(table) and when i save, the records have to be inserted into ztable created by me. how to go through the problem. kindly help in  giving a flow for the problem .If anybody has gone through this scenario please help out.
    Thankx in advance
    Regards
    Navin

    if ur entering one record at a time from sreen to table then
    u have to use ,
    in pai module of the screen u have to code,
    case sy-ucomm.
    when 'SAVE'.
    ztable-roll = ztable-roll.
    ztable-name = ztable-name.
    insert ztable/modify ztable.
    ENDCASE.
    if ur screen is having a table control
    then u have to create a loop inside a module.
    like
    loop at tabcontrol_name
    module insert_data.
    endloop.
    and in the doubleclked module,
    move-corresponding ztable to ztable.
    insert ztable.
    Note : in both cases u have selected input fields as from
    table/dictionary in the screen.
    Regards

Maybe you are looking for

  • Most of my equipment has toasted, and I need the data back.

    I must have been a very, very bad person in a past life. This week has been more technologically harrowing than I'd thought possible. My cherished Titanium Powerbook died after a valiant battle, and the Apple techs said that there was nothing they co

  • Airport extreme can not be recognized?, Airport extreme can not be recognized?, Airport extreme can not be recognized?

    My Airport Extreme Station (4th Generation) is all of a sudden not recogized by the Airport Utility Software. I rebooted the Airport Extreme device a few times, disconnected it completely, and did it set it back to the factory default setting. No rec

  • Design ASP(Application Sevice Provider) schema

    Now, we have some customers, each customer may have 10GB data and we want to put some customers into one oracle instance(Oracle 8.1.6). can we use Oracle Virture Private Database idea to design to control each customer access database? How to design

  • Why Is Everything Gray and Fuzzy?

    I basically use OS 9 on my MDD dual 1 gHz FW 400 with a 19" VGA CRT monitor. One of the reasons I rarely use OS X because after a reboot into the latest Tiger everything gets fuzzy and gray. The same document that was easy to read in Word in OS 9, be

  • How do u link copa with ps

    Can any body tell me pls  how do u link copa with ps Pls send links or meterial and how did upload balance sheet in sap