Set some field's disable on runtime.

Hi,
It is possible to set some fields of the interactive forms disable or (read-only)?
Thank you in advance

Hi,
Thank you for the reply,
But i can change ? In the web dynpro or inside the adobe interactive form with javascript ?
Best Regards.
Miguel Silva

Similar Messages

  • How  to set some fields of a table, not fields form ..

    Hi,
    I have a form based on a table with a few fields and others fields on the same table whose don't appear in the form.
    I want to set the others fields of this table and i use the following code (ex) :
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_REMARQUSER',
    p_value => PORTAL.WWCTX_API.GET_USER );
    I had put this code in the advanced plsql section but it DOES NOT WORK.
    after form :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    ORA-01007: la variable n'est pas dans la liste SELECT (WWV-11230)
    Le chemin de la préférence n'existe pas : ORACLE.WEBVIEW.PARAMETERS.3137_LRCWEB_REMARQUES_571188203 (WWC-51000)
    before processing :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    after processing :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    I would appreciate any help on the problem.
    Thanks, Pat

    Did you try modifying the package body?
    I tried this code in my package body and it worked fine

  • Dynpro fields are disabled

    Hi there,
    I want to call a Remote function, but before that i want to set some fields by the values typed in by a web dynpro application.
    I imported the RFC model, defined a view but when the view comes up for some reason all the fields are disabled.
    Can anybody tell me what i should do in order to get the fields enabled
    thanks
    Bertil

    Hi,
    If the rfc imported is zabc_input, I hope you have done the following.
    zabc_input inp=new zabc_input();
    wdcontext.nodezabc_input().bind(inp);
    Suppose you have to input some String value and the attribute is name and mapped to an input field try out the following.
    inp.setName(new String);
    Hope it would help.
    Do pls send in feedback.
    Regards
    Noufal

  • Set required fields for listbox RP_OPTIONS_INTO_STRING

    Hi Experts,
    I want to creat a listbox using FM RP_OPTIONS_INTO_STRING.
    And I want to set some fields as mandatory fields such as Personal number and
    Company code. I noticed there is a column in the component named 'Requried'
    Does anyone know how to set value for 'Required'?
    Thanks in advance!
    Graham

    Hi,
    In the properties of window of the field goto Program tab then input dropdown -->set as required.
    Regards,
    Nachy

  • Set requerd field of a form

    I am using a online GTD tool and I like to set some fields required so I can not forget them
    Does any one know if there is a add-on that can set fields required of a form?

    You could create a GreaseMonkey or Scriptish script to add the required attribute to specific input fields if they have a name or id.
    *Greasemonkey: https://addons.mozilla.org/firefox/addon/greasemonkey/
    *Scriptish: https://addons.mozilla.org/firefox/addon/scriptish/
    *https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input

  • Setting Mandatory Field

    Hi All
    Can any one assist , I need to set some field in BP Master Data to be mandatory.
    Thanks

    Hi
    I did a test on my local PC with SQL 2005 and SAP B1 2005 , I went to SQL Man. and right clicked on my db for B1 then pasted the copier script then I saved it with BPEmail.
    Then I went to B1 to add a new customer , I left the e-mail field blank and I got an error message " Please enter e-mail Id " .
    I can see that its working but the problem not is when I change the
    If exists (SELECT T0.cardcode  FROM ocrd T0 where T0.e_mail is null and T0.cardcode=@list_of_cols_val_tab_del)
    to
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    ALTER proc [dbo].[SBO_SP_TransactionNotification]
    @object_type nvarchar(25),                     -- SBO Object Type
    @transaction_type nchar(1),               -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
    @num_of_cols_in_key int,
    @list_of_key_cols_tab_del nvarchar(255),
    @list_of_cols_val_tab_del nvarchar(255)
    AS
    begin
    -- Return values
    declare @error  int                    -- Result (0 for no error)
    declare @error_message nvarchar (200)           -- Error string to be displayed
    select @error = 0
    select @error_message = N'Ok'
    IF @transaction_type = 'A' AND @object_type = '2'
    BEGIN
    If exists (SELECT T0.cardcode  FROM ocrd T0 where T0.FatherCard is null and T0.cardcode=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Please enter Consolidating BP in Accounting Tab'
         end
    END
    select @error, @error_message
    END

  • Dynamic Table Input Field - Disabled in runtime

    Hi,
    I have dynamically created a node. The node as a string attribute X.
    Then dynamically created a IWDTable to bind to the node.
    In the table I have a column, then a tablecelleditor of inputfield.
    The inputfield 'value' is binded to node->X attribute info.
    inputField.bindValue(attributeInfo).
    Then I created a few entries of the node, populating X with some dummy value.
    In runtime, my inputfields are disabled, and the dummy values don't appear.
    I believe it is something to do with my binding.
    Then I replaced the inputfield with a textview. textview text is binded to the node->X
    attribute info.
    textview.bindText(attributeInfo)
    (i.e. exact same attribute info I used for the inputfield)
    In runtime I see my textview with the dummy values.
    Can anyone point me in the right direction?
    Cheers,
    Michael.

    Hi Guys,
    I think to be clear I better include my code here.
    I did bind the table to the nodeInfo, and I did bind the textView/inputfield to the particular attribute.
    As mentioned before, it does show for the textView, but not for the inputfield.
    Create the new node:
              IWDNodeInfo newNode = wdContext.getNodeInfo().getChild("nodeName");
                   newNode =
                        wdContext.getNodeInfo().addChild(
                             "nodeName",
                             null,
                             true,
                             true,
                             true,
                             false,
                             false,
                             true,
                             null,
                             null,
                             null);
    Create the attribute:
                   IWDAttributeInfo detailAttribute =
                        newNode.addAttribute(
                             "xyz",
                             "ddic:com.sap.dictionary.string");
    Get the node
                             IWDNode specificNode =
                                  wdContext.getChildNode(
                                       "nodeName",
                                       0);
    Create the element from the node
                             newElement =
                                       specificNode.createElement();
    Set the attribute value:
                                  newElement.setAttributeValue(
                                       "xyz",
                                       "1234");
    Add the new element:
                                  specificNode.addElement(newElement);
    Create the table now:
                   IWDTable someTable =
                        (IWDTable) view.createElement(
                             IWDTable.class,
                             "TAB_ArticleQty" + articleElement.getArticleId());
                   someTable.setEnabled(true);
                   someTable.setReadOnly(false);
                   someTable.setRowSelectable(true);
                   someTable.setFooterVisible(false);
                   someTable.setSelectionMode(WDTableSelectionMode.NONE);
                   someTable.setVisibleRowCount(-1);
                   someTable.bindDataSource(
                   specificNode.getNodeInfo());
                   TC.addChild(someTable);
    Loop at all the attributes and create the column
    The code for the textView has been commented out
    The code is now for the input field
                    * LOOP AT ALL THE ATTRIBUTES IN THE NODE:
                    * CREATE ONE COLUMN FOR EACH ATTRIBUTE
                   Iterator allAttributes =
                   specificNode.getNodeInfo().iterateAttributes();
                   while (allAttributes.hasNext()) {
                        IWDAttributeInfo attrInfo =
                             (IWDAttributeInfo) allAttributes.next();
                        String attrName = attrInfo.getName();
                                  // Text View
                                  IWDTextView TV_info =
                                       (IWDTextView) view.createElement(
                                            IWDTextView.class,
                                            "TV_AQ_"
                                                 + counter
                                                 + attrName);
                                  TV_info.bindText(attrInfo);
                                  COL_qty.setTableCellEditor(TV_info);
                                  //input field for the user to enter the value
                                  IWDInputField input_Qty =
                                       (IWDInputField) view.createElement(
                                            IWDInputField.class,
                                            "input_Qty"
                                                 + counter
                                                 + attrName);
                                  input_Qty.setEnabled(true);
                                  input_Qty.bindValue(attrInfo);
                                  input_Qty.setWidth("4");
                                  COL_qty.setTableCellEditor(input_Qty);
                             someTab.addColumn(COL_qty);

  • How to make some fields disable mode in BAPI?

    Dear sir,
    I want to know in Bapi, In Import parameters of output display screen as we are entering values i want to make some fields disable mode (as in report program, in output screen, suppose 2 entry fields are der so i need only one and another one in disable mode)how to do in BAPI?  please explain with example by taking 2 or 3 predefined tables? and in Bapi how to do ranges programs.. please explain with example? is it posiible in bapi to display the output in ALV_GRID method?
    regards
    patil

    Hi Rachu Patil,
    I think there is no posibility to disable fields in import parameter of bapi but you can select optional check box to make the field as an optional field in import parameter. Like wise you cant set range. If you want to set range than declare two variable for low and high.
    Regards,
    Harish

  • Unable to set some Aperture metadata fields

    I've had a few minor problems with Aperture 3.2.3 lately while trying to tag a whole lot of photos from a recent holiday.
    I have been trying to set a number of fields and this morning I was looking at using the IPTC Image Location field.
    Initially I tried to set the field and then create a smart album based on it. The smart album was coming back empty. Then after quitting out of Aperture and restarting the program, I noticed that the values from that field are gone and I can't seem to make any changes to it stick with either batch change or a change to individual images.
    This is in addition to a problem I was having a few days ago where a ful text search wasn't returning anything when it should have been.
    Any suggestions? I tried repairing the database the other day but that didn't have any noticible effect. Maybe I'll have to try a rebuild instead?

    Hi,
    on my system setting the IPTC Image Location field works without any problems, on single images and with batch changing as well.
    Does the problem only occur with one of your Aperture Libraries, or also, if you create a new test library and import some images there?
    And what happens if you work from a different user account, e.g. the guest account?
    Is the problem restricted to certain image formats or independent of the format of your images?
    Just trying to figure out, if the problem is system wide or restricted to your user account or a single library.
    Regards
    Léonie

  • How to set some rows in ALV to be editable or some non editable.

    Dear all Gurus,
    I'm facing a situation here, I need your assistance.
    I'm creating a alv table where the user can enter a data and then this will be uploaded into the system. Now upon validation some records might fail and would need some changes and some records that had no problems would have been successfully posted.
    When the program returns to the user i want the successful one's to be greyed out and not editable. I'm not sure on how i could acess the rows of the table. I tried few classes and an all i could manage was to change the table setting and configs.
    Below i've pasted the code on how i've code my alv table. Please advice on how i could access the rows and disable the successfull ones. Please.
    METHOD wddoinit .
      DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
            l_interface     TYPE REF TO iwci_salv_wd_table,
           l_model         TYPE ref to cl_salv_wd_config_table, "Contains all characteristics of a table(collumns, fields, etc)
            lt_columns      TYPE        salv_wd_t_column_ref,  " Table type
            lt_fields       TYPE        salv_wd_t_field_ref,   " Table type
            l_btn_ins       TYPE REF TO cl_salv_wd_fe_button,
            l_btn_del       TYPE REF TO cl_salv_wd_fe_button,
            l_btn_sell_all  TYPE REF TO cl_salv_wd_fe_button,
            l_btn_dell_all  TYPE REF TO cl_salv_wd_fe_button,
            l_btn_calc      TYPE REF TO cl_salv_wd_fe_button,
            l_btn_save      TYPE REF TO cl_salv_wd_fe_button,
            l_function      TYPE REF TO cl_salv_wd_function,
            l_column        TYPE REF TO cl_salv_wd_column,
            l_header        TYPE REF TO cl_salv_wd_column_header,
            lr_input_1      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_2      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_3      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_4      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_5      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_6      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_7      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_8      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_9      TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_10     TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_11     TYPE REF TO cl_salv_wd_uie_input_field,
            lr_input_12     TYPE REF TO cl_salv_wd_uie_input_field,
            l_link          TYPE REF TO cl_salv_wd_uie_button.
      CONSTANTS:
              zzto                        TYPE  string VALUE 'ZZTO',
              zzfrom                      TYPE  string VALUE 'ZZFROM',
              takeoff_date                TYPE  string VALUE 'TAKEOFF_DATE',
              read_date                   TYPE  string VALUE 'READ_DATE',
              takeoff_time                TYPE  string VALUE 'TAKEOFF_TIME',
              read_time                   TYPE  string VALUE 'READ_TIME',
              ac_hrs                      TYPE  string VALUE 'AC_HRS',
              le_hrs                      TYPE  string VALUE 'LE_HRS',
              re_hrs                      TYPE  string VALUE 'RE_HRS',
              ac_cycle                    TYPE  string VALUE 'AC_CYCLE',
              re_cycle                    TYPE  string VALUE 'RE_CYCLE',
              le_cycle                    TYPE  string VALUE 'LE_CYCLE',
              ltext                       TYPE  string VALUE 'LTEXT'.
      l_ref_cmp_usage =   wd_this->wd_cpuse_multi_alv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
    *Map the interface.
      l_interface = wd_this->wd_cpifc_multi_alv( ).
      DATA:
        node_mdoc                           TYPE REF TO if_wd_context_node,
        elem_mdoc                           TYPE REF TO if_wd_context_element.
    navigate from <CONTEXT> to <MDOC> via lead selection
      node_mdoc = wd_context->get_child_node( name = if_create_mass_entry=>wdctx_mdoc ).
      l_interface->set_data( r_node_data = node_mdoc ).
    *Map the model
      wd_this->l_model = l_interface->get_model( ).
    *Map the columns
      lt_columns = wd_this->l_model->if_salv_wd_column_settings~t_columns.
    *Map the fields
      lt_fields = wd_this->l_model->if_salv_wd_field_settings~t_fields.
      cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs~set_all(
                        EXPORTING r_model = wd_this->l_model
                                  allowed = abap_false ). " try abap_true
    *Enable or Disable the ALV desired outlook and design
      wd_this->l_model->if_salv_wd_table_settings~delete_header( ).
      wd_this->l_model->if_salv_wd_table_settings~set_selection_mode(
                                           value  = cl_wd_table=>e_selection_mode-auto ).
      wd_this->l_model->if_salv_wd_table_settings~set_width( value = '100%'  ).
      wd_this->l_model->if_salv_wd_table_settings~set_visible_row_count( value  = '10' ).
      wd_this->l_model->if_salv_wd_table_settings~set_read_only( value  = abap_false  ).
      wd_this->l_model->if_salv_wd_std_functions~set_filter_filterline_allowed( value  = abap_true ).
      wd_this->l_model->if_salv_wd_std_functions~set_sort_headerclick_allowed( value = abap_true ).
      wd_this->l_model->if_salv_wd_std_functions~set_export_allowed( value = abap_false ).
    *Adding functionalities to the ALV
    *'Insert Row' Button
      CREATE OBJECT l_btn_ins.
      l_btn_ins->set_text( 'Insert Row' ).
      l_btn_ins->set_tooltip( 'To enter a new row' ).
      l_btn_ins->set_image_source( value = 'ICON_INSERT_ROW'  ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'INSERT'  ).
      l_function->set_position( value = '1' ).
      l_function->set_editor( value = l_btn_ins  ).
    *'Delete Row' Button
      CREATE OBJECT l_btn_del.
      l_btn_del->set_text( 'Delete Row' ).
      l_btn_del->set_tooltip( 'Delete the selected row' ).
      l_btn_del->set_image_source( value = 'ICON_DELETE_ROW' ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'DELETE'  ).
      l_function->set_position( value = '2' ).
      l_function->set_editor( value = l_btn_del  ).
    *'Select All' Button
      CREATE OBJECT l_btn_sell_all.
      l_btn_sell_all->set_text( 'Select All' ).
      l_btn_sell_all->set_tooltip( 'Select all entered record' ).
      l_btn_sell_all->set_image_source( value = 'ICON_INSERT_ROW'  ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'SELECT'  ).
      l_function->set_position( value = '3' ).
      l_function->set_editor( value = l_btn_sell_all ).
    *'Deselect All' Button
      CREATE OBJECT l_btn_dell_all.
      l_btn_dell_all->set_text( 'Deselect All' ).
      l_btn_dell_all->set_tooltip( 'Deselect all records selected' ).
      l_btn_dell_all->set_image_source( value = 'ICON_DESELECT_ALL'  ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'DESELECT'  ).
      l_function->set_position( value = '4' ).
      l_function->set_editor( value = l_btn_dell_all  ).
    *'Calculate' Button
      CREATE OBJECT l_btn_calc.
      l_btn_calc->set_text( 'Calculate Hours' ).
      l_btn_calc->set_tooltip( 'Calculate hours of each record' ).
      l_btn_calc->set_image_source( value = 'ICON_CALCULATION'  ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'CALC'  ).
      l_function->set_position( value = '5' ).
      l_function->set_editor( value = l_btn_calc  ).
    *'Save' Button
      CREATE OBJECT l_btn_save.
      l_btn_save->set_text( 'Save All' ).
      l_btn_save->set_tooltip( 'Save all' ).
      l_btn_save->set_image_source( value = 'ICON_SYSTEM_SAVE'  ).
      l_function = wd_this->l_model->if_salv_wd_function_settings~create_function( id = 'SAVE'  ).
      l_function->set_position( value = '6' ).
      l_function->set_editor( value = l_btn_save  ).
      FIELD-SYMBOLS: <fs_column>  TYPE salv_wd_s_column_ref.
      LOOP AT lt_columns ASSIGNING <fs_column>.
        l_column = <fs_column>-r_column.
        l_column->get_header( RECEIVING value = l_header ).
        l_header->set_ddic_binding_field( value  = if_salv_wd_c_column_settings=>ddic_bind_none ).
        CASE <fs_column>-id .
          WHEN zzfrom.
            CREATE OBJECT lr_input_1  EXPORTING  value_fieldname = zzfrom.
            l_header->set_text( value = 'Flt Fr' ).
            l_column->set_position( value = '1'  ).
            l_column->set_cell_editor( lr_input_1 ).
           l_column->set_visible( '0' ).
          WHEN zzto.
            CREATE OBJECT lr_input_2  EXPORTING  value_fieldname = zzto.
            l_header->set_text( value = 'Flt To' ).
            l_column->set_position( value = '2'  ).
            l_column->set_cell_editor( lr_input_2 ).
          WHEN takeoff_date.
            CREATE OBJECT lr_input_3  EXPORTING  value_fieldname = takeoff_date.
            l_header->set_text( value = 'Takeoff Date' ).
            l_column->set_position( value = '3'  ).
            l_column->set_cell_editor( lr_input_3 ).
          WHEN read_date.
            CREATE OBJECT lr_input_4  EXPORTING  value_fieldname = read_date.
            l_header->set_text( value = 'Landing Date' ).
            l_column->set_position( value = '4'  ).
            l_column->set_cell_editor( lr_input_4 ).
          WHEN takeoff_time.
            CREATE OBJECT lr_input_5  EXPORTING  value_fieldname = takeoff_time.
            l_header->set_text( value = 'Takeoff Time' ).
            l_column->set_position( value = '5'  ).
            l_column->set_cell_editor( lr_input_5 ).
          WHEN read_time.
            CREATE OBJECT lr_input_6  EXPORTING  value_fieldname = read_time.
            l_header->set_text( value = 'Landing Time' ).
            l_column->set_position( value = '6'  ).
            l_column->set_cell_editor( lr_input_6 ).
          WHEN ac_hrs.
            CREATE OBJECT lr_input_7  EXPORTING  value_fieldname = ac_hrs.
            l_header->set_text( value = 'Flt Time' ).
            l_column->set_position( value = '7'  ).
            l_column->set_cell_editor( lr_input_7 ).
          WHEN le_hrs.
            CREATE OBJECT lr_input_8  EXPORTING  value_fieldname = le_hrs.
            l_header->set_text( value = 'LH Eng Runtime' ).
            l_column->set_position( value = '8'  ).
            l_column->set_cell_editor( lr_input_8 ).
          WHEN re_hrs.
            CREATE OBJECT lr_input_9  EXPORTING  value_fieldname = re_hrs.
            l_header->set_text( value = 'RH Eng Runtime' ).
            l_column->set_position( value = '9'  ).
            l_column->set_cell_editor( lr_input_9 ).
          WHEN ac_cycle.
            CREATE OBJECT lr_input_10  EXPORTING  value_fieldname = ac_cycle.
            l_header->set_text( value = 'No. of Landings' ).
            l_column->set_position( value = '10'  ).
            l_column->set_cell_editor( lr_input_10 ).
          WHEN re_cycle.
            CREATE OBJECT lr_input_11  EXPORTING  value_fieldname = re_cycle.
            l_header->set_text( value = 'RH Eng Start' ).
            l_column->set_position( value = '11'  ).
            l_column->set_cell_editor( lr_input_11 ).
          WHEN le_cycle.
            CREATE OBJECT lr_input_12  EXPORTING  value_fieldname = le_cycle.
            l_header->set_text( value = 'LH Eng Start' ).
            l_column->set_position( value = '12'  ).
            l_column->set_cell_editor( lr_input_12 ).
          WHEN ltext.
            CREATE OBJECT l_link.
            l_link->set_image_source( value = 'ICON_CREATE_TEXT'  ).
            l_link->set_text_fieldname( ltext ).
            l_link->set_tooltip( value = 'Create Log'   ).
            l_header->set_text( value = 'Enter Log').
            l_column->set_cell_editor( l_link ).
            l_column->set_h_align( cl_wd_table_column=>e_h_align-center ).
            l_column->set_position( value = '13' ).
          WHEN OTHERS.
            l_column->set_visible( '01' ).
        ENDCASE.
      ENDLOOP.
    ENDMETHOD.
    Your any help is highly appreciated. Thank you.
    Regards,
    Vinod

    Ok, here you go.
    In your context, apart from your display fields, add another attribute READ_ONLY, type char01. And lets assume you want the field by name field_1 to be editable or not based on some validation. Your code will be like this to initialize the ALV.
    DATA:
              l_alv_model               TYPE REF TO cl_salv_wd_config_table,
              lr_column_settings        TYPE REF TO if_salv_wd_column_settings,
              lr_column                 TYPE REF TO cl_salv_wd_column,
              lt_col                    TYPE SALV_WD_T_COLUMN_REF,
              ls_col                    TYPE SALV_WD_S_COLUMN_REF,
              lr_input_field            type ref to cl_salv_wd_uie_input_field.
        l_alv_model = l_ref_interfacecontroller->get_model( ).
        l_alv_model->IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( abap_false ).
        lr_column_settings ?= l_alv_model.
        lt_col = lr_column_settings->get_columns( ).
        LOOP AT lt_col INTO ls_col where ID = 'FIELD_1'.
             create object lr_input_field exporting value_fieldname = ls_col-id.
             lr_input_field->set_read_only_fieldname( 'READ_ONLY' ).
             ls_col-r_column->set_cell_editor( lr_input_field ).
        ENDLOOP.
    In your event handler, you read your node, do a get_static_attributes_table. Perform all validations. Loop through your internal table and set the field READ_ONLY as 'X' when validation succeeds. Do READ_ONLY = space when validation fails. Then do a bind_elements. Now the rows for which read_only is false, will be editable and vice versa.
    Hope I was clear enough. Get back if you have any doubts.
    Regards,
    Nithya

  • Calling a standard subroutine and setting global fields

    Hallo ...
    I am calling a subroutine in program A(standard program ) from a  program B .   there are a set of global fields in program A  that i need to first set before i call this subroutine from Program B. is it posible to set these fields from program B. (since i cannot do much on the program A side as it is standard).?
    Can some one suggest how can set these fields . some of these fields are flags and some normal fields. Not all the fields have parameterd ids. any idea how can i set thses fields from program B ?????
    Help will be appriciated
    Thanks

    Hello,
    there are two choices:
    (1) You can add a form to program A, if the standard program lets you implement user-defined code. For example, in program SAPMV45A you use a certain include to implement user-defined forms. You can define a form which takes the actual values of the fields in program A which you want to change as parameter. The form then changes the fields (from within the form, the fields are visible and changable). You can call this form by using PERFORM your_form IN program_A.
    (2) You can use a "dirty assign": Refer to the F1 help of the ASSIGN statement for more information about that. Sample may look like this (note the brackets and apostrophes):
    ASSIGN ('(PROGRAM_A)GLOBAL_FIELD') to <fs_proga_global_field>.
    However, the assign only works when program A has already been loaded into the internal mode during runtime. This means before doing the ASSIGN, any code of program A must have been executed in the current internal mode.
    Hope this helps,
    David

  • Setting Crystal Report data source at runtime

    In advance, I've read all of the posts on here about dynamically changing the data source for your report at runtime and none of it seems to work.
    I developed a report against my development database using an MySQL ODBC connection. At runtime I want to pull the data from the production database. I've tried clearing the DataSourceConnections. I've tried the SetDatabaseLogon as well as Table.LogOnInfo, Table.ApplyLogOnInfo, SetConnection, everything.
    I am using the pull method for getting the data, so CR has entire control over the mechanism used to fetch the data.
    But when I am setting some other data source I am greeted with a logon screen for the database, I i check use itegrated security then it says logon failed and if I uncheck use integrated security checkbox then it shows unable to load report and an exception is thrown
    Anyone have any ideas? I'm using Visual Studio 2010 and Crystal Reports 2011 developer edition.Apart from this my Database is in mysql and I am binding report with the MySQL Procedure.
    Note: Both these database just differ in name, Infact they are same database just I have changed the name, so the procedure and the fields are same.
    Thanks in advance.

    So if ODBC doesn't allow me to change the data source, can't it be done in some other way without mingling with each and every report.
    BDW I am able to change the data-source at designer mode,
    Currently the connection string being used is
    private readonly ConnectionInfo crConnectionInfo = new ConnectionInfo
                DatabaseName = "DB NAME",
                IntegratedSecurity = true,
                Password = "admin",
                ServerName = "localhost",
                UserID = "root"
    I just want it to read from same copy of database place at some other location so the connection string will be modified as
    private readonly ConnectionInfo crConnectionInfo = new ConnectionInfo
                DatabaseName = "Same copy of database record may change but structure will be same",
                IntegratedSecurity = true,
                Password = "admin",
                ServerName = "IP address of the machine",
                UserID = "root"

  • Field get disabled on roundtrip

    Hi Guys,
    CLEAR_HEAD/ClearCaseEF
    field: Case->STRUCT.PRIORITY
    do not have GET_ implement by default. In the UI (CLEAR_HEAD/ClearVS ), when the user clicks on Business partner ID in the BP list, the BP popup opens. After closing this popup, the priority field mentioned above gets disabled.
    I did debug and understood that since framework didnot find any lock on underlying object instance so its set to read only. After doing some action, eg. cancel on UI the feild turn input enabled.
    Please suggest how to solve such issue?
    in shot-> open the case from search result: Field is enabled. -> Launch BP from the link in BP ID and close it-> field becomes disabled.

    sovled myself... issue with missing optimistic lock...

  • Disable Form Runtime Diagonistic (FRD)

    Hi ,
    I have EBS (12.1.2) installed on linux , some user enable (FRD)at site level . I want to disable it .
    I have checked the profile options (ICX: Forms Launcher ) the value was (http://erptest.mcit.local:8003/forms/frmservlet)
    and (Forms Runtime Parameters) and the value is not set .
    Also i have checked the (appsweb.cfg) file under the (FORMS_WEB_CONFIG_FILE) looking for the (record) parameter but its no set.
    So please how can i stop the FRD

    Duplicate thread.
    Disable Form Runtime Diagonistic (FRD)
    Re: Disable Form Runtime Diagonistic (FRD)

  • Delivery Complete field is disabled for service procurement

    Hi Support Team,
    When we are making Purchase Order against services with item category "D", delivery completed field is disabled.
    But when we are procuring against others it si enabled.
    In the case of Services how can we do completion. As we know we can do that while making service entry sheet by selecting " set delivery completed", but some time we may not be knowing that this is the final Service entry sheet.
    How to proceed in this case ?
    Regards
    Sai Krishna

    Sai,
    Have you checked the field settings for the below field selction keys, because the field status follows the link rule and priority is assigned based on that.
    Field selection keys:
    Transaction: E.g ME21N, ME32, ME33 etc.
    Activity Category: Create AKTH, Change AKTV, Display AKTA & Extend PO AKTE
    Document type: UBF for UB, NBF for NB
    Item category: is determined in combination with the document category.
    First two characters consist of letters PT, third item category and fourth document category:
    A for RFQs, B for PRs, F for POs, K for contracts, L for SAs. e.g PT3F for a SC item in a PO.
    Regards,
    Manish

Maybe you are looking for

  • Business area is not being specified in cost center master.

    Hello Professional friends, When i specify Business area in existing cost center master data, it appears an error massage -    "Field change Business Area is not possible (transaction data already exists)" I tried to change the validity by analysis P

  • Markup not displaying Doc/docx/PDF properly

    Hey everyone, I'm using Oracle text in conjunction with Apex, all on top of the 11G database. My issue is that using the Oracle text Markup, many files types do not display properly. The level of wrongness varies, from some readable text to complete

  • Passing a property file as a parameter to imqdbmgr

    I would like to add the tables to the database during boot of a server since I use an EC2 instance. In this scenario, I need to replace the OpenMQ configuration file (config.properties) used under the glassfish domain which is generated when the doma

  • Red Eye Adjustment not saved (completely)

    After upgrading my library, I tried editing some photos. On one, I made red-eye adjustment that looked just fine--that is until I saved the edit. Once saved, the red-eye correction was different (and not as complete) as I had seen in the edit window.

  • Sales order actuals vs forecast

    Hi, I would like to have a report showing the difference between the sales order actuals and forecasted amount for a particular inventory item.I guess for the actuals, data can be taken from the oe_order_headers_all and oe_order_lines_all . The table