Default value in selection screen in display mode

Hai Friends,
In my selection screen i have a parameter PA_LEVEL, this should have a default value as 10 but it should not be in the change mode. i want that to be in the display mode as in FAGLL03 ( Ledger value ).
how can i do this.
Moderator message - Please do not ask such basic questions. This can easily be answered by searching the forum.
Edited by: Rob Burbank on Apr 16, 2009 12:18 PM

Hi,
Use LOOP AT SCREEN...ENDLOOP. in the AT SELECTION-SCREEN OUPTUT event to disable the input field.
LOOP AT SCREEN.
IF screen-name CS 'FIELDNAME'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Similar Messages

  • How to pass a default value in selection screen of logical database pnpce

    Dear All,
    Can any one tell me how to pass a default value in selection screen of logical database pnpce .
    Regards
    Rakesh Singh

    Hi Rakesh,
    Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
    Regards,
    Rahul

  • Default value on Selection Screen

    Hi experts,
    I want to put sy-datum + 1 as a default value on selection screen.
    I tried this but it didnt work. Please help me.
    DATA : tarih like sy-datum.
    initialization.
    tarih = sy-datum  + 1.
    SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
    parameters : h_tarih like sy-datum obligatory default tarih.
    SELECTION-SCREEN END OF BLOCK 3.
    Thanks

    Hi,
    Do it in INITIALIZATION event.
    SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
    parameters : h_tarih like sy-datum obligatory default tarih.
    SELECTION-SCREEN END OF BLOCK 3.
    INITIALIZATION.
    h_tarih = sy-datum + 1.
    In this case no need to have one more extra variable. U can directly assign to ur parameter.
    In data declaration u can only default hard coded values. But not calculated values. This is because first selection screen will be triggered and later ur calculations. So at the time of selection screen is triggered ur variable dont have any value. Thats why it was not working. Change ur code to like above. It will work fine.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jun 27, 2008 12:37 PM

  • Default value for selection screen field

    Hi all,
      I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
    How can I do it?
    Thanks
    Rahul

    Hi Rahul,
    In the INITIALIZATION event we can set the default values for selection screen fields.
    INITIALIZATION.
    loop at screen.
    if screen-name = 'S_MATNR-LOW'.
    CLEAR S_MATNR.
    s_matnr-low = '1234'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr.
    CLEAR S_MATNR.
    s_matnr-high = '5678'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr
    clear s_matnr.
    endif.
    endloop.
    Hope it helps.
    Mark if useful
    Regards,
    Saumya

  • How to get default values on selection screen(multiple ranges)?

    i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
    all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...

    Hi Suresh,
    You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
    Simply write the following code
    tables : <name of the table from which the field belongs>
    select-options <fieldname> for <tablename>-<fieldname>.
    <fieldname>-sign = 'I'.
    <fieldname>-option = 'BT'.
    <fieldname>-low = '7000'.
    <fieldname>-high = '8000'.
    append <fieldname>..
    similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
    If using range replacethe select-option with the range statement.
    Thanks.

  • Set default value to selection screen for report

    Hi All,
       I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
       How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
       Hope someone can help me on this.
    Thanks.

    Hi All,
       Thanks for reply. But I think I should declare my question clearer.
       Actually it's not a parameter.
      My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
       I need to set the default value '3' to field PNPSTAT1.
    Thanks.

  • Copa Report selection screen in display mode

    Dear Friends:
    In COPA Report, we have sales group,Fiscal year and Currency type in our selection screen,sales group should be in display mode i.e. the user
    must not be able to change the sales group.
    How to reslove the problem.Please advise.
    Thanks&Regards
    MSReddy

    Hello
    Create some authourization checks for the user. Try to check with BASIS team.
    Also check if you can default entries for a particular user.
    reg

  • Selection screen in display mode

    Hi all,
    I have a selection screen with 2 radio buttons & 2 text boxes. If I click the first radio button, the 2nd text box shud be in display mode & if I click the 2nd radio button, the 1st text box shud be in display mode.
    How to do it?
    Thanks in advance.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1,
                 s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn.
    select-options : s_ponum for eban-ebeln.
    SELECTION-SCREEN END OF BLOCK MODE.
    Pls look into the code above.
    G.Vijay

    Hi vijaykumar,
    1. simple.
    2. your code only,
       just copy paste.
    3. It will work as u require.
    4.
    report abc.
    TABLES : EBAN.
    SELECTION-SCREEN BEGIN OF BLOCK MODE WITH FRAME TITLE title.
    parameters : s_pr radiobutton group g1 <b>USER-COMMAND RAD DEFAULT 'X'</b>,
    s_po radiobutton group g1.
    select-options : s_prnum for eban-banfn <b>MODIF ID M1</b>.
    select-options : s_ponum for eban-ebeln <b>MODIF ID M2</b>.
    SELECTION-SCREEN END OF BLOCK MODE.
    <b>at selection-screen output.</b>
      LOOP AT SCREEN.
        IF S_PR = 'X' AND SCREEN-GROUP1 = 'M2'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
          IF S_PO = 'X' AND SCREEN-GROUP1 = 'M1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    regards,
    amit m.

  • Opening a selection screen in display mode

    I have an ALV grid created in OOPS. Each line of this ALV has name of a report and its variant name. Here I have created a button on toolbar. When a user selects a line and clicks this button, selection screen of the selected report is to be opened in display mode with selection screen filled as per its variant. Both the report name and varaint name will be same as the selected line. I am able to open the selection with varaint filled, but it comes in editable mode. How do I make it non-editable mode?

    Hi,
    For making your selection screen non editable you will have to disable them for input.
    For this you will have to modify the screen structure.
    try this:
    loop at screen
    if screen-fieldname = 'XYZ'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    You can write this code at selection screen of the program which calls this selection screen.
    Call this code under a condition, so that it get triggeres only when you call this screen form the ALV.

  • Assign default values in selection screen of CM21

    Hi experts,
    Our case is that, in CM21 selection screen, default value to the field "Plant" is appeared. W are sure that it is not because of configuration settings but not able to find why it is appearing by default. Please let us know. Thanks in advance.

    Dear
    Please check this thread which I have posted earlier ; CM21/cm25 sorting of user defined field in table area
    Want a change in lau out in CM21
    Regards
    JH

  • Personalization and Default values in selection screen variables

    Hi everyone,
    I have certain questions regarding Front end part:-
    1)     Can we have multiple personalizations for a single user in Web templates; I know it is quite possible in BEx using Variants. Is there any such approach or any other solutions regarding it?
    2)     In our project we had a range selection screen customer exit variable on 0CALMONTH, which is showing a default value of 07.2007 to 09.2007, although we have removed the default values from the query variable and also checked the customer exits where it is used, but still it’s showing the value. We can’t delete and recreate the variable as such, as it is used in number of function module. Also these values are also transported to Quality system, where also it’s showing the same value.
    Did anyone face such a situation before?
    Eagerly waiting for a solution.....
    Thanks in advance

    Hi Chiran,
    Please try with following approach for multiple   personalizations for a single user in Web templates.
    While Defining Variable Choose the Option Copy personalization data from variable .
    The Features  of above approach is as follows.
    1)It will personalize variable values for Input Variables for each user.
    2)These values are saved for each variable as well as for user.
    3) At the time of defining variable it will allow us to enter one or more default values.All these values are appear in the variable screen when u execute the query or Web Application.
    So you can see the variable values in web also.Just try with this approach.
    May be it will resove u r issue some extent.
    Regarding u r Second Query Just try with Some tables, all the default values entries were saved in those tables. Delete default values from those entries.
    Thanks & Regards,
    Chandu.

  • Default values on selection screen of a SAP Query

    Hello,
    I have a selection screen which is designed in SAP Query.
    How to get default values for the fields on selection screen.
    Regards,
    Satya

    hi....
    you can go with following type of code..
    ITS A TESTED CODE AND WILL SERVE YOUR PURPOSE
    tables: sflight.
    data: t_table like standard table of sflight.
    select-options:
       s_carrid for sflight-carrid.
    parameters:
      p_fldate type d.
    initialization.
    p_fldate = sy-datum - 7.
    s_carrid-sign = 'I'.
    s_carrid-option = 'BT'.
    s_carrid-low = 'AA'.
    s_carrid-high = 'LH'.
    append s_carrid.
    start-of-selection.
    select carrid
              connid
              fldate
    from   sflight
    into corresponding fields of  table t_table
    where carrid in s_carrid
    and fldate < p_fldate.

  • Default value in Selection-screen

    Hi,
    Am using Email address as a parameter on Selection-screen.
    like
    PARAMETERS:p_addr type AD_SMTPADR.
    it works fine but problem is:
    now i want to fill it by-default in selecrion-screen as login user id's email address.
    how can i achieve that?
    Amit.

    Hi,
    PARAMETERS:p_addr type AD_SMTPADR.
    Write the code in Initialization
    INITIALIZATION.
    p_addr = abc at xyz.com
    Reward points if helpful.

  • Default values in selection screen

    hI, EXPERTS
    Requirement is :
    1) in selection screen input =  "werERT"  , output = "werERT".
    normally, it will give "WERERT".
    2) in selection screen input =  "werert"  , output = "werert".
    normally, it will give "WERERT".
    1) in selection screen input =  "WERERT"  , output = "WERERT".
    normally, it will give "WERERT".
    I NEED THE SAME TEXT AS IN THE INPUT SELECTION SCREEN FIELD.
    THANKS AND REGARDS

    Hello dasr,
    There are 2 options for this
    If u want to do it programaitcally
    PARAMETERS : Smeoutpt(10) TYPE C LOWER CASE.
    WRITE  Smeoutpt.
    If u want to do it at data element level , do it as MR.Rammohan has suggested .
    But decide it according to your requirement
    Note: If you do it at data element level it will be changed at all places .
    Regards,
    K.Sibi

  • Select-options in display mode

    Hi
    How to set the SELECT-OPTIONS in display mode by default
    regards
    Srinivas

    hiii
    for every LOW and HIGH value of select option you can use a code like given below..
    First initialize your select option with some values then use following code
    AT SELECTION-SCREEN OUTPUT .
      IF s_docno IS NOT INITIAL .
        LOOP AT SCREEN.
          IF screen-name CS 's_docno'.
           screen-input = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN.
    regards
    twinkal

