Urgent: Table control validation of defaulted values

Hi All,
I have 5 fields in my table control. I have provided a button on the screen, if the user clicks that button, one of the fields( checkbox) is set as 'X'.
Now , I want to validate the value in this field.
The issue I have is that it is not going into the CHAIN ENCHAIN module logic to do the validation, if the value is updated through the button, but it performs validation if I update the field manually.
Please advice.
Thanks.
K K

Try this in the PAI process of screen:
LOOP AT itab.
    CHAIN.
        FIELD: ...
        MODULE CHECK_MODIFIED ON CHAIN-INPUT.
    ENDCHAIN.                                           
ENDLOOP.
Oherwise,you can add the check logic into the flow logic of the button,if the value is not valid,block it.
Edited by: Liang Zhang on May 28, 2008 4:34 AM

Similar Messages

  • How do I click on a cell in a table control, and display the value in a string?

    What I would like to do is to click on a cell in a table control, and have the value of the cell be displayed in a string indicator. What ever cell I click on, I would like the value to be displayed in the indicator.
    Thank you!
    Solved!
    Go to Solution.

    ... or
    Event >>> ouse down for table.
    Use Coords" to feed invoke node "point To Row Column" and returned "Cell Postion" can be unbundled to produce the row and column tht can be used to index out the value.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Issue On Table Control Validation

    Hi All,
    I Got One requirement that is  " Sales Employee Depo Tour Details ",
    Requirement Is ---> IF One Sales Employee Updates Data Base Table Through  Table Control
    Details Are :
    Emp no: 1234, Depo City : Hyderabad, Starting Date : 25:01:2010 End Date:31:12:9999(Default Date If Emp Gives Blank)
    And Then Saves His Tour Details.
    Like That If Another Employee 2345 Wants To Update His  Depot tour In Same City Between Above Dates Error pop up Message Should Display With "  One Employee Already In This City Want to Change End date Of That Employee ".
    If He Press " Yes "  Button Then That Record Display In Table Control In Change Mode After That
    Emp:2345 Changes His End Date To 31:12:9999 To  some 31:12:2010 And Then He Updates The Employee 1234 Details,
    Then He updates his tour Details Like
    Emp no: 2345, Depot City : Hyderabad, Starting Date : 25:01:2011 End Date:31:12:2011.
    so i done this validation in pai module through chain and enchain and up to pop up display i done the process of validation
    but how to display existing record in table control via include .
    Regards
    Udaya Bhasker Bandi
    Edited by: UDAY123 on Jul 19, 2010 9:10 AM

    u have to add the
    TRANSACTION 'COR2'   | [USING bdc_tab [bdc_options]] .
    in wihich
    OPTIONS FROM opt
    DEFSIZE (Selection as to whether the screens of the called transaction are displayed in the standard screen size.) Values "X" (standard size), " " (current size).
    also you have to handle the 'P+'.
    * Structure to hold Parameter string for runtime of CALL TRANSACTION  *
    DATA :
      fs_opt TYPE ctu_params.
    *& Form SETTINGS
    * This Subroutine sets the default size check box to 'X' & Mode as 'N' *
    *  There are no interface parameters to be passed to this subroutine
    FORM settings .
    * Setting the Default size checkbox to 'X' and Mode as 'N'
      fs_opt-defsize = 'X'.
      FS_OPT-DISMODE = 'N'.
    ENDFORM.                               " FORM RETRIEVE_SUBSECTION...
    After filling your BDC Data.
    CALL TRANSACTION 'COR2'  USING t_bdcdata
                               OPTIONS FROM fs_opt
                              MESSAGES INTO t_messages.
    you can see the below example
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/bdcToUploadIT0585Data
    Regards.

  • Validations and default Values in ALV Grid

    All,
    I am using "set_table_for_first_display" to display a grid with empty editable rows wherein which users can enter data and process certain transactions.
    My requirement is to know if we can provide drop-downs and default values in this grid. for ex. if user want to insert a row, that row should automatically have some default values like company code, sales org etc.
    Also, if there is an error while validating the data, I should be able to set the focus on that field while displaying the error message. I was able to display error message but could not set the focus on the field that need to be corrected.
    Your earlier response is much appreciated.
    Regards
    Kasi

    Hi kasi,
    check these links:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an easy reference for alv grid control.pdf
    http://www.abap4.it/download/ALV.pdf
    hope this helps,
    keerthi.

  • Table control Validation

    I have worked in CT04 transaction. In that if we specify the character type (Eg . Characetr Foramt) & enter the number of characetrs as 3 means in value tab it wont allow as to enter value greater than 3. It wont show any error message but it restrict the cursor(the cursor wont move at all)
    I want to do this kind of validation in my table control.
    I debugged the program also But not able to get it.
    Main program is SAPLCTMV and screen number is 1200.
    The table control field is CAWN-ATWRT.
    Can any one help me to solve this problem.
    Thanks in advance.

    write the code on PAI of ur screen to popup a error message if some condition for a particular field of Table control fails as follows -
    PROCESS AFTER INPUT.
    LOOP AT ITAB2.                "ITAB2 is the table for table control.
        module read_table_control.
      ENDLOOP.
    module read_table_control input.
    if itab1-pernr eq '00000022'.
        message w000(000) with 'Enter other value than 22'.    "this is error message
    else.
        MODIFY itab2 FROM itab1 INDEX tabcontrl-current_line.
    endif.
    endmodule.                 " read_table_control  INPUT

  • Urgent: How to set a default value to CLOB field?

    Hi All,
    As per the requirements we have to populate the CLOB field in a template with default value with some template similar to a letter issued to clients in bank.
    So, every time when I insert a record in that table this CLOB field should have that letter template populated by default and user will modify that if required from GUI.
    How can I populate that CLOB field by default?
    Thanks!

    Something like this?
    ME_XE?
    create table test_clob
      pk_value number primary key,
      one_clob clob   default rpad('something', 32000, '*')
    insert into test_clob (pk_value) values (1);
    select * from test_clob;
    Table created.
    Elapsed: 00:00:00.13
    ME_XE?ME_XE?
    1 row created.
    Elapsed: 00:00:00.09
    ME_XE?ME_XE?
              PK_VALUE ONE_CLOB
                     1 something***********************************************************************
    1 row selected.
    Elapsed: 00:00:02.65
    ME_XE?ME_XE?
    ME_XE?ME_XE?select * from v$version;
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected.
    Elapsed: 00:00:00.18
    ME_XE?

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • Table control list box. different values in each row of the list box

    Hi all,
    i have a requirement to display text box in table control. Each row of list box should contain different values.
    i tried with the below code  but the values are not getting populated in list  box. please give your ideas.
    I tried with list box which is having same values in all rows, it is working fine.
    loop at itab.
    select vbeln from ZSD_PS_BLAWB into ZSD_PS_BLAWB-vbeln
    where BLAWBNO = itab-BLAWBNO and
    BLAWBDT = itab-BLAWBDT and
    CTRNO = itab-CTRNO.
    if sy-subrc = 0.
    index = 1.
    list3-key = index.
    list3-text = ZSD_PS_BLAWB-vbeln.
    append list3 to list2.
    index = index + 1.
    endif.
    endselect.
    clear index.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    ID = 'ITAB-VBELN'
    VALUES = list2
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    modify itab.
    endloop.
    Thanks in advance.

    Hi,
    this is code example for listbox
    TYPE-POOLS vrm .
    DATA: lt_vrm_values TYPE TABLE OF vrm_value.
    DATA: wa_vrm_values TYPE vrm_value.
    PARAMETER p_list AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
      wa_vrm_values-key = 'Key1'.
      wa_vrm_values-text = 'Value1'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key2'.
      wa_vrm_values-text = 'Value2'.
      APPEND wa_vrm_values TO lt_vrm_values.
      wa_vrm_values-key = 'Key3'.
      wa_vrm_values-text = 'Value3'.
      APPEND wa_vrm_values TO lt_vrm_values.
    AT SELECTION-SCREEN OUTPUT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'P_LIST'
                values          = lt_vrm_values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
      IF sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    To fill it with data from DB, just do select in INITIALIZATION and put that values with same alghoritmus.
    Manas M.
    P.S.: This is very easy question, you should use search ...

  • Initializi​ng Control Inputs to default value.

    This may be a stupid question, but I am new to labview. When the VI is started I want it to read the data from the PLC(via the OPC Server)initially to set up the controls default value. Then if the user wants to change it, they can type a new vlaue.
    Currently every time you start labview in clobbers the data in the PLC with its default value. I thought of using a write on change tag, but then it doesnt show what the current set point is.
    Thanks
    Thad

    If you wanted to get the PLC values before makeing any changes to them, I would recommend using a Tag Read and update your front panel control with the use of a local variable. This would be an initialization routine.
    Another possible answer to your question is that you will want to use the Options >> Make Current Values Default selection on your Front Panel. This way anytime your VI is reloaded it will start with these default values.
    Thanks,
    Bryce

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

  • Urgent : Table control

    Hi to ABAP Gurus,
    I am having a serious problem.
    how a delete a record from table control. It should validate the record before deleting check in header table and item table.
    and delete the record from database.
    how to insert a record in to database from table control. before inserting it should validate the record from header table and item table.
    pls give me the needful solution.

    refer
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    http://hometown.aol.com/skarkada/sap/table_control/table_control.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
    http://www.sap-img.com/ab031.htm
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Using a Table as a Default Value in a Custom List

    Hi,
    I am trying to create a list for users to fill out that utilizes multiple tables for data entry. I would like to set the table to be the default value for the field in order to have consistency across submissions and for ease of use. I have tried using HTML
    code for the table as well as copying the HTML markup from inserted tables in the field but I have been unable to generate a table in the field by default. I have tried this in both the web based editor and Sharepoint Designer 2010.
    Thanks!

    Hi aelawler,
    Which type field did you use for storing the table? Please try to create a site column using Publishing HTML type or Enhanced rich text, and add the column to the list, use it to store the table. Test it using your method, compare the result.
    Here is a post about setting default value for enhanced rich text, please pay attention to Amit's reply:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/a6b5614d-ae45-4e2f-af0e-7e1887b05f60/set-default-value-to-enhanced-rich-text-box?forum=sharepointcustomizationprevious
    If it doesn’t work, I think, you need to create a custom field type to store the table, and set default value for it. You can try to create it based on the Publishing HTML or Enhanced rich text type.
    Create a custom field type in SharePoint 2010
    http://www.bing.com/videos/watch/video/creating-custom-field-types-for-sharepoint-2010/10t33r1uw
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Setting control to default value when it is a strict type def

    If my subVI has a control that happens to be a strict type defined cluster and I have saved the values in the control as the default values, how can I change them back to the default values of the type def (which are empty).  Because it is a strict type definition, i cannot click on the elements inside the cluster and modify them (e.g. click on an array inside the cluster and do an empty array operation.)
    In the attached screenshot, the control "BLE Meters To Test" is just an array of clusters and I was able to empty the array.  The control "Capture Data" is a strict type def.  I would like to clear the contents of this control without having to delete the control and add it back with a new instance of the same strict type def.
    Solved!
    Go to Solution.
    Attachments:
    screenshot.PNG ‏33 KB

    are you talking about edit mode or run mode?
    You could temporarily add a second instance of the typedef (all empty), then change it to a constant. Whenver you need to reset at run time, write the new digram constant to a local variable of the control.
    glstill wrote:
    Because it is a strict type definition, i cannot click on the elements inside the cluster and modify them (e.g. click on an array inside the cluster and do an empty array operation.)
    Make sure to click on the array container, not on the array elements.
    LabVIEW Champion . Do more with less code and in less time .

  • Default values in SE16 table selection screen

    Hi,
    when we open SE16 along with table name , In the selection screen of that table i want some default values apper for one particular field.
    How can i do that???

    HI.
    STEPS:
    1. Go to SE16.
    2. Enter a table name.
    3. In the selection screen of the table enter values   
    for the fields that you want to set as default values also called variants.
    4. Then click on Goto --> Variant --> Save as Variant
    5. Enter the variant name and short text for the same.
    6. Then click on save on top of the page.
    Steps To retrieve the variant.
    1. go to se16.
    2. Enter table name.
    3. Click on "Get Varian" icon or press "Shift + F5".
    4. Choose the desired variant.
    Thus you will be able to set default values in SE16
    table selection screen.
    Hope this is useful
    Cheers!!!
    Rajesh.

  • How to get value on the table control in infotyp e0008

    Dear Freinds
                I have written a user exit ZXPADU02 for my requirement
    as per the requirement in i have calculated  wa-poo8-bet01 = wa_p0008-ansal/12 and i have passed on to the INNNN structure .
    Nowe when do a Create or Copy for a rcord in  infotype 0008  iam not
    getting value on Q0008-betrg field on the SCREEN , since it is table control how to get data on the table Control Cell .
    Please let me knlow
    regards

    Hi Syamala,
    The try to find the name of the table control and pass the values to it.
    Of course you have to loop and endloop, the table control and mofidy it from the work area.
    Message was edited by:
            Sera

Maybe you are looking for

  • IPhone 3GS won't show up in iTunes

    Today, I upgraded my iPhone 3GS to the golden master version of the developer preview of iOS 4.3. After I updated, I opened iTunes (10.2.1), but it wouldn't show up, no matter how many times I unplugged it and plugged it back in. My first-gen iPad (a

  • Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870080)(ERR=12514)

    Hello everyone, I'm a complete newbie here... but I wanted to share with you a problem that's driving me mad. I've got a database that has been monitored for quite a long time. But now, for some reason, it keeps showing errors intermittently. Working

  • LDAP - Free unused Connections

    Hi, I am very new to work with Active Directory. I have got a PL/SQL script from net to communicate with LDAP and it is working fine. My task is to check the user names against the LDAP. But am getting "DBMS_LDAP: Cannot open more than 63 LDAP connec

  • Retina mac 10.7.4 battery icon

    Hi, the battery icon on my retina mac has no time display options... just % and batery icon.... i want the time back.... anyone know how to fix this?

  • Downloading the data in excel format

    Hi All,    I am downloading the data in excel format using FM CONVERT_SAP_TO_XLS_FORMAT and able to open the file in my machine since my machine is having EXCEL 2003 version. In some other machines i tried to download and open,  but after downloading