on 08-17-2011 11:18 PM
Hi all,
I have multiple deliveries which should be invoiced into ONE billing document. The only difference between the deliveries is the billing date, which is why it is splitting.
I am therefore copying routine 001 and in VOFM and adding this code to the end of it:
vbrk-fkdat = sy-datum. "prevent split due to difference in billing date
This is great and working fine because when I have 2 deliveries with diff. billing dates, it will take todays date. The only problem is when:
1. Billing for a single document (dated 11/08/2011), it will over-write it and set the date to today (17/08/2011)
2. Billing for 2 documents with the same date
What is the best way around this?
Thanks
No modifications need to be made, there is a field in VF04 that will help you with this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Let your logic of moving sy-datum be as it is..
now in exit V05IEXIT, in FORM USEREXIT_VKDFS_SORTKRI_DEL redetermine the actual PGI date and assign it back to FKDAT.
Let us know if this works?
Regards,
Raghu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai,
Put a condition before date assignment,
If delivery documents are more than 1 do vbrk-fkdat = sy-datum else endif.
Regards,
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Pistols123,
1. Billing for a single document (dated 11/08/2011), it will over-write it and set the date to today (17/08/2011)
Here can't you write the code to check whether there is only one billing document, if so omit your code for the date manipulation.
So that system will not assign system date, but will take the orginal date (actual good issue date or billing date entered in vf01)
2. Billing for 2 documents with the same date
write the code to check whether all the billing documents have the same date , if so omit your code for the date manipulation.
So that system will not assign system date, but will take the orginal date (actual good issue date or billing date entered in vf01)
Thanks & Regards,
Hegal K Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
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.