SD--如何配置发票分割开票

在sap的开票业务中,用户常常需要根据自己的一些特殊需求分多张开具发票,这种需求是通过SD的单据复制来配置完成的。下面例子的配置是根据项目类别来开具发票,具体步骤如下:

1、执行TCODE: VTFA;

2、选中一个目标发票类型和源单据类型,双点击“Item”;

3、在“Display View "Item":Overview"屏幕上,双击单据项目,系统就会弹出"Display View "Item":Detail"屏幕;

4、查看Data VBRK/VBRP中指定的公式,公式代码如下:

*---------------------------------------------------------------------*

* Data transfer for delivery related billing *

 *---------------------------------------------------------------------*

 *---------------------------------------------------------------------*

* FORM DATEN_KOPIEREN_001 *

*---------------------------------------------------------------------*

* ---> VBAK Order header KUAGV View Sold-to *

* VBAP Order item KURGV View Payer *

 * VBKD Business data order KUREV View Bill-to *

 * LIKP Delivery header KUWEV View Ship-to *

* LIPS Delivery item *

*---------------------------------------------------------------------*

FORM DATEN_KOPIEREN_001.

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

END OF ZUK.

ZUK-SPART = VBAK-SPART.

 ZUK-VTWEG = VBAK-VTWEG.

VBRK-ZUKRI = ZUK.

 ENDFORM.

5、让ABAP根据下面代码修改001公式(代码修改部分用红色标示) 

FORM DATEN_KOPIEREN_001.

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

PSTYV LIKE VBAP-PSTYV, <- New line

 END OF ZUK.

ZUK-SPART = VBAK-SPART.

 ZUK-VTWEG = VBAK-VTWEG.

ZUK-PSTYV = VBAP-PSTYV. <- New line

VBRK-ZUKRI = ZUK.

ENDFORM.

这样发票就可以根据项目类别分开开具发票,用户的其他需求可以参照该方式配置完成。

相关Notes:

11162 - Invoice split criteria in billing document

36832 - Invoice split in fields from the sales order

posted on 2008-07-03 10:37  毛小娃  阅读(180)  评论(0编辑  收藏  举报

导航