Check table validation

Hi all,
I have created a customized table. In one field I have assigned check table and foreign key checkbox is checked. But when this table is updated through a program it goes on creating any entry. Entry is not restricted to the check table values only. It goed on creatting values which are not in the check table.
How to avoid it?
Regards,
Jeetu

Hey Matt,
My 10 points was deducted when I had previously asked for points same as Ankesh.
Just wanted to know what in cases like this ;-).
Believe post by Ankesh has been removed by Moderator.
Cheers,
Jayant
Edited by: Jayant Sahu on Dec 4, 2008 4:22 PM

Similar Messages

  • Drop down  ! check table validating ?

    Hi,
    For ALV edit mode i am creating a fieldcatalog-checktable field fill with value ! , then also while in the drop values are get validated with check table?
    It is validating the entry with checktable? why ? after giving  ls_fcat-checktable = '!'.
    * Here YDROP_DOWN field have check tabke values " ", 1, 2
      ls_fcat-fieldname = 'YDROP_DOWN'.    
      ls_fcat-datatype  = 'INT4'.
      ls_fcat-checktable = '!'.
      ls_fcat-no_out    = c_x.
      append ls_fcat to pt_fieldcat.
      describe table pt_fieldcat lines v_rows.
      call method cl_alv_table_create=>create_dynamic_table
        exporting
          it_fieldcatalog = pt_fieldcat
        importing
          ep_table        = g_hts.
      assign g_hts->* to <i_status>.
    Then during the first display
      call method g_grid->set_table_for_first_display
        exporting
          is_layout            = gs_layout
          i_save               = 'A'
          it_toolbar_excluding = i_exclude[]
        changing
          it_fieldcatalog      = gt_fieldcat[]
          it_outtab            = <i_status>[].
      call method g_grid->set_ready_for_input
        exporting
          i_ready_for_input = v_input.  " it will be 1 or 0

    Hi ARS,
    See the below link and i am sure it will help you lot
    /people/srilatha.t/blog/2007/04/16/alv-grid-150-insert-row-function
    /people/david.halitsky/blog/2007/04/24/so-youve-got-to-code-an-editable-alv-inside-an-sap-provided-exit-and-x-function-group
    Problem in ALV
    Thanks
    Seshu
    Message was edited by:
            Seshu Maramreddy

  • Entry does not exists in check table -- Validation

    Hi friends..,
      I am able to create new entries in my table with INSERT statement through a function module.
    But, the problem is..,
    I am having one key field in my table, and T1(another table) is check table for this.
    So while creating the entries through SE11, its giving error message like ENTRY DOES NOT EXISTS IN CHECK TABLE. But the same entry i am able map through my function module..!
    Any extra settings reuired for this..?
    Or.,
    Am i need to write validation code?
    Thanks,
    Naveen.I

    Hi...Rama chary..,
    I am having separate function modules to do this..!
    So here I can't to update two table at time.
    My function module updating a table field with out checking it wrt its check table..!
    Even i write code to check table , it will not meet the functionality of SE11 error..!??
    so what can i do..?
    Thanks,
    Naveen.I

  • Selection screen parameter validation using search help/check table

    Hi experts,
    I have a select-option that is tied to a search help and check table (type tq80-qmart). Is there a way to automatically validate the field based on what comes up in the F4 search help? What I mean is, when the user hits F4 on the parameter, the list pops up with several records that the user can choose. When the program is executed, I want the program to show an error if the value is NOT in that F4 list.
    I know this can be done in AT SELECTION SCREEN event with a select, but I was wondering if there was a way ABAP does it automatically. Any help will be greatly appreciated.
    Thanks,
    Juan

    Hello Juan,
    SAP does have a standard way of allowing the the user to select from the list via LISTBOX.
    But list box is restricted to parameters only, you cannot attach list boxes to select-options.
    I think the best place to do this validation would be th AT SELECTION-SCREEN event & from your original post it seems you know what code to write

  • Input Data Validation Of A Field Associated To A Check Table

    Hello,
    Does Web Dynpro have an inherent functionality to validate input fields associated to a check table?
    For example I created a structure with the field UNAME and defined USR02 as the check table for it.  And then I defined a UI InputField in my View and bind it to UNAME.  Web Dynpro does NOT seem to do an automatic validation to check if the value entered by the user exists in USR02. 
    Is there an interface or class that can be called in method WDDOBEFOREACTION to do the validation.  Or do we just have to do some manual validation using SELECT statements?
    Thanks.
    Giscard

    Hi Giscard,
    Web Dynpro does automatic validation when  you assign the check table  .
    You need not write any code as such.
    If the data which you entered is incorrect ,when you are trying to perform any action(like saving the data in data base or performing any further action with the wrong data that ia entered )
       the system throws an error message as"USERNAME -
    NOT IN THE SYSTEM'.
    Regards,
    Priya

  • Inserting records into Table with check table logic in place

    I want to insert records into a table, and have the check table to not allow invalid entries.  Is there a function out there that will allow this?  I am currently using the insert statement and it is working except that it is not giving an error when the value does not exist in the check table for the particular fields.
    INSERT INTO ZSD_XREF VALUES WA_XREF.
    That is the basic statement I'm using ZSD_XREF has several fields one being the material number field tied to the check table which happens to be MAKT file.  The insert statement is not validating the material numbers using the check table, or at least it is not giving an error.  Any ideas?

    Paul,
    Unfortunately, open SQL statements such as INSERT, UPDATE do not go through the check table logic as they directly hit the database layer. Check table checks are performed only if you go through application layer that is when you enter the same data through a screen.
    You have to do the checks yourself.
    Happy checking!!!
    Srinivas

  • Is there anyway we can check the validity of dump file in Unix system

    Hi,
    I have taken export of 2 tables which are huge in volume. one of the table seems to be successfully exported yet another one failed due to space scarcity. Since both the tables share a single dumpfile.
    I wanted to know.
    1. Can we use the same dumpfile to import the table which is successfull or it can not be used because the second table got error while exporting?
    2. Is there any way we can check the validity of dumpfile in unix plateform.
    Your reply is highly appreciated.

    784786 wrote:
    Hi,
    I have taken export of 2 tables which are huge in volume. one of the table seems to be successfully exported yet another one failed due to space scarcity. Since both the tables share a single dumpfile.
    I wanted to know.
    1. Can we use the same dumpfile to import the table which is successfull or it can not be used because the second table got error while exporting?No. It is better to take another backup of the same
    >
    2. Is there any way we can check the validity of dumpfile in unix plateform.
    Please check the export log backup. If it says that export terminated successfully, then the dump may be fine.

  • QM UD Error Message: Check table XEKBN: entry 45039875220001003 does not exist.

    Hello QM expert,
    I encounter a error when I make a UD. (Please refer to below screenshot. )
    Case 1: I did quantity post to unrestricted use, to scrap, to blocked stock, to new material, to reserves, return delivery. When I save this UD, there is a error message 'Check table XEKBN: entry 4503987522000100310100 does not exist.'  (PS. 4503987522 is PO number, but I don't know what it is about 10031010.)
    Case 2: I fill the same field like Case 1, but exclude to new material. It can be passed, no error message.
    Case 3: I only fill one field [to new material. It can be passed, no error message.
    Could you please give me some guidance? Thank you so much.
    Best Regards,
    Fanchao Bu

    Hi Fanchao,
    Form the inspection lot number range, I believe you are using GR form Purchase Order, right? Please confirm the below points -
    1. Is this a normal PO or Sub-contractor's PO?  Please confirm if this issue is happening for every stock posting like Unrestricted, Scrap, Blocked...? or just for one? Can you try one by one for example, move stock form QI => Unrestricted stock only (and do not combine all types together like the attached screenshot) and suggest if that is working.
    2. If this is a non-valuated material you have used (NLAG) for testing? Are you trying to post materials for previous period? Storage Location SM10 is valid?
    If still this issue exist, then potentially, there is some issue with valuation variant linked to valuation area, which is normally maintained in Configuration OPK9. Paralelly, you can request your ABAP team to check FM MB_UPDATE_VALUE_ENQUEUE_TABLE, Include LMBGBU04, as suggested by the below link -
    SAP ABAP Function Module MB_UPDATE_VALUE_ENQUEUE_TABLE - SAP Datasheet - The Best Run SAP Run SAPDatasheet
    You can also check SAP notes below, based on the business needs:
    1. 403671  - Error M7001: 'Please check table &...'
        401462  - Error M7001: 'Please check table &...'
        201833  - M7001: 'Please check table XEKPO: Entry & &...' 
        2072019  - Error M7001 raised during posting goods receipt
        407265  - Transfer parameter with BAPI BAPI_GOODSMVT_CANCEL (this may be linked to your return Delivery of 1 PC...)
        439945  - GR w/ freight costs for stock transport ordr w/ML currencies
        521090  - FAQ: Stock transfer to stock transport order
        867878  - Inconsistencies in the EKBE table because of conversions
        214814  - M7001/M7361: Table T156M, entry MAA7 2
        1584493  - Overdelivery check for GR blocked stock with GR-based IV
        102863  - GI f.delivery f.a stock transfer w.delivery costs
    2. 409529  - Price differences during goods receipt for purchase order
    3. 1528009  - MAA: incorrect distribution of goods receipt quantities
    4. 1569831  - MAA2: Composite SAP Note after Support Package SAPKH60504
    5. 406973  - M7001: Please check table XEBEFU: Entry does not exist
    6. 70577  - QA11: Error M7001 when posting qty in usage decision (OLD NOTE, May not be applicable)
    7. 824322  - QAC1: Incorrect batch in material document (Old Note, may no be applicable)
    Else, you can speak to MM team and/or FI team to help you better in this case, as I feel there is no much QM issues involved.
    Thanks,
    Arijit

  • Remove check table from a characteristic in CO-PA

    Hello,
    for one user defined characteristic in our operating concern, we would like to remove the related check & text table (T25**). We would like to keep the values and keep using the field, but without the additional controls of the check table;
    Note 70623 helps a bit.
    Does anybody have any experience with that kind of actions? Possible Consequences?
    tx
    Nico

    Hi,
       You cannot remove the check table once values have been posted to the char. It is not possible to change the characteristic validation to 'no check' for a char to which values have been posted.
    Let us assume that the user defined char is WWRGN
    WORKAROUND:
    If you wish to invalidate the check table then
    1.) Remove the entries for fields CHTAB and CHFIE from the TKEF record   for WWRGN (that means FIENM = WWRGN) so that these fields are afterwards initial in table TKEF for the WWRGN record. In tcode SM30 you    can maintain the values for V_TKEF.
    2.) Execute function module RKD_SHORT_TEXT_GENERATE for APPLCLASS = KE    so that program RK2FGPKE is regenerated.
    Afterwards there should be no KE0C133 error any more for char WWRGN.
    regards
    Waman

  • Check table and value table -Example

    Hi Experts
                  Please give me the step by step procedure to create the check table and value table, and how to work on it.
    Thanks in advance.
    Regards
    Rajaram

    Hi
    Check Table is for Field level Validation whereas Value table is for Domain Level Validations.
    Value Table proposes table for check table.
    I think you are clear with this.
    more elaborate.
    Check Table
    The Check Table is the table used by system to check if a data exist or not exist.
    While creating a table if you want to be sure that a field can have some values
    and these are in a certain table, you can give IT this table as CHECK TABLE.
    Value Table
    This is maintained at Domain Level.
    When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator.
    Here only allowed values is H or S.
    When ever you use this Domain, the system will forces you to enter only these values.
    This is a sort of master check . .
    To be maintained as a customization object.
    This mean that if you want to enter values to this table you have to create a development request & transport the same.
    Differences:
    1)check table will carry out the check for input values for the table field being entered in any application
    and value table will provide values on F4 help for that table field.
    2)The check table defines the foreign keys and is part of the table definition.
    The value table is part of the domain definition.
    check table is validation at field level.
    value table is at domain level.
    Value table is defined at the domain level and is used to provide F4 help for all the fields which refer to that domain.
    Check table is defined against a field in SE11 if you want the values in that field to be checked against a list of valid values. For e.g. if you are using the field matnr in a table you could define MARA as the check table.
    Also while defining a check table SAP proposes the value table as check table by default. Referring to the previous example if you tried to define a check table for the matnr field SAP would propose MARA as the check table.
    1. what is the purpose / use ?
    -- so that the user can select values
    from some master table , for that field !!!!
    2. This is done by
    CHECK TABLE (foreign key concept)
    (and not value table)
    3. When we create a check table for a field,
    then
    some DEFAULT table is PROPOSED
    4. that DEFAULT table is nothing
    but PICKED up from the domain of that field,
    and shown from the value of VALUE TABLE.
    CHECK TABLE -it is a parent table.
    for example..
    i have two tables ZTAB1 and ZTAB2.
    I have one common field in both the tables,i can make any ztable to be the check table .If i make Ztab1 to be the check table then when i have to make an entry in ztab2 i will check whether ztab1 is having that value or not..
    its also field level checking..
    Valuetable-It is nothing but default check table.
    one parent can have n number of child tables.For example
    For ztable we have zchild1 and zchild2 tables r there.
    Its domain level checking..When zchild2 uses the same domain as used by zchild1 then the system automatically generates a popup saying a check table already exists would u want to maintain it.
    go to domain and then press the value tab u can see the valuetable at the end...
    Please refer the links below,
    d/r b/n check and value table?
    wjhat is the exct difference between check table and value table
    what is the check table and value table
    check table and value table
    Re: wjhat is the exct difference between check table and value table
    http://www.sap-img.com/abap/difference-between-a-check-table-and-a-value-table.htm

  • Reg value table and check table

    Hi Friends,
        I have defined a value table(ZVALTAB) for a domain and defined the relation ship between check table(ZCHKTAB) and dependent table(ZDEPTAB). Here value table and check table both are different. My problem is while I am entering the values into check table, it is not restricting the values to enter into check table even those values are not in value table. And while I am entering values into the dependent table through the menu option Utilities->Create entries then also foreign key is not working. But when I use the SM30 then the foreign key is working. So can any body explain me when this value table restrict the values and why the option Utilities->Create entries is not validating the foreign key relation ship.
    Sathish Reddy

    Hi,
      Value Table will just provide you the possible set of values.  It won't restrict u for the wrong entries.  Moreover whenever u enter entries thru Create entries no user interface is available.  The constraints whatever we give is not at all stored in the Data Dictionary.  Only the user interface which takes care all about this.  Hence it wont restrict you.  For this u have to create table maintenance generator for your table.  Then it will restrict the values against check table.
    Both Value table and Check table will provide u possible set of values.  But only the check table will restrict the values.
    Hope this will help u.

  • Table validation question

    Hi
    I have created 2 tables zposition, zwork.
    The fields in zposition is department and position.
    The fields in zwork is empid, department, position, firstname and lastname.
    I wanted to create a validation that when i insert the data into the zwork, the system will automatically check against the zposition tables for the department and position that was store inside it. How do i do it?

    in ur zwork table where u find the fields department and position..
    in the table fields of zwork just put the cursor on this field say department and click the key button(on the top) it will propose for a check table and in there give the zposition table relavant field department.
    the answer is there in ur question itself ...
    // check against the zposition tables for the department and position--> u need to propose the check table on that field .
    so all in ur are validating the zwork department entry with zposition department field..

  • Error in lsmw: "Invalid Text ID (Check Table TTXID )

    DEAR ALL,
    I am uploading purchasing order text in material master by Standard Batch/Direct input method.
    In last step Start Direct Input Program it gives error as below.
    "Invalid Text ID (Check Table TTXID )"
    Please give solution
    Regarts
    Atul

    Hi,
    probably you use invalid object ID. All valid object IDs are defined in the table TTXID. For purchase document header it is EKKO and EKPO is for item level.
    Cheers

  • Purpose of Entry/Check Table and Currency Quantity Fields...!

    Hi......!,
    I want to know what is the purpose of this   Entry/Check Table and Currency Quantity Fields, while creating a table in DDIC .
    give me a clear explanation .....!
    best answers would be rewarded.
    thanks
    prasad

    Hi Prasad,
    All the Modules in SAP are inter related,
    So their Tables also must be related and must be valid
    and they are related to foreign key relation ships
    and also we can provide the list of input values using search helps
    to know what the search helps and check tables are assigned to the particular  field they provided the tab
    In the currency fields or quanitiy fields we only enter the amount but not the units,
    so the units are assigned if we provide the reference field and table , and so that tab is provided to check what are reference fields and tables and also to assign new fields
    hope I am clear
    Reward if helpful
    prasanth

  • Value and check tables

    Hi
    If check table is there for field validation then what is the exclusive use and purpose of value table. Also viceversa?

    Check Table is for Field level Validation whereas Value table is for Domain Level Validations.
    Value Table proposes table for check table.
    I think you are clear with this.
    more elaborate.
    Check Table
    The Check Table is the table used by system to check if a data exist or not exist.
    While creating a table if you want to be sure that a field can have some values
    and these are in a certain table, you can give IT this table as CHECK TABLE.
    Value Table
    This is maintained at Domain Level.
    When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator.
    Here only allowed values is H or S.
    When ever you use this Domain, the system will forces you to enter only these values.
    This is a sort of master check . .
    To be maintained as a customization object.
    This mean that if you want to enter values to this table you have to create a development request & transport the same.
    Differences:
    1)check table will carry out the check for input values for the table field being entered in any application
    and value table will provide values on F4 help for that table field.
    2)The check table defines the foreign keys and is part of the table definition.
    The value table is part of the domain definition.
    check table is validation at field level.
    value table is at domain level.
    Value table is defined at the domain level and is used to provide F4 help for all the fields which refer to that domain.
    Check table is defined against a field in SE11 if you want the values in that field to be checked against a list of valid values. For e.g. if you are using the field matnr in a table you could define MARA as the check table.
    Also while defining a check table SAP proposes the value table as check table by default. Referring to the previous example if you tried to define a check table for the matnr field SAP would propose MARA as the check table.
    1. what is the purpose / use ?
    so that the user can select values
    from some master table , for that field !!!!
    2. This is done by
    CHECK TABLE (foreign key concept)
    (and not value table)
    3. When we create a check table for a field,
    then
    some DEFAULT table is PROPOSED
    4. that DEFAULT table is nothing
    but PICKED up from the domain of that field,
    and shown from the value of VALUE TABLE.
    CHECK TABLE -it is a parent table.
    for example..
    i have two tables ZTAB1 and ZTAB2.
    I have one common field in both the tables,i can make any ztable to be the check table .If i make Ztab1 to be the check table then when i have to make an entry in ztab2 i will check whether ztab1 is having that value or not..
    its also field level checking..
    Valuetable-It is nothing but default check table.
    one parent can have n number of child tables.For example
    For ztable we have zchild1 and zchild2 tables r there.
    Its domain level checking..When zchild2 uses the same domain as used by zchild1 then the system automatically generates a popup saying a check table already exists would u want to maintain it.
    go to domain and then press the value tab u can see the valuetable at the end...
    Please refer the links below,
    d/r b/n check and value table?
    wjhat is the exct difference between check table and value table
    what is the check table and value table
    check table and value table
    Re: wjhat is the exct difference between check table and value table
    http://www.sap-img.com/abap/difference-between-a-check-table-and-a-value-table.htm
    <REMOVED BY MODERATOR>
    GAURAV J.
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 3:29 PM

