Disable the select-options dynamically based on value selected in listbox

Hi friends,
I have a peculiar problem in my program.
I have a list box with two values.
1) With Ref to Reservation No.
2) Production order.
I am doing the object for Transfer Posting ( Similar to MIGO).
The contents of the listbox here are acting as the label to my select-options.
I have two select-options in my program.
1) Reservation No (s_rsnum for rsnum)
2) Production Order (s_porder for aufnr)
In runtime, based on the label selected in the listbox, the corresponding select-option should be in visible mode.
for eg: if i select "With ref to Reservation No" S_rsnum should be enabled and vice-versa.

Hi,
here an example with listbox:
TABLES: MARA.
PARAMETERS: P0 DEFAULT 'KAUF' LIKE MARA-MTART AS LISTBOX VISIBLE LENGTH 8 USER-COMMAND DUMMY.
SELECTION-SCREEN: SKIP 3.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID DI1.
SELECTION-SCREEN: SKIP 3.
SELECT-OPTIONS: S_MATKL FOR MARA-MATKL MODIF ID DI2.
AT SELECTION-SCREEN OUTPUT.
  IF P0 = 'KAUF'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 EQ 'DI1'.
        SCREEN-ACTIVE      = '1'.
        SCREEN-INPUT       = '1'.
        MODIFY SCREEN.
      ENDIF.
      IF SCREEN-GROUP1 EQ 'DI2'.
        SCREEN-ACTIVE      = '0'.
        SCREEN-INPUT       = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
  IF P0 <> 'KAUF'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 EQ 'DI1'.
        SCREEN-ACTIVE      = '0'.
        SCREEN-INPUT       = '0'.
        MODIFY SCREEN.
      ENDIF.
      IF SCREEN-GROUP1 EQ 'DI2'.
        SCREEN-ACTIVE      = '1'.
        SCREEN-INPUT       = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
use your own listbox in If-Clauses.
Regards, Dieter

