on 2012 Jun 26 5:43 AM
Hello all,
Does anyone know if its possible to split the billing document by quantity on the item.
I was only able to find split by items but nothing related to quantity.
If it is available , i want to see the Source code
In copy control VTFL you need to maintain the field named VBRK-VBRP as "XXX" (invoice split) at item level.
Thank you in advance.
[For example Source]
DATA: BEGIN OF ZUK,
MODUL(3) VALUE '001',
VTWEG LIKE VBAK-VTWEG,
SPART LIKE VBAK-SPART,
ABTNR LIKE LIPS-ABTNR,
EMPST LIKE LIPS-EMPST,
END OF ZUK.
ZUK-SPART = VBAK-SPART.
ZUK-VTWEG = VBAK-VTWEG.
ZUK-ABTNR = LIPS-ABTNR.
ZUK-EMPST = LIPS-EMPST.
VBRK-ZUKRI = ZUK.
ENDFORM.
Hi,
As you wrote the code just do some modification you can get the solution for your requirement.
This is how it should look after modification:
DATA: BEGIN OF ZUK,
MODUL(3) VALUE '001',
VTWEG LIKE VBAK-VTWEG,
SPART LIKE VBAK-SPART,
field LIKE VBAP-field, <- New line Here you add the field for Quantity
END OF ZUK.
ZUK-SPART = VBAK-SPART.
ZUK-VTWEG = VBAK-VTWEG.
ZUK-field = VBAP-field. <- New line Here you add the field for Quantity
VBRK-ZUKRI = ZUK.
ENDFORM.
After this routine is created and activated place it as the default copy control routine instead of the old ones.
Hope its useful to u,
Regards
Jana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.