Problem with Dynamic Selection Screen

Hi ppl,
I have this part of code in my program. But it is not working as desired. Please could somebody let me know what is wrong with it.
TYPES: BEGIN OF tp_selscr,
         klart TYPE klah-klart,
         class TYPE klah-class,
       END OF tp_selscr.
DATA: wa_selscr TYPE tp_selscr.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK cls WITH FRAME TITLE text-s01.
PARAMETERS:     p_cls AS CHECKBOX USER-COMMAND chk.
SELECT-OPTIONS: s_klart FOR wa_selscr-klart MODIF ID cls,    "Class type
                    s_class FOR wa_selscr-class MODIF ID cls
                        MATCHCODE OBJECT clas.
SELECTION-SCREEN END OF BLOCK cls.
AT SELECTION-SCREEN.
*AT SELECTION-SCREEN ON p_cls.
  PERFORM dynamic_sel.  "Selection based on class
*&      Form  dynamic_sel
*       Selection based on class option
FORM dynamic_sel.
  IF p_cls EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'CLS'.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = 'CLS'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFORM.                    " dynamic_sel
Regards.

The event is wrong. It should be AT SELECTON SCREEN OUTPUT
TYPES: BEGIN OF tp_selscr,
         klart TYPE klah-klart,
         class TYPE klah-class,
       END OF tp_selscr.
DATA: wa_selscr TYPE tp_selscr.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF BLOCK cls WITH FRAME TITLE text-s01.
PARAMETERS:     p_cls AS CHECKBOX USER-COMMAND chk.
SELECT-OPTIONS: s_klart FOR wa_selscr-klart MODIF ID cls,    "Class type
                 s_class FOR wa_selscr-class MODIF ID cls
                        MATCHCODE OBJECT clas.
