Tab in Tabstrip Control in display mode (Module Pool)

Hi friends,
I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

Hi,
when u creating tabstrip,while defining each tab in tabstrip , u have to
create one subscreen for each tab.i think u want one tab for display
mode and one tab for edit mode. if u want this way , in one tab try to
give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
u have to give logic for screen in pbo.
*&      Module  STATUS_0300  OUTPUT
      text
module status_0300 output.
  set pf-status 'GUI_300'.
  set titlebar 'TITLE_300' with v_title.
  if i_aktyp = 'H'.
    if temp_flag = 1.
      loop at screen .
        if screen-group1 = 'GP2'.
          screen-input = 1.
          modify screen .
        else.
          screen-input = 0.
          modify screen.
        endif.
        temp_flag = 0.
      endloop.
    else.
      loop at screen.
        if screen-group1 = 'GP1'.
          screen-input = 1.
          modify screen.
        else.
          screen-input = 0.
          modify screen.
        endif.
        temp_flag = 1.
      endloop.
    endif.
  elseif i_aktyp = 'V'.
    loop at screen.
      if screen-group1 = 'GP1'.
        screen-input = 1.
        modify screen.
      else.
        screen-input = 0.
        modify screen.
      endif.
    endloop.
  endif.
endmodule.                 " STATUS_0300  OUTPUT
Try to give this logic.
Regards,
Ramya

