Changing property of select options

Hi I have created a select options with the property read only = true by default, If a condition at the beginning is fulfilled I want to change the property read only of the previous field to false. I am doing it in the following way:
    DATA lt_range_table TYPE REF TO data.
  Data from select options
    rt_objid = wd_this->m_handler->get_range_table_of_sel_field( i_id = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-grupo_form ).
    ASSIGN rt_objid->* TO <fs_objid>.
  Create range tabl
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-tipo_d ).
    DATA: id TYPE string.
    id = zdcl_wdr_matriz_decision_asf=>e_atrib_m_dec_asf-tipo_d.
    REPLACE ALL OCCURRENCES OF REGEX '\W' IN id WITH '_'.
    IF NOT <fs_objid> IS INITIAL.
    update property
      wd_this->m_handler->upd_selection_field(
       i_id              = id
       it_result         = lt_range_table
       i_read_only       = abap_false ).
    ENDIF.
What is wrong here please?
Help really appreciated

Hi Jorge.
Why do you perform the replacement? Are you sure, that the ID you used while adding the field is the same as the one you use for updating? What is the rror or does just nothing happen?
Cheers,
Sascha
Message was edited by:
        Sascha Dingeldey

Similar Messages

  • Change values of select option in fuction of the variant

    Hi abappers,
    I want change the data that contain several select-options.
    I have a table internal (c_varint) that I obtain with the next code:
    CALL FUNCTION 'RS_VARIANT_CONTENTS'
         EXPORTING
              report                = '/1BCDWB/DBBKPF'
              variant               = p_varint
    *         MOVE_OR_WRITE         = 'W'
    *         NO_IMPORT             = ' '
    *         EXECUTE_DIRECT        = ' '
    *    IMPORTING
    *         SP                    =
         tables
    *         L_PARAMS              =
    *         L_PARAMS_NONV         =
    *         L_SELOP               =
    *         L_SELOP_NONV          =
              valutab               = c_varint
    *         OBJECTS               =
    *         FREE_SELECTIONS_DESC  =
    *         FREE_SELECTIONS_VALUE =
    *    EXCEPTIONS
    *         VARIANT_NON_EXISTENT  = 1
    *         VARIANT_OBSOLETE      = 2
    *         OTHERS                = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and my select-options:
    SELECT-OPTIONS I1 FOR BKPF-BUKRS.
    SELECT-OPTIONS I2 FOR BKPF-BELNR.
    SELECT-OPTIONS I3 FOR BKPF-GJAHR.
    SELECT-OPTIONS I4 FOR BKPF-BLART.
    SELECT-OPTIONS In ...
    Now I want change the values but I got not him to changed it to me :
    loop at c_varint where selname eq i1.
       MOVE-CORRESPONDING c_varint to i1.
    endloop.
    loop at c_varint where selname eq i2.
       MOVE-CORRESPONDING c_varint to i2.
    endloop.
    loop at c_varint where selname eq i3.
       MOVE-CORRESPONDING c_varint to i3.
    endloop.
    loop at c_varint where selname eq i4.
       MOVE-CORRESPONDING c_varint to i4.
    endloop.
    but I dont obtain the data
    Can you help me, please?
    Cordial greetings.

    Hi,
    the documentation of the fm you´re using says:
    RS_VARIANT_CONTENTS
    This function module checks whether any parameters or select options of the variant have changed. If they have, it outputs an error message (variant obsolete).
    have you checked fm RS_CHANGE_CREATED_VARIANT instead?
    the documentation of this fm says:
    RS_CHANGE_CREATED_VARIANT
    Functionality
    This function module enables modification of a variant without processing the selection screen. In the table VARI_CONTENTS, you must supply all select-options and parameters of the variant with values. Any selection criteria missing from this table are set to their initial values in the variant. If no value is specified for the structure description (parameter VARI_DESC), all fields - except the name of the last user to make the change, the time of the change, the version and the language - are set to their initial values. The table VARI_TEXT is optional
    Best regards

  • Changing value in SELECT-OPTIONS

    Hi All,
    I am writing a report in CRM and have a requirement of changing/modifying the value that has been entered in SELECT-OPTIONS. I tried many ways bit the changed value is not reflecting in the screen.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
       IF SOLD_TO IS NOT INITIAL.
           CONCATENATE '000' SOLD_TO-LOW INTO ZLV_SOLD_TO.
           CLEAR SOLD_TO.
           SOLD_TO-sign = 'I'.
           SOLD_TO-option = 'EQ'.
           SOLD_TO-low = ZLV_SOLD_TO.
           APPEND SOLD_TO.
       ENDIF.
    ENDLOOP.
    I just want to have leading ZEROs in the field if the user missed them. Does any one have any ideas?
    Thanks in advance,
    Karuna.

    Got the issue resolved.
    Thanks,
    Karuna.

  • How do I change the metadata select options presented in Bridge (Select Value)

    Is there a way to set value options on the IPTC metadata? There are preset options that exist on the "Minor Model Age Description" etc, can I set my own values somehow?
    Thank you all
    Tom

    Can I create my own value options for metadata fields? As an example for the IPTC Core/Copyright Status metadata field there are by default three pre-configured options (Unknown, Public Domain, Copyrighted). Can I change these three pre-configured options to say for instance (1 year, Unknown, Unlimited)?
    No, you can't.
    At least not that I know of in an easy way. And to my opinion you also should not be able to. IPTC is a world standard and many applications use the fields and preset values for search criteria.
    If you and others were able to recreate this to personalized versions there would be no standard possible and a lot of applications and/or users/buyers can't find the info anymore
    What you might do to add the specialized info about for instance copyright is add this to the other related copyright fields like rights usage terms or even in the copyrights notice (but actually this last field would not be the correct place although it might spring to attention).
    Same about age, you can add under or above to the editable model age field.

  • Select options for the pnp logical database.

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    >
    ASHWIN JOHARI wrote:
    > Hi ,
    > But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    > Ashwin.
    Which fields? Almost all of them are defined SELECT-OPTIONS.. you dont' see the range option directly.. click on he options icon & you can enter the ranges.
    ~Suresh

  • Select-options in dynpro

    Hi expert,
    I maked a modul pool ( se80 ) and i maked a dynpro. In this dynpro i putted a Input/Output field.
    It's run ok, but I would change it in select-options and not a simply I/O field.
    It's possible ? How ?
    Tks a lot,
    bye.
    <LOCKED BY MODERATOR - DUPLICATED THREAD>
    Edited by: Alvaro Tejada Galindo on Jan 7, 2009 4:01 PM

    Let 1000 be the module pool screen on which you want to put Range button.
    Make a subscreen area on it. Let it be named as sub_area.
    Now make a selection screen in your program.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
    SELECT-OPTIONS R_PERNR FOR PERNR-PERNR.
    SELECTION-SCREEN END OF SCREEN.
    Now in screen 1000 flow logic, we can call the selection screen in the sub screen area defined.
    In PBO of 1000
    CALL SUBSCREEN SUB_AREA INCLUDING SY-REPID '0100'.
    Now, code in AT SELECTION-SCREEN OUTPUT event will be exe.
    In PAI of 1000
    CALL SUBSCREEN SA_SS. as the first line after PAI
    Now, AT SELECTION-SCREEN event will be exe.
    Using above method u will get the functionality of Select-Options of Selection Screen on a Module Pool Screen.

  • Select-options when Using PNP logical database

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    Hi,
       execute the program. In the selection screen
    For eg:
             personel Number select the Mutiple Selection option. After that select the tab select intervals and u can give the range.
    Regards,
    Srinivas

  • Problem in displaying selection options in report

    Hi Team,
    There is a report running in production. It has one select option for data element PROJ-PSPNR.
    But the requirement changes and the selection option should be for PROJ-PSPID instead.
    I started changing the code in development box and deleted the selection text in text element for previous select option and put the description of the new one.
    In development it is showing perfect. I transported the transport request to quality and pre-production.
    In quality also it is looking fine. But in pre-prod, the text option of the select option is not coming. Besides the icon on the button at the right of two text boxes of that select option is also not showing.
    (The button on which we click to input multiple values in the select option).
    Now I am in a fix. Why this is happening and what I should do?
    Mainak

    Hi Mainak,
    Do the follwing steps:
    1) check that selection-text of that select-options are transported or not.
    2) if tranported may be some activation problme.....for that you need to do on thing.
                 go to your pre-production box, there in the report generate the program again by
                 program-->Generate....  it will genereate the your program. so that the missing will appear.
    Thanks!

  • Smartforms with selection-option

    HI Experts,
    Well i have done a customer statement with a smartforms.
    Currently the print program have a parameter for the customer (kunnr) field.
    But my new requirment is i need to change it to select-options.
    But i how to configure the smartforms.
    Just say i have 2 customers and i need to have a separeted page for both customers and
    their address should also in different page.
    Please give me the logic.
    Thanks a lot.
    s.saravannan.....

    Hi saravannan sithambaram,
      Loop at itab, - in which we have 2 customers....
              CALL SF
      ENDLOOP.
    Paste the CALL SF fucntion, to know how they are passing address of them ... for more clarification..
    Paste the internal tables and code how didi they do it...
    Regards,
    Suneel G

  • MMBE Selection Options

    Is is possible to change the default selection options for this transaction?  Specifically uncheck the "No zero stock lines" option.

    Hi Julie,
    Welcome to SDN.
    You can use transaction variant (transaction code SHD0) to initial the "No zero stock lines" option.
    No technical development required.
    For more information, please check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Select options propertis change

    Hi all,
    I have a select options initialized into the method WDDOINIT of a view as follows:
      wd_this->m_handler->add_selection_field( i_id = 'KUNNR'
                                               it_result = lt_range_table
                                               i_read_only = read_only
                                               i_no_extension = abap_false
                                               i_no_intervals = abap_false ).
    in this view I arrive from another one by cliccking one of 4 links, I would like that only in 1 of this case the select options above is without intervals and extension, so I call into each method HANDLEFROM_LINK the method upd_selection_field.
    in that one the select options should have no interval and extension I write following code:
      CALL METHOD wd_this->m_handler->upd_selection_field
        EXPORTING
          i_id           = 'KUNNR'
          i_no_extension = abap_true
          i_no_intervals = abap_true.
    in all the other ones instead I write:
      CALL METHOD wd_this->m_handler->upd_selection_field
        EXPORTING
          i_id           = 'KUNNR'
          i_no_extension = abap_false
          i_no_intervals = abap_false.
    this unfortunately doesn't work very well during the navigation, what happends is, when I click the first time a link it take the correct properties for the select options, but if I come back to the previous view and click another link It take again the properties of the first link clicked...
    Any suggest for me?
    thanks in advance
    GN

    What I saw in debug is that during upd_selection_field execution the attribute MT_FIELDS is filled only when I call the first link and the method works, then I push back, and click on another link this time that attribute is empty, following read fails:
      read table mt_added_fields
           with key m_id = <field>-m_id
           assigning <added_field>.
      if sy-subrc = 0.
         <added_field> = <field>.
    if field is a new added field, any property can be changed
        <original_field> = <field>.
      else.
        if is_changeable_property = abap_true.
          delete mt_changed_fields where table_line = <field>-m_id.
          insert <field>-m_id into table mt_changed_fields.
    if field is not new only a subset of properties can be changed
          <original_field>-mt_range_table = <field>-mt_range_table.
          <original_field>-mt_value_set  = <field>-mt_value_set.
          <original_field>-m_is_nullable = <field>-m_is_nullable.
          <original_field>-m_format_properties = <field>-m_format_properties.
        endif.
    endif.
    So <added_field> is not updated... could this help you to understand my error?

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • Can I change the select option text for pnp ldb ?

    hi Akll,
    I am using a pnp logical database in my report and I have created my own hr category because i wanted to use field ename from the ldb in the selection screen. Now the problem with ename is I cant do a case sensitive search.
    So I have replaced it with sname, so now my screen has sname instead of ename, however I want to change the selection text for select option ( at present it is 'EE name can be sorted' )
    Kindly advise,
    thanks,
    GV

    I guess the text cannot be changed.. anyways you can add the field as an additional field by normal coding in your report

  • 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

Maybe you are looking for

  • TS1559 I just want my phone to work

    I am having trouble getting my music to turn off - it is battery draining on my I phone 5- I turn it off and next time I look at my phone it is playing again- next, I cannot get my msn email to stay logged in - makes me crazy- I don't want to use icl

  • PDF page links won't open

    Recently I've been unable to open a page within Safari which is a PDF link. The page is just blank. It's the same in Firefox. I'm not talking about downloading PDFs and opening in Preview. Any help much appreciated. Tim

  • Activate search icon in easy DMS

    Dear all, In easy DMS, Search object ICON is not active for some SAP object like sale order, assect ,hr object but it is active for vendor, customer, wbs. Kindly let me how can i activate  search icon in object link tab in easy DMS Rgds

  • How do we create a CURSOR that consists of two TABLES

    I would like to access a cursor that has columns from two tables.

  • Using objects stored in OAER (image) ni SMARTFORM

    Has anybody done anything in SMARTFORM where the object stored in the OAER (image) is directly accessed in SMARTFORM without uploading it to SAP via SE78? Thank you very much.