cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple deliveries getting combined into one invoice automatically by job

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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 >>>>>>

former_member204407
Active Contributor
0 Kudos

Hi Sumith

Check this link

if above criteria is not met (deepak mentioned) it will not create invoice for multiple deliveries.

Regards,

Krishna.