on 02-10-2016 6:23 AM
Hi Experts,
I want to create a validation in FI for baseline date. The validation is something like this,
During Invoice posting through MIRO and FB60 and also during invoice parking through MIR7 and FV60, the baseline date entered should not be smaller than the posting date. It should be either same as the posting date or should be greater than the posting date. For e.g. if posting date in the invoice is 02.01.2016, then the baseline date should be either 02.01.2016 or anything greater than 02.01.2016 like 03.01.2016 but it should not be 01.01.2016.
I have already written a validation for the above, but it is not working properly. It is throwing a error message even if the above check is met i.e. if baseline date is same or greater than the posting date it should not throw error, but it is giving the error.
PFA screenshot of my validation for reference. So, I would like to know whether if, I am going wrong somewhere?
Regards,
Akshay Zirmirkar
Hi Akshay,
Change the message as error in OBA5 for the message F5-149.
Regards,
Mukthar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajay,
Done!..but partly. If, I put the prerequisites as you said above, it is working properly. But if, I am entering more than one transaction code in the prerequisite then it is not working. It is working fine only if there is one tcode in the prerequisite. So, I guess there is a bit issue in arranging the data in prerequisite.
So, can you suggest how should be the prerequisite for multiple tcodes?
Regards,
Akshay Zirmirkar
I would like to thank everyone for there quick responses!!
Thread closed.
Regards,
Akshay Zirmirkar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay,
First create a set in GS01 for e.g. ZPC_IO_VAL_TCODES_1 (You can have your own name).
In GS01 use table: SYST and Field Name: TCODE and add the list of T-Codes on which the validation should be executed.
Once the set is made, create a validation step in Financial Accounting - Line Item as per the screen shot below.
In the message part, you can have your own error message.
Then go to OB28, add your company code, call point as "2", the validation name and the activation status as "1".
Hopefully the validation will 100% work.
Thanks,
Anss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Wont it be easier to handle this via configuration of the payment terms ?
By defaulting the baseline date from the payment term, e.g default posting date or entry date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zamuxolo,
The client wants to enter the baseline date manually, so it should not be defaulted from posting date or entry date. I just need to put a check that whenever the user enters the baseline date, it should not smaller that the posting date. The system should throw a error if its smaller than the posting date.
Regards,
Akshay Zirmirkar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay
Try Check as Zfbdt >= Budat
Ajay M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Akshay
Please write the validation as below:
Prerquisite
BKPF-BUKRS=XXXX AND SYST_TCODE IN ZFI_TCODE AND BSEG-KOART=K
Check
(BSEG-ZFBT=BSEG-H_BUDAT) OR (BSEG-ZFBT>BSEG-H_BUDAT)
Put all the T Codes in the set ZFI_TCODE, which you can create in GS01. The t codes to be used should be:
FB60
FBVB
MIR7
MIRO
Regards
Sanil Bhandari
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.