cancel
Showing results for 
Search instead for 
Did you mean: 

[SD] Invoice split by quantity , Source code

Former Member
0 Kudos

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.

Message was edited by: Jin-Soo Ahn [For example Source] * Additional split criteria

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Jin,

I think it is better creating multiple deliveries each quantity wise by using "VLSP - Subsequent Outbound Delivery Split", then can do delivery wise billing.

Rajendra

bsivasankarreddy_reddy
Active Contributor
0 Kudos

hi

this routine is stranded , you can split depending on delivery quantity , it means like delivery its create 10 quantity but , user create the invoice for the 5 quantity, on that time system will done the delivery split ,

please try this routine for 007

DATA: BEGIN OF ZUK,

MODUL(3) VALUE '001', 

VTWEG LIKE VBAK-VTWEG,

   SPART LIKE VBAK-SPART,   

     ABTNR LIKE LIPS-ABTNR,   

     EMPST LIKE LIPS-EMPST,

    LFIMG  LIKE LIPS-LFIMG,      

  END OF ZUK. 

ZUK-SPART = VBAK-SPART.

  ZUK-VTWEG = VBAK-VTWEG. 

ZUK-ABTNR = LIPS-ABTNR.

  ZUK-EMPST = LIPS-EMPST.

ZUK-LFIMG = LIPS-LFIMG

  VBRK-ZUKRI = ZUK.

ENDFORM.

Former Member
0 Kudos

Hello Bojja,

Thanks for your reply , but my wish is below.

If  quantity is 50 ea for one item and Quantity limit is 20 ea.

Then three invoice should be created.

first invoice       : 20 ea

second invoice : 20 ea

third      invoice : 10 ea

jignesh_mehta3
Active Contributor
0 Kudos

Hello,

You will have to copy routine 007 & create a new with a check for Quantity, i.e. of the Quantity is more than 20 then it should split the Invoice.

Speak to your ABAPer & he will do the needful.

Thanks,

Jignesh Mehta.