We have some issue in validation
I have a payment term called AA05 and this payment term should not be used for transaction code F-43 and F-22
My validation is as follow - this validation we have created at header level
At the Accounting Segment i gave PAYMENT TERMS = AA05
At the Accounting Header i gave TRANSACTION CODE = F-43 & TRANSACTION CODE = F-22
As error - Not to be used for the transaction code
The same is activated
Now iam passing an entry with a vendor having AA05 payment term - so that the same is defaulted in F-43 transaction
But iam not getting the error
Iam i by any chance doing any mistake in the validation
I think the message range(Message number ) you are giving the wrong..
Note: for the individual transaction codes, the messages will be triggered for certain message ranges.
so be sure about the message number is giving in the range of that particular T.Codes.
At the time the validation is called, the transaction code value will be FB01 instead of F-43 or F-22 - that is why you are not getting the error from the validation. Take a look at a posted document from each these transactions - you'll see the t-code on the document header is FB01, not F-43 or F-22.
Since there are many transactions codes that are based on FB01 - and end up posting as FB01 - I would suggest a criteria other than transaction code for your validation. One option might be to check the document types.
Hi, I'd worked on similar requirement. We wanted the validation to run for only F-47 and FBA6. What we did was, we created a Set through GS01 and maintained the transaction codes in it.
Ex. Go to GS01, give a set name u want to create (eg. ZZSET_TEST ), give Reference table as SYST
It'll ask for the Field Name. Give it as TCODE as you want to check the TCODE. And then maintain your
Tcodes ( for me it was F-47 and FBA6 ).
Now in Check, include a condition
NOT SYST-TCODE IN ZZSET_TEST-TCODE
Hope it helps !!!
Edited by: Vivek Prabhu on May 26, 2009 8:47 AM