Maybe you are looking for

  • How can i request an input of data from a deployed web service via a html

    Hi all, I am currently having trouble with a web service. I want a client to be able to input a numerical value for a control in a deployed VI. At present i have one main vi that generates a signal and i've collected waveform data and displayed this

  • Any way to get only new updates for disconnected WSUS?

    Greetings, I have two servers set up. One is online, getting the new updates correctly. The other one is offline where I successfully was able to transfer the approve updates from the online WSUS.  My work requires me to get new updates and transfer

  • (.sqlproj) is not supported VS 2013

    Hi, I have VS 2013 and SSDT installed . I could see create new database project template . But when i create one, i have an errror like below 'C:\Users\___\AppData\Local\Temp\Database1.sqlproj' cannot be opened because its project type (.sqlproj) is

  • Want to maintain my inventory status in Length or Weight ( Pls Urgent )

    Hi For example i am procuring    steels in tonnes,                      steels in 2 tonnes or 2000kg    liquid chemicals in liters,           liquid chem in 100 liters    Granites in meters                   Granites in  1000meters then i am selling

  • Iphone does not recognise Iphone photos

    I shot normal iPhone photos (3G) which are always stored as JPG. Never had problem for them to be recognized or imported. Now though iPhoto says it is unable to determine the format and cannot import. I can see the files but they are hollow boxes. I