Validation for records inTable maintaince generator

Hi friends,
I have created a table ZSTUDENT_INFO. and i have created a table maintaince generator for it....
now i have fields...
ZSCHOOL , ZCLASS , ZNAME , ZAGE  , ZROLLNO.
now i have school and class as key fieilds....
now my requiremnet is when the user his entering his records
case 1)  for same school and class the roll number is unique ie : we cant have 2 persons with same roll numbers
                    for example  :
                         school        class      name     age     roll no
                            Adams      4            rahul       8         2
                            Adams      5            Rahul      9         2
                           adams       4            kiran        8         2
ist 2 records are differnet ist record is 4thclass and 2nd record is for 5th class but the rd record is same as ist record...
now in this case the user should not able to save the 3rd record as alredy same record is there..
case 2)  when the user is entering the record he should check in the table whetther the same combination alredy exits in teh table or not .. if exists it should give us an error mesage saying data already exits..
How can i do this and where should i do this...
Regards
Satish

Hi satish,
First of all if it is a key field system will take care of giving the duplicate record error.
If you want to do any validations in table maintenance generator. Please check the following links or search the forum
with the Table Maintenace Generator events.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc?overridelayout=true
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
If i misunderstood your requirement, please elaborate the question.
Thanks

Similar Messages

  • Error when doing validation for fieldsoftable inTable maintenance generator

    Hi All,
    I have issue after doing table maintenance generator for a a table.
    Actually i have created a table then table maintenance genarator also created.
    Then i need to do some validatons on few of these table fields so i went to Screen of Table Maintenance and Added on MODULE Validations at the end.
    Then double clicked on that include but by mistake i have added that module in standard Include LSVIMF04.
    And there i added one condition for table field and saved/checked code.
    And then i have come out of that code.
    Now this code is effecting All the Table maintenance screens in my system.
    How can i solve this issue.
    I will not be able to go to that include again and revert back the changes.
    Can anybody solve this issue!
    Thanks,
    Deep.

    Hi,
    As it is a standard include we will not be able to edit at all.
    When Table maintenance screen is opened it is giving error saying Table not declared.
    We will not be able to do any manipulation.
    Thanks,
    Deep.

  • SCB indicator is missing or is not valid-No DME could be generated for the

    Hi All,
    Using transacttion F110,
    vendor payments were generated. Payment run successful.
    In 'Display Payment Run log',
    Warning: Check whether a duplicate payment medium has been created
    SCB indicator is missing or is not valid
    No DME could be generated for the following documents
        CoCd Payment document/Payment order
        0100 2000199545
    >
    > Overview of the files generated (DME)
    > Name / File name
    > DME file (TemSe) - bank BK03 / DTA111128154701_3215
    >> Error log / LISTFS / 0000093865
    I have checked the document has SCB number stored.
    please suggest.
    Thanks and Regards
    Reena

    Hi Reena,
    The error you have mentioned in the initial description is the error code F0265.
    Regarding the error code F0265, this arises because the payment medium programs RFFO* look for the field bseg-landl and bseg-lzbzk to be filled.
    These fields are necessary for Germany as the f1-help states and if they are missing, you receive these error messages f0265. Please have a look at note 23562 as well for more information.
    Sometimes users forget to enter SCB indicator in the invoice document and thus it results in problem reported error messages
    at the time of creating payment medium.
    In this case either you can make the SCB indicator field "required" in the field status or create a validation rule for those invoices for which SCB indicator should be entered.
    To derive SCB indicator automatically I think substitution rule could be of help too as a workaround.
    Hope this helps.
    Kind Regards
    Soumya

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • Defining complex validations for flex items

    Hi,
    We've defined a flex regions and a number of flex items. We would like to define more complex validation logic at the entity object level, whereby we'd like to reference both 'fixed' entity attribute values as well as values of the flex items.
    Could you please indicate how this can be achieved in the validateEntity method of the EntityImpl.java class.
    We know beforehand which flex items will be displayed based on the value of one of the fixed entity attributes (e.g. if the attribute request_type='assist' then display flex items A and B, if request_type='info' then display flex items D, E and F). We use flex items because the number of request_types and corresponding 'dynamic' attributes is too large (and subject to frequent additions, deletions or modifications) to incorporate in a fixed static db table structure.
    If you can suggest alternatives to using JHeadstart flex items, these are more than welcome, of course.
    Many thanks beforehand,
    Ibrahim

    Dear Steven,
    First of all many many thanks for your prompt reply. We can use JSF EL expressions to conditionally render flex items. I'd like to illustrate my question with a simple example:
    We have three fixed entity attributes displayed:
    RequestType
    Birthday
    Sex
    and two flex items (rendered at runtime for a specific runtime value of RequestType):
    Smoker (Y/N)
    Weight
    Before saving the record I'd like to check a number of validation business rules that depend on the fixed entity attributes as well as the two flex items being displayed.
    Consequently, I'd need to be able to access the flex item values provided by the user, inside my validateEntity method (right ?).
    I can define simple validations for the flex items, but I can only access the flex item value and possibly the DependsOnItemValue.
    PS: When I define a flex item of type 'inputtext' and try to access its value using a bind variable in the validation query of the flex item e.g.
    :ItemValue = 'blabla'
    Suppose the user fills in the value Abracadabra, the validation logic substitutes as follows:
    Abracadabra = 'blabla' (which generates an Oracle error). I'd expect the following substitution to take place:
    'Abracadabra' = 'blabla'

  • What is table maintaince generator

    what is table maintaince generator
    plz tell me clearly

    Hi,
    Table generator will check duplicate entries as any
    other table .
    the table maintenance for tables to enable entry, edit, display and delete functions for the table
    table maintanance Generator is used to manually
    input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under
    attributes tab
    2) utilities-table maintanance Generator->
    create function group and assign it under
    function group input box.
    also assign authorization group default &NC& .
    3)
    select standard recording routine radio in table
    table mainitainence generator to move table
    contents to quality and production by assigning
    it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers
    this dialog box appears when you click on create
    button
    6) save and activate table
    using sm30 you can create entries manually.
    Reward points if it helps.
    Regards,
    charitha.

  • Validation for Profit Center and Trading Partner

    Hi Gurus,
    Please help me in creating validation for Profit Center and Trading Partner.
    I want system to give an error if we use Trading Partner related to particular profit centers.
    Please revert asap.
    Thank You

    Hello,
    Please use T.code OB28 and select the call up point 2.
    Than go to Prerequisite in expert mode and say
    Prerequisite  :           BSEG-VBUND <> ' '
      Check:               BSEG-PRCTR = ' '
      Error Message.: xyz
    I have created Validation understanding if someone gives Trading Partner and also Profit center while posting a doc than it will generate an error message.
    however if you have some diff req please change it accordingly/ take Abapers helps if not very clear.
    I hope this helps
    Regards
    Shireesh

  • Data validation for Date Field in Web Dynpro ABAP

    Hi ,
    In my WDA i want to perform data validation for date filed. (i.e. While creating a new record i have to check the Start Date should be always lesser than End Date.)
    If u ll enter the wrong date it should validate the Date and throw an error message.
    Please Reply soon its urgent.
    Thanks,
    Deepika

    Hi,
    First read the two attributes start date and end date.
    Then write the following condition.
    IF item_start_date > item_end_date.
    Error message.
    Endif.
    For pop up error message you need to use Create_window method of the Interface if_wd_window.
    Thanks.

  • JS Validation for Drop down List is not working in Oracle PL/SQL Package

    Hi All,
    I am facing an issue with JavaScript validation done in Oracle PL SQL package.
    System Requirement:
    There is one screen which contains two fields viz. FLD 1 & FLD 2 and one 'Submit' button.
    FLD 1 and FLD 2 fields are drop down list boxes.These are mandatory fields.
    The screen is developed in Oracle Mod PL SQL package.
    The html coding and java scripting are embedded in the respective Oracle PL SQL Package procedure which generates this screen,takes the input values provided by user,does the
    field validations and submits the form.
    Issue:
    The javascript validation for FLD 2 dropdown is working successfully.
    When the user leaves this field as blank,the embedded javascript pops up an error message 'Selection of FLD 2 is manadatory before submitting the form!'.
    As FLD 1 is also a mandatory field,the javascripting validation should pop up the similar error message 'Selection of FLD 1 is manadatory before submitting the form!'.
    But,this first field validation is not at all working.
    The system allows to submit the form even if the 'FLD 1' is left blank.
    The javascript code sysntax for validation of FLD 1 & FLD 2 drop down list boxes as follows:
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    I am viewing the screen from the web browser IE version 8.0.
    Your timely help will really be appreciated.
    Regards & Thanking in advance,
    Alka

    Hi,
    1. Your problem is actually related to JavaScript, not SQL and PL/SQL. So, this is the wrong forum to post. The closest to JS is the Application Express forum {forum:id=137}. Clearly state that it is not an Apex issue and that you are looking for JS help.
    2. Your JS code, the way you has posted it, is syntactically incorrect, so if you post on Apex forum put the correct code and in tags as described in the FAQ
    {quote}
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    {quote}
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Validation for Non-AlphaNumeric characters

    Hi All,
    I want to do Validation for Non-Alpha Numeric characters.
    While saving record, Name should only allow alphanumeric(letters and numbers only) characters, No special characters.
    How to do this?
    Plz help
    Thanks,
    Sk

    SK
    In EOImpl file in setter method of Name you can write below logic
    import java.util.regex.*;
      public void setLastName(String value)
        Pattern p = Pattern.compile("[^a-zA-Z0-9]");
        Matcher m  = p.matcher(value);
            if (m.find()){
                System.out.println("last Name"+value);
                throw new OAException("Special Characters Not allowed in Name", OAException.ERROR);
           setAttributeInternal(LASTNAME, value);
      } Hope it helps!!!!
    Thanks
    AJ

  • Time stream from resource WC not valid for total display period (PP/DS)

    Hi Apo Experts,
    As I enter the product view in the PERIOD TAB, this error message pops up "Time stream from resource WC not valid for total display period".
    Diagnosis was "The time stream for resource WSMT200_9000_001 is not valid for the general display period. This can cause the display of the time buckets profile for this resource in the product planning table to be inaccurate."
    Please, can someone help me understood what was this error mean and the cause? And maybe an idea on how to correct this.
    Greatly appreciate your answer!
    Thanks in advance,
    Raymond

    Hi Raymond,
    the capacity of a resource in the live cache is generated in the past and in the future according to the settings Planning Parameters (/SAPAPO/RES01) on tab general data. Here the days- and days+ are important.
    e.g. the resource has got the following parameters: days- 30 and days+ 180.
    Today we have the 1th of January 2008.
    After starting the product plan table you can choose the planning horizon from/to.
    If the time fence is more than 180 days in the future you will get your message above because planning parameters do not "allow" more than 180 days in the future.
    Instead of this the message do not appear if you choose a smaller value.
    For more information please see SAP Note 449452.
    Hope this helps.
    Greetings
    Timo

  • Validation for WHT code

    Friends,
      i want stop using of one With Holding tax Code in income type 194J in Country IN.how can i give the validation for this.
    Thank u in Advance,
    Satyam

    Hi,
    Try with GL Accounts used for section code 194j, but i am not sure, whether validations work for Automatically generated line items.
    Otherwise, try to block the gl accounts for posting, which are used for 194j
    Otherwise try to remove the assignment of tax types(related to 194j) to company codes.
    I am giving my assumptions only, try to work on the alternatives specified above.
    all the best
    Prasad

  • Validation for a extension field in the BAPI ( BAPI_ACC_DOCUMENT_CHECK)

    Hi,
    I am working on an in terface for upload of data in journal ledger(FB50)
    Actually i need to validate a field which has been included in transaction FB50 as an enhancement based on customer need .
    a function module was created as suggested in note 487722 earlier but now we require to validate that field(transaction type) as i am using this BAPI in an interface for journal ledger posting FB50 for data validation of the file data.
    this field has been populated as a part of the extension parameter in the bapi -
    (( BAPI_ACC_DOCUMENT_CHECK)
    field values for this field have been passed in the business transaction.
    but i am not sure where to code the validation for this field .
    could anybody suggest if we need to do it in include ZXACCU15 .
    if so then how do we populate the values for the return parameter.
    i am post ing document using IDOC and need to generate the for the errors generated.
    it already shows for all the standard fields of the transaction.
    Its a bit urgent,
    help wud be appreciated
    jy

    Hello Jy
    The following coding shows how to evaluate the existence of the transaction type in table T856 and how to create the corresponding BAPI message (using function module <b>BALW_BAPIRETURN_GET2</b>):
    *& Report  ZUS_SDN_BAPIRETURN_GET2
    REPORT  zus_sdn_bapireturn_get2.
    START-OF-SELECTION.
      " Call BTE function within BAPI (actually OPEN_FI_PERFORM_RWBAPI01_P
      " calls the z-function module)
    **  CALL FUNCTION 'Z_FI_INTERFACE_RWBAPI01'
    **    TABLES
    **      c_accit           =
    **      c_acccr           =
    **      c_return          =
    **      c_extension       =
    **      c_accwt           =
    **    changing
    **      c_acchd           =
      " Coding within your BTE function module:
      DATA:
        ls_return    TYPE bapiret2.
    * transaction type
      READ TABLE it_accit INTO ls_accit
           WITH KEY posnr = ld_posnr.
      CHECK ( sy-subrc EQ 0 ).
      ld_tabix = sy-tabix.
      ls_accit-posnr = ld_posnr.
      ls_accit-rmvct = ls_bapi_extension-field3.
      MODIFY it_accit FROM ls_accit INDEX ld_tabix.
    " Validate existence of transaction type
      SELECT SINGLE * FROM  t856 into ls_t856
             WHERE  trtyp  = ls_accit-rmvct.
      if ( syst-subrc ne 0 ).
        " Note: the following IF condition looks apparently strange yet its primary
        "         use is to ensure that the Where-Used-List for message 014(GC)
        "         will find our function module
        if 1 = 2.  MESSAGE e014(gc) WITH ls_accit-rmvct.  endif.
    *   Transaction type & is not defined
        clear: ls_return.
        ls_return-message_v1 = ls_accit-rmvct.  " type conversion
        CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            type             = 'E'
            cl               = 'GC'
            number           = '814'
            PAR1             = ls_return-message_v1
    *       PAR2             = ' '
    *       PAR3             = ' '
    *       PAR4             = ' '
    *       LOG_NO           = ' '
    *       LOG_MSG_NO       = ' '
    *       PARAMETER        = ' '
    *       ROW              = 0      " ld_tabix
    *       FIELD            = ' '    " RMVCT
          IMPORTING
            RETURN           = ls_return.
        APPEND ls_return TO c_return.
      ENDIF.
    END-OF-SELECTION.
    The advantage of using the function module over directly filling the BAPIRET2 message variable is that the function module generated the message text (field BAPIRET2-message = 'Transaction type '<type>' is not defined').
    Regards
      Uwe

  • Requesting guidance on how best to deal with removal of CreateElementSteps for tables when option to 'script validation for new constraints' is enabled during schema compare

    I have a DeploymentPlanModifer subclass that is responsible for removing certain tables from a deployment plan under specific conditions. It is relatively trivial to find the
    CreateElementSteps I need and subsequently remove them via
    DeploymentPlanModifier.Remove(), but...
    ... if in my comparison I have enabled the 'Script validation for new constraints' option, the deployment plan will contain a
    DeploymentScriptDomStep with a Batch containing AlterTableConstraintModificationStatements for tables with foreign key constraints. My problem starts here - there will be an orphaned
    AlterTableConstraintModificationStatement for each of the tables that I removed. Obviously, execution of the generated script comes to a grinding halt when asking SQL Server to to alter a table that is never created.
    I'm able to get around this by digging around in the aforementioned batches and removing the orphaned alter statements, but this seems really hacky, which makes me think I'm missing the proper way of dealing with this.
    So... if anyone is aware of a more correct way of avoiding this problem, I would really appreciate finding out more about it.
    Thanks in advance for any help. :-)

    Hi Greg. Unfortunately there is not an easy solution here. Walking the deployment model, spotting potential issues and excluding them really is what you have as an option here. The alternative is to pre-process the dacpac to have it in the form you want,
    but I'm not sure if this is an option in your case and it also has limitations.
    Regards,
    Kevin

  • Trigger validation for upat event in row level

    Hi,
    i have a emp table with 100 columns.Iwrote  a trigger for insert and update like bellow.
    create or replace trigge t_emp
    AFTER INSERT OR UPDATE ON  emp
      REFERENCING NEW AS NEW OLD AS OLD 
    FOR EACH ROW 
    BEGIN
    if inserting then
    insert into emp_temp1 values(:new.1,:new.2.....);
    elsif updating then
    insert into emp_temp2 values(:new.1,:new.2...);
    end if;
    end;
    for insert and update i am able to get records perfect.My problem is if i open a record in emp and modify the colum with same value then also i am getting record into emp_temp2.i don't want duplicate so if i wrote like bellow
    IF :OLD.1<>:NEW1 OR :OLD.2<>:NEW.2 like  then i won't get duplicate but there are 100's of columns is there .So is there any alternative for record level validation.
    remember here is no primary keys...

    Either check all your columns or create a primary key or unique constraint or unique index

Maybe you are looking for

  • How to configure two separate channels

    Hi all, I'm working with a two nodes RAC using 9.2.0.8 Enterprise edition. I want to configure the archivelog backup: CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' CONNECT 'rman_intranet/oracleto@DBCIAT01' PARMS 'ENV=(TDPO_OPTFILE=/home/adsmadm/rman_DBC

  • Premiere Pro CS4 export problem

    I am a new user of PP CS4 and I have created a short 2 1/2 minute clip with no problems. I have selected all the appropriate setting as per Adobe PP CS4 "Classroom In A Book" instructions. Exporting the clip as a MPEG2-DVD, NTSC 720x480, 29.97 Drop F

  • Font issues

    hello, I have a problem with Acrobat 8.2 not showing all letters of the same font (arial) in certain PDF's for some users.  The document is created on an application server using Java.  Only a few users have had this problem and I've narrowed it down

  • Time Machine makes full backups on dual boot MacBook Pro

    Since installing Lion alongside Snow Leopard, Time Machine insists on backing up everything on the Snow Leopard side (around 190GB) and a large portion of Lion (around 35GB) each time I run it from either partition to a 2TB Time Capsule. When I first

  • How is the screen lit?

    Hey, I just got my mbp 17 inch in the mail and i was wondering how the screen is lit... The reason i'm curious is just because when i stand from a distance, or look at the screen from an angle, all along the top i can see places where it's lighter, b