on 09-08-2011 2:05 PM
Hello All,
I'm facing issue, multiple deliveries are getting combined in one invoice automatically. The invoices are created by background jobs. It should not combine the multiple deliveries into one invoice ideally as it is being created by background jobs. Could any one please share what might be the cause of it.
Thanks in advance.
Regards,
Sumit
Hi
When you run the dialog or batch billing job the prgram SDBILLDL is triggered.
It simply reads the billing due index (VKDFS) and retrieves all due documents
for processing (internal table V60P_INPUT_VKDFIF)
The program in the standard processes 1000 entries at a time as required
and if each entry processed passes the split criteria (outlined in note 11162)
The system could in theory create one invoice for all 1000 entries picked up.
You see this processing here:
CALL FUNCTION 'SD_COLLECTIVE_RUN_EXECUTE'
...
LOOP AT V60P_INPUT_VKDFIF WHERE SELKZ NE SPACE.
ON CHANGE OF V60P_INPUT_VKDFIF-KUNNR OR
V60P_INPUT_VKDFIF-VKORG OR
V60P_INPUT_VKDFIF-V_FKART.
IF COUNTER > 0.
CLEAR SY-CALLD.
DELETE ADJACENT DUPLICATES FROM XKOMFK.
PERFORM RV_INVOICE_CREATE >>>>>
As you see above, the system tries to bill all entries together
where the customer, sales org and billing type are the same.
It will do this 1000 times before it forces a split.
(you will also notice user exits here which can be used to change this
outcome)
Check note 11162 for the details of what header fields will cause a split.
As outlined previously you could use an item data transfer routine and the field
ZUKRI to force a split on your own terms.
Hope this helps explain the system behaviour
Kind regards
PERFORM RV_INVOICE_CREATE >>>>>>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.