RV_INVOICE_CREATE出具发票(vf01)
RV_INVOICE_CREATE出具发票(vf01)
在使用 RV_INVOICE_CREATE 函数出具发票(billing)的时候,有个参数 vbsk_i-smart 组类型
这个参数值为F,但是好多人可能都不知道为什么是F,而且还必须传这个值。
其实这个组类型是通过SPRO配置的,路径为SPRO—销售与分销——出具发票——装配组——开票凭证的汇编组下。
该组类型的可选值如下:
C 支票交付
D 拆分交货
F 从vf04出具发票
G 收入确认
K 拣配
L 交货从 VL04
M 货运清单
P 预留 IS-SW
R 发票清单
S 取消汇总运行
T 批准至会计
W 分组拣配
另:如需根据交货单开billing,还需指定如下参数
xkomfk-vbeln = '0085001172'.
xkomfk-vbtyp = 'J'.
对于这个函数的一个exporting参数 with_posting ,其值需要指定,可选参数如下:
- ' ' = do not update directly (this is done separately using the function module RV_INVOICE_DOCUMENT_ADD)
- 'A' = update directly without error log (VBSK,VBFS) - asynchronous
- 'B' = update directly with error log (VBSK,VBFS) - asynchronous
- 'C' = update directly without error log (VBSK,VBFS) - synchronous
- 'D' = update directly with error log (VBSK,VBFS) - synchronous
- 'E' = update directly without error log (VBSK,VBFS) - without commit
- 'F' = update directly without error log (VBSK,VBFS) - without commit
- 'G' = only for internal use by the POS interface no billing document update, accounting and info system is updated.
- 'H' = do not update directly, simulation of billing doc creation and transfer to FI, no final data initialization
其他的必输参数,需要指定,但是不需要传入数据。

浙公网安备 33010602011771号