Dynamic select with select-opitons

Hi all,
i have a selction screen with a Select-options : S_monat for bkpf-monat.
Depending on what the user has entered in that selection i need to select the field WOG001 to WOG016 from table COSP.
for example if user has entered Period '01' to Period '12' , then i should do SELECT  ( WOG001 to WOG012) from COSP. How to program that dynamic select fields??
Cann anyone help???
Thanks!

I hope this will solve your porblem.
SELECt-OPTIONS: monat for bkpf-monat OBLIGATORY.
DATA: BEGIN OF ITAB,
     WTG001 TYPE COSP-WTG001,
     WTG002 TYPE COSP-WTG002,
     WTG003 TYPE COSP-WTG003,
  END OF ITAB.
BREAK-POINT.
LOOP AT monat.
  if monat-LOW = '01'  AND MONAT-HIGH IS INITIAL.
    select SINGLE WTG001 FROM cosp INTO CORRESPONDING FIELDS OF ITAB where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
elseif   monat-LOW = '01'  AND MONAT-HIGH eq '01'.
    select SINGLE WTG001 FROM cosp INTO CORRESPONDING FIELDS OF ITAB where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.   
ELSEIF MONAT-HIGH = '02'.
         select SINGLE WTG001 WTG002 INTO CORRESPONDING FIELDS OF ITAB FROM cosp where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
           ELSEIF MONAT-HIGH = '03'.
         select SINGLE WTG001 WTG002 WTG003 INTO CORRESPONDING FIELDS OF ITAB FROM cosp where kstar = '0007110102' and vrgng eq 'COIN' AND BEKNZ = 'H'.
ENDIF.
ENDLOOP.}
Edited by: ZAHID HAMEED on Aug 9, 2011 12:35 AM
Edited by: ZAHID HAMEED on Aug 9, 2011 12:38 AM

