Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

invoices duplicated

Former Member
0 Kudos

Hi;

The code below is a copy of the one that works ok, this code makes duplicates of an invoice.

This code is added here: VOFM...data transfer -> billing document, here i´ve created a new record where i added the code below.

Any help to avoid duplicated invoices.

What the SD consultor whants is that the records with amount = zero don´t be passed to the invoice, so it won´t be displayed.

Any Help.

Thanks on advance.

*************

FORM DATEN_KOPIEREN_600.

*{ INSERT DESK903967 1

  • Header data

  • VBRK-xxxxx = ............

  • Item data

  • VBRP-xxxxx = ............

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

if lips-lfimg > 0.

ZUK-SPART = VBAK-SPART.

ZUK-VTWEG = VBAK-VTWEG.

ZUK-ABTNR = LIPS-ABTNR.

ZUK-EMPST = LIPS-EMPST.

VBRK-ZUKRI = ZUK.

endif.

*} INSERT

ENDFORM.

1 ACCEPTED SOLUTION

0 Kudos

I am not sure what exactly you are trying to achieve.

check the item field : VBRP-NETWR > 0 & delete other line items etc...

1 REPLY 1

0 Kudos

I am not sure what exactly you are trying to achieve.

check the item field : VBRP-NETWR > 0 & delete other line items etc...