Similar Messages

  • Dynamically display title based on value selected in column selector

    Hi All,
    Can it be possible to show the report title dynamically based on value selected in column selector . suppose i have two column status and region . When i will select status in the column selector the title of the report will show " Status Summary" when i will select region then the title will change to "Region Summary". Please help me...

    Hi,
    create dashboard prompt with column selector functionality like following way
    write the following query in your dashboard prompt sql results
    select region name from subject area name
    Union all
    select sub_region name from subject area name
    like this and put one presentation variable for this dashboard prompt like var1
    in your report write formula in your column like this *case when @{var1)='region column' then 'Region Summary' else ' ' end*
    and refer this column in narrative view like @1 then narrative act like a title view.
    Hope this helps you
    Regards
    Naresh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • What is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.

    Hello Gurus,
    I want to know what is the procedure/code in VBA for passing the calc scripts dynamically based on the selection.
    For example:
    X=EssVCalculate("Sheetname","Calc_Script name",True)
    In the above code instead of the *"Calc_Script name"* I want a script which is called dynamically and the values are calculated accordingly.
    Thanks in advance
    Saurabh

    Hi Todd,
    This is the situation:
    I have a calc script in Essbase which I can call to perform the calculations on the current sheet that is retrieved. I want calculation for the following formulas:
    x = EssVCalculate("Sheet2", "CalcBC", False)
    CalcBC is my calc script which is present in Essbase
    So instead of passing the above script I want to pass the conditions dynamically in the VBA code . I don't want to mention the script name directly in EssVCalculate option
    For example:
    I have three drop down menus from which I would select three different( zero level )members. It would then retrieve the data for that particular values in the excel sheet and now when I click on Calculate button it should calculate the script dynamically.
    I don't know how calc scripts can be executed dynamically in the VBA code itself.
    Thanks in Advance
    Saurabh

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

  • Populating select-options dynamically

    Hey Everybody,
    I've done some reports with Select-options, but all the fields directly related to some field in a transparent table. As many of you might have experienced, things changed with the latest report that I have to develop.
    I have to derive the drop-down for the select-options dynamically.
    Could anybody provide me with the details, code snippets, hints on how to do this.
    Thank You.
    Sumit.

    Here is an example program where you are generically defining the select-option and building its F4 help at runtime.
    report zrich_0001 .
    data: begin of ihelp occurs 0,
          field type char10,
          ftext type char50,
          end of ihelp.
    data: a_field(20) type c.
    select-options s_field for a_field.
    initialization.
      ihelp-field = 'A'.
      ihelp-ftext = 'Description A'.
      append ihelp.
      ihelp-field = 'B'.
      ihelp-ftext = 'Description B'.
      append ihelp.
      ihelp-field = 'C'.
      ihelp-ftext = 'Description C'.
      append ihelp.
    at selection-screen on value-request for s_field-low.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'FIELD'
                dynprofield = 'S_FIELD'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = ihelp.
    start-of-selection.
    REgards,
    Rich Heilman

  • How to configure the schema name dynamically based on user input.

    configure the schema name dynamically based on user input.
    For ex:
    We have two schemas:
    Schema1  - base schema having 15 tables.
    Schema2 -  tables which is specific to modules. Having only 10 tables which is also available in Schema1
    Login to application using Schema 1
    Access a particlular module and select the country. Here country selection is identified.
    Based on the country selection, we need to connect the schema respectively.
    If the user selects France --> It should connect Schema1
    If the user selects Germeny --> It should connect schema2.
    Used: Eclipselink

    You may want to have a different persistence unit for each country, then you just need to switch persistence units, and can put the schema in your orm.xml file.
    You may also want to investigate EclipseLink multi-tenant support,
    http://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/a_multitenant.htm
    You can the schema in a persistence unit in code using a SessionCustomizer and the tableQualifier.

  • How to generate controls dynamically based on value stored in database using mvc4?

    In my database, i have a field called control_ids corresponding to  text box, dropdownlist, radiobuttonlist etc. My goal is to
    create controls dynamically based on value of control_id-field in table. Anybody please help me how to create the controls dynamically in MVC 4 for this scenario.

    In your view you could do something like that:
    foreach (var field in Model.FormStruture.fields)
    <div class="editor-label">
    <label for="@field.Name">@field.Descricao</label>
    </div>
    <div class="editor-field">
    <input class="text-box single-line" id="@field.Name" name="@field.Name" type="text" value="@field.Valor" data-rules-required="@field.Mandatory.ToString().ToLower()" data-rule-number="@field.Tipo.Equals(SiB.OCR.Documentos.Modelo.TipofieldDocumento.Numerico).ToString().ToLower()" title="@field.Descricao" />
    </div>
    if (!String.IsNullOrEmpty(field.Format))
    @:<script type="text/javascript">$("[email protected]").mask("@field.Format");</script>

  • Want 2 populate value in 2nd list item based on value selected in 1st list?

    Want 2 populate value in 2nd list item based on value selected in 1st list?

    Gaurav -
    The 3rd list will not populate because nothing has been selected yet in list 2. The value in list 2 is null, so the loop to populate list (3) has nothing to load. Try the following below. This should seed your 2nd list so the 3rd list will populate.
    You will have to declare first_record boolean and first_value to match DESCC.
    first_record := true; -- NEW *****
    Clear_List('BLOCK2.ITEM2');
    FOR CurRec IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.IDD = :BLOCK2.ITEM1)
    LOOP
    if first_record = true then -- NEW SECTION *****
    first_value := CurRec.DESCC;
    first_record := false;
    end if;
    Add_List_Element('BLOCK2.ITEM2',1,CurRec.DESCC,CurRec.DESCC);
    END LOOP;
    :block2.item2 := first_value; -- NEW *****
    Clear_List('BLOCK2.ITEM3');
    FOR CurRec2 IN (SELECT UNIQUE DESCC DESCC FROM LUTT where LUTT.DESCC = :BLOCK2.ITEM2)
    LOOP
    Add_List_Element('BLOCK2.ITEM3',2,CurRec2.DESCC,CurRec2.DESCC);
    END LOOP;
    My name is Ken, 1990 is when I started using Oracle Forms 3.0, character based in the Unix environments. And you are very welcome.

  • How do I disable the TTY option on my i phone (Version 5.1.1.)

    How do I disable the TTY Option on my I phone 4 (Version 5.1.1.)

    The only time that setting should not appear is if there is a sim in your phone from a non-supported iPhone carrier. Then, TTY can be turned on by default. So, try this:
    Settings>General>Reset>Reset All Settings.
    That should get rid of the icon regardless.

  • HOW TO DISABLE THE SAVEAS OPTION OF A BROWSER?

    Hi all,
    Nice to be back again folks.....
    Well I need to develop an Applet (perhaps even a swing) which when loaded by any browser would disable the SaveAs option of the browser's File menu.
    I tried using the Frame class of java.awt package, the code is:
    import java.awt.*;
    import java.applet.*;
    public class WinAppl extends Applet
    int mc;
    String str="NO OF MENUS: ";
    Font fnt=new Font("Arial",Font.BOLD,12);
    MenuBar mb;
    Frame frame=new Frame("SNODX");
    Window window;
    public void init()
    frame.setBackground(Color.red);
    frame.setForeground(Color.black);
    this.setFont(fnt);
    mb=frame.getMenuBar();
    if(mb!=null)
    mc=mb.getMenuCount();
    str+=mc;
    else
    str+="ZERO";
    public void paint(Graphics g)
    g.drawString(str,50,50);
    but when this applet is loaded ALL the menus of the browser disappear .i.e when this frame applet is loaded by the browser only the title bar of the browser and a red colored window appear, no menus. I dont want all the menus to be hidden, just the SaveAs option of Browser's File Menu to be disabled.
    Thanks in advance.
    True to my nature I am posting this question in some of the other Java forums as well. And as usual sorry for the multiple postings.
    snodx

    Applets usually have absolutely no control over the browser they are running in (with the exception of loading other web pages and other very high level stuff). You won't be able to write an applet that disables entries in the menu bar. And even if you could it wouldn't really help you because most browsers write everything they download to disc (to the cache) where it can be recovered by anybode.
    Last but not least: there are lots of tools for mirroring web sites that will allow users to download and save anything that is accessible for browsers.
    However, you may be able to disable the menu bar and perhaps even change entries in some browsers like ie by activeX controls or javascript. Still this is not a very friendly way for a website to behave...

  • How to disable the print option in A. Reader (using JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
    "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
    preferably using the JavaScript language).
    Thanks in advance!
    Dan

    HI!
    I have the same problem =)
    I have fixed this issue using the "app.fs.isFullScreen = true;" statement.
    Doing this you don't see toolbar anymore.
    You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.
    Below there is a very interesting document:
    http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf
    I'm sorry for my poor english :-)
    Bye,
    Roberto (from Italy)
    Ps= Do you know how I can obtain a list of required fields in a form?
    thank's!

  • How to disable the print option in A. Reader (in JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the
    "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document (
    preferably in JavaScript language).
    Thanks in advance!
    Dan

    HI!
    I have the same problem =)
    I have fixed this issue using the "app.fs.isFullScreen = true;" statement.
    Doing this you don't see toolbar anymore.
    You can use "hideToolbarButton" instruction and, maybe, you can obtain a more interesting result.
    Below there is a very interesting document:
    http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf
    I'm sorry for my poor english :-)
    Bye,
    Roberto (from Italy)
    Ps= Do you know how I can obtain a list of required fields in a form?
    thank's!

  • Disabling the queries option via RRMX

    Hello Experts,
    I need to disable the queries option which we get when we click on the folders option after executing tcode RRMX.
    This is required in order to restrict the reporting user to execute queries.He should not be able to see this queries option. Can someone please guide me with this,how can I actually implement this restriction.
    Thanks..
    Best Regds,
    Suyog...

    Hello,
    Yes,
    There is an authorization to the transaction RRMX in a role provided to your users.
    Just remove that option of the role (or if all of its contents in the role is only the access to the transaction RRMX remove the all role from the users).
    There you go,
    Diogo.

  • Disabling Maximize option from JFrame without disabling the resizing option

    Hi all,
    I want to know how we can disable the maximize option of a JFrame window without disabling the resizing option. I have tried JFrame.resizable(false). It disables both maximizing and resizable option. But I need the resizable option to be working.
    Anyone can help me?
    Thanks in Advance

    this works OK on 1.5.0_05 (unsure about other versions)
    and you'll lose the minimize as well
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame("JFrame");
        f.setUndecorated(true);
        f.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Disable the registration option

    Is it possible to disable the registration option on Help
    Menu of Adobe Contribute CS3 (v4.1)?

    Currently, there isn't a way to do this. But this has reacently become a common feature request and we are working to get it added.

Maybe you are looking for