Filed visibility on selection screen

How can we reduce the visibilty to single chr  field when the parameter field is of length 10 char on selection screen.

Hi,
Parameters: p_field TYPE coas-waers VISIBLE LENGTH 5 .
NOTE:The addition VISIBLE LENGTH must be used to specify the visible length of the input field. The explicit specification of the length is necessary as the length of the entries in the list box is usually different to the actual length of the parameter.
See the link:
http://help.sap.com/saphelp_nw04/helpdata/en/f5/e9bb3787e88d74e10000009b38f8cf/frameset.htm
Reward points for useful Answers
Regards,
KK
Message was edited by: KK
        Kishore Kumar Karnati

Similar Messages

  • Dynamic Data selection for the Filed entered in Selection Screen.

    Hi All,
    My requirement is as follows.
    1 select options in Selection Screen for MATNR (SO_MATNR)
    1 parameter field in Selection Screen for entering a MARC field name. (P_FIELD)
    Now the Program has to display the values of this Field (Entered by the user as P_FIELD) from MARC table, where MATNR is in SO_MATNR.
    I understand that this would require a dynamic select statemant but could not figure out the correct way.
    Please help me with the code for this requirement
    Regards,
    Sunil

    Not sure If I understand correct, but here's an example on what I think you are looking for. I don't have an ECC system here (we're on CRM), but you should adept it to your tables and fieldname.
    TABLES: but000.
    DATA: lt_feld TYPE TABLE OF name_feld,
          lw_feld LIKE LINE OF lt_feld.
    SELECT-OPTIONS: so_part FOR but000-partner.
    PARAMETERS: field TYPE name_feld DEFAULT 'MC_NAME1'.
    SELECT (field) FROM but000
      INTO TABLE lt_feld
      WHERE partner IN so_part.
    LOOP AT lt_feld INTO lw_feld.
      WRITE:/1 lw_feld.
    ENDLOOP.

  • Filed enable in selection screen

    Hi guru,
    My Problem is i have created one screen through se51  i have put one table control when i press display button data will come in table control only in display mode but i want if i click on edit button then filed display in change mode then how can i create. i have set property display only.
    Thanks

    there are two options
    1) create 2 screens where one is with edit option and other one is with read only option. initially load read only version and when pressed edit load the edit table control screen.
    2) create the table control only for read only mode. at PBO on loop insert a module and loop the screen make the fields you want  editable.
    Nafran

  • Hiding and then making select-options visible on the selection-screen

    I've created a selection screen. On this i've got a field (pr_inpt) depending on whose value i have to display the rest select-options viz. (so_c1, so_n1, so_d1, so_t1) say ,
    1.)if (pr_inpt) contains value 'A' then display (so_c1 & so_d1)
    2.)if (pr_inpt) contains value 'B' then display (so_n1, so_d1 & so_t1)
    To achieve it, in the initialization event, i looped at the screen and for all (so_c1, so_n1, so_d1, so_t1) i made screen-active = '0'. Due to this my objective to hide fields in the beginning is achieved.
    Next when user is entering value into (pr_inpt), i am making screen-active = '1' at selection-screen output event, for those relevant select-options (say if A, then made active for so_c1 & so_d1) but my problem is that it is making all select-options (so_c1, so_n1, so_d1, so_t1) visible on the screen which i don't want.
    How can i achieve this, also is it possible to change the label of the select-options while displaying.
    Plz help.

    hi just copy and paste following code into ur abap editor and see weather this logic helps u ????
    REPORT Z_HRA1.
    tables: pa0000, pa0001.
    parameters: p_chk1 as checkbox user-command rusr,
    p_chk2 as checkbox user-command rusr,
    p_chk3 as checkbox user-command rusr,
    p_chk4 as checkbox user-command rusr,
    p_chk5 as checkbox user-command rusr.
    selection-screen: begin of block blk1 with frame.
    select-options: s_pernr for pa0000-pernr modif id ABC no-extension no intervals,
    s_stat2 for pa0000-stat2 modif id DEF,
    s_werks for pa0001-werks modif id GHI,
    s_persg for pa0001-persg modif id JKL,
    s_persk for pa0001-persk modif id MNO.
    selection-screen: end of block blk1.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'ABC'.
    IF p_chk1 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'DEF'.
    IF p_chk2 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'GHI'.
    IF p_chk3 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'JKL'.
    IF p_chk4 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'MNO'.
    IF p_chk5 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Regards
    Gagan

  • How to display my input history values on Filename filed (selection screen)

    Hi All,
    Please let me know how to display my input history values under the field of selection screen.
    I created Zprogram as below.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
      PARAMETERS: P_FILE  TYPE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    I displayed a selection screen of my Zprogram, my cursor put on P_FILE field, and enter BACKSPACE key,
    so it doesn't display my input history values.
    Of course I've selected Local Data History 'ON' of my GUI option,
    so it's displayed my input history values on any other fields.
    If you know why, please let me know.
    Regards,
    Rie.

    In the GUI options, there is also a setting for the maximum length of fields for storing the history, maybe it is set to small, as your selection field is length 128.
    Alternatively you can switch to a STRING, I have observed that the history is displayed after the first letter is being entered (maybe dependent on GUI version, who knows...)
    Thomas

  • Selection Screen is not visible when i run tcode S_ALR_87013611

    Hello all,
    whenever i run T-code S_ALR_87013611.The report is directly executed . it does not stop at selection screen as i want to change the parameters in the screen.but the selection screen is not coming. as the report is generated on the basis of previous data selected.
    Please let me know is there any user setting through which this setting can be changed.
    Thanks
    Naveen

    Are you using Webgui / portal or SAPgui
    Regards
    Subodh

  • Filed not reflecting in infopackage data selection screen

    Hello Gurus,
    I have added a time stamp fiield in generic datasource in R3 and selected that field,but when i replicate the data source in BI and go to infopackage data selection screen,i dont see that field.I tried all the possible things but its not working.
    Please help me.
    Thanks in advance.
    Regards,

    Hi,
    Did you select that  Time stamp field as Selection field in RSA6? If not then select it as selection field and activate and then replicate the DS in BW and then check if that comes in Infopackage level.
    Hope this helps..
    Murali

  • Validating a selection screen filed

    Hi Experts,
    I need to to validate a selection screen field .The field is mentioned as selection parameter and it is obligatory.
    To validate this i have written the logic as follows:
    AT SELECTON SCREEN ON <FIELD-NAME>.
    SELECT STATEMENT.
    IF SY-SUBRC NE 0.
    ERROR MESSAGE.
    endif.
    But here my question is select-options acts like an intenal table,Inthis case do we need to loop to the select-options fields or else do we have any other alternative solution.
    Edited by: vinay raj on Aug 31, 2010 10:51 AM

    Hi,
    Looping is not required for this validation.  And as you have said select statement using IN oerator does not throw any error message if the value is not present in select-options.
    AT SELECTON SCREEN ON <FIELD-NAME>.
    SELECT STATEMENT .... where field in s_field.
    IF SY-SUBRC NE 0.
    ERROR MESSAGE.
    endif.
    But if you want to check whether the value entered in select-options is invalid then you can refer the below sample code
    which can be used to check for the validity of the value  of valuation class entered in the selection screen where valuation class is used as select-options. In the below code table T025 has all the values of valuation class. If the entered value does not exist in this then it indicates that the value entered in selection screen is invalid. 
    AT SELECTON SCREEN ON <FIELD-NAME>.
    PERFORM check_valuation_class.
    FORM check_valuation_class.
      DATA : lv_bklas TYPE bklas.
      IF NOT p_bklas-low IS INITIAL.
        SELECT SINGLE COUNT(*) FROM t025
        INTO (lv_bklas) WHERE bklas EQ p_bklas-low.
        IF sy-subrc NE 0.
          MESSAGE e021(zfm001).
        ENDIF.
      ENDIF.
      IF NOT p_bklas-high IS INITIAL.
        SELECT SINGLE COUNT(*) FROM t025
        INTO (lv_bklas) WHERE bklas EQ p_bklas-high.
        IF sy-subrc NE 0.
          MESSAGE e021(zfm001).
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_valuation_class

  • New development - selection screen

    Hi gurus,
    we are introducing a new functionality via devolopment transaction Z, and we need to enter a selection screen prior to the results, just to enter a kind of filter for fields such us:
    1. Purchasing document creation date.
    2. Document type.
    3. Purchasing group.
    4. Vendor.
    5. Cost Center.
    The programmers are asking us whether we want those fields to be a parameter or a range.
    Can anyone clear the difference between those two terms for us?
    Any help regarding this issue would be very appreciated.
    Thanks,
    VML

    In selection screen Parameter is Just one value For ex Cost centre A .If it is range means From Cost centre A to Cost Centre E. (A,B...E).
    If you maintain for all these filed Range then it may give dump while report execution.So you have to controle which fileds should have range and Just one parametre.

  • BEx Report Performance with selection-screen input

    Hello Gurus,
    My Bex report is working fine when the report had run with out PLANT filter in the selection-screen but when report had run with plant in the selection-screen , report running for forever.
    Please let me know what I need to do improve the performance.
    Saleem.

    Hi Saleem, Just a few thoughts;
    1. Check the M-table in RSD1 for 0PLANT. In Table View edit any blank or null values. Run the same restrictions you apply in the query at Info provider level > Display Data. If there's any lapse; you can judge where exactly the problem lies.
    2. If you are using Infocube & that your master is >20% fact; you can declare the Info object as 'Line Item Dimension'.
    3. Create Variants. Esp. if you are running the query for same set of data. Try Variable Preselection: You can restrict both the values + varaiables in the filter level. When you execute the values will be visibly pre-selected in selection screen.
    4. As discussed in previous messages, running a SQL trace using RSRT may prove useful.

  • Selection Screen Bug :: Drop Down List.

    Hi
    I have created the following ABAP Report. I am new at this and I have just hit an issue. I have two drop down boxes linked to transactions. Now when I select a report from Drop Down 1 and click it it goes to the transaction. Now if I also have a selection in Drop Down 2 it actually runs both transactions.
    How can i fix this?
    Thanks
    Adeel
    REPORT TEST.
    *TYPE POOLS DECLARATIONS
    TYPE-POOLS: vrm.
    TABLES: sscrfields.
    *SELECTION SCREEN FIELDS
    *DATA: c(20) TYPE c.
    ***********SELECTION-SCREENS**********************
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.
    PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
    PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
    * ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK blk1.
    *********DROP DOWN SELECTION WITH DESCP******************
    AT SELECTION-SCREEN OUTPUT.
    PERFORM ONE.
    PERFORM TWO.
    *&      Form  ONE
    *       text
    FORM one.
      DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
      name = 'ONE'.
      value-key = '1 ::'.
      value-text = 'Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2 ::'.
      value-text = 'Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 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.
    ENDFORM.                    "ONE
    *&      Form  TWO
    *       text
    FORM two.
      DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
      name = 'TWO'.
      value-key = '1 ::'.
      value-text = 'AS Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2 ::'.
      value-text = 'AS Open Sales Order Report'.
      APPEND value TO list.
      clear value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 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.
    ENDFORM.                    "TWO
    ***********LINKS TO ABOVE SELECTION**********************
    START-OF-SELECTION.
    IF ONE = '&IC1'.
      CASE one.
        WHEN '1 ::'.
          CALL TRANSACTION 'MB5L' AND SKIP FIRST SCREEN.
        WHEN '2 ::'.
          CALL TRANSACTION 'ZSOD'.
      ENDCASE.
    ENDIF.
    IF TWO = '&IC1'.
      CASE two.
        WHEN '1 ::'.
          CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
        WHEN '2 ::'.
          CALL TRANSACTION 'ZSOD'.
      ENDCASE.
    ENDIF.

    Hi Now try this one,.
    *TYPE POOLS DECLARATIONS
    TYPE-POOLS: vrm.
    TABLES: sscrfields.
    *SELECTION SCREEN FIELDS *
    DATA: c(20) TYPE c.
    **********SELECTION-SCREENS*********************
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-tt1.
    PARAMETERS: one(20) AS LISTBOX VISIBLE LENGTH 40.
    PARAMETERS: two(20) AS LISTBOX VISIBLE LENGTH 40.
    ADD Afer 40 to show text "DEFAULT 'PLEASE SELECT'"
    SELECTION-SCREEN SKIP. SELECTION-SCREEN END OF BLOCK blk1.
    ********DROP DOWN SELECTION WITH DESCP*****************
    AT SELECTION-SCREEN OUTPUT.
      PERFORM one.
      PERFORM two.
    *& Form ONE
    text ----------------------------------------------------------------------
    FORM one.
      DATA: name TYPE vrm_id,
            list TYPE vrm_values,
            value LIKE LINE OF list.
      name = 'ONE'.
      value-key = '1'.
      value-text = 'Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 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.
    ENDFORM. "ONE
    *& Form TWO
    text ----------------------------------------------------------------------
    FORM two.
      DATA: name TYPE vrm_id,
            list TYPE vrm_values,
            value LIKE LINE OF list.
      name = 'TWO'.
      value-key = '1'.
      value-text = 'AS Stock Report'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'AS Open Sales Order Report'.
      APPEND value TO list.
      CLEAR value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 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.
    ENDFORM.      "TWO
    **********LINKS TO ABOVE SELECTION*********************
    START-OF-SELECTION.
      CASE one.
        WHEN '1'.
          CALL TRANSACTION 'MB5L'AND SKIP FIRST SCREEN.
        WHEN '2'.
          CALL TRANSACTION 'MM01'.
      ENDCASE.
      CASE two.
        WHEN '1'.
          CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
        WHEN '2'.
          CALL TRANSACTION 'MM01'.
      ENDCASE.
    Give the 1:: as 1 and 2:: as 2 it will work...
    Regards,
    Bharani
    Edited by: SeethaRamaiah Bharani on Dec 18, 2009 8:10 PM

  • Truncation of selection screen field in reports

    Hi,
    Is there any way to avoid truncation of selection screen fields in ABAP reports? For eg, I declare:
    SELECT-OPTIONS: s_test FOR ztest-test_field NO INTERVALS
    The length of this field in the table is 30 chars. However, on displaying the field via selection screen, this gets truncated to around 18 or so. How do I avoid this as I need to display the full length of the field?

    Hi,
    Try this
    Tables : makt.
    select-options maknr for makt-maktx.
    now go to the screen painter of your program in change mode and move the Help buttons first to the Right each. now increasethe length of the Matnr Field length so that they are equal to 40 Char. in your program you have handle the length now if you want to restrict to 18 otherwise it will be ok
    if they don't fit you need incease the Size of the Screen Visible area both in the Screen Painter as well as in the
    Screen Attributes
    You also get an Information Message just ignore that.
    Just open your program in SE80 if you can't go to the screen painter in SE38. the other way just keep this program in Display mode and execute then take F1 help , take Technical Information and double click on the Screen number now go to the Screen Layout and go to Change mode here.
    Regards,
    Shirisha

  • Regarding Search help on selection-screen field

    Hi there,
    I am working on custom tables.
    I have a requirement to maintain search pattern on a selection-screen field.
    selection-screen parameter: p_name which is company name filed from Z table.
    By giving a string like Holl* and by  pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
    Thanks in advance.
    -Tulasi

    Hi
    Go through the link given below :
    How to create a search help for my own fields in selection screen
    F4 search help on report selection screen
    also try :
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'VKORG'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_VKORG'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'C'
    TABLES
    VALUE_TAB = T_TABLE1
    FIELD_TAB = field_tab
    RETURN_TAB = RET_TAB
    DYNPFLD_MAPPING = DYN_TAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    With Regards
    Nikunj shah

  • Regarding Selection-Screen Field Display

    Hi All,
    I have issues with Selection-Screen field display.
    The Actual issue is i had declared a selection screen field as: <b>s_exgen FOR embk-exgen</b>.
    <b>EMBK-EXGEN</b> is actually <b>20</b> Char length field.
    But in output display it is being shown as <b>18</b> Char field though i can type in all <b>20</b> characters.
    But <b>display</b> restricted to <b>18</b> Characters only.
    Can anybody give me the solution for the same!
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi,
    You can decrease the visible length of the field but you can not increase more than database field length. check SAP help on this :
    select-options: s_exgen FOR embk-exgen VISIBLE LENGTH 5.
    ... VISIBLE LENGTH vlen
    Effect
    This addition allows you to shorten the visible length of the corresponding screen field on the selection screen to vlen.
    Variant 2
    SELECT-OPTIONS sel FOR (f).
    Additions as in variant 1.
    Effect
    In this variant, (f) must be a field containing the name of the actual reference field at runtime. The system creates the LOW and HIGH fields as character fields with length 45. However, their appearance on the selection <b>screen is inherited from the reference field whose name is contained in field f at runtime.</b>
    Regards
    Appana

  • Hiding fields in Report Selection Screen which have Mandatory Fields

    Hi Friends,
    I have 2 Radio Buttons. PO and SO. If PO is selected, user need to input the Plant value in the Sel.Scrn which is mandatory and Storage Location field will be invisible.
    If SO is selected, then user need to input the Plant and Storage Location value which are mandatory. Now Storage Location will be visible.
    When radio button SO is seleted, SAP triggers an error message as 'Make an entry in all required fields' without displaying Storage Location input field in Sele. Scrn.
    How to do this.?  I checked in SCN and not find perfect match to solve for Mandatory Input Fields.
    Regards,
    Suresh

    Hi,
    Yes. What Rob has told is correct. Try like this.
    AT SELECTION-SCREEN.
    IF po_po EQ 'X'.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ELSE.
    IF so_lgort[] IS INITIAL.
    MESSAGE 'Please enter storage location' TYPE 'E'.
    ENDIF.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ENDIF.
    Thanks,
    Vinod.

Maybe you are looking for