Similar Messages

  • Dynamic Pivot with Select Into

    I have this Dynamic Pivot which works fine.
    DECLARE @query VARCHAR(4000)
    DECLARE @years VARCHAR(2000)
    SELECT @years = STUFF(( SELECT DISTINCT'],[' + [factor_label]
    FROM [TEMP_lacp_factors]
    ORDER BY '],[' + [factor_label]
    FOR XML PATH('')
    ), 1, 2, '') + ']'
    SET @query =
    'SELECT * FROM
    SELECT [date_],[issue_id],[cusip],[Factor_value],[factor_label]
    FROM [TEMP_lacp_factors]
    )t
    PIVOT (MAX([factor_value]) FOR [factor_label]
    IN ('+@years+')) AS pvt'
    EXECUTE (@query)
    I'm trying to take the results of that and do a SELECT INTO, so I can move the results to another table.  Is this possible?  I didn't find a whole lot online.
    The error that I'm getting is this.
    Caused by: Column name or number of supplied values does not match table definition.
    How can I do this?  Is it even possible?
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Sure, you can create a table with SELECT INTO, but it cannot be a #temptable. Well, it can be a #temptable, but it will disappear as soon as you exit the scope it was created it, that is the dynamic SQL.
    The question is only, what would you do with this table later? Since you don't know the column names, about all work will have to be done through dynamic SQL.
    A dynamic pivot is a non-relational operation. A SELECT statement produces a table, and a table describes a distinct entity, of which the column are distinct and well-defined attributes. Something which your dynamic pivot does not adhere to.
    There is only one thing you can do with your dynamic pivot: returning the data to the client. I don't know what you want to do with that table, but probably you should do that manipulation before the dynamic pivot, because as I said: that is always your
    last step.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Mulitple selection with select option on subscreen

    Hi colleagues,
       I've the following issue:
    I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
    The top subscreen (0150) area will be filled with a generated subscreen with the command
      SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
    with select options I define my selection area like:
    SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
       If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
       Any clues what I need to add that it will show up?
       Does the mulitply selection not work with
    SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
    (If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)

    Hi,
    A subscreen cannot call another screen.
    I guess this is the reason why u are facing this problem.
    Thanks,
    Rashmi.

  • Auto select with select box

    Hi
    I have a site which has 8 services.each service has it own
    page. When the user goes to the service page there will be a link
    which will take them to a form. I want the form to be able to
    identify which service is there and select that one automatically.
    I have done this previously but only with a form. Can you
    please help me to fix this.
    Link on service page
    <a href="moreinfo.cfm?service=WorkGroup Consultancy">Click
    here for Further Information</a>
    select box in form
    <select name="service">
    <option value="UK Immigration" <cfif
    structKeyExists(form,"UK Immigration") AND form.service eq
    "WorkGroup Consultancy">selected="selected"</cfif>>UK
    Immigration</option>
    <option <cfif structKeyExists(form,"WorkGroup
    Consultancy") AND form.service eq "WorkGroup
    Consultancy">selected="selected"</cfif>value="WorkGroup
    Consultancy">WorkGroup Consultancy</option>
    <option value="Legal Managment Software" <cfif
    structKeyExists(form,"Legal Managment Software") AND form.service
    eq "Legal Managment
    Software">selected="selected"</cfif>>Legal Managment
    Software</option>
    <option value="Search Engine Optimization" <cfif
    structKeyExists(form,"Search Engine Optimization") AND form.service
    eq "Search Engine
    Optimization">selected="selected"</cfif>>Search Engine
    Optimization</option>
    <option value="Marketing Consultancy" <cfif
    structKeyExists(form,"Marketing Consultancy") AND form.service eq
    "Marketing
    Consultancy">selected="selected"</cfif>>Marketing
    Consultancy</option>
    <option value="Project Management" <cfif
    structKeyExists(form,"Project Management") AND form.service eq
    "Project Management">selected="selected"</cfif>>Project
    Management</option>
    <option value="Training" <cfif
    structKeyExists(form,"Training") AND form.service eq
    "Training">selected="selected"</cfif>>Training</option>
    <option value="Web Design"<cfif
    structKeyExists(form,"Web Design") AND form.service eq "Web
    Design">selected="selected"</cfif>>Web
    Design</option>
    </select>

    I have tried both was and still cannot get it to work. Please
    shwo me the correct way to do this
    <cfselect name="service" selected="#url.service#">
    <option value="UK Immigration" >UK
    Immigration</option>
    <option value="WorkGroup Consultancy">WorkGroup
    Consultancy</option>
    <option value="Legal Managment Software" >Legal
    Managment Software</option>
    <option value="Search Engine Optimization" >Search
    Engine Optimization</option>
    <option value="Marketing Consultancy" >Marketing
    Consultancy</option>
    <option value="Project Management">Project
    Management</option>
    <option value="Training" >Training</option>
    <option value="Web Design">Web Design</option>
    </cfselect>
    And the other way
    option value="UK Immigration" <cfif structKeyExists(URL,"UK
    Immigration") AND url.service eq "WorkGroup
    Consultancy">selected="selected"</cfif>>UK
    Immigration</option>
    <option <cfif structKeyExists(url,"WorkGroup
    Consultancy") AND url.service eq "WorkGroup
    Consultancy">selected="selected"</cfif>value="WorkGroup
    Consultancy">WorkGroup Consultancy</option>
    <option value="Legal Managment Software" <cfif
    structKeyExists(url,"Legal Managment Software") AND url.service eq
    "Legal Managment
    Software">selected="selected"</cfif>>Legal Managment
    Software</option>
    <option value="Search Engine Optimization" <cfif
    structKeyExists(url,"Search Engine Optimization") AND url.service
    eq "Search Engine
    Optimization">selected="selected"</cfif>>Search Engine
    Optimization</option>
    <option value="Marketing Consultancy" <cfif
    structKeyExists(url,"Marketing Consultancy") AND url.service eq
    "Marketing
    Consultancy">selected="selected"</cfif>>Marketing
    Consultancy</option>
    <option value="Project Management" <cfif
    structKeyExists(url,"Project Management") AND url.service eq
    "Project Management">selected="selected"</cfif>>Project
    Management</option>
    <option value="Training" <cfif
    structKeyExists(url,"Training") AND url.service eq
    "Training">selected="selected"</cfif>>Training</option>
    <option value="Web Design"<cfif
    structKeyExists(url,"Web Design") AND url.service eq "Web
    Design">selected="selected"</cfif>>Web
    Design</option>

  • CS5 Disable Picture Content Select with Selection Tool

    I'm not sure if this was added in CS4, because I skipped CS4, but I know it wasn't there in CS3. With my Selection Tool (solid cursor), I can grab the contents of a picture box represented by circle mark that appears in the center of an image on mouse rollover. If I come close to it, I grab the picture, not the frame (what I don't want). But if I keep my selection closer to the edge, I select box and contents (what I want). How can I disable this feature? I have looked through my preferences to no avail. I mean, I thought that's what the Direct Selection Tool was for? If I want the contents selected, I use the hollow cursor. Why mess with that? Please tell me this can be disabled. It would make my day.

    I did a search, but was hitting nothing. And I was looking in the wrong spot for it in the app.
    You... have made my day. Thank you, thank you.

  • Checkedlistbox allows multiple selections with Selection mode set to one

    I have a simple CheckedListBox with three options. I set Selection Mode to One. When I test the form, it allows me to have more than one box checked. I can clear the other two with a program, but my understanding of Selection Mode was that it would not
    allow more than one box to be checked if set on one.

    Option Strict On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    CheckedListBox1.SelectionMode = SelectionMode.One
    For i = 1 To 10
    CheckedListBox1.Items.Add("Number" & i.ToString)
    Next
    End Sub
    Private Sub CheckedListBox1_ItemCheckChanged(sender As Object, e As ItemCheckEventArgs) Handles CheckedListBox1.ItemCheck
    Dim ItemIndex As Integer = e.Index
    For i = 0 To CheckedListBox1.Items.Count - 1
    If i <> ItemIndex Then
    CheckedListBox1.SetItemCheckState(i, CheckState.Unchecked)
    End If
    Next
    End Sub
    End Class
    La vida loca

  • Populate values selects with select one choice

    How I can to create in Java??

    use a managed bean property of type ArrayList<SelectItem> and generate accessors. The reference it from f:selectItems in the selectOneChoice
    Frank

  • Dynamic column name with SELECT INTO

    I am trying to build a function that derives a pay amount from a set of business rules. There are about 40 columns that hold various pay amounts and their column names are variations of 4 indicators (day shift, vs night shift, etc.) that I have to dynamically look up, ie here is the ID number and a timecard, now figure out which of the 40 fields to look up to get the pay amount.
    I can determine from the timecard and employee ID which field to look at, but I'm getting hung up with the syntax needed to construct and execute the statement inside the PL/SQL block. I need to RETURN the pay I extract using the function, and I can create the correct SQL statement, but the EXECUTE IMMEDIATE won't accept the SELECT INTO syntax.
    Can someone please suggest a solution? Here is the function:
    create or replace FUNCTION FN_GET_PAYRATE(tc in NUMBER, e in NUMBER, pc in VARCHAR2)
    RETURN NUMBER
    IS
    e_id NUMBER;
    tc_id NUMBER;
    pl_cd VARCHAR2(7);
    shft VARCHAR2(2);
    lvl VARCHAR2(2);
    typ VARCHAR2(2);
    e_typ VARCHAR2(4);
    proj NUMBER;
    hrly VARCHAR2(4);
    payrt NUMBER;
    var_col VARCHAR2(10);
    sql_select VARCHAR2(200);
    sql_from VARCHAR2(200);
    sql_where VARCHAR2(200);
    sql_and1 VARCHAR2(200);
    sql_and2 VARCHAR2(200);
    sql_and3 VARCHAR2(200);
    sql_orderby VARCHAR2(200);
    var_sql VARCHAR2(2000);
    BEGIN
    e_id := e;
    tc_id := tc;
    pl_cd := pc;
    SELECT NVL(SHIFT,'D') INTO shft
    FROM TS_TIMECARD_MAIN
    WHERE TIMECARD_ID = tc_id;
    --DBMS_OUTPUT.PUT_LINE('SHIFT= ' || shft);
    SELECT NVL(PAY_LVL, 1), NVL(PAY_TYPE, 'B'), NVL(RTRIM(EMP_TYPE), 'LHD'), NVL(PROJECT, 001)
    INTO lvl, typ, e_typ, proj
    FROM TS_EMPLOYEES
    WHERE EMP_ID = e_id;
    --DBMS_OUTPUT.PUT_LINE('Level= ' || lvl);
    --DBMS_OUTPUT.PUT_LINE('PAY_TYPE= ' || typ);
    --DBMS_OUTPUT.PUT_LINE('EMP_TYPE= ' || e_typ);
    --DBMS_OUTPUT.PUT_LINE('PROJECT= ' || proj);
    IF e_typ <> 'LHD' THEN
    hrly := 'H';
    ELSE
    hrly := '';
    END IF;
    IF proj <> 001 THEN
    var_col := shft || lvl || typ || hrly;
    --DBMS_OUTPUT.PUT_LINE('RATE COLUMN= ' || var_col);
    sql_select := 'SELECT NVL(' || var_col || ', .01) INTO payrt';
    sql_from := ' FROM TS_PAYRATES';
    sql_where := ' WHERE PROJECT_ID = ' || proj;
    sql_and1 := ' AND ACTIVE = 1';
    sql_and2 := ' AND JOB_TYPE = ' || CHR(39) || e_typ || CHR(39);
    sql_and3 := ' AND PILE_ID = ' || CHR(39) || pl_cd || CHR(39);
    var_sql := sql_select || sql_from || sql_where || sql_and1 || sql_and2 || sql_and3 || sql_orderby;
    DBMS_OUTPUT.PUT_LINE('SQL: ' || var_sql);
    EXECUTE IMMEDIATE var_sql;
    DBMS_OUTPUT.PUT_LINE('RATE= ' || payrt);
    RETURN payrt;
    ELSE
    DBMS_OUTPUT.PUT_LINE('ERROR');
    RETURN 1;
    END IF;
    END;
    I have alternately tried this:
    SELECT NVL(var_col,.01) into payrt
    FROM TS_PAYRATES
    WHERE PROJECT_ID = proj AND ACTIVE = 1
    AND JOB_TYPE = CHR(39) || e_typ || CHR(39)
    AND PILE_ID = CHR(39) || pl_cd || CHR(39);
    as a substitute for the EXECUTE IMMEDIATE block, but I can't seem to use a dynamic substitution for the column name.
    Any help would be greatly appreciated.

    That's the most difficult part - the error messages seem to indicate a problem with the SQL statement in its execution context, because I can take the SQL string by itself and it executes perfectly.
    Here are three variations:
    SELECT INTO
    select fn_get_payrate(21555, 30162, 15) from dual
    ERROR at line 1:
    ORA-00905: missing keyword
    ORA-06512: at "PEOPLENETIF.FN_GET_PAYRATE", line 60
    SQL: SELECT NVL(N4P , .01) INTO payrt FROM TS_PAYRATES WHERE PROJECT_ID = 701 AND ACTIVE = 1 AND JOB_TYPE = 'LHD' AND PILE_ID = '15'
    Without SELECT INTO  (returns NULL)
    SQL> select fn_get_payrate(21555, 30162, 15) from dual;
    FN_GET_PAYRATE(21555,30162,15)
    SQL: SELECT NVL(N4P , .01) FROM TS_PAYRATES WHERE PROJECT_ID = 701 AND ACTIVE = 1 AND JOB_TYPE = 'LHD' AND PILE_ID = '15'
    RATE=
    EXECUTE IMMEDIATE USING
    SQL> select fn_get_payrate(21555, 30162, 15) from dual;
    select fn_get_payrate(21555, 30162, 15) from dual
    ERROR at line 1:
    ORA-01006: bind variable does not exist
    ORA-06512: at "PEOPLENETIF.FN_GET_PAYRATE", line 61
    SQL: SELECT NVL(N4P , .01) FROM TS_PAYRATES WHERE PROJECT_ID = 701 AND ACTIVE = 1 AND JOB_TYPE = 'LHD' AND PILE_ID = '15'

  • How to create VO with multiple dynamic where clauses on select with UNION?

    I am trying to implement the View Object for the UNION query that looks like this:
         select a,b,c...
              from t1,t2,...
              where dynamic_where_clause1     
         union all
         select a,b,c,...
              from t11,t12, ...
              where dynamic_where_clause2
    There are up to 60 input parameters that are used to generate dynamic where clauses. They are actually created by calling PL SQL function.
    So far, I was not able to assign both where clauses to the view object. Is there a workable solution for this problem, besides resorting to programmatic View Object?
    I understand that recommended way with UNIONs is to wrap both queries into a parent select:
    select * from (
         select a,b,c...
              from t1,t2,...
              where ... -- table relationship joints
         union all
         select a,b,c,...
              from t11,t12, ...
              where ... -- table relationship joints
    ) QRSLT
         where dynamic_where_clause
    Unfortunately this approach doesn't work here, since individual selects are producing unmanageable amount of data and resulting query takes forever to complete.

    I afraid I would not have any real benefits from using VO if I replace the entire query with every request. Actually, the performance may suffer.
    I solved the problem by creating a POJO Data Control and invoking the custom select query from java. Not sure if it is the best approach to the problem, but implementation time is limited and it works.
    Actually, this is not the first time I see the need to implement VO with complicated SQL like select with unions and dynamic pieces. It would be nice to find a solution and not resort to workarounds.
    Edited by: viksicom on Aug 2, 2012 8:48 AM

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Dynamic LOV with dates and selected default value

    Hello,
    I have a dynamic lov with dates. Query looks like this:
    select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
    from ...
    No I want to select a specific date as the default value. I put the following code for the default value:
    declare
    begin
    return to_char ('2008.02.19 10:00');
    end;
    But it doesn't work.The date (string) exists in the lov but it is not selected.
    Can someone tell me where the problem is?
    Thx in advance.
    Greetings,
    hamburger

    Hi hamburger,
    As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
    so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
    Hope this helps.
    chrissy

  • No selection with SIGN = 'I'; OPTION 'GE' allowed

    Hello All,
    I have added an ABAP routine in one of the InfoPackage to filter a field CREATDATE(char,8).
    Whenever I am executing the InfoPackage I am getting the following error:-
    For sel. field 'CREATDATE', no selection with SIGN = 'I'; OPTION 'GE' allowed
    Message no. RSM1607
    Through debugging I have noticed that after the EndForm of the InfoPackage filter the Program control goes to a System Program "RSS2_INTERPRET_SELOPTS_DS". All the Selection Options (EQ, BT, GE, GT, NE, LT, etc ) are defined in this program and the program control ignores the 'GE' option code specified in the program "RSS2_INTERPRET_SELOPTS_DS".
    if not l_s_so-ge is initial.
            clear l_s_selopts.
            l_s_selopts-sign = 'I'.
            l_s_selopts-option = 'GE'.
            l_s_selopts-single = 'X'.
            append l_s_selopts to e_t_selopts.
          endif.
    Can anyone help how to resolve this.
    Thank You
    Edited by: RACHANA_CG on Sep 27, 2010 2:28 PM

    Hi,
    I guess in Infopackage filter routine, you can only declare multiple single values or a range i.e technically I EQ & I BT.
    Excluding or greater/less functions are disregarded. You can create a dynamic infopackage filter to have all the dates say for the next two years from the start date & run it.
    --Akashdeep

  • How to change the select options selection text dynamically in webdynpro abap ?

    I am using standard interface WDR_SELECT_OPTIONS.... i want to change the Selection text dynamically in my select options.I.E. if the select option is for VBELN field than i want to change its description SALES ORDER Number through Code to some other text.
    If anyone can please help me in this.

    Hi,
    You can achieve your requirement as below
    Get the range table of your selection field as below
              data lt_range_table type ref to data.
              wd_this->m_handler->GET_RANGE_TABLE_OF_SEL_FIELD(
                        exporting
                        i_id = 'VBELN'
                        receiving
                        rt_range_table = lt_range_table ).
    Update the selection field with new description - 'Your New Text'
              wd_this->m_handler->UPD_SELECTION_FIELD(
                        exporting
                             I_ID = 'VBELN'
                             I_DESCRIPTION = 'Your New text'
                             I_IS_AUTO_DESCRIPTION = abap_false
                             IT_RESULT = lt_range_table ).
    You can also pass the other parameters as per your requirement
    Hope this helps you.
    Regards,
    Rama

  • Dynamic variant for select option High value

    Hi ,
    Please help me in creating dynamic variable for a select option date field high value.
    II tried the following method:
    1. Enter the values in the selection screen
    2. Save the variant using the SAVE button
    3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.
    4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (i.e. D - Dynamic date calculation).
    5. Click on the down arrow button and select the option 'Current Date'.
    5. Save the variant.
    But it is saving the date value in Field LOW of select option( From value).
    I need it in TO field( High value).
    Please help.
    regards,
    Sheeba

    Hi Sheeba
        we can do it other way .. Select the same steps as you have done but after the assigning the value current date to low ..click on the selection option push button at the application bar and choose the 'less than or equal to' option to your select option value and try the same ....
    I guess this would throw you same results as that of the value in the high value button
    Cheers,
    Jacks.

  • Dynamic program on selection screen

    hi friends i want to add one insert button on selection screen and when someone click that insert button a new parameter field should gets add on the screen.

    Hi,
    Chk this code.But here i took radio buttons instead of pushbuttons.Hope it will help you out.
    *& Report ZHAR_DYN_SELSCR.
    *& This program demonstrates how easy it is to set selection screen
    *& element properties dynamically
    *& The program uses 3 radio buttons to set the display and input
    *& properties of selection screen fields dynamically
    *& URL: http://allaboutsap.blogspot.com
    REPORT ZHAR_DYN_SELSCR.
    DATABASE TABLES
    tables : mara.
    SELECTION SCREEN
    selection-screen begin of block b1 with frame.
    *--- Radio buttons to set properties
    PARAMETERS:
    rad1 RADIOBUTTON GROUP rad default 'X' USER-COMMAND radio,
    rad2 RADIOBUTTON GROUP rad,
    rad3 RADIOBUTTON GROUP rad.
    *--- Selection Screen fields
    SELECT-OPTIONS:
    s_matnr FOR mara-matnr MODIF ID MI1,
    s_mtart FOR mara-mtart MODIF ID MI1,
    s_mbrsh FOR mara-mbrsh MODIF ID MI2,
    s_matkl FOR mara-matkl MODIF ID MI2.
    selection-screen end of block b1.
    AT SELECTION SCREEN
    at selection-screen output.
    loop at screen.
    *--- If Radio Button 1 is checked
    IF rad1 = 'X'.
    IF screen-group1 = 'MI2'.
    *--- Fields with MODIF ID MI2 disappear from the screen
    screen-input = 0.
    screen-invisible = 1.
    ENDIF.
    *--- If Radio Button 2 is checked
    ELSEIF rad2 = 'X'.
    IF screen-group1 = 'MI1'.
    *--- Fields with MODIF ID MI1 are input-disabled
    screen-input = 0.
    ENDIF.
    *--- If Radio Button 3 is checked
    ELSEIF rad3 = 'X'.
    IF screen-group1 = 'MI1' or screen-group1 = 'MI2'.
    *--- All fields will appear input-enabled
    screen-input = 1.
    ENDIF.
    ENDIF.
    *--- MODIFY SCREEN mandatory addition to apply changes to the screen
    Modify screen.
    endloop.
    Reward if helpful.
    Regards,
    Harini.S

Maybe you are looking for

  • How to save classical report as pdf file

    hi all, i have created a classical report and now the requirement is to save that report as a pdf . is there any FM or any other method to do so? regards vijay

  • Sony TRV-350 8mm will not import correctly into iMovie 8.0.4 (Any ideas?)

    I purchased a Sony TRV-350 because it is supposed to play all 8mm tapes, and has a bridge function that converts analog signal to DV. The camcorder also has inputs to connect a VCR to the camcorder and convert the signal to DV. I am trying to import

  • Flash Problems with Snow Leopard Mackbook Pro

    I am having trouble with Google Analytics and other websites that use hover states such as NewImageMedia.com's header. It seems the Hover Over stuff makes the Flash go crazy. When I say gow crazy I mean, it shoots the hover over stuff to the right at

  • Displaying PDF content in Adobe Air 3.2

    Hi all, I'm trying to render a locally stored sample pdf using Air 3.2 on Win7 64bit. I'm not getting any error messages and I'm pretty sure the content is being loaded.. but the actual content of the pdf is not displayed when I add it to the stage.

  • Mass upload for VK11 - Additional Data

    I'm currently using the RV_CONDITION_COPY to upload data to VK11.  However, I can't find a way to include in the upload the Additional Data (F7).  I will be including only the field "Max.number.of.orders (ANZAUF). I will appreciate your help guys.