About AT SELECTION SCREEN

Hi guys,
I need help about AT SELECTION SCREEN ON VALUE REQUEST FOR a.
Actually, I need this to be ON VALUE REQUEST FOR a and b, because I need to update both parameter with this single search help. Can anybody show me how to do this?
Thanks before.

Hi...Samanta...
This is the proper code that give u the Complete info on How to write the Logic:
REPORT  zsel_f4help                             .
*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
PARAMETERS: p_vbeln TYPE vbak-vbeln,
p_posnr TYPE vbap-posnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
  DATA: BEGIN OF help_item OCCURS 0,
  posnr TYPE vbap-posnr,
  matnr TYPE vbap-matnr,
  arktx TYPE vbap-arktx,
  END OF help_item.
  DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
  dynfields-fieldname = 'P_VBELN'.
  APPEND dynfields.
**Read the Values of the SCREEN FIELDs
  CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
      translate_to_upper   = 'X'
    TABLES
      dynpfields           = dynfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      invalid_parameter    = 7
      undefind_error       = 8
      double_conversion    = 9
      stepl_not_found      = 10
      OTHERS               = 11.
**Find out the Value of P_VBELN
  READ TABLE dynfields WITH KEY fieldname = 'P_VBELN'.
  p_vbeln = dynfields-fieldvalue.
**Convert the Value into internal format
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = p_vbeln
    IMPORTING
      output = p_vbeln.
**Fetch the correponding itemnos from VBAP
  SELECT posnr matnr arktx INTO TABLE help_item
  FROM vbap
  WHERE vbeln = p_vbeln.
**Generate the F4 help with internal table values
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'POSNR'
      dynprofield = 'P_POSNR'
      dynpprog    = sy-cprog
      dynpnr      = sy-dynnr
      value_org   = 'S'
    TABLES
      value_tab   = help_item.
<b>Reward if Helpful</b>

