on 05-07-2010 5:46 AM
Hi All,
In VF01 , the user can make the invoice date in the future date.
there are few cases which has happened esp. in export invoices.
Need to block this facility.
i.e. User shouldnt allowed to enter future date and it should allowed to enter back date in billing.
I tried with routine 11 in VTFL even though it is allowing to enter future date.
with regards
Azeez.Mohd
Hi
This can be done by enhancing user exits RV60AFZZ and RV60AFZC.
In RV60AFZC form USEREXIT_FILL_VBRK_VBRP, you can compare kom-fkdat and vbrk-fkdat with system date. If these dates are more than your system date, put an abend message(Message type - A).
In RV60AFZZ form USEREXIT_PRICING_PREPARE_TKOMK, you can compare kom-fkdat and vbrk-fkdat with system date. If these dates are more than your system date, put an abend message(Message type - A).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The standard routine "011" will default billing date = today's date, but it will still be changeable.
In this routine, you have two things you can do:
1. Get the help of ABAPER to add the logic to prevent the user from entering any date later than the proposed Billing Date (FKDAT), then the system will throw an error and will not allow it to be saved.
2. Alternatively, ask ABAPer to make the billing date field (FKDAT) as "Display Only" field.
Hope this helps.
Thanks.
Rgds.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi PKW,
As per ur suggestion i have change the routine and with abaper help findout the user-exit.
When i want to restrict the future date in the following fields are already updating the currect date .
VBRK-FKDAT and TVFKD-FKDAT. i did changes in below user-exit.
USEREXIT_FILL_VBRK_VBRP
IF vbrk-fkdat GT sy-datum.
Message 'Future date is not allowed' type 'E'.
ENDIF.
So how to tackle the problem.
with regards
Hi,
Use simple solution below:
In USEREXIT_SAVE_DOCUMENT_PREPARE just ask the ABAPER to put logic
if VBRK-FKDAT > SYDAT
then Error Msg: "Invoice date can not be greater than today's date"
and the Billing document should not save.
In this way user will not be able to create any invoice till he give current date or back date
regards
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.