Skip to Content
author's profile photo Former Member
Former Member

Validation

Hi All

I want to create a validation for t code fb50 and fb60.

for these transactions should not allow the the document type Z2 and Z3.

so i have created the validation step in the following way.

Prerequisite: tcode =fb50 and Tcode = fb60

Check: document type <>Z2 and Document type <> Z3

message: error.

but when i am doing testing, system is allowing the document type Z2 and Z3

Please let me know how to proceed this issue.

Best Regards

Madhavi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2008 at 11:31 AM

    Hi Madhavi,

    Go to GGB0---- maintain validations.

    Please copy the below validation code to meet your requirement.

    Prerequisite : BKPF-BLART = 'Z2' OR BKPF-BLART = 'Z3'

    Check : SYST-TCODE <>(NOT EQUAL TO) 'FB50' AND SYST-TCODE <>(NOT EQUAL TO) 'FB60'

    For NOT EQUAL TO, use the symbol in validation as it is not displayed here while iam typing.

    Go to GGB4 and activate it to your company code.

    In writing validation code AND , OR , = , <>(NOT EQUAL TO) will greatly impact on logic.You must be careful while writing the logic, other wise the whole validation code will be useless.

    Let me know if you need further help.

    Regards

    venkat

    Edited by: Venkat Dara on Nov 29, 2008 12:43 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2008 at 06:54 AM

    Follow Ravi Logic,

    Active this Validation to your company code in T.Code: OB28.

    Regards,

    Viswa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 28, 2008 at 06:11 PM

    Hi Madhavi,

    You need to change your condition as follows :

    Prerequisite: tcode = FB50 OR Tcode = FB60

    Check: document type = Z2 OR Document type = Z3

    message: error.

    If you use AND in your condition, then the document has to satisfy both parameters i.e. the TCode should be both FB50 & FB60 and same is the case with Doc. Type also.

    Ravi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 17, 2009 at 11:34 AM

    Hi,

    I need to find a way to prevent users from entering duplicate invoice numbers on transaction FB65.

    Is this possible via validation rules?

    Annelize

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      you can activate "Chk double inv" in the vendor master->payment trn tab page.

      When the reference number and amount is same, the system will give you a warning message to check the duplicate which can be overrided by the user. You can change the message control from warning to error so that the user can not override.

      If you find this suitable, then pls use mass changes to activate the double inv check for all vendors.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.