Maybe you are looking for

  • Itunes 6.0 - if download is on playlist, it won't burn - Please help

    Hi Everyone (and Toonz, perhaps we can continue where we left off in Dec) Basically my problem is that I can't burn any purchased tracks from Itunes. I can burn uploaded stuff from my own cd collection, but not if it has a purchased track on the play

  • Address Book behaves very strange

    Hello members and outside viewers, First thing: My Address Book behaves very strange. - After startup, the window freezes. Only if I minimize and click again, works OK. I began used to it, BUT - Since yesterday, Addresses gone, disappeared from every

  • Error Creating lock file

    Hi Guys, I have created a sample Data Template and registered it with apps and then created a concurrent program and have run that it produces the XML output correctly .. (good upto here) Then i created a RTF template and attached the Data Definition

  • Unit Test - Select current repository disabled in SQL Developer 4.0

    Hi, I am now using Oracle SQL Developer 4.0 and I want to use Unit Testing. However, when I go to Tools-> Unit Testing -> Select Current Repository, the option is disabled. However, it is working and active when using SQL Developer 3.0 Anyone faced t

  • How to call BI infocube / query in ABAP

    Hi guys, don't blame me for asking such simple questions. I am not familiar with BI, my requirement is to execute BI infocube / query and display the result in webDynpro ABAP. I know I can call BI query passing parameters and there are some web tools