Selection-screen dynamic selections for dtab

Hey experts,
when I add this to my code
selection-screen dynamic selections for zbr_t_autori
and I want activate it, it writes out an error
The addition "DYNAMIC_SELECTIONS" is only allowed in INCLUDE DB__SSEL.
and I don't know how to solve it, what is that include db__ssel?
Can anybody help me.
Regards,
Robert

Check this:
Structure of Logical Databases - ABAP Programming (BC-ABA) - SAP Library
Where are you using this code?
selection-screen dynamic selections for zbr_t_autori
It should be in the include reserved for your LDB selection:

Similar Messages

  • Adding fields on selection screen dynamically

    Hi all,
    Can we add some fields to selection screen dynamically on pushbutton click?
    Regards,
    Dnyanesh

    just have look below code
    REPORT zrsdvsr1
           LINE-SIZE 220
           LINE-COUNT 65(5).
    TYPE-POOLS : slis.
    TABLES
    TABLES: vbak.
    DATA DECLARATIONS
    Ranges
    RANGES: r_posnr FOR vbap-posnr.
    DATA: BEGIN OF t_veramt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
          END OF t_veramt.
    DATA: BEGIN OF t_disamt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
            netwr_v TYPE vbap-netwr,
            mwsbp_v TYPE vbap-mwsbp,
            disc_val TYPE vbap-mwsbp,
          END OF t_disamt.
    *&   ALV FIELDS
    DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           alv_layout TYPE slis_layout_alv.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
                 p_sab RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
    PARAMETERS:    p_dwfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test1.txt' MODIF ID gr2,         "#EC NOTEXT
                   p_upfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test.txt' MODIF ID gr3.          "#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_upfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_dwfile.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF  p_sab = 'X'.
          IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ELSE.
          IF screen-group1 = 'GR3'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION
    START-OF-SELECTION.
    Check Radio Button
      IF p_ver = 'X'.
        PERFORM get_details_open_so_vertex.
      ELSE.
        PERFORM get_details_open_so.
      ENDIF.
    Display the output.
      PERFORM diplay_report .
    regards
    vinod

  • How to create the selection screen dynamically

    Hi,
    I have a requirement to create the selection screen Dynamically. All the fields that should appear on the selection screen will be available in a custom table. So, based on the entries available in the Z tables, the selection screen should be built. Eg. If there are 10 records available in the Z table, the selection screen should consist of 10 fields. If there are 100 entries, the Selection screen should contain 100 fields. and the logic to build this selection screen should be carried out dynamically in the program.
    Could anyone of you please share the valuable inputs on this. If anyone has the sample code to do this, please share.
    Thanks in advance.
    Regards,
    Paddu.

    Hi,
    Kindly go through this sample program below:
    DEMO_LIST_FORMAT_INPUT *and
    check this function module:
    FREE_SELECTIONS_DIALOG *.
    Hope it helps
    Regards
    Mansi

  • Selection-screen fields validation for dialog

    Hello ABAP Gurus
    Requirements: this is a report wherein , depending upon the correct select-options , user will pick some field values from table and some will be entered by the user in the next se51 custom screen for creation of a record in a ztable .
    the problem is :without validating select-options values , it calls the se51 screen 100.
    How to keep the cursor at the selection-screen field until & unless user enters the correct i/p s .if i/p are correct then only it should call screen 100 otherwise remain in the selection screen only .
    *& Report ZSD_REP_QUOT_BANK_CREATE *
    REPORT ZSD_REP_QUOT_BANK_CREATE NO STANDARD PAGE HEADING LINE-SIZE 255.
    TABLES: VBAK,VBAP,VBRK,ZSD_TABL_QOTBANK,MARA,KONV.
    DATA: OK_CODE LIKE SY-UCOMM,
    SAVE_OK_CODE LIKE SY-UCOMM,
    WA_ITAB LIKE ZSD_TABL_QOTBANK,
    ANSWER TYPE C,
    COPIED ,
    STS TYPE N,
    EMGRP LIKE MARA-EXTWG,
    QTY LIKE ZSD_TABL_QOTBANK-QTY,
    UPRICE LIKE ZSD_TABL_QOTBANK-UPRICE,
    TOT LIKE ZSD_TABL_QOTBANK-TOT,
    INO LIKE VBAP-POSNR.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: S_QTNO FOR ZSD_TABL_QOTBANK-QTNO
    NO INTERVALS NO-EXTENSION OBLIGATORY,
    S_ITNO FOR ZSD_TABL_QOTBANK-ITNO
    NO INTERVALS NO-EXTENSION OBLIGATORY.
    S_MATNO FOR ZSD_TABL_QOTBANK-MATNO
    NO INTERVALS NO-EXTENSION. "
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN.
    SELECT SINGLE VBTYP
    INTO VBAK-VBTYP
    FROM VBAK
    WHERE VBELN IN S_QTNO.
    IF SY-SUBRC EQ 0 AND VBAK-VBTYP NE 'B'.
    MESSAGE I005(ZQOTBANK).
    SET CURSOR FIELD S_QTNO-LOW.
    SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
    ENDIF.
    CLEAR WA_ITAB.
    SELECT SINGLE QTNO ITNO
    INTO WA_ITAB
    FROM ZSD_TABL_QOTBANK
    WHERE QTNO IN S_QTNO
    AND ITNO IN S_ITNO.
    IF SY-SUBRC EQ 0.
    MESSAGE I001(ZQOTBANK).
    SET CURSOR FIELD S_QTNO-LOW.
    SET CURSOR FIELD S_ITNO-LOW.
    SUBMIT (SY-REPID) VIA SELECTION-SCREEN.
    ENDIF.
    *START-OF-SELECTION.
    END-OF-SELECTION.
    CALL SCREEN 0100.
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS '0100'.
    SET TITLEBAR '0100'.
    ZSD_TABL_QOTBANK-QTNO = S_QTNO-LOW.
    SELECT SINGLE BUKRS_VF VKORG VTWEG SPART KUNNR ERDAT BNDDT
    KNUMV
    INTO (ZSD_TABL_QOTBANK-CCODE,
    ZSD_TABL_QOTBANK-SORG,
    ZSD_TABL_QOTBANK-DISTCHAN,
    ZSD_TABL_QOTBANK-DIV,
    ZSD_TABL_QOTBANK-CUSTNO,
    ZSD_TABL_QOTBANK-QTDAT,
    ZSD_TABL_QOTBANK-QTVALDAT,
    VBAK-KNUMV)
    FROM VBAK
    WHERE VBELN IN S_QTNO
    AND VBTYP = 'B'.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE KWMENG POSNR MATNR
    INTO (QTY , INO , ZSD_TABL_QOTBANK-MATNO)
    FROM VBAP
    WHERE VBELN IN S_QTNO.
    SELECT SINGLE EXTWG
    INTO EMGRP
    FROM MARA
    WHERE MATNR EQ ZSD_TABL_QOTBANK-MATNO.
    ZSD_TABL_QOTBANK-ITNO = INO.
    ZSD_TABL_QOTBANK-EMATGRP = EMGRP.
    ZSD_TABL_QOTBANK-QTY = QTY.
    SELECT SINGLE KBETR
    INTO UPRICE
    FROM KONV
    WHERE KNUMV = VBAK-KNUMV
    AND KPOSN = INO
    AND KSCHL = 'PR00'.
    ENDIF.
    ZSD_TABL_QOTBANK-UPRICE = UPRICE.
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-CGL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-CGL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-CGL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-BHEL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-BHEL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-BHEL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-BHEL_QTY.
    UPRICE = ZSD_TABL_QOTBANK-BHEL_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-BHEL_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-ALSTOM_QTY.
    UPRICE = ZSD_TABL_QOTBANK-ALSTOM_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-ALSTOM_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-SIEMENS_QTY.
    UPRICE = ZSD_TABL_QOTBANK-SIEMENS_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-SIEMENS_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-TELK_QTY.
    UPRICE = ZSD_TABL_QOTBANK-TELK_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-TELK_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    QTY = ZSD_TABL_QOTBANK-OTH_QTY.
    UPRICE = ZSD_TABL_QOTBANK-OTH_UPRICE .
    TOT = QTY * UPRICE .
    ZSD_TABL_QOTBANK-OTH_TOT = TOT .
    CLEAR: QTY, UPRICE, TOT.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
    WHEN 'SAVE'.
    INSERT ZSD_TABL_QOTBANK.
    IF SY-SUBRC EQ 0.
    MESSAGE I000(ZQOTBANK).
    COMMIT WORK.
    CALL SELECTION-SCREEN 1000.
    ELSE.
    MESSAGE E001(ZQOTBANK).
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module EXIT_COMMAND INPUT
    text
    MODULE EXIT_COMAND INPUT.
    SAVE_OK_CODE = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_OK_CODE.
    WHEN 'CANCEL'.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
    TITLEBAR = 'Quotation Bank Entry'
    TEXT_QUESTION = 'Do you want to Cancel ?'
    TEXT_BUTTON_1 = 'Yes'
    TEXT_BUTTON_2 = 'No'
    DEFAULT_BUTTON = '2'
    IMPORTING
    ANSWER = ANSWER.
    IF ANSWER = '1'.
    LEAVE PROGRAM.
    ELSE.
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    WHEN 'EXIT'.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
    TITLEBAR = 'Quotation Bank Entry'
    TEXT_QUESTION = 'Do you want to Exit ?'
    TEXT_BUTTON_1 = 'Yes'
    TEXT_BUTTON_2 = 'No'
    DEFAULT_BUTTON = '2'
    IMPORTING
    ANSWER = ANSWER.
    IF ANSWER = '1'.
    LEAVE PROGRAM.
    ELSE.
    CALL SELECTION-SCREEN 1000.
    ENDIF.
    ENDCASE.
    ENDMODULE. " EXIT_COMMAND INPUT
    Thnx in Advance

    Put the statement
    CALL SCREEN 100
    in the event <b>AT SELECTION-SCREEN</b> and NOT in <b>END-OF-SELECTION</b>.
    Regards,
    Subramanian V.

  • Modifying Selection screen dynamically

    Hi guyz
    herez another question
    Can we modify selection-screen dynamically  as we do in case of screen
    What i want to do is
    I want to display one parameter as  checkbox and when user ticks this box I want to display another one
    If we are defining two checkboxes earlier and making one invisible than can we modify selection screen to display another check box
    Thanks in advance

    Take a look at this example.
    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.

  • Want to use ldb selection screen with select queries

    I want to use ldb selection screen with select queries since ldb having performance issue .How can I use the fields of the dynamic selection of LDB in the select queries

    Hi,
    Check the code snippet below: Here 'XXXX' is the table for your select query.
      DATA L_DS_CLAUSES TYPE RSDS_WHERE.
      MOVE 'XXXX' TO L_DS_CLAUSES-TABLENAME.
      READ TABLE DYN_SEL-CLAUSES WITH KEY L_DS_CLAUSES-TABLENAME
                                 INTO L_DS_CLAUSES.
      SELECT * FROM XXXX
              WHERE field1 IN ...
               AND   field2 ....
               AND (L_DS_CLAUSES-WHERE_TAB).
          PUT XXXX.
      ENDSELECT.
    You can also try using the FM 'RS_REFRESH_FROM_DYNAMICAL_SEL' passing SY-CPROG in curr_report and 'M'  for mode to get the dynamic selection screen values.
    Regards,
    Munesh.

  • Making a field in selection screen dynamic  mandatory

    I have a parameter in the select option of a selection screen. The code is below:
    TABLES:vbak,kna1,ekko,lfa1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: rd1 RADIOBUTTON GROUP rd DEFAULT 'X' USER-COMMAND abc,
                                rd2 RADIOBUTTON GROUP rd,
                                rd3 RADIOBUTTON GROUP rd.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS:s_erdat FOR VBAK-ERDAT MODIF ID SAL,
                                       s_vbeln FOR VBAK-VBELN MODIF ID SAL,
                                       s_kunnr FOR KNA1-KUNNR MODIF ID SAL.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE TEXT-003.
    SELECT-OPTIONS:p_aedat FOR EKKO-AEDAT MODIF ID PUR,
                                       p_ebeln FOR EKKO-AEDAT MODIF ID PUR,
                                       p_lifnr FOR EKKO-AEDAT MODIF ID PUR.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rd1 EQ 'X'.
          IF SCREEN-GROUP1 = 'SAL' OR SCREEN-GROUP1 EQ 'PUR'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
        IF rd2 EQ 'X'.
          IF SCREEN-GROUP1 EQ 'PUR'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
        IF rd3 EQ 'X'.
          IF SCREEN-GROUP1 EQ 'SAL'.
            SCREEN-ACTIVE = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Now the parameters s_erdap & _aedat  should both be dynamic mandatory. How this can be achieved?

    Hi,
      This can be done in two ways:
    1.
    At  selection-screen output.
    loop at screen.
    IF rd1 EQ 'X'.
       if screen-name = 's_erdat-low' or screen-name = 'P_AEDAT'.
       screen-required = 1.
      modify screen.
      endif.
    endif.
    endloop.
    the above code would make the lower value in select-option s_erdat and parameter p_aedat mandatory.
    2.
    at selection-screen.
    if rd1 eq 'X'.
    if s_erdat is initial.
      message 'PLease enter date'.
    endif.
    endif.
    The above will fire an error when you hit execute and the rd1 is choosen and date is not entered
    Himanshu

  • Selection-screen: Input help for VTWEG

    Hello!
    Can anybody help me with the following problem:
    I have two select-options (VKORG and VTWEG) on my selection screen. Now there should be the possibility to restrict the values shown as input help for VTWEG after having selected a value for VKORG.
    I've already tried to do this by using a matchcode object but for VKORG and VTWEG I was not able to find suitable search helps.
    In my opinion this should be possible without using the "AT SELECTION-SCREEN ON VALUE-REQUEST FOR ...". If not, it would be interesting to getting to know your approaches to this task.
    Thank you in advance!

    you can refer to the following code
    and you can write the code in the same way as per your requirement
    *& Report  ZRKTEST5                                                    *
    REPORT  ZRKTEST5                                .
    DATA: PROGNAME TYPE SY-REPID,
          DYNNUM   TYPE SY-DYNNR,
          DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
          FIELD_VALUE LIKE LINE OF DYNPRO_VALUES.
    DATA: BEGIN OF T_T001L OCCURS 0,
            WERKS TYPE WERKS_D,
            LGORT TYPE LGORT_D,
          END OF T_T001L.
    DATA: V_WERKS TYPE WERKS_D,
          V_LGORT TYPE LGORT_D.
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      PARAMETERS: P_PLANT LIKE MSEG-WERKS,
                  P_STOLOC LIKE MSEG-LGORT.
    SELECTION-SCREEN END OF BLOCK B1.
    INITIALIZATION.
      PROGNAME = SY-REPID.
      DYNNUM = SY-DYNNR.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STOLOC.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES. REFRESH DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'P_PLANT'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME             = PROGNAME
                DYNUMB             = DYNNUM
                TRANSLATE_TO_UPPER = 'X'
           TABLES
                DYNPFIELDS         = DYNPRO_VALUES.
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      SELECT WERKS LGORT INTO TABLE T_T001L FROM T001L WHERE WERKS = FIELD_Value-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                RETFIELD    = 'P_STOLOC'
                DYNPPROG    = PROGNAME
                DYNPNR      = DYNNUM
                DYNPROFIELD = 'P_STOLOC'
                VALUE_ORG   = 'S'
           TABLES
                VALUE_TAB   = T_T001L.
    START-OF-SELECTION.
      WRITE:/ 'TEST F4 PROGRAM'.
    END-OF-SELECTION.
    <b></b>
    reward points if helpfull
    Regards
    Vikure

  • To create selection screen dynamically

    Hi All,
    I need to create dynamic selection screens based on the table for which report will run.
    Can anyone help me on this.
    thanks

    Hello Palak,
    The best you can get on Dynamic Selection Screen: [/people/horst.keller/blog/2009/09/03/abap-geek-13--interactive-dynamic-where-clauses|/people/horst.keller/blog/2009/09/03/abap-geek-13--interactive-dynamic-where-clauses]
    Straight from the "Guru"
    Enjoy !!
    Suhas

  • Analysis Authorization : Selection screen not appearing for query

    Hi,
    I am facing an issue with analysis authorization. I have created the new roles and assigned to the users. For one user when I am executing the query, the selection screen is not coming up and it shows error message to specify the variables. Whereas its running for all other users.
    In S_RS_COMP I have selected Type of a reporting component as Query View, Query & Template structure. I also tried adding Variable in this field but that also did not help.
    Please let me know if you have faced similar issue.
    Regards,
    Manish

    Hi,
    Go to your query desinger opend your query and select your variable in that you have see first "Ready Input Query" Check box is selected or not. It's not selected you can select that check box.
    Your problem will be sloved.
    Thanks & Regards,
    venkat.

  • Selection screen dynamic enable and disable

    HI all,
    I have one requirement like
    on selection of redio button my selection screen hould be enable and disable
    Like if i select rediobutton  tfile then my selection screen block B2 should enable and Block B3 hould be disable
    If redio button selscr is selected then my block B3 should be enable and Block B2 should disable
    my selection screen code is below
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS: tfile  RADIOBUTTON GROUP g1 DEFAULT 'X'.
    PARAMETERS: selscr RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR marc-matnr,
                                 s_fkdat FOR vbrk-fkdat OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
    PARAMETERS : filename TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b3.
    How to do that.
    Help me here its urgent tnx in advance.

    Hi Lalit,
    Check the below code.
    TABLES: marc, vbrk.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND rusr.
    PARAMETERS: selscr RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR marc-matnr  MODIF ID abc,
                     s_fkdat FOR vbrk-fkdat  MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
    PARAMETERS : filename TYPE rlgrap-filename MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
    *Note: To disable the fields use the below one.
      LOOP AT SCREEN.
        IF screen-group1 = 'DEF'. "Name field
          IF selscr = 'X'.
            screen-input = 1.
          ELSE.
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
         IF screen-group1 = 'ABC'. "Name field
          IF selscr = 'X'.
            screen-input = 0.
          ELSE.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    *Note: To hide the screen use the below one.
    LOOP AT SCREEN.
       IF screen-group1 = 'DEF'. "Name field
         IF selscr = 'X'.
           screen-active = 1.
         ELSE.
          screen-active = 0.
         ENDIF.
         MODIFY SCREEN.
      ENDIF.
       IF screen-group1 = 'ABC'. "Name field
         IF  tfile = 'X'.
           screen-active = 1.
         ELSE.
          screen-active = 0.
        ENDIF.
         MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • Changing of default values on the selection screen dynamically

    Hi,
          I have 2 radiobuttons R_A & R_B and i have one text field like P_TEXT. Based on selection of radio button i have to change the default values in P_TEXT on the selection screen. like if i select R_A i have to display P_TEXT = 'A'. if i select R_B then it has to display P_TEXT = 'B'. I tried like as below
    in AT SELECTION-SCREEN OUPUT EVENT.
                 IF R_A = 'X'
                   P_TEXT = 'A'.
                 ELSEIF R_B= 'B'.
                   P_TEXT = 'B'.
                 ENDIF.
            But it's not working. it is working only for first radio button. when i select second radio button it is not giving the second value. can any one tell the sol.
    Tks in advance.

    Hi Pammi,
    Use this code, its working:-
    PARAMETERS : r_a RADIOBUTTON GROUP gp1 DEFAULT 'X' USER-COMMAND rb,
                 r_b RADIOBUTTON GROUP gp1,
                 p_text(20).
    "we use user command with the radiobutton so that some event is occured in order to call AT SELECTION-SCREEN OUTPUT.
    AT SELECTION-SCREEN OUTPUT.
      IF r_a = 'X'.
        p_text = 'Hello'.
      ELSEIF r_b = 'X'.
        p_text = 'Hi'.
      ENDIF.
    In the above case 'AT SELECTION-SCREEN OUTPUT' will act as PBO of the selection screen and will change value of selection text as per condition.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Modifying the selection screen dynamically

    Hey folks,
    I have posted this question previously but no one understood the real problem.
    I have 4 fields
    Company Code
    material Number
    plant
    storage Location
    Unit
    when I select the company code AA01 from the F4 help I want to disable material number and Plant ..Like this i have 4 scenarios where based upon the input given in the selection screen other fields have to be enabled or disabled.
    I have already used at selection screen on output but that doesn't help me as its a PBO event I tried to search for a proper event but cudn't find it. Is there any way i can achieve this. A sample code wud be easy for me to understand .
    Thanks in advance
    Rock

    Set different groups in your fieds on the screen.
    Set the screen group for the Material and Plant as the GR1
    Set the screen gorup for the Storage location as the GR2.
    You need to modify your screen fields on the PBO event.
    Like:
    IF P_BUKRS = 'AA01'.
    loop at screen.
       if screen-group1 = 'GP1'.
         screen-input = 0.
         modify screen.
       elseif screen-group2 = 'GP2'. 
         screen-input = 1.
         modify screen.
       endif.
    endloop. 
    else.
    loop at screen.
       if screen-group1 = 'GP2'.
         screen-active = 0.
         modify screen.
       elseif screen-group2 = 'GP1'. 
         screen-input = 1.
         modify screen.
       endif.
    endloop. 
    endif.
    Regards,
    Naimesh Patel

  • Common SELECTION-SCREEN in reports for reuse

    Dear ABAPERS,
    I have a number of ABAP reports with similar but complicated customized selection screen (i.e. implemented using SELECTION-SCREEN statement). I would like to "package" the codes for SELECTION-SCREEN in a common routine in an include program, so that all my reports can just use it (instead of all reports duplicating the same selection screen codes). Any changes to the selection screen can be made through the single source.
    However, an error :
    Within FORM routines and function modules, the SELECTION-SCREEN statement is not allowed.
    Is there any other way to accomplish this goal ? Thank you.
    Regards
    KC

    Hello Kir,
    The only way to be able to re-use a screen, selection-screen or otherwise, is when the screen is a subscreen.
    Have one report program where you have got the selection screen defined as follows -
    report  ztest.
    selection-screen begin of screen 1010 as subscreen.
      parameters : test like t001-mandt.
    selection-screen end of screen 1010.
    Have a second program with normal screen, which has a subscreen area.
    report ztest1.
    data : repid type syrepid,
           dynnr type sydynnr.
    repid = 'ZTEST'.
    dynnr = '1010'.
    call screen 100.
    Screen 100 has a subscreen area and its flow logic will be something like this -
    PROCESS BEFORE OUTPUT.
      call subscreen subscreen_area_name including repid
                                                   dynnr.
    PROCESS AFTER INPUT.
      call subscreen sub1.
    Now, each time you make a change to the selection-screen's definition in program ZTEST, the change will always be reflected in all the other programs which are using it as their subscreen.
    Regards,
    Anand Mandalika.

  • How to display Selection screen on Web for RSCRM_BAPI

    HI,
    For a customer we want to create the possibility to extract data from BI2004s to other systems, therefore we want to use RSCRM_BAPI.
    Thing is that we want to provide the possibility for them to enter selectioncriteria, but we don't want them to log on using the Gui.
    We want to use the VC to create an interface cockpit.
    question is how we can allow users to use selectioncriteria but:
    variants can not be used
    TVARV can not be used
    is there any way to capture the selection screen and to display it on the web/VC?
    Anyone ever did this?
    Tnx
    rogier

    Gili.
    thank you for your quick reply,.
    Reason why we are looking into the RSCRM_BAPI is due to the layout
    requirements of the extract. the recieving systems requires specific layouts. If we do this with the infospoke we will have to use a BADI to perfom complex transformations which will need additional knowlegde (of BADI's) of the support organisation whereas with RSCRM_BAPI they can adjust the query.
    and as far as i know you can not define the variable input via the web for open hub.
    Grtz
    rogier

Maybe you are looking for

  • How to remove apple id from iphone 3G

    Hi,  My husband and I have shared an apple id for sometime.  It has just caused complications because he is in Europe and Facetime and Imessage are not working properly on our phones because we have the same id.  AT&T advised me to sign up for a new

  • Seeburger EDI Adapter Deployment Error: Cannot register EarLoader

    Hello, we currently have updated our SAP Netweaver Development Environment 2004s to SP20. This installation runs on IBM iSeries. We also have to deploy a Seeburger EDI Adapter (Version 1.8) but we faced following error in the deployment: ---snipped P

  • Updating columns in master/detail form

    Changes were made to the database that is in the master part of a master/detail form. I have tried to add the new fields using "Create Item" on the page definition. I have gone through the wizard and set the source items to: Source Used: Always Sourc

  • Screencapture in terminal takes a screenshot, but can't save it to destination

    Hi i'm trying simply to make terminal take a screenshot for me. I am using the following command: screencapture [/Users/karanerry/Documents/] When i press enter after typing the above command in terminal, i hear the sound of a screenshot being taken,

  • How to read *.eps file?

    I have mailed a report. This report gets converted into report.eps file. Now how to open this file?