Validation for CO posting

HI friends,
I am doing validation in CO for KB15n posting. Here we give sender and receiver object. In receiver object there are cost center and Internal Order field. When we put both cost center and IO in receiver object field, system gives warning message and passes the entry but i need to restrict this to only one receiver object  through validation.It should be either cost center or internal order.
Please help me out. Any suggestion would be appreciable and awarded.
Regards,
Nilesh

Hi Nilesh,
Can you pls check if I am not wrong, Only when you select the "Screen Variant" for either Cost Center / Orders etc in KB15N screen, the system will display the corresponding object on the receiver side.
I dont think Validation ans substituion is required for this screen, coz, the standard Screen Variants provided by SAP itself are much flexible.
Pls revert back for further explanation...
Srikanth Munnaluri

Similar Messages

  • Asset validation for acquisition posting

    < MODERATOR:  Message locked.  Please post this message in the [Asset Accounting forum|SAP ERP Financials  - Asset Accounting;. >
    Hi All,
    I am facing a problem while writing an asset acquisition validation.
    When we post through F-90, the document should be posted only if the acquisition (TTYpe 100 for asset acqusn) amount is less than 5000; if greater than 5000 an error msg should appear.
    For amount there is a field WRBTR in BSEG but, there is no field BWASL for Transaction type in BSEG table.So the validation is not working.
    Any clues to resolve this situation?
    Thanks in advance.

    Hi
    Goto TCode AO73 and check table and other details you needed.
    Cheers
    Srinivas

  • Validation for posting date.

    hi,
    i am creating a validation for fb01 where the posting date should not be less than the posting date for last document posted for same doc type.
    we have assigned different number ranges for different a set of document types.
    From which table can i get the data regarding number ranges used for particular doc type or group of doc types.
    for example i need the nyumber range assigned to doc type 'SA' and the last doc no. assigned to a document.
    Regards,
    Tarun Bahal

    i have checked FBN1.... i beleive its for creating number ranges.....
    how do we find out which range is assigned to which doc type.
    Regards,
    Tarun

  • Validation for GL 23876 to to post only for KG doc type

    hi all
    i want to write a validation for a GL 238760 this must only be posted only in KG document type it must not post in other doc type like KR nd KZ
    i want to write a validation for this.
    in the GGB0 screen which message type shall i select and what steps shall i use for this.
    please let me know the validation for this function.
    Kind regards

    Hi:
        Please go to GGB0...Create a validation in financial accounting at line item level by selecting line item and create a step. It will open 3 further drop down for you. Select the 1st one and proceed as follows
    Prerequisites:
    BKPF-BLART = 'KG'  (here you can make it transaction code specific as well)
    Check:
    BKPF-HKONT = '23876'
    (you can give set of GL account by creating it in GS01 and specifying it here)
    Message:
    Assign an error message to it with category E.
    Please check this will work .
    Regards

  • Validation for posting date is less than 7 days of current date

    Hi
    I want to create a validation wherein  system will validate every entry that whether posting date is less than 7 days of current date. If it is than check in a set is that user id available if not than show error message.
    If someone have any idea on this logic pls share with me.
    Regd
    Shiv

    Hi,
    That's certainly possible via usual OB28 validation. Define your prerequisites for the posting date (you will have to do it via user-exit (bkpf-budat greater then sy-datum less 7 days) , and check whether the user is in the set.
    Regards,
    Eli

  • Application for the post of an ORACLE DBA

    =================================================================
    ============
    ARUNKUMAR RAGHAVAN MSc,BEd,PGDMCH,(MBA)
    =================================================================
    ============
    CURRICULUM VITAE
    Covering letter
         From
    Arunkumar.R, email : [email protected],
    [email protected]
    No 16 /9 Nagendra nagar,
    Velachery main road, checkpost,
    Near jaya hospital,
    Chennai -600 042.
    Respected Sir / Madam,
    SUB : Application for the post of      
    ORACLE DBA / DBO - Reg
    I wish to submit the following few lines for your kind
    consideration.
    I feel more comfortable and satisfactory with this type of job
    as
    I am keen to serve as an employee of your esteemed organization,
    which has an intellectually stimulating and emotionally
    satisfying environment.
    I assure that, I will do my duty to the fullest satisfaction of
    my
    higher officials, colleagues and to the best of my knowledge and
    belief.
    I am attaching my CV, first 2 pages of my first book &#8211;&#8220;ORACLE
    ARCHITECTURE MADE EASY&#8221;, and a newsletter about Penta Media
    Graphics Ltd, my present employer.
    Expecting the favour of your earliest reply.
    Thanking you with respectful regard,
    Yours truly,
    (ARUNKUMAR.R)
    =================================================================
    ============
    CAREER OBJECTIVE
    1.     To be a dependable ORACLE DBA and to deploy an
    efficient DATA WAREHOUSE and DATA MART.
    2.     To write unique books on ORACLE DBA and DATA WAREHOUSING
    for enthusiastic learning
    Experience summary
    q     Five years and six months of overall experience in
    Software Industry.
    q     Over 24 months of work experience in the administering,
    and maintaining the Oracle Database of sizes 3 GB
    q     Training and authoring books, CBT&#8217;s,WBT&#8217;s for Oracle DBA
    and
    Data Warehousing .
    Technical skills
    Hardware               IBM PC, MAC
    Operating Systems          WINDOWS NT, 95/98/2K, MS-DOS,
    LINUX, MAC-OS
    RDBMS                    ORACLE 8I, DBASE, FoxPro,
    MSACCESS
    Internet Tools          HTML, IIS, FrontPage
    Responsibilities at PENTAMEDIA GRAPHICS LTD,
    (formerly known as PENTFOUR SOFTWARE EXPORTS LTD, SEI-CMM LEVEL
    4 COMPANY )
    1. Maintaining an "Oracle Pre-Production Database" of size 3 GB.
    2. In charge of the CBT's on Data Warehousing & ORACLE
    DBA.
    3. Installing and upgrading the Oracle server (Oracle 7.3,
    Oracle 8.0,
         ORACLE 8i,) and application tools.
    3.     Allocating system storage and planning future storage
    requirements
    for the database system.
    5. Creating Tablespaces for the different group of
    projects namely
         SOFTWARE, ENGINEERING, MANAGEMENT, and SCHOOL PROJECTS.
    6. Creating tables, views and modifying the database
    structure, as
         necessary, required by Project Leaders and Programmers.
    7. Enrolling users and maintaining system security and
    controlling and
         monitoring user access to the database.
    8. Backing up and restoring the database.
    Specific Achievements
    1. CBT's and WBT's authored (Reference:
    www.pentalearn.com )
    * Data Warehousing for beginners
    * Data Warehousing - Intermediate
    * Stepping into ORACLE DBA
    * ORACLE DBA - Security
    * ORACLE DBA - Backup & Recovery
    * Step by Step - ORACLE DBA
    * OCP GUIDE - Architecture & Administration
    Under Production
    * OCP GUIDE - Backup & Recovery
         2. Book's authored (Under compilation)
    * ORACLE ARCHITECTURE MADE EASY.
    * Learn ORACLE DBA in 23 days.
    4.     Knowledge of documentation and procedures for SEI CMM -
    ISO &#8211;
         QUALITY AUDITS.
    4. Academic Project - (Reference: [email protected])
    o Title           ORACLE QUESTION BANK
    o Outline           Training software for OCP
                   (Oracle Certified Professional)
    o Period           DEC 1998 - JAN 1999
    o Software           VB 5.0, M.S.ACCESS
         5. Awards :
    State first & district first in Vivekananda Academy
    of cultural
    Studies
    =================================================================
    ============
    Employment History
         1. Company Name           :     Pentamedia
    Graphics ltd
    Title          :     instructional designer
    Level           :     Senior Executive
    Specialization :     IT/Computer Systems/Software
    Function      :     Professional /
    Consultant / Specialist
    Industry :     Computer / Information
    Technology (Software)
    Date Joined :     12 oct 1999
    Duties           :     Responsible for CBT&#8217;s,
    WBT&#8217;s on DATA
                        WAREHOUSING & ORACLE DBA.
                        project guide for TEAM
    members.
                        Developed 5 training
    software.
                        Maintaining "ORACLE-
    PRODUCTION DATABASE"
                             of size 3GB.
    Reason for leaving:     working currently
    2. Company Name      :     S.A.International ltd
    Title           :     training officer
    Level           :     Senior Executive
    Specialization :     IT/Computer Systems/Software
    Function      :     Lecturer / Teacher /
    Trainer
    Industry :     Computer / Information
    Technology (Software)
    Date Joined :     08 Aug 1997
    Date Left      :     09 Sep 1999
    Duties :     At S.A.INTERNATIONAL LTD,(A joint
    venture company of ELCOT, GOVT OF TAMILNADU UNDERTAKING)
    Responsible for all training programmes.
                             Project guide
    for all college students.
                        Senior Faculty
    for "ORACLE DBA" classes.
    Accomplishment :     Wrote student guides on office
    2000                               and on ORACLE DBA
                        Developed 3 training
    software.
    Reason for
                   leaving      :     To get more
    experience on ORACLE DATABASE
                        MAINTENANCE
    3. Company Name      :     G.K.M.college of
    engineering & technology
    Title           :     lecturer
    Level           :     Junior Executive
    Specialization      :     Education
    Function      :     Lecturer / Teacher /
    Trainer
    Industry      :     Education
    Date Joined :     06 May 1996
    Date Left      :     09 Aug 1997
    Duties           :     Incharge of computer
    science department,
                        Conducting classes and
    all academic                                    
         activities.
    Accomplishment :     Wrote 2 student guides on office
    1997                                    and on
    ORACLE DBA.
    Reason for
                   leaving      :     To get more
    experience on ORACLE DBA
                        Activities
    4. Company Name      :     Infra computers pvt ltd
    Title           :     Asst.technical manager
    Level           :     Junior Executive
    Specialization :     Training & Development
    Function      :     Executive
    Industry      :     Computer / Information
    Technology
    Date Joined :     30 Apr 1995
    Date Left      :     06 Jun 1996
    Duties           :     Monitor the day to day
    operations of the
    SOFTWARE/HARDWARE SERVICE DEPARTMENT. Monitor the DEPARTMENT
    STOCK and cash flow position, Meeting executives for Business
    development activities
    Accomplishment :     Joined the Company since August 1994
    as Asst TECHNICAL MANAGER. Promoted to TECHNICAL MANAGER in july
    1996.
    Reason for
                   leaving      :     To study M.B.A
    (master business
                        Administration)
    ORACLE DBA SKILLS SELF EVALUATION FORM
    Oracle: SQL and PL/SQL Skills:          
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Creating and maintaining database objects               3
    Store, retrieve, and manipulating data               3
    Create PL/SQL blocks of application code               1
    Familiarity with PL/SQL packages                    1
    Familiarity with PL/SQL tables and records          0
    Calling PL/SQL functions from within SQL statements     0
    Building reusable code                         
         0
    Crafting code that automatically adapts to changes     
         in data structures                         
         0
    Writing SQL inside PL/SQL programs               
         0
    Reading and writing operating system files          3
    Executing host commands and C programs               0
    Issuing database alerts                         
         1
    Analyzing memory utilization in your session          2
    Debugging and tracing program execution               1
    Manipulating raw data and large objects               1
    Building your own packages                    
         1
    Oracle Enterprise Manager Skills:               
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Install Oracle Enterprise Manager                    5
    Administer and monitor Oracle database environments     5
    Oracle Enterprise Manager architecture               3
    Setup a console for your own environment               3
    Implement job and event based system management          3
    Understand the integration of shared administrator
         responsibilities                         
              3
         Tuning Pack                              
         1
    (which comprise Oracle Expert, Tablespace Manager
              and SQL Analyze)
    Diagnostic Pack                              
         0
    (which comprise Oracle Trace and Data Viewer,
         Performance Manager,
    Capacity Planner,and Top Sessions)
    Change Management Pack                         
         0
    (which comprise Database Alter, Capture, Diff,
         Propagate, Quick Change, and Plan Manager)
    Database Administration/ Backup and Recovery Skills:     
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Familiarity with Oracle7 database environments          5
    Familiarity with Oracle8 database environments          5
    Set up, maintain, and troubleshoot database          4
    Plan and implement database backup and recovery
         strategies                              
              4
    Understanding of backup, restore and recovery
         operations                              
              4
    Oracle8 Recovery Manager                         4
    Network Administration Skills:                    
                                       rate from
                                  0 = None
    through 5 = Guru
    Familiarity with Oracle7 Server                    5
    Familiarity with Oracle8 Server                    5
    Familiarity with architecture of Net8               4
    Establishing connections between peers               5
    Client and a server node using various
         naming methods                              
         4
    Configuring middle tier systems                    0
    Familiarity with Names Server                    
         1
    Familiarity with Connection Manager               
         3
    Memory, I/O, physical structure and
    resource contention                         2
    Familiarity with dynamic performance views          4
    Familiarity with initialization parameters          5
    Familiarity with diagnostics and tuning guidelines     3
    Data Modeling and Relational Database Design Skills:     
                                       Arun's
    rate from
                                  0 = None
    through 5 = Guru
    Knowledge with entity-relationship models               2
    Knowledge of normalization and relational           
         database design                              
         1
    Defining business information requirements          3
    Creating entity-relationship models               
         3
    Transforming requirements into an initial
         database designs                         
              3
    Personal Strengths :
              INVOLVEMENT alone gives PERFORMANCE. With my
    spiritual base &
         MOTIVATION, I am confident that I will reach the
    pinnacle
    in the field of ORACLE DBA. I hope my right thinking &
    Hardworking nature will make me successful.
    Current Communication Address
              Address :     16/9, nagendra nagar, velachery
    main road,
                   near jaya hospital, chennai-42
                   chennai, 600042 India
    Tel [home]      :     91-44-2552406
    Tel [office]:     91-44-4839854
    Tel [mobile]:
         Email     :     [email protected],
    [email protected]
    Permanent Address
         Address      :     s/o N.Raghavan, laksminayackan
    patty(po)
                   thevaram(via), theni(dt), pin
    625530
                   laxminayakan patty,
                   625530 India
    Tel      :     91-4454-54739
    Email     :     [email protected], [email protected]
    Personal Particulars
    Date of Birth           :     05 Aug 1971
    Gender                :     Male
    Nationality           :     India
    Marital Status           :     married
         Permanent Residence of     :      India
              Passport Number          :     T465022
              Valid Upto                    Jan 2005
    EDUCATIONAL QUALIFICATION
    COURSE      UNIVERSITY/BOARD           Yr.of PASSING
         CLASS & %
    S.S.L.C      TAMILNADU SECONDARY           MAR 1986
         FIRST 85.40
    H.S.C      TAMILNADU HIGER SECONDARY     APR 1988
         FIRST 68.90
    B.Sc           MADURAI KAMARAJ UNIVERSITY      APR 1991
         FIRST 68.63
    (PHYSICS)      VIVEKANANDA COLLEGE
    M.Sc           MADURAI KAMARAJ UNIVERSITY     APR 1994
         FIRST 70.40
    (PHYSICS)
    BEd           MADURAI KAMARAJ UNIVERSITY      NOV 1995
         SECOND 52.20
    TECHNICAL QUALIFICATION
    COURSE           UNIVERSITY/INSTITUTION           Yr.of
    PASSING %
    PGDMCH#           St.JOSEPH'S COLLEGE           JULY
    1995 59.70
                   BHARATHIDASAN UNIVERSITY
    DPCS*           @ DOE & TC.T.S- NCVT TRADE      SEP 1996
    79.47
                   (AICTE^ APPROVED)
    # POST GRADUATE DIPLOMA IN MICROPROCESSOR AND COMPUTER
    HARDWARE
    * DATA PREPARATION AND COMPUTER HARDWARE
    @ DIRECTORATE OF EMPLOYMENT & TRAINING CRAFTSMEN TRAINING
    SCHEME
    ^ ALL INDIA COUNCIL OF TECHNICAL EDUCATION
    PROFESSIONAL
    TRAINING UNDERGONE
    Completed 'ORACLE DBA' Course at RADIANT SOFTWARE PVT LTD,
    WEST MABALAM,
    CHENNAI -33.
    Language Proficiency :
    Languages -          Proficiency (1=worst - 10=best)
                        Spoken               
         Written
    English          5                    6
    Tamil               9               
         9
    Supplementary
    If and when employed by the company
    Willing to Travel               :          yes
    Willing to be Relocated          :          yes
    Possess Own Transport     :          T465022 Valid
    Upto                    Jan 2005
    Expected Monthly Salary          :     
         Negotiable
    Availability               :     
         Immediately
    =================================================================
    ============

    Sorry, but according to Apple, iTunes Store: All Sales Are Final
    You can avoid accidental purchases.
    From the iTunes menu bar click iTunes / Preferences then select the Parental tab.
    Select:  iTunes Store
    Click OK.

  • Driver not valid for HP Pavilion dv6t

    Need to update my Intel HD Graphic driver.
    Tried HP and Intel and both are stating that the driver being installed is not validated for this computer. Please obtain the appropriate driver from the computer manufacture. Set up will exit.
    Can anyone help? TY

    @ls1313 ,
    Hello and thank you for posting on the HP support forums.  Here is the link to the only supported drivers for your notebook.
    HP Pavilion dv6t-3000 CTO Entertainment Notebook PC
    I hope this helps.
    Have a great day and thank you for posting.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • FI-REFX Add additional validation to monthly posting

    Dear,
    We would like to add extra validations to the standard posting programs RERAOP/RERAPP (and their reversal programs RERAOPRV/RERAPPRV). These are standard SAP transactions within Real Estate to make (monthly) postings on the contract. Each contract contains a rental object (= the building or part of the building).
    An additional validation should be made on the profit center used in the posting (which is derived from the rental object) if the profit center is active for the company code used.
    If not active, it should not generate any posting for the contract in which the rental object/profit center is used and generate a standard error log - as done by the default program & give a detailed error message.
    The problem is that there is no user exit available/found to add an additional validation or to add an error message to the error hierarchy + to prevent the posting.
    We can add the error message to the error hierarchy in display (transaction SLG1), but not in the execution (update mode) of the program.
    Can anyone please advice on how to proceed to have this additional validation added please?
    Many thanks!
    Steps to reconst
    RERAPP or RERAOP with contract which contains a rental object that is linked to a profit center which is not active for a certain company code.
    Error message should be given: For contract X, profit center Y is not active for company code Z.
    Indicator should be red (error) and no posting should be made.
    Many thanks!

    Dear Pk,
    Thank you for your idea. Eventually this would be the way to go as the validation I need is indeed based on data in gl_je_lines in status other than 'P' - Posted.
    There are several posting programs that are called in several ways.
    The posting programs are:
    - Posting -- Executable: GLPPOS
    - Posting: Single Ledger -- Executable: Posting: GLPPOS
    - Program - Automatic Posting -- Executable: GLPAUTOP (this will submit the GLPPOS)
    The ways to post journals in GL (except SLA journals) are:
    - run the Program - Automatic Posting
    - push the "Post" button on the journal entry form
    - use the Jpurnal -> Post navigator function
    In this case the validation I need would imply the forms customization + custom posting wrapping program.
    I was looking for a way of adding one more validation to the standard list of validations for the GLPPOS executable as this is the only executable being responsible for posting in GL.
    Thanks again for your response,
    Cosmnin

  • ITunes 7.0.2 Error - ""This action is only valid for products..." message

    Hi,
    I see other folk are having problems upgrading to iTunes 7.0.2 but I've had a read of some recent posts and can't find a problem quite like mine...
    OK, so I decided to say yes to the "upgrade to iTunes 7.0.2?" prompt when I turned iTunes 7 on this afternoon. I followed all the prompts correctly and allowed the computer to re-start when installation was complete.
    My iTunes "i" icon has disappeared from the QuickLaunch bar, and has been replaced by a Windows application blue and white square-window icon. When I click on it to run iTunes I get an error message prompt:
    "This action is only valid for products that are currently installed."
    I click "OK" and then nothing happens, iTunes (niether 7 nor 7.0.2) does not load and there is no way to get into iTunes. Going through the menu bar results in the same error message.
    I am not sure what to do. I don't want to wipe iTunes and start again because I have quite a few purchased tracks that may be lost, and I doubt I would be able to get them back.
    Does anybody have any advice?
    Many thanks.
    (I have tried playing a QuickTime movie file and that works fine).
    QuickTime 7.1.3 seems to be working fine.

    Remove the shortcut that is in the QuickLaunch bar.
    Go to C:\Program Files\iTunes\ and make a new shortcut for iTunes.exe and put it in the QuickLaunch bar.
    That should resolve the issue.
    Hope this helps,
    Nathan C.

  • 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

  • When I try to install Adobe Acrobat XI Pro, I get an error message, "Key not valid for use in specified state".  What is this?

    When I try to install Adobe Acrobat XI Pro, I get an error message, "Key not valid for use in specified state".  What is this?

    See if this post by turingtest2 fixes it : key not valid for use in specified state

  • 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,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

    I am running an SQL(CE) script to create a DB. All script commands succeed, but the DB get "broken" after creating the last costaint: after running the script, viewing table properties of Table2 and clicking on "Manage relations" gives the following error: Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index. Wondering what does that refer to...
    Here it is the script. Please note that no error is thrown by running the following queries (even from code that passing the queries by hand, one-by-one to sql server management studio).
    CREATE TABLE [table1] (
    [id_rubrica] numeric(18,0) NOT NULL
    , [id_campo] numeric(18,0) NOT NULL
    , [nome] nvarchar(100) NOT NULL
    GO
    ALTER TABLE [table1] ADD PRIMARY KEY ([id_rubrica],[id_campo]);
    GO
    CREATE UNIQUE INDEX [UQ__m_campi] ON [table1] ([id_campo] Asc);
    GO
    CREATE TABLE [table2] (
    [id_campo] numeric(18,0) NOT NULL
    , [valore] nvarchar(4000) NOT NULL
    GO
    ALTER TABLE [table2] ADD PRIMARY KEY ([id_campo],[valore]);
    GO
    ALTER TABLE [table2] ADD CONSTRAINT [campo_valoriFissi] FOREIGN KEY ([id_campo]) REFERENCES [table1]([id_campo]);
    GO
    Sid (MCP - http://www.sugata.eu)

    I know this is kind of old post, but did this realy solved your problem?
    I'm getting this same error message after adding a FK constraint via UI on VS2008 Server Explorer.
    I can add the constraint with no errors, but the constraint is not created on the DataSet wizard (strongly typed datasets on Win CE 6) and when I click "Manage Relations" on the "Table Properties" this error pop out:
    "InvalidArgument=Value or '0' is not valid for 'index'.
    Parameter name: index"
    Even after vreating my table with the relation in SQL the same occurs:
    CREATE TABLE pedidosRastreios (
        idPedidoRastreio INT NOT NULL IDENTITY PRIMARY KEY,
        idPedido INT NOT NULL CONSTRAINT FK_pedidosRastreios_pedidos REFERENCES pedidos(idPedido) ON DELETE CASCADE,
        codigo NVARCHAR(20) NOT NULL

  • Create a validation for check double invoice

    Hi,
    I have read here on SDN for check double invoice on reference number. We want to create an warning message if same reference number is posted twice, not depending on invoice date. So if I, on 1st of October have posted an invoice with reference number 123 and then want to post with same reference number on 2nd of October I want to have an warning message. If I had understand right I need to make a validation for that. Is it true that I need to have a programmer to do that or how am I doing (one thread said that this was the solution, see; )?
    I suppose that my prerequisite will look as follows:
    BKPF-BLART = 'KR' OR BKPF-BLART = 'RE' (I want the check when entering both an invoice in FB60 and MIRO)
    How will my "check step" look like when I want to check if this reference has been entered before? Please describe in technical name.
    Is it possible to do a validation for getting a warning, or is it just possible with error message?
    I have also tried to change in IMG, in Material management > Logistics Invoice Verification > Incoming invoice > Set check for Duplicate invoices. Here we have all fields selected (check co. code, check reference, check inv. date). I changed to just select check reference, but this doesn´t solved my problem.
    Best regards Lisa

    Hello Lisa,
    Your first question,
    Yes system does not check MIRO invoice while posting FB60 invoice. Because when you post invoice with using FB60 transaction, system check BSIP table for duplication. But when you post MIRO invoice system doesn't fill BSIP table.
    So that your question answer is YES, you can register an invoice in MIRO with same reference without a warning.
    Your second question,
    BTE means Business Transaction Event. Those events are known as FI user-exit.
    So that when you posting an invoice with using FB60, system triggered on BTE 00001110 as i said on my previous message.
    I try to explain step by step how can you activate this BTE. But you need to ABAPer for giving warning message on this exit.
    Call FIBF transaction -> Settings -> Products -> ...of a customer
    Create a new line,
    Product : ZXX
    Text : BTE Products for FI Exit
    Product active : tick checkbox.
    Call SE37 for exit function and copy from FM SAMPLE_PROCESS_00001110 to ZFI_PROCESS_00001110. Then active your FM and go to FIBF transaction again.
    FIBF -> Settings -> Process Modules -> ...of a customer
    Define a new line.
    Process : 00001120
    Function Module : ZFI_PROCESS_00001110
    Product : ZFI
    And then you can some write ABAP code for validation and give warning message.
    In this FM, If you don't want to check duplicate invoice for your cases you can set export parameter e_nostd = 'X'.
    I hope it helps to you,
    Regards,
    Burak

  • 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

Maybe you are looking for