SELECTION-SCREEN END OF BLOCK cls.
AT SELECTION-SCREEN OUTPUT.       """ Instead of AT SELECTION SCREEN
*AT SELECTION-SCREEN ON p_cls.
  PERFORM dynamic_sel.  "Selection based on class
*&      Form  dynamic_sel
*       Selection based on class option
FORM dynamic_sel.
  IF p_cls EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'CLS'.
        screen-active = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = 'CLS'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDFORM.
Vikranth

Similar Messages

  • Problems creating dynamic selection screen

    Hi all,
    i'm trying to dynamically generate a selection screen and show it as subscreen using the two function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. I call the function modules in the PBO of the therefor defined subscreen. The FREE_SELECTIONS_DIALOG fm has the two import parameter "as_subscreen" and "as_window". If i use the "as_window" parameter the selection screen comes up as popup. If i use the "as_subscreen" parameter, i can't see anything in my defined subscreen.
    Any suggestions ?
    Thanks in Advance
    Dirk

    Hi,
    The above requirement is not possible without using logical database.
    The reason is that the compiler identifies the below syntax only inside a LDB program .
    SELECTION-SCREEN DYNAMIC SELECTIONS
                     FOR {NODE|TABLE} node [ID id].
    The above syntax creates a subscreen container on the standard selection screen of the program during generation
    and we are able to view the dynamic selections icon on the selection screen.
    Hence it is not possible to use the FM 'FREE_SELECTIONS_DIALOG' as a subscreen without using a
    logical database of the relevant table.
    However if you dont want to create a new LDB for each table, there is a trick which needs to be performed
    once in your SAP system and all custom programs can use this FM to create a dynamic selection screen
    as a subscreen of the standard selection screen.
    The prerequisite steps are as follows:
    1: Create a dummy  / test database table in SE11 with a single field i.e. for example mandt , matnr
    2: Create a new logical database program for this table in SE36. Save and activate.
    This will create dynamic selections for the fields of the table created in step 1.
    Steps to be followed in the required custom ABAP program to create the dynamic selection screen as a subscreen.
    A: Include the LDB program created in step 2, in the attributes of the custom ABAP program.
    Now when you execute the program, you can see the dynamic selection icon for the dummy table created in step 1.
    B: In your custom program we need to suppress the icon for 'Dynamic Selections' from the standard selection screen.
       We need to perform this action, because the 'Dynamic Selections' icon always triggers a call to the
       dynamic selection screen of the included LDB progam. ( In our case a dummy table created in step 1 ).
       Whereas we want to trigger a call of the dynamic selection screen of our desired table.
       Logic is as follows:
       In 'AT SELECTION-SCREEN OUTPUT' event call the FM RS_SET_SELSCREEN_STATUS to exclude the fcode 'DYNS'.
    C: Add a pushbutton / checkbox on your selection screen to trigger a call to the FM 'FREE_SELECTIONS_INIT' &
       'FREE_SELECTIONS_DIALOG' in the 'AT SELECTION-SCREEN' event.
    D: When the user clicks the pushbutton / checkbox for dynamic selections call the above 2 FM for the desired table
        with the AS_SUBSCREEN flag of FREE_SELECTIONS_DIALOG = 'X'
    Result: Your dynamic selections screen will be created as a subscreen of the standard selection screen and not as a pop-up.
    Advantage: With the creation of the single custom table & LDB, you are now able to create dynamic selections as subscreen
    in any program in the system. All we need to do is follow the steps A, B & C in each program.
    Note: Your other restrictions with dynamic selection screen ie. submit in background , save as variant still remain and
    you need to handle them accordingly.
    let me know if you need sample code.
    Regards,
    Bhawit Kumar

  • Problem with the selection screen in submit program

    Hi Friends,
    i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
    I have implemented the code same as below.
    submit ztest with tknum =p_tknum and  return.
    Can you pleaes help me how to avoid the submit program selection screen.
    Thanks,
    Charan

    Hi Charan,
    You have to give the selection screen values when you submit a job.
    Press F1 on submit and you will see more details.
    Here is an example from ABAP Documentation.
    Program accessed
    REPORT report1.
    DATA text(10) TYPE c.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
         DATA: text(10)   TYPE c,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards,
    Jovito.

  • How to deal with dynamic selection screen elements when macros are used?

    Hello experts,
    This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
    There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
    This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction,  Reference key, Logical system.
      DEFINE selection_screen_line.
      selection-screen: begin of line.
      parameters &3 like &4 default 'X' modif id mc4.
      selection-screen: comment (30) &1 for field &3 modif id mc4.
      selection-screen: comment pos_low(10) text-019
                        for field &2 modif id mc4.  "neu
      parameters &2 like rfums_alv-variante modif id mc4.
      selection-screen:
          position pos_high.
      selection-screen: pushbutton (15) text-028
                        user-command &5 modif id mc4.
      selection-screen end of line.
    END-OF-DEFINITION.
    Kindly, suggest me the right solution.

    In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
    The selection screen is actually the selection screen of this logical database.
    Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
    But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
    You cannot just remove it from the declaration because many of its variables are used in the program.
    So call it using function module as the first step in INITIALIZATION section of the program.
    The syntax and function module to call it in your program can be found in the following thread :
    How to hide the selection screen of a Logical datebase?
    Regards,
    Ashish

  • Working with dynamic selection screen in LDB FMF

    Hi Guys,
    I am working with LDB FMF and I have a requirement where user need the selection field in initial screen which is already comming in dynamic selection option.
    Is it possible without changing the standerd LDB.
    Atul
    Edited by: Atul Dhariwal on Jun 16, 2009 6:27 AM

    Hi,
    my requirement is to list fields from dynamic selection to appear in the main selection screen.
    user doesn't want's to click on dynamic selection option and select the fields.
    I hope i am clear this time.
    Atul

  • Problem in dynamic selection screen

    Hi,
    I have a parameter P1 on the selection screen.When i am entering some value in that field some more field should be displayed below it on the selection screen.For ex. when i am entering 1  P2,P3,P4 should come.Whe i am entering 2  P3,P4,P5 should come.I also need a validation that the user cannot execute without pressing enter after entering the value in P1.
    Mukesh Kumar

    Hi,
    Check this out.
    SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETER : p1 type < >  USER-COMMAND change,
    PARAMETER : p2  type < > MODIF ID m3,
    p3  type < > MODIF ID m3,
    p4  type < > MODIF ID m3,
    p5  type < > MODIF ID m4,   
    p6 type < > MODIF ID m4.   
    SELECTION-SCREEN:END OF BLOCK blk2.
    AT SELECTION-SCREEN OUTPUT.
    check p1 is not initial.
      LOOP AT SCREEN.
      if p1 = '1'.
        IF screen-group1 = 'M3'.    
            screen-INPUT = 1.
          ELSE.
            screen-INPUT = 0.
            screen-invisible = 1.
          ENDIF.
    endif.
    if p1 = '2'.
        IF screen-group1 = 'M4'.    
            screen-INPUT = 1.
          ELSE.
            screen-INPUT = 0.
            screen-invisible = 1.
          ENDIF.
    endif.
          MODIFY SCREEN.
      ENDLOOP.
    For validation for pressing enter, check sy-ucomm.
    Reward if helpful.
    Regards,
    Ramya

  • Problem with the selection screen

    Hi All,
           In my program i have given the input in selection screen , Its process something and a msg was displayed , and user confirm it to continue , the program take us back to the selection screen - in this case i have to clear all the values from the selection parameters.
    I tried lot , but i didn't get this result.
    I know this is the standard functionality , But anything is there to clear the selection parameters.
    Regards,
    S.C.K

    Hi All,
    In my program i have given the input in selection screen , Its process something and a msg was displayed , and user confirm it to continue , the program take us back to the selection screen - in this case i have to clear all the values from the selection parameters.
    I tried lot , but i didn't get this result.
    I know this is the standard functionality , But anything is there to clear the selection parameters.
    Regards,
    S.C.K
    I didn't go through the long list of replies nor I don't know if you gave it a thought, but you can try this,
    create a [system variant|http://help.sap.com/saphelp_nw04/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm] (variant name starts with CUS& eg: CUS&BLANK) with the entire selection screen fields blanks and use the following function module to call that variant after msg is displayed.
    CALL FUNCTION 'RS_SUPPORT_SELECTIONS'
           EXPORTING
                report               = sy-repid
                variant              = 'CUS&BLANK'
           EXCEPTIONS
                variant_not_existent = 01
                variant_obsolete     = 02.
    You can hide the variant by checking the box "Only display in catalog".

  • Problem with matchcode/selection screen

    Hello,
    When i press the matchcode of a parameter of the selection screen it has to show the values depending of the values of other parameter:
    Ex:
    Parameter A: 2
    Parameter B: press matchcode (values 5,6,7)
    Parameter A: 3
    Parameter B: press matchcode (vales 1,2,3)
    I have already this programed in at selection scree on value-request for B. There i do the select to the table where i obtain the correspondences between A and B depending the values from A. Finally i create the help with  HELP_VALUES_GET_WITH_TABLE function.
    It works correctly with A = 2 but not with A = 3 or other value where always i obtain the values as A = 2 (it is because in the declaration of parameter the default is 2). In other words, it is like im not obtaining the changes of values for A in this point.
    Maybe i wrong the election of the event? Any idea?
    Thank you,
    Manel

    Hi!
    The value of field A would not be directly available in at selection screen on value-request for B. Try using FM C14Z_DYNP_READ_FIELD ( or some other similar FM) to get the value in the selection screen parameter for A. Using this you can decide the values for the popup for field B.
    Cheers!

  • Problem with a selection-screen.

    HI, I want to make a screen at execution time.
    Depending of a flag variable, it´s the way that i made the layout of the screen at execution time.
    Here's a code example.
    SELECTION-SCREEN BEGIN OF SCREEN 0200 .
       if pasos-descripcion = '01 DERIVACION BANORTE'.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME title text-T03
    NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 5.
    SELECTION-SCREEN COMMENT 5(3) TEXT-T01 for field cc1.
    parameters cc1(10) type c.
    SELECTION-SCREEN POSITION 25.
    SELECTION-SCREEN COMMENT 25(2) TEXT-T02 for field cc2.
    parameters cc2(10) type c.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME title text-T04
    NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 5.
    SELECTION-SCREEN COMMENT 5(3) TEXT-T01 for field cc3.
    parameters cc3(10) type c.
    SELECTION-SCREEN POSITION 25.
    SELECTION-SCREEN COMMENT 25(2) TEXT-T02 for field cc4.
    parameters cc4(10) type c.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 0200.
    elseif pasos-descripcion = '02 DERIVACION BANORTE'.
         SELECTION-SCREEN SKIP 1.
         SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME title text-T05
    NO INTERVALS.
    parameters cc5 type n.
    parameters cc6 type n.
    SELECTION-SCREEN END OF BLOCK B3.
       endif.
    SELECTION-SCREEN END OF SCREEN 0200.
        call selection-screen '0200'.
    I tried to do this, but causes an error.
    How can i try to solve this?, Is it possible to do?
    Thanks.
    Reward points for helpful answers.

    This example was implemented using the standard selection screen which you should use if that is the only selection screen in your program, no need to define selection screen 0200.  But if you do want to define it this way, your code would be like this.
    REPORT zrich_001.
    DATA: pasos-descripcion TYPE string.
    SELECTION-SCREEN BEGIN OF SCREEN 0200 .
    *IF pasos-descripcion = '01 DERIVACION BANORTE'.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t03
    NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 5.
    SELECTION-SCREEN COMMENT 5(3) text-t01 FOR FIELD cc1 MODIF ID ss1.
    PARAMETERS cc1(10) TYPE c MODIF ID ss1.
    SELECTION-SCREEN POSITION 25.
    SELECTION-SCREEN COMMENT 25(2) text-t02 FOR FIELD cc2 MODIF ID ss1.
    PARAMETERS cc2(10) TYPE c MODIF ID ss1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t04
    NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 5.
    SELECTION-SCREEN COMMENT 5(3) text-t01 FOR FIELD cc3 MODIF ID ss1.
    PARAMETERS cc3(10) TYPE c MODIF ID ss1.
    SELECTION-SCREEN POSITION 25.
    SELECTION-SCREEN COMMENT 25(2) text-t02 FOR FIELD cc4 MODIF ID ss1.
    PARAMETERS cc4(10) TYPE c MODIF ID ss1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b2.
    *SELECTION-SCREEN END OF SCREEN 0200.
    *ELSEIF pasos-descripcion = '02 DERIVACION BANORTE'.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t05
    NO INTERVALS.
    PARAMETERS cc5 TYPE n MODIF ID ss2.
    PARAMETERS cc6 TYPE n MODIF ID ss2.
    SELECTION-SCREEN END OF BLOCK b3.
    *ENDIF.
    SELECTION-SCREEN END OF SCREEN 0200.
    INITIALIZATION.
      pasos-descripcion =  '01 DERIVACION BANORTE'.
      CALL SELECTION-SCREEN '0200'.
    AT SELECTION-SCREEN.
      IF pasos-descripcion = '01 DERIVACION BANORTE'.
        pasos-descripcion = '02 DERIVACION BANORTE'.
      ELSEIF pasos-descripcion = '02 DERIVACION BANORTE'.
        pasos-descripcion = '01 DERIVACION BANORTE'.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF pasos-descripcion = '01 DERIVACION BANORTE'.
          IF screen-group1 = 'SS2'.
            screen-active = '0'.
          ENDIF.
        ELSEIF  pasos-descripcion = '02 DERIVACION BANORTE'.
          IF screen-group1 = 'SS1'.
            screen-active = '0'.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Regards,
    Rich Heilman

  • How to create dynamic selection-screen

    Hi all,
    I want to create dynamic selection-screen.in that dynamic selectio-screen i want to display date fields based on table name given in the selection-screen.
    Regards,
    Billa

    Hi Billa,
    Look into the function group SSEL, this has some SAP standard functions to work with dynamic selection screens.
    Below is sample FM, I wrote making use of standard FM from the above. This FM will take table name as input and will display a screen with all the fields within that table for selection. This can also be customized to restrict the fields for display.
    Hope this helps,
    Sumant.
    FUNCTION y_ss_test_dynamic_selection.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(TABNAME) LIKE  DD02L-TABNAME
    *"  EXPORTING
    *"     REFERENCE(DS_CLAUSES) TYPE  RSDS_WHERE
    *"  EXCEPTIONS
    *"      TABLE_NOT_VALID
    *"      OTHER_ERROR
      DATA texpr TYPE rsds_texpr.
      DATA twhere TYPE rsds_twhere.
      DATA trange TYPE rsds_trange.
      DATA BEGIN OF qcat.                    "Selections View for
              INCLUDE STRUCTURE rsdsqcat.    "Free Selectoptions
      DATA END OF qcat.
      DATA BEGIN OF tabs OCCURS 10.
              INCLUDE STRUCTURE rsdstabs.
      DATA END   OF tabs.
      DATA BEGIN OF fields OCCURS 10.
              INCLUDE STRUCTURE rsdsfields.
      DATA END   OF fields.
      DATA BEGIN OF efields OCCURS 10.
              INCLUDE STRUCTURE rsdsfields.
      DATA END   OF efields.
      DATA selid LIKE rsdynsel-selid.
      DATA actnum LIKE sy-tfill.
      DATA title LIKE sy-title VALUE 'Selection Screen'.
      DATA: maxnum LIKE sy-subrc VALUE '69'.
      CLEAR    tabs.
      tabs-prim_tab = tabname.
      COLLECT  tabs.
      DATA: position LIKE dd03l-position.
      DATA: keyflag  LIKE dd03l-keyflag.
      CLEAR fields.
      fields-tablename = tabname.
      fields-sign      = 'I'.
      DATA: step LIKE sy-subrc.
      SELECT fieldname keyflag position
        INTO (fields-fieldname, keyflag, position)
        FROM dd03l
        WHERE tabname = tabname
          AND fieldname NOT LIKE '.INCLU%'
          AND datatype NE 'CLNT'
        ORDER BY position.
        ADD 1 TO step.
        CHECK step LE maxnum.
        IF keyflag <> 'X'.
          efields = fields.
          APPEND efields.
        ENDIF.
        APPEND fields.
      ENDSELECT.
      IF sy-subrc <> 0.
        RAISE table_not_valid.
      ENDIF.
      CALL FUNCTION 'FREE_SELECTIONS_INIT'
           EXPORTING
                expressions              = texpr
                kind                     = 'F'
           IMPORTING
                selection_id             = selid
                expressions              = texpr
                where_clauses            = twhere
                field_ranges             = trange
                number_of_active_fields  = actnum
           TABLES
                tables_tab               = tabs
                fields_tab               = fields
                fields_not_selected      = efields
           EXCEPTIONS
                fields_incomplete        = 01
                fields_no_join           = 02
                field_not_found          = 03
                no_tables                = 04
                table_not_found          = 05
                expression_not_supported = 06
                incorrect_expression     = 07
                illegal_kind             = 08
                area_not_found           = 09
                inconsistent_area        = 10
                kind_f_no_fields_left    = 11
                kind_f_no_fields         = 12
                too_many_fields          = 13.
      IF sy-subrc = 0.
        CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
             EXPORTING
                  selection_id            = selid
                  title                   = title
             IMPORTING
                  where_clauses           = twhere
                  expressions             = texpr
                  field_ranges            = trange
                  number_of_active_fields = actnum
             TABLES
                  fields_tab              = fields
             EXCEPTIONS
                  internal_error          = 01
                  no_action               = 02
                  no_fields_selected      = 03
                  no_tables_selected      = 04
                  selid_not_found         = 05.
        IF sy-subrc = 0.
          CLEAR ds_clauses.
          MOVE tabname TO ds_clauses-tablename.
          READ TABLE twhere WITH KEY ds_clauses-tablename INTO ds_clauses.
          IF sy-subrc <> 0.
            RAISE other_error.
          ENDIF.
        ELSE.
          RAISE other_error.
        ENDIF.
      ELSE.
        RAISE other_error.
      ENDIF.
    ENDFUNCTION.

  • Issue with MB25 BDC for Dynamic Selection Screen

    Hi Experts,
    I recorded one BDC for MB25 Tcode regarding to determine Open Reservation(s) in E Mode (Display Mode). I am passing 3 parameters.
    1. Plant,
    2. Requirement Date
    3. Multiple Reservation Numbers i.e. RSNUM from Dynamic Selection i.e. 2nd Button -> Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    But while executing that BDC, I need to manually click every time on 'Header Data for Reservation' Tree and then Multiple Selection for Reservation Icon.
    I want below steps automatically while executing:
    - Open 'Header Data for Reservation' Tree
    - Click Reservation
    - Open Popup for 'Multiple Selection'.
    So no need to click every time on Dynamic Selection Screen i.e. Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    Please find attached screen shot for your reference.
    Please guide.
    Thanks and Regards,
    Emon Master

    Hello Jainam,
    submit (sy-repid) with selection-table v_sp
                             with free selections EXPRESSIONS
                             via selection-screen.
    Without going through the details, dont you think this will cause an inifinite loop as the calling & the called programs are the same.
    Please enlighten me !!
    BR,
    Suhas

  • Dynamic selection screen with ABAP web dynpro

    Hi all.
        How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.

    hi yinglak.....
             this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
    in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
    ---regards,
       alex b justin

  • Are there any other left eye dominant (or left handed) iPhone users that experience problems with the touch screen keyboard selecting the letter next to the one you'd intended..?

    Are there any other left eye dominant (or left handed) iPhone users that experience problems with the touch screen keyboard selecting the letter next to the one you'd intended..?

    It's either hand right or left.
    I have the same issue myself.  Not sure if it's b/c my fingers are too big or if I'm really missed the letter on the keyboard.

  • Passing data to dynamic selection screen

    Hi Guys ,
    I need to pass some field values captured in my report to transaction FBL5N . The problem is that one of the fields which i need to input the value in FBL5N is a dynamic selection in FBL5N and is not in the standard selection screen . How do I pass the value to this field .
    Any sort of help would be great .
    thanks

    If a parameter ID is assigned to the field with dynamic selection in FBL5N, you can pass the value by means of SET PARAMETER ID statement.
    Regards,
    Renata

  • Passing values to a dynamic selection screen via a report

    Hi,
    I have the following problem and need to seek your expertise urgently.
    In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
    Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
    Appreciate any help given.
    Thanks,
    CK

    Hello CK,
    Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

Maybe you are looking for

  • Sql*loader and sequence() for primary keys

    I have a question regarding SQL*Loader with the sequence() function and using it for a primary key to load records in multiple tables from one input record. I am pulling data from a delimited file and populating several tables from each row. For the

  • Connectivity issues with AT

    I lose connectivity to AT&T cellular data since update to iOS 8.  If I turn iPad off and then on, connectivity is back, but then I lose it again in about 24 hours.  Never had this problem before update.  Any suggestions?

  • Can't get my ejbs work in orion...

    Hi everybody, I'm a newbie in EJBs, so I was trying to deploy some basic ejbs in orion, but all I get when I try to invoke a method is Servlet error: Unable to get home interface: javax.naming.NameNotFoundException: ejb/UserHome not found in myApp It

  • I can not start SAP system

    I have problem about starting SAP system. I executed stopsap  command. After that I rebooted the HPUX system. And I try to execute startsap command.System gives me message below. brckxits:bxdadm 22> startsap Checking ORC Database ABAP Database is not

  • Oracle Projects AIM documents template - BR100, TE, BP Etc

    Hi All, Can someone help me in getting the AIMs doc for oracle project costing / billing / managment R12? It would be gr8 to have any of the business process doc / functional specs ( BR100) / Test cases / Migration Doc / Gap analysis doc etc. Just te