Similar Messages

  • About pnp selection screen

    hi experts,
       i am using pnp selection screen  and i want
      emp no , personnel area , personnel subarea , epm group ,emp sub group  in my selection screen.
    how it can be possible ?
      actully there is option to select the particuler field option ,but when i again excute the program it shows the std selection screen .
    Thanks And Regards.
      Priyank Dixit

    hi,
    refer to this links
    Re: Change in LDP PNP Selection Screen
    Re: Change in LDP PNP Selection Screen
    http://brookshireconsulting.com/technical_rc.html

  • Tell me about at selection-screen on output

    hi,
    could u explain at selection-screen on output
    any body give the wchich purpose it was used?
    i will be waiting for reply.
    regards
    eswar.

    PBO of the Selection Screen
    In the PBO of the selection screen, the
    AT SELECTION-SCREEN OUTPUT
    event is triggered. This event block allows you to modify the selection screen and its fields directly before it is displayed.
    Initializations of selections screen fields at this moment always take effect, whereas at the execution of an executable program, initializations at moment INITIALIZATION only take effect at the first program start, and are otherwise overwritten by the previous user inputs at the beginning of AT SELECTION-SCREEN OUTPUT.
    REPORT demo_at_selection_screen_pbo.
    PARAMETERS: test1(10) TYPE c MODIF ID sc1,
                test2(10) TYPE c MODIF ID sc2,
                test3(10) TYPE c MODIF ID sc1,
                test4(10) TYPE c MODIF ID sc2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          screen-intensified = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
        IF screen-group1 = 'SC2'.
          screen-intensified = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    The parameters test1 and test3 are assigned to the modification group sc1, while test2 and test4 are assigned to group sc2. During the AT SELECTION-SCREEN OUTPUT event, the INTENSIFIED field of internal table screen is set to 1 or 0, depending on the contents of the group1 field. On the standard selection screen, the lines for test1 and test3 are highlighted while those for test2 and test4 are not, as shown below:
    reward if useful
    anju

  • Pnp  selection screen 000 how to put default values

    Hello everybody,
    my question today is about PNP selection screen 000: How can i put default values in the fields w/o  using variant.
    or can i restrict the numbers of values returned by " get pernr" with conditions not on selection screens.
    thank you in advance!
    Eric.

    use this code to default fields on the event INITIALIZATION. you can modify as per you needs..
    *----------------------------- INITIALISATION -------------------------------------------
    INITIALIZATION.
      pnpstat1-low = '0'.APPEND pnpstat1.
      pnpstat2-low = '3'. APPEND pnpstat2.
      pnptimed = 'I'.
    * Default Dates
      CONCATENATE sy-datum+0(4)  '0101' INTO pnpbegda.
      CONCATENATE sy-datum+0(4)  '1231' INTO pnpendda.

  • AT SELECTION-SCREEN - Urgent

    Could anybody tell me what does the event( AT SELECTION-SCREEN ) only do ? I am asking only about AT SELECTION-SCREEN
                                                           Regards,
                                                           SAURAV  LAHIRY

    hI,
    At selection-screen is the event of a report program in which we have to validate the selection screen fields.
    SELECTION SCREEN
    Selection screens are special screens that are defined with the help of ABAP statements. As programmers do not have access to the flow logic of selection screens, they cannot define dialog modules for selection screens. The ABAP runtime environment fully controls the processing flow of selection screens. To allow programmers to modify the selection screen before it is called (PBO) and react to user actions on the selection screen (PAI), the ABAP runtime environment generates a number of special selection screen events before the selection screen is displayed and after the user has executed actions on the selection screen
    AT SELECTION-SCREEN OUTPUT
    This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION . Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.
    Here, however, you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields.
    Example
    SELECT-OPTIONS NAME FOR SY-REPID MODIF ID XYZ.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    CHECK SCREEN-GROUP1 = 'XYZ'.
    SCREEN-INTENSIFIED = '1'.
    MODIFY SCREEN.
    ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST
    The event is triggered when the user calls the F4 help for the field field. If no corresponding event block has been defined, no possible values help or values list from the Dictionary is displayed. If a corresponding event block exists, it takes precedence over the default possible values help mechanism. It is then up to the programmer to ensure in the event block that an appropriate list of values is displayed, and that the user can choose a value from it.
    No event block AT SELECTION-SCREEN ON VALUE-REQUEST can be created for input fields on the selection screen that are declared within the logical database used. You cannot override the input help mechanism of the logical database within the executable program. You can define separate help within the logical database program using the VALUE-REQUEST option in the PARAMETERS and SELECT-OPTIONSstatements.
    Example
    INCLUDE DBXYZSEL
    PARAMETERS PL_TYPE LIKE SAPLANE-PLANETYPE VALUE-REQUEST.
    REPORT SAPDBXYZ DEFINING DATABASE XYZ.
    TABLES SAPLANE.
    FORM PL_TYPE_VAL.
    CALL FUNCTION ...
    ENDFORM.
    AT SELECTION-SCREEN ON HELP-REQUEST
    If the data type of an input field declared in an executable program is defined in the ABAP Dictionary, the documentation of the underlying data element is automatically displayed if the user positions the cursor in that field and presses F1. To create help for input fields that have no Dictionary reference, or to override the help normally linked to the field, you can create an event block for the event
    AT SELECTION-SCREEN ON HELP-REQUEST FOR <field>
    The event is triggered when the user calls the F1 help for the field <field>. If no corresponding event block has been defined, the help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default help mechanism. It is then up to the programmer to ensure that appropriate help is displayed.
    You cannot declare the event block AT SELECTION-SCREEN ON HELP-REQUEST for input fields on the selection screen that are declared within a logical database. You cannot override the help mechanism of a logical database within the program. You can define separate help within the logical database program using the HELP-REQUEST option in the PARAMETERS and SELECT-OPTIONS statements.
    REPORT SELECTION_SCREEN_F1_DEMO.
    PARAMETERS: P_CARR_1 TYPE S_CARR_ID,
    P_CARR_2 TYPE S_CARR_ID.
    AT SELECTION-SCREEN ON HELP-REQUEST FOR P_CARR_2.
    CALL SCREEN 100 STARTING AT 10 5
    ENDING AT 60 10.
    This program declares a selection screen with two parameters that both refer to the data element S_CARR_ID in the ABAP Dictionary. The documentation from the ABAP Dictionary is used for P_CARR_1, and a help screen 100 is called for P_CARR_2. The help screen is defined in the Screen Painter as a modal dialog box with next screen 0. It contains the help text defined as help texts. The screen does not require any flow logic.
    AT SELECTION-SCREEN ON field
    In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON field
    event is triggered. The input field field can be checked in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
    Example:
    REPORT event_demo.
    NODES spfli.
    AT SELECTION-SCREEN ON city_fr.
    IF carrid-low EQ 'AA' AND city_fr NE 'NEW YORK'.
    MESSAGE e010(hb).
    ENDIF.
    If the user enters “AA” in the first input field, but not NEW YORK for the departure city, an error message is displayed in the status line until the user enters the correct city.
    AT SELECTION-SCREEN ON RADIOBUTTON
    In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi>
    is triggered when the contents of all of the fields in a radio button group are passed from the selection screen to the ABAP program. To define a radio button group <radi>, use the addition RADIOBUTTON GROUP <radi> in the corresponding PARAMETERS statements. This event block allows you to check the whole group. If an error message occurs within this event block, the radio button group is made ready for input again on the selection screen. The individual fields of radio button groups do not trigger the event AT SELECTION-SCREEN ON <field>.
    REPORT EVENT_DEMO.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
    R2 RADIOBUTTON GROUP RAD1,
    R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: R4 RADIOBUTTON GROUP RAD2 DEFAULT 'X',
    R5 RADIOBUTTON GROUP RAD2,
    R6 RADIOBUTTON GROUP RAD2.
    SELECTION-SCREEN END OF BLOCK B2.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF R1 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD2.
    IF R4 = 'X'.
    MESSAGE W040(HB).
    ENDIF.
    If the user does not change one of the radio button groups, a warning is displayed.
    AT SELECTION-SCREEN ON BLOCK
    In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON BLOCK <block>
    is triggered when the contents of all of the fields in a block are passed from the selection screen to the ABAP program. You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK <block> and SELECTION-SCREEN END OF BLOCK <block>. You can use this event block to check the consistency of the input fields in the block. If an error message occurs within this event block, the fields in the block are made ready for input again on the selection screen.
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • At selection-screen on end of

    hi to all pls tellabt the event at selection-screen on end of  and at selection-on block
    plsa give some sample coding on theese  points will be rewarded

    Hi
    You are mixing up the things
    You need to know separately about At selection-screen and its events
    selection-screen : begin of block b1 with frame title text-001.
    select-options:s_bukrs for t001-bukrs no intervals no-extension
                                                         obligatory,
                   s_vkorg for tvko-vkorg no intervals no-extension,
                   s_vtweg for tvtw-vtweg no intervals no-extension,
                   s_spart for tspa-spart no intervals no-extension,
                   s_werks for t001w-werks no intervals no-extension,
                   s_kunag for kna1-kunnr,
                   s_vbeln for vbuk-vbeln,
                   s_fkart for tvfk-fkart,
                   s_fkdat for vbrk-fkdat obligatory.
    selection-screen begin of line.
    selection-screen comment 1(20) text-008.
    selection-screen end   of line.
    selection-screen begin of line.
    parameters p_cust type c radiobutton group cust.
    selection-screen comment 3(20) text-004 for field p_cust.
    selection-screen end of line.
    selection-screen begin of line.
    parameters p_mode type c radiobutton group cust.
    selection-screen comment 3(20) text-006 for field p_mode.
    selection-screen end of line.
    selection-screen begin of line.
    parameters p_dens type c radiobutton group cust.
    selection-screen comment 3(20) text-007 for field p_dens.
    selection-screen end of line.
    selection-screen: end of block b1.
    And the Events related to Internal table like AT NEW and AT END OF
    All this AT NEW, AT FIRST, AT END OF and AT LAST are called control break statements of Internal tables and are used to calculate the TOTALS based on sertain key fields in that internal table
    FIrst to use these statements the ITAB has to be sorted by the key fields on whcih you need the SUM of the fields.
    Some time you will get * when mopving data from this int table to other table using these commands
    so you have to use
    READ TABLE ITAB INDEX SY-TABIX in AT..ENDAT..if you are using other fields between them
    DATA: sflight_tab TYPE SORTED TABLE OF sflight
                      WITH UNIQUE KEY carrid connid fldate,
          sflight_wa  LIKE LINE OF sflight_tab.
    SELECT *
           FROM sflight
           INTO TABLE sflight_tab.
    LOOP AT sflight_tab INTO sflight_wa.
      AT NEW connid.
        WRITE: / sflight_wa-carrid,
                 sflight_wa-connid.
        ULINE.
      ENDAT.
      WRITE: / sflight_wa-fldate,
               sflight_wa-seatsocc.
      AT END OF connid.
        SUM.
        ULINE.
        WRITE: / 'Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
        SKIP.
      ENDAT.
      AT END OF carrid.
        SUM.
        ULINE.
        WRITE: / 'Carrier Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
        NEW-PAGE.
      ENDAT.
      AT LAST.
        SUM.
        WRITE: / 'Overall Sum',
                  sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
      ENDAT.
    ENDLOOP.
    Reward points for useful Answers
    Regards
    Anji

  • Infoset Query Selection Screen Issue

    Dearf Experts,
    I am a SAP-PM functional area. (Do know very little about technical sideof SAP)
    I am working on SQ03/SQ02/SQ01 for the first time to create an Infoset query.
    The output screen is incontrol and showing all the fields as per my specifications.
    My problem is the Selection Screen. This is displaying to many things not desired by me.
    1. Two tabs (I do not expect any tabs)
    2. Many Screen areas, repeating the fields (1000,0100,0101,0102,0103) 
    The screen area of my specified fields in at the bottom.
    My expectations about the selection screen is - just like simple one as in the case of SQVI.
    Please help me in getting through this problem.
    Regards
    Jogeswara Rao

    Gungor Ozcelebi,
    Thank you very much for responding,
    Exactly as you said, I am using Notifications logical database.
    (I was suspecting this reason)
    Infact I found about 8 fields (Perhaps related to Date fields, checkboxes etc) are automatically selected from the LDB.
    My trials to delete them were invain. They reappear while saving.
    I would be very thankful, if you help me in this case.
    Regards...

  • Introducing the Vertical Scrollbar to a selection screen.

    hi all,
    I wrote a program and use the WRITE command to display its values. code below...
    WRITE:/(181) sy-uline.
      WRITE:/ 'MVT',
      sy-vline, 'ADDITIVES',
      25 sy-vline,'CIRCLES',
      44 sy-vline,'COILS',
      64 sy-vline,'INGOT',
      83 sy-vline,'PRO. SCRAP',
      103 sy-vline,'PUR. SCRAP',
      123 sy-vline,'SHEETS',
      142 sy-vline,'SLAB',
      163 sy-vline, 'impscrap',
      181 sy-vline.
      WRITE:/(181) sy-uline.
    The problem i have now is that the whole data seem distorted because there is no vertical scrollbar.....Is it possible to add a scroll manually or it has to be done only automatically.. and if automatically under what condition does this happen?? Thanks..

    Your question is somewhat confusing.
    You ask about the selection screen, but the question seems more related to the report.
    You say vertical scrollbar, but the report seems to need a horizontal scrollbar.
    In ane event, try adding:
    LINE-SIZE 255
    to the REPORT statement.
    Rob

  • Re: About radio button enable by using selection screen

    Hi,
       this is suresh babu.i am doing one report on Competency table. About details of the report..
    there are four text feilds and 3 radio buttons in main screen.if we select one of the radio button then i want screen to required table..
    text feild:
    Division:----
    personnal area:----
    employee group:----
    Year:----
    select the type of report you wiish to execute.
    radio button1: low competency
    radio button2: low KPI
    radio button3: low competeny and KPI
    *this is my main screen of the report.my requirement is when we click any of the radio buttn i have to go for the required table in my program.
    so i want how to enable radio buton and how to generate New T-code in ABAP.

    HI create program inwhich u hav only 3 radio buttons as parameters
    parameters : p1 radiobutton group rg1,
                     p2 radiobutton group rg1,
                 p3 radiobutton group rg1.
    if p1 = 'X'.
    submit Zprogram1 VIA SELECTION-SCREEN .
    ***Zprogram1 is program to b called for radiobutton 1.
    elseif p2 = 'X'.
    submit Zprogram2 VIA SELECTION-SCREEN
    else if P3 = 'X'.
    submit Zprogram3 VIA SELECTION-SCREEN
    endif.
    goto SE93..
    and create new tcode and assign this program name der...

  • One question about Selection screen

    Hi experts,
    I am writing a report, on the selection screen, I need to input the file path and then do the file upload.
    My question is about how to check the file path I put is correct or not? If it is incorrect, I want to get a message and the cursor still in the field and don't jump to the next page.
    How can I do like that?
    Any one has any suggestion, please help me.
    Thanks in advance.
    Regards,
    Chris Gu

    Hi Chris,
        do it this way: check my code after calling gui_upload what condition i am using.
    parameters:
      p_file type rlgrap-filename.          " File name
    *           AT SELECTION-SCREEN ON VALUE-REQUEST EVENT               
    at selection-screen on value-request for p_file.
      perform get_file_name.
    *                       AT SELECTION-SCREEN EVENT                    
    at selection-screen on p_file.
      perform validate_upload_file.
    *  Form  GET_FILE_NAME                                               
    form get_file_name.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
    endform.                               " GET_FILE_NAME
    *  Form  VALIDATE_UPLOAD_FILE                                        
    form validate_upload_file.
      data:
        lw_file  type string.              " File Path
      lw_file = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                    = lw_file
          filetype                    = 'ASC'
          has_field_separator         = 'X'
          dat_mode                    = 'X'
        tables
          data_tab                    = t_final_data.
      IF sy-subrc ne 0 and t_final_data is initial. " here message if file path is wrong
        Message 'File not found' type 'E'.
      ELSEIF sy-subrc eq 0 and t_final_data is initial.
        Message 'File empty' type 'E'.
      ENDIF.                              
    endform.                               " VALIDATE_UPLOAD_FILE
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 8, 2009 8:57 AM

  • Can anybody explain in more detail about NO-DISPLAY in selection screens..

    an anybody explain in more detail about NO-DISPLAY in selection screens.. in that it is saying
    "If you want to display a parameter only in certain cases, for example, depending on the values entered by the user in other input fields of the selection screen, you cannot use the NO- DISPLAY addition. If you use NO-DISPLAY, the parameter actually is an element of the interface for program calls, but not an element of the selection screen. As a result, you cannot make it visible using the MODIFY SCREEN statement. To hide a parameter that is an element of the selection screen, you must declare it without the NO-DISPLAY addition and suppress its display using the MODIFY SCREEN statement."
    what is the meaning of this?

    This is use a lot in programs which are submitted using the SUBMIT statement.  Say that you have a program which runs as usally with a selection screen and nornal output, but you also have some logic built in there that needs to be execute when this program is not ran by the user with the selection screen, but submitted.  You can use a PARMETER statement the selection screen and NO-DISPLAY to hide it when normal processing by the user.  You could pass a value to the parameter when it is called via the SUBMIT statement.  Does this make sense?
    Regards,
    Rich Heilman

  • About parameters in selection screen

    When it if select-option,when the value of low and high are initial,it will  select all the items,and if  the low and high value are not initial,it will select items in this range.
    I just think if abap have this for a parameter ,like when it is initial,it will select all items,and when it is not initial,it will select the item which some field = this parameter.
    thanks a lot!

    Here you have to display the selct-option which will appear as a parameter on the selection screen and user can enter only one value as in a parameter.
    select-options: s_para for mara-matnr no-extension
                                           no intervals.

  • Hi Experts, a question about messages in selection screen? thank you!

    Hi Experts,
    I have a selection screen and two parameters on it, I need to check if the entries exist if the fields is filled in, if it doesn't exist I need to issue a warning message, but if the two parameters are both filled in and the related entries both don't exist, how can I handle this situation? what I mean is that I want to display the two warnings at the same time(like below), now I only can display one warning, can anyone help me on this? thank you much!
    You are not authorised for this purchasing organisation
    Plant: invalid entry
    Purchasing organisation: invalid entry
    No valid record selected
    Kind regards
    Dawson

    Hi Dawson
    As far as i get from your disciption of the problem, i get that: -
    (a) You want to check that both the fields are filled or not
    (b) If they are filled, then you want to check if in database there exists any record pertaining to them.
    Correct me if i am wrong.
    If this is correct, then you will have to make use of nested if condtions to diaplay the warnings.
    Like as follows: -
    If pa1 IS INITIAL and pa2 IS INITIAL.
      <your warning message>.
    ELSEIF pa1 IS INITIAL and pa2 IS NOT INITIAL.
      <your warning message>.
    ELSEIF pa1 IS NOT INITIAL and pa2 IS INITIAL.
      <your warning message>.  
    ELSEIF pa1 IS NOT INITIAL and pa2 IS NOT INITIAL.
      <try matching it with the database records>.
      <your warning message>.
    ENDIF.
    As far as i know, the 2 warning messages cannot be issued as they appear in the status bar of the current screen. SO you will have to put them in if condition only and display the approriate warning .
    Hope this solves your problem.
    Regards
    Gaurav.

  • A question about keeping screen field unchangable in selection screen

    Hello Expert,
    I have a program as below.
    REPORT Z_TEST.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-i01.
    SELECT-OPTIONS: s_kappl FOR a017-kappl DEFAULT 'M' NO INTERVALS.
    SELECTION-SCREEN: END OF BLOCK b1.
    INITIALIZATION.
      LOOP AT SCREEN.
        IF screen-name CS 'KAPPL'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    When I executed the report, the field for S_KAPPL is unchangable. This is as expected. But if I select one variant,  the filed will change back to changable.
    My question is how can I keep the field unchangable after I select variant?
    Thanks in advance,
    Regards, Johnny

    Hello Johnny,
    When you're creating the variant you've to mark the check-box "Protect field" as true.
    This will make the field as output only.
    BR,
    Suhas

  • Hi,a question about transportation of translation of selection screen?

    Hi Experts,
    I am working on an ALV and there is a selection screen for it, and I have translate the texts in the selection screen and can they be transported while the program is transported to another system? if not how can I transport the translations, thank you much.
    Kind regards
    Dawson

    Hello ,
    Please follow the below steps for transalation ..
    - Complete your development and release the same .
    - Always have the Translations which u can do wtih SE63 tocde and have them within a specific transport request (Recomended Transport of Copies) .
    Now u release the TR of translation then everything wil work fine .
    Ensure always Translations TR is younger than Development TR withrespect to their creation and Releases ....
    Regards,

Maybe you are looking for