Similar Messages

  • Display Mode - Module Pool

    Hi Friends,
    Need help in Module Pool,
    when button click want to display screen in Display Mode only.....

    Hi Sharavan,
    I hope you want to achieve the Toggle Display Functionality. To achieve this you have perform this following steps:
    1. Define the names Properly for each of the individual Screen Elements. Like for Button you can do BTN_01.. etc etc...
    2. In the PBO Module define a Module like MODULE screen_settings. In this you will run the following code:
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'BTN_01'.
            SCREEN-INPUT = 0.
            MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    For a group of BTNs or Text Elements you can form a GROUP and can Enable and Disable all at once.
    3. The Next step is the handling of the Table Control.In the PBO event there you will have the LOOPing the Table control.
    There inside the loop place a Module and enable and disable each and individual rows.
    You must keep a central Instance from where you can check whether you want the screen elements in DISPLAY/CHANGE mode.
    Hope this will help.
    Thanks,
    Samantak.

  • Table control in display mode

    Hello All,
    Please tell me how to show table control in display mode,
    My requirement is , whenever ill put T-code for table maintainace it should be appear in display mode.
    Thanks,
    Gaurav

    table control or table maintenance?
    Ok, let me assume that you have table mainteance view done for ZTEST table with Z_V_TABLE (maintenance view generated)
    create a tcode now
    1) transaction with parameters - se93 - tcode Z_TABLE
    2) Transaction SM30
    3) skip initial screen checked
    4) maintain below values in default values in se93
    VIEWNAME     Z_V_TABLE
    SHOW     X
    now when we run with Z_TABLE table it will always show in display mode.
    Hope - I understood your question correctly

  • Problem in navigatiion between Tabs in Tabstrip control

    Hi experts,
    I have an issue when working on tab strip. That is, i m having few text fields in Tab1 and a table control in Tab2. Now when i enter values in table control in Tab2 and again if i click Tab1, tab 1 is not getting displayed. Still Tab2 is displayed. Im not able to navigate between Tab1 and Tab2.
    I have written the following in the main program/
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
    module get_domain.
    call subscreen :sub1 including sy-repid '9001',
                              sub2 including sy-repid '9002'.
    PROCESS AFTER INPUT.
    call subscreen sub1.
    call subscreen sub2.
    MODULE USER_COMMAND_9000.
    Pls tell me how to solve this issue

    HI,
    Please try to use one one sub screen i.e. SUB1.
    in PBO write  : call subscreen: sub1 including sy-repid w_dynnr.
    In PAI write : call subscreen: sub1.
    and in coding.
    when 'SCR1'.
          ts101-activetab = 'SCR1'.
          clear w_dynnr.
          w_dynnr = '0102'.   " HERE 102 is normal screen. we are passing this screen to sub1
    when 'SCR2'.
          ts101-activetab = 'SCR2'.
          clear w_dynnr.
          w_dynnr = '0103'. " " HERE 103 is normal screen. we are passing this screen to sub1
    so try to create 3 screens i.e. 1 subscreen with 2 normal screens.
    Thanks,
    kat

  • Excise Invoice Tab not appeared in MIGO Display mode

    Dear All Guru,
    we are facing a problem after posting excise invoice,we are not able to see excise invoice tab in MIGO display mode .We are done all necessary patch uploading but there are some ABAP programming change related to MIGO display.
    Pls, send necessary note or some clue.
    Thanks,
    Abhijit

    Hi Abhijit,
    How you posted the excise invoice, have you done this posting in MIGO transaction or in J1IEX transaction.
    If you have not gor the Excise tab in MIGO while posting you cann't get the same after posting also. You need to do settings for this in IMG settings for the excise group customization then you will get this excise invoice tab in MIGO
    Hope  you understand.
    rgds
    Chidanand

  • Columns in table control in display mode in display transaction

    Hi all,
    I have a table control in a custom screen .Now i have few columns in the table control which need to be input enbaled but should be dislay only when thetransaction mode is "display" e.g VL33N.
    I have written the follwoing lines of code:
    IF sy-tcode = 'VL33N'.
        IF g_trtyp = 'A'.
          LOOP AT tc01-cols INTO wa_tc01.
            IF wa_tc01-screen-group1 = 'G2'.
              wa_tc01-screen-input = 0.
              MODIFY tc01-cols FROM wa_tc01.
            ENDIF.
          ENDLOOP.
    ENDIF.
    ENDIF.
    However the specific olumns in table control are not displayed in display mode when in display transaction!
    Can anyone suggest what am i doing wrong?
    thanks.

    I would have answered if you followed forum rules (as I can see in your previous posts, missing feedback, closed without any info)

  • Tab Order under Control Properties - Display Tab not working

    At present I'm trying to order a couple of Input-Fields and Checkboxes for the Tab-Key. Therefor I tried to use the "Tab Order" Property in the Control Properties - Display Tab - Section: Layout - Tab Order.
    In the SAP Library this property is described that way:
    When user tabs through the controls of the component in runtime, the number indicating what place this control has in the tab order. Note that -1 removes the control from the tab order entirely and 0 indicates that it is highlighted according to its appearance in the component
    Source: [Help.sap|http://help.sap.com/saphelp_nw70/helpdata/en/42/c2ba7f545e3116e10000000a1553f7/frameset.htm]
    The problem now is that VC is completely ignoring this property and just using the tab order in the way the (Input-) fields where created.
    At present I don't see any opportunity to give my "Form view" any logical tab order.
    Is there any workaround? Is it a bug? Is there something I'm doing wrong?
    Thanks for your help in advance.

    Hi,
    It seems that this tab order works only for few of the controls like pushbutton, radio button, checkbox, toggle button...
    i too tried this in my model but it was not working for the input fields of other types.
    regarding -1 -2 ... these values work normally as per their values here -1 -2 order functions just like 2 1.
    hope this helps you.
    Regards,
    Rk.

  • Adding tab in tabstrip control dynamically..........

    Hi ,
        I am using TabStrip control of PDK .NET. I want to add tab dynamically in tabstrip control.
    But I am getting error for any postback when I switch in between tabs.
    Error description is :
    <b>"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"</b>
    <b>Stack Trace:
    [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
       System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +2382545
       SAP.Web.UI.Controls.TabCollection.get_Item(Int32 index) +6
       SAP.Web.UI.Controls.TabStrip.LoadPostData(String sPostData, NameValueCollection oPostCollection) +92
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +674
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2965</b>
    Any help appreciated?
    Regards,
    Prashant

    Hi Prashant,,
    your index is less than zero, the postback will not store it unless you explicitly save it using 'enable view state' for the tree control, if it is already enabled and still not working: here is the work around :-
    you can store it in a hidden input field, so that it can be retrived when you do a postback, and then reassign the current index
    it should be a relatively simple fix
    please let me know how you get along...
    with respect,
    amit

  • My Image Getting Scrolled in Tabstrip Change or Pagedown in Module Pool

    Hi All ,
                I have designed a module pool with Tabstrip . On the Top i have displayed image . My Tab1 is for Coversion , Tab2 is for Interface . When Click on the Interface Tab and Press page down the image also scrolls down and gets displayed in the Mid of the screen and when i press ESC button iimage goes to its normal position . I have created a Custom Container , I have also tried making a subscreen and display image but still same results . Please help me out in this ..
    Thanks & Regards
    Shankar
    Edited by: Shankar  SB on May 24, 2011 12:46 AM

    SEARCH in SCn before posting you will get so many threads like these.
    [Image in module-pool|https://forums.sdn.sap.com/click.jspa?searchID=24201936&messageID=3844659]

  • 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

  • Problem in dropdown list display in module pool

    Hi All,
       One of the fields of  my module pool program is a drop down list. I am able to populate the values to the list but when i select any value, it doesnot come to the field.
    Can any one help me out in this ?
    Thanks in advanve ...
    Ranjita

    hi Ranjitha,
    Ensure that you are doing the following activities:
    1-> in the field attributes, you have mentioned FCODE.
    2-> use function module DYNP_VALUES_UPDATE to set the selected value to the field.
    sample code:
    put selected value into a dynpro field--
         IF dy_field-fieldvalue NE l_seark.
           REFRESH dy_field.
           APPEND  dy_field.
           CALL FUNCTION 'DYNP_VALUES_UPDATE'
                EXPORTING
                     dyname               = sy-cprog
                     dynumb               = sy-dynnr
                TABLES
                     dynpfields           = dy_field
                EXCEPTIONS
                     invalid_abapworkarea = 1
                     invalid_request      = 2
                     no_fielddescription  = 3
                     undefind_error       = 4
                     others               = 99.
    Hope this helps,
    Sajan Joseph.

  • In tabstrip control to display table control

    Hi,
    I want to to display a table control under tabstrip tab , How can i write the programm.
    if any one knows pls reply me.

    hi Sridevi,
    -->create sub screen with 100 with some screen number.
    -->Create Table control..
    --> append table control screen to Tab Strip.
    --------------------- . . . . > > > > see the example below
    Scenario:
    Screen 601 has a table control named CTRL_ANVSTED.
    The table should be filled with records from the table zanvstedm
    For this purpose you use an internal table called TBL_ANVSTED
    * Declare the table control
    CONTROLS CTRL_ANVSTED TYPE TABLEVIEW USING SCREEN 601.
    *Internal table used to hold data
    DATA: TBL_ANVSTED LIKE ZANVSTEDM OCCURS 100 WITH HEADER LINE,
    * Flag for initial reading
    Data:   FLAG_INITIAL TYPE I VALUE 0.
    PROCESS BEFORE OUTPUT.
    * Read data into the table control and the internal table
    * PF status etc.
      MODULE INITIALIZE_601.
    * Read data from table anvstedm into internal table tbl_anvsted.
      MODULE INIT_TBL_ANVSTED.
    * Fill control with data from ythe internal table
      LOOP WITH CONTROL CTRL_ANVSTED.
        MODULE FILL_CTRL_ANVSTED.
      ENDLOOP.
    MODULE INIT_TBL_ANVSTED  OUTPUT.
    * Read data from table anvstedm into internal table tbl_anvsted.
      IF FLAG_INITIAL = 0.
        FLAG_INITIAL = 1.
        SELECT * FROM ZANVSTEDM INTO TABLE TBL_ANVSTED.
      ENDIF.
    ENDMODULE.
    MODULE FILL_CTRL_ANVSTED OUTPUT.
    * Fill control with data from the internal table
         READ TABLE TBL_ANVSTED INDEX CTRL_ANVSTED-CURRENT_LINE.
         IF SY-SUBRC NE 0.
           EXIT FROM STEP-LOOP.
         ENDIF.
    ENDMODULE.
    PROCESS AFTER INPUT.
    * Write changes in table control to internal table
    LOOP WITH CONTROL CTRL_ANVSTED.
      MODULE CTRL_ANVSTED.
    ENDLOOP.
    MODULE CTRL_ANVSTED INPUT.
    * Write changes in table control to internal table
       MODIFY TBL_ANVSTED INDEX CTRL_ANVSTED-CURRENT_LINE.
    ENDMODULE.
    Regards,
    Prabhudas

  • How to call table control in subscreen in module pool program

    Hi all,
    I have req,need call table control in subscreen,but have done but when scroll bar value getting changed ,
    please guide how to do it.if its possable send the code.
    regards
    santosh

    Hi,
    The navigation happens like this.
    Consider you have a main screen and 2 subscreens.
    When you click or do some event in the Subscreen 2 (lets say this is the one that has the table control), this will first trigger PAI of the Main Screen. In the flow logic of the Main screen, you would have written call subscreen <subscreen area1> and call subscreen <subscreen area2>.
    Now the subscreens get triggered based on the order in which you have written in the flow logic.
    So, here the modules before the first call subscreen statement in the Main Screen PAI is all executed. Now, it goes to the subscreen on which you have triggered an event and executes the modules in the subscreen.
    This is how the execution goes when you have subscreens.
    So there is no problem with the navigation. You only have to worry about the screen where you have the table control. Just debug and find where data is getting changed or duplicated.

  • Table control with wizard in module pool

    Hi Gurus!!
    First I have an ztable for header and ztable for item of the purchase order. We have the requirement of first uploading the data into ztable and then perform bapi or bdc on it. So, before the data goes into the ztable we have to create screens to show the data,and if any error it should be corrected and then send it to the ztable.
    So,in the screen I created a table control using the wizard where I gave the internal table and work area I declared for the item ztable.
    Now, I need to give a condition to the table control such that only the details of a single vendor should be displayed in the table control but not all.
    Note: The vendor field in the item ztable is the value key and its check table is the header ztable.
    I am not able to give a condition in the PAI of the screen where the loop gets created for the table control.
    Could someone please help me with this issue.
    Thanks and Regards,
    Vishwa.

    Instead of putting a condition to the table control level u can do 1 thing ..create another internal table for ztable (lineitem). And based on ur condition populate this table from the main table and then display this table to the table control.
    Regards,
    Joy.

  • Table Control Scrolling issue in Module Pool

    Hi,
    I've done table control. From Selection screen i've 3 buttons, if we'll press on one button one table control is visible. There if i do scrolling up to 10 records and i come back to selection and press another button again in table control scrolling is at previous place only. May be its nt refreshing.
    Kinldy help on this issue.
    With Regards,
    jack.

    hi,
    i've done like below. But no result.

Maybe you are looking for

  • How to open a PDF from AS

    Hello again!!! I would like to know how can a Client open a PDF document which is in the AS. The point is that i know how to pass this document from Client to AS, but it needs to be open from Server using an aplication in Forms. Yes, i use the follow

  • PC00_m40_PF(In production)

    HI, when i am executing PC00_m40_PFY  standard report in production server i am getting the below mention Dump..It is not showing selection-screnn also. It directly goes to dump. But it is working in Development server. pls kindly help on this issue.

  • 10.0.32.18 installation in XP

    I am trying ( in vain ) to get this version of Flask Player working. The download looks to work ok using Abobe Download Manager which says it is 100% installed and the "Close Download Manager" button appears BUT when I get the page http://get.adobe.c

  • How can we generate a report in master data?

    hi, can we generate a report in master data,if yes pl give me the procedure, i am un able to get it. thanks & regards venkat

  • Help! I screwed something up in my system

    Here is how I caused the problem. I used a JavaScript to make a widget. Part of this called another file that put a black box around input items, and I was testing the widget. Well, now my entire system is doing this--putting a black box around every