Question reg. selection screen

I am writing a report. On selection screen, I have a field for Sales order (vbeln) from a custom table zsales.  Now when the user selects this field on selection screen and press F4, he/she should be able to select the salesorders from the table zsales.
I wrote:
SELECT-OPTIONS: s_vbeln FOR zsales-vbeln.
But on the output, when I press F4, I am still not getting any input help. What change can you suggest?
Appreciate your input.
Thanks,
Krishen

Try something like this.
report zrich_0001 .
tables: zsales
data: begin of izsales occurs 0,
       vbeln type vbak-vbeln,
      end of izsales.
select-options s_vbeln for zsales-vbeln.
initialization.
  select vbeln into table izsales from zsales.
  sort izsales ascending by vbeln.
  delete adjacent duplicates from izsales comparing vbeln.
at selection-screen on value-request for s_vbeln-low.
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'VBELN'
            dynprofield = 'S_VBELN'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = izsales.
start-of-selection.
Regards,
Rich Heilman

Similar Messages

  • Question on selection-screen

    Hi,
    1) How we can provide two fields on selection-screen side by side
    2) How we can provide Text on selection-screen (ie some comments regarding selection-screen fields)

    Moderator message - Welcome to SCN
    However, this is not a training forum for ABAP. Please read the appropriate documentation.
    Thread locked..
    Please read [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.

  • 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

  • Reg : Selection-Screen in LDB's

    hi,
    Iam  working on a report which uses Logical DataBase : PSJ.
    Iam getting output based on the standard selection screen of LDB PSJ.
    Now my requirement is :
    I need to add a new field(select option) to the Selection screen and the output should be displayed based on  new field select option values
    how to do this?
    Plz answer
    Regards
    vaja

    Hi,
    You simply add the check in the relevant GET event of the LDB.
    For example, you may have an event for DOCUMENT as follows.
    GET DOCUMENT.
      check document-ref in s_ref.    
    S_REF being your new select option.
    Hope this helps.
    Darren

  • Reg : Selection Screen For PNP LDB

    Hi All,
    I am having problem in selection screen of logical database PNP..  I am attaching the screenshot of the screen which I am using.
    [https://www.2big2send.com/collect/861452b5d77254eea4fa17cec4842d63]
    Actually.. I created 3 radio buttons down in the screen.. i.e. Delta, delta for X date, full file.
    If the user click on Delta radio button then he can only select today radio button.. If he select others than.. the error message should come.. Can anyone help me.. coz.. I dont know.. which event is triggering if the user select other than today radio button of the PNP screen.
    I put break points on the AT SELECTION SCREEN and AT SELECTION SCREEN OUTPUT.
    But, none of the event is triggering.. Can anyone help me regarding this.
    Thanks,
    Regards,
    Jhings.

    Hi...
    Thanks for the reply.. I did this also..
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP $zb2.
      BREAK-POINT.
    $zb2 is the group name of the radio button which is there in PNP logical database selection screen..
    Same problem again.. this event is not triggering also..
    Regards,
    Jhings

  • Question on selection screen in a subscreen in dialog prorgamming

    hi,
    i have a module pool in which the main program has the definition of the selection screen as follows:
    SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
    SELECT-OPTIONS: S_VSTEL FOR  TVST-VSTEL,
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN END OF SCREEN 0101.
    In the PBo of screen 100 this is called
    CALL SUBSCREEN SUBSCREEN1 INCLUDING SY-REPID L_DYNNR.
    The subscreen is displayed as
    Shipping point  _______ To _________  =>
    When I click that arrow (( extension )) nothing happens !! I am supposed to get the standard extension screen in whcih i can select single values, ranges, exclude values, ranges !!
    why is this not displayed..any idea ?
    i have the same code in a normal report program and it works fine ..
    thks

    in module pool you need to add code for the => this is not been handled by SAP in module pool whereas it is been handled in report program.
    There is one FM which needs to be used so that when => is clicked it works...

  • Reg selection screen

    Hi I have a requirement where I have to consider my field which is there on the selection screen.
    I want to capture like user may select select options and selection option as '=' and he don't enter any values for this field so for this scenario i have to execute my program by taking that field as empty field.
    second scenario is the user will not give any value on the selection screen for this field then the report has to take all the values of that field for the report.This second scenario is we can do that when use in operator in the selection.
    But I am not getting how to achieive the ist scenario I mean how I will get for that field user has entered '=' from select options?
    Thanks&Regards
    Mahesh

    Hi All,
    Thanks a lot to all of you I got it actually i was debugged that to find option value 'EQ' before I post this issue but I could not found that may be something wrong i did that time.
    Thanks&Regards
    Mahesh

  • Reg Selection Screen Events

    Hi Friends,
    I have 3 input field  and two radio button in my selection screen, On clicking the first radio button, the sum of two fields should be displayed in the third input field. Similarly when i click the second radio button, the multiply of two fields should be displayed in third inpur field.
    Could you please all help me on this?
    Regrads,
    Sundaresan

    Hi,
    Check this code..
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    parameter : num1 TYPE i,
                num2 TYPE i,
                num3 TYPE i.
    PARAMETERS: r1 RADIOBUTTON GROUP rad1 user-command usr DEFAULT 'X',
                r2 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 EQ 'X'.
        num3 = num1 + num2.
      ENDIF.
      IF r2 EQ 'X'.
        num3 = num1 * num2.
      ENDIF.

  • Reg: Selection screen tabstrip

    Hi all,
      I need to create a screen with tab strip and inside the tab it should hold a subscreen containing text element and checkbox and a  button.
    This is to be done using the selection-screen begin of screen method and not as a module pool.
    SELECTION-SCREEN BEGIN OF SCREEN 9000 TITLE title.
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
                        TAB (20) button1 USER-COMMAND push1,
                      END OF BLOCK mytab.
    SELECTION-SCREEN END OF SCREEN 9000.
    I tried by above way but it's going to dump.
    Kindly help me on this by providing a sample code as to how to go about it.
    Thanks in advance,
    Krithika

    Hi
    Sample programs:
    DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip Control - Scrolling at SAPgui
    DEMO_DYNPRO_TABSTRIP_SERVER Tabstrip Control - Scrolling at Application Server
    DEMO_SEL_SCREEN_IN_TABSTRIP Selection Screen as Subscreen in Tabstrip
    DEMO_SEL_SCREEN_WITH_TABSTRIP Selection Screen with Tabstrips
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK selec FOR 17 LINES,
                        TAB (23) button1 USER-COMMAND push1,
                        TAB (23) button2 USER-COMMAND push2,
                        TAB (23) button3 USER-COMMAND push3
                        DEFAULT SCREEN 1001,
                        END OF BLOCK selec.
      SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1001.
      SELECTION-SCREEN BEGIN OF SCREEN 1002 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1002.
      SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN.
      SELECTION-SCREEN END OF SCREEN 1003.
    Initialization
    INITIALIZATION.
      button1 = text-det.
      button2 = text-sup.
      button3 = text-mef.
      selec-prog = sy-repid.
      selec-dynnr = 1001.
      selec-activetab = 'BUTTON1'.
    Managing the keys
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'PUSH1'.
          selec-dynnr = 1001.
          selec-activetab = 'BUTTON1'.
        WHEN 'PUSH2'.
          selec-dynnr = 1002.
          selec-activetab = 'BUTTON2'.
        WHEN 'PUSH3'.
          selec-dynnr = 1003.
          selec-activetab = 'BUTTON3'.
      ENDCASE.
    2)  DATA flag(1) TYPE c.
    SUBSCREEN 1
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
    p2(10) TYPE c,
    p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 100.
    SUBSCREEN 2
    SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: q1(10) TYPE c OBLIGATORY,
    q2(10) TYPE c OBLIGATORY,
    q3(10) TYPE c OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN END OF SCREEN 200.
    STANDARD SELECTION SCREEN
    SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES,
    TAB (20) button1 USER-COMMAND push1,
    TAB (20) button2 USER-COMMAND push2,
    TAB (20) button3 USER-COMMAND push3
    DEFAULT SCREEN 300,
    END OF BLOCK mytab.
    INITIALIZATION.
    button1 = text-010.
    button2 = text-020.
    button3 = text-030.
    mytab-prog = sy-repid.
    mytab-dynnr = 100.
    mytab-activetab = 'BUTTON1'.
    AT SELECTION-SCREEN.
    CASE sy-dynnr.
    WHEN 1000.
    CASE sy-ucomm.
    WHEN 'PUSH1'.
    mytab-dynnr = 100.
    mytab-activetab = 'BUTTON1'.
    WHEN 'PUSH2'.
    mytab-dynnr = 200.
    mytab-activetab = 'BUTTON2'.
    ENDCASE.
    WHEN 100.
    MESSAGE s888(sabapdocu) WITH text-040 sy-dynnr.
    WHEN 200.
    MESSAGE s888(sabapdocu) WITH text-040 sy-dynnr.
    ENDCASE.
    MODULE init_0100 OUTPUT.
    LOOP AT SCREEN.
    IF screen-group1 = 'MOD'.
    CASE flag.
    WHEN 'X'.
    screen-input = '1'.
    WHEN ' '.
    screen-input = '0'.
    ENDCASE.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
    MESSAGE s888(sabapdocu) WITH text-050 sy-dynnr.
    CASE sy-ucomm.
    WHEN 'TOGGLE'.
    IF flag = ' '.
    flag = 'X'.
    ELSEIF flag = 'X'.
    flag = ' '.
    ENDIF.
    ENDCASE.
    ENDMODULE.
    START-OF-SELECTION.
    WRITE: / 'P1:', p1,'Q1:', q1,
    / 'P2:', p2,'Q2:', q2,
    / 'P3:', p3,'Q3:', q3.
    <b>Reward if usefull</b>

  • Reg SELECTION SCREEN BLCOK....

    Hi,
       I have one doubt regarding selection screen. i.e.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TILE TEXT-001.
    SELECTION-SCREEN : END OF BLCOK B1.
    The above syntax will give standard length of frame in SELECTION SCREEN but i want to customize it, I mean I want to decrease the size of frame as per requirement. So, How will I change the size of frame? regarding this plz give me example coding.
    Regards,
    Kishore.

    refer
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9c2e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Reg- Selection screen in Dialog Programing

    Dear Friends,
                      I have developed one Dialog program. In that i have to select profit center like from and to option. Apart from i want to select more profit ceneter also. Now my problem s i designed form,to and more fielsd also. If i enter more filds it s not coming in to from to option.
    Tell any gud function modulr for selectiong from,to and more fields.
    Thanks & regards
    Prabu K

    Hi,
    See below report it might help you.
    REPORT selectoptionsrestrict.
    Include type pool SSCR
    TYPE-POOLS sscr.
    TABLES :
      marc.
    defining the selection-screen
    select-options :
      s_matnr for marc-matnr,
      s_werks for marc-werks.
    Define the object to be passed to the RESTRICTION parameter
    DATA restrict TYPE sscr_restrict.
    Auxiliary objects for filling RESTRICT
    DATA : optlist TYPE sscr_opt_list,
               *** type sscr_***.
    INITIALIZATION.
    Restricting the MATNR selection to only EQ and 'BT'.
      optlist-name = 'OBJECTKEY1'.
      optlist-options-eq = 'X'.
      optlist-options-bt = 'X'.
      APPEND optlist TO restrict-opt_list_tab.
      ***-kind = 'S'.
      ***-name = 'S_MATNR'.
      ***-sg_main = 'I'.
      ***-sg_addy = space.
      ***-op_main = 'OBJECTKEY1'.
      APPEND *** TO restrict-***_tab.
    Restricting the WERKS selection to CP, GE, LT, NE.
      optlist-name = 'OBJECTKEY2'.
      optlist-options-cp = 'X'.
      optlist-options-ge = 'X'.
      optlist-options-lt = 'X'.
      optlist-options-ne = 'X'.
      APPEND optlist TO restrict-opt_list_tab.
      ***-kind = 'S'.
      ***-name = 'S_WERKS'.
      ***-sg_main = 'I'.
      ***-sg_addy = space.
      ***-op_main = 'OBJECTKEY2'.
      APPEND *** TO restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
       EXPORTING
        restriction                  = restrict
       EXCEPTIONS
         TOO_LATE                     = 1
         REPEATED                     = 2
         SELOPT_WITHOUT_OPTIONS       = 3
         SELOPT_WITHOUT_SIGNS         = 4
         INVALID_SIGN                 = 5
         EMPTY_OPTION_LIST            = 6
         INVALID_KIND                 = 7
         REPEATED_KIND_A              = 8
         OTHERS                       = 9
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks
    Mohit

  • Question in selection screen

    how many push buttons put in selection screen
    plzzz answer my question

    Hi,
    U can place as many push buttons as u need...
    Please reward if helpful.

  • HI Question On Selection Screen

    Hi Abapers,
                       i  declared four parameters , one is assigned with one parameter is , and the other three are assigned with another parameter id , initially only one parameter has to display , if the entered parameter is valid one , then other three parameters has to be displayed, i wrote the folling code kindly make any corrections to the below code.
    parameters:p_kunnr type kna1-kunnr modif id ABC.
    parameters:p_vbeln type vbak-vbeln modif id DEF,
               p_bukrs type bukrs  modif id DEF,
               p_werks type werks modif id DEF.
    data: w_kunnr type kunnr,
          val type i value 1.
    at selection-screen .
    select single kunnr from kna1 into w_kunnr where kunnr = p_kunnr.
    if sy-subrc eq 0.
    val = 100.
    else.
    message e000(0) with 'invalid '.
    endif.
    start-of-selection.
    write:/ 'success'.
    at selection-screen output .
    IF VAL = 1.
    loop at screen.
    if screen-group1 = 'DEF'.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    endif.
    endloop.
    ENDIF.
    IF VAL NE 1.
    loop at screen.
    if screen-group1 = 'DEF'.
    SCREEN-ACTIVE = 1.
    MODIFY SCREEN.
    endif.
    endloop.
    ENDIF.
    Thanks & Regards
    Bhaskar Rao.M

    hai,
    Bhaskar try this code...
    parameters:
    p_kunnr type kna1-kunnr modif id ABC .
    parameters:p_vbeln type vbak-vbeln modif id DEF,
    p_bukrs type bukrs modif id DEF,
    p_werks type werks modif id DEF.
    data:
      w_kunnr type kunnr,
      val type i  value 1.
    at selection-screen output .
    IF  p_kunnr is initial.
    loop at screen.
    if screen-group1 = 'DEF'.
    SCREEN-ACTIVE = 0.
    MODIFY SCREEN.
    endif.
    endloop.
    ENDIF.
    at selection-screen .
    select single kunnr from kna1 into w_kunnr where kunnr = p_kunnr.
    if sy-subrc ne 0.
    message e000(0) with 'invalid '.
    endif.
    start-of-selection.
    if p_vbeln is initial.
    message 'error' type 'I'.
    else.
    write:/ 'success'.
    endif.
    regards,
    ananth

  • Reg: LDB& Selection screen

    Hello All,
    I have a question reg. selection screen associated with LDB. Iam developing a LDB for Hedge where there are nodes which have the same selection opt but
    they are disjunct. But in LDB static slection screen , we associate Sel Opt with
    a node  and it would appear only for that node. In my case , i have two nodes for the same Sel Opt. How can i resolve this issue ? Kindly help.

    Hai Srivijaya
    Go through the following Document
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB
    good info about Logical Database. you can check the link.
    http://www.geekinterview.com/question_details/1506
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Re: How to Create and Use ldb in reports?
    Re: Logical databases
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Functions for displaying and changing logical databases:
    Call Transaction SE36 or
    Choose ABAP Workbench -> Development -> Programming environ. -> Logical databases
    Interaction between database program and report:
    During program processing, subroutines are performed in the database program and events are executed in the report.
    To read data from a database tables we use logical database.
    A logical database provides read-only access to a group of related tables to an ABAP/4 program.
    advantages:-
    The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
    i)An easy-to-use standard user interface.
    ii)check functions which check that user input is complete,correct,and plausible.
    iii)meaningful data selection.
    iv)central authorization checks for database accesses.
    v)good read access performance while retaining the hierarchical data view determined by the application logic.
    disadvantages:-
    i)If you donot specify a logical database in the program attributes,the GET events never occur.
    ii)There is no ENDGET command,so the code block associated with an event ends with the next event
    statement (such as another GET or an END-OF-SELECTION).
    1. transaction code SLDB.
    2.enter name z<ldb-name>
    3.create
    4.short text
    5.create
    6. name of root node (here Ekko)
    7. enter short text (f6)
    8.node type -> data base table.
    9.create
    10 change logical DB
    riht click on ekko and insert node
    here node name ekpo
    11.create
    12. click on selections
    13. press no Should the changed structure of Z<ldb name> be saved first.
    14.select tables which you want to join.
    15.transfer
    16 now you have to o to coding part.
    17. save
    activate.
    19.click to src code
    double click on first include and activate
    Regards
    Sreeni

  • Dynamic interaction on selection screen

    Hi experts,
    I just have a easy question regarding selection screen in a ordinary ABAP report.
    The code is below:
    *-- Blcok 2
    selection-screen begin of block block_2 with frame title text-s03.
    select-options:
      s_wc_id for /cockpit/cwc_id-wc_id matchcode object zmm25sh000008.
    selection-screen begin of line.
    parameters p_duewc type c as checkbox.
    selection-screen comment 5(50) status_1 for field p_duewc.
    selection-screen end of line.
    parameters p_ndays(2) type n.
    selection-screen end of block block_2.
    When the user marks the checkbox p_duewc the parameter p_ndays should be ready for data entering.
    If the checkbox is not marked (default) p_ndays shall be not ready for data entering.
    I guess I can control it via the statement at-selection screen but can you give more details.
    How can I code such a request?
    Thanks in advance.
    Regards
    Cornelius

    Hello,
    U can use this code.
    SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-001.
    PARAMETER:      P_LAND LIKE KNA1-LAND1 ,
                    P_REGIO LIKE KNA1-REGIO  ,
                    P_PSTLZ LIKE KNA1-PSTLZ ,
                    P_ORT01 LIKE KNA1-ORT01 .
    SELECTION-SCREEN END OF BLOCK BL1.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-001.
    PARAMETERS:    P_KDGR AS CHECKBOX MODIF ID SC1 USER-COMMAND SELTYPE,
                   P_BCS  AS CHECKBOX MODIF ID SC2,
                   P_BDS  AS CHECKBOX MODIF ID SC2,
                   P_BDC  AS CHECKBOX MODIF ID SC2,
                   P_ALL  AS CHECKBOX MODIF ID SC3 USER-COMMAND SELTYPE.
    SELECTION-SCREEN END OF BLOCK BL2.
    AT SELECTION-SCREEN OUTPUT.
        IF P_KDGR = 'X'.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1  = 'SC1'.
              SCREEN-INPUT   = '1'.
              SCREEN-OUTPUT  = '1'.
              MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1  = 'SC2'.
              SCREEN-INPUT   = '0'.
              SCREEN-OUTPUT  = '1'.
              MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1 = 'SC3'.
              SCREEN-INPUT   = '0'.
              SCREEN-OUTPUT  = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSEIF P_ALL = 'X'.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1  = 'SC1'.
              SCREEN-INPUT   = '0'.
              SCREEN-OUTPUT  = '1'.
              MODIFY SCREEN.
            ENDIF.
            IF SCREEN-GROUP1  = 'SC2'.
              SCREEN-INPUT   = '0'.
              SCREEN-OUTPUT  = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    Reward points if is useful.
    Regards,
    Vasanth

Maybe you are looking for

  • Cannot upload photos to internet sites with the new Photo app (10.10.3 Update)

    I'm not a huge fan of the redesigned Photo app that came with the 10.10.3 update. So, I can no longer upload photos from my computer to websites with this app. It's like the pictures don't exist when the window pops up for what files you would like t

  • Container Managed Relationships

    Within Weblogic 8.1 is it possible to create a Bidirectional container managed relationship between Entity Beans via their LOCAL interfaces where they participate in a one to many relationship. If so... How?

  • Hard coded values in ADF 11g

    i want to insert hard coded values through ADF form.. kindly help me in this Thanks in Advance VL Naidu

  • Change the default language in AM

    Hello, We are using Lookups in our application which stores the locale specific information. We have a drop down in the UI which will give the language names like 'American English', 'Canadian French' etc. When chosen 'Canadian French' we need to cha

  • Eror Pr6 Low/Level exception AEV

    Hi my name is Fernando and I have a problem in Pr 6. I have my project in 3 parts assembly and use, a plug of RedGiant. At render time I get an unknown error, if I look at the video track appears a red cross (bottom - right) which reads as follows: A