BAPI_PO_CREATE1 净价net_price 无效
来源:互联网 发布:陕西和泰单片机 编辑:程序博客网 时间:2024/04/30 17:24
今天测试发现用BAPI_PO_CREATE1 创建采购订单,虽然能成功创建采购订单,但是行项目的净价总是和自己导入的数据不对。然后在前台手工创建时,发现会自动带出一个净价,奇怪从哪来。原来是因为我采购信息记录没有维护净价,它就会采用上一个采购订单的净价。
查找相关资料,BAPI_PO_CREATE1 函数中的 EXPORTING中的NO_PRICE_FROM_PO 设为X。
还要注意一个问题
如果有税码,那么导入的时候那个价格是含税价格!!!比如我导入时poitem-tax_code 为J1,poitem-net_price=100,导入成功后,净价就变为85.47了!!!如下图。
85.47*(1+17%)。所以一般是先不设置税码。。后面再批量
另外找到一些资料:
using BAPI_PO_CREATE1 to create POs meanwhile passing the netprice instead of price from inforrecords.
From 580225:
1. NO_PRICE_FROM_PO
If you transfer the value 'X' in this field, no conditions are copied from the last document. This includes purchase orders, scheduling agreements, contracts and quotations. The system still copies conditions from the information record.
The field can only be filled at header level. It is valid for all items.
Prerequisite
You must implement Note 552189 in your system to use the NO_PRICE_FROM_PO field.
2. POITEM-PO_PRICE
You can use the PO_PRICE field to control, at item level, if the value should be copied from the POITEM-NET_PRICE field to the conditions. PO_PRICE can have the values ' ', '1' or '2' with the following meaning:
PO_PRICE = ' ': The conditions are determined automatically, the value from the NET_PRICE field is only copied if the system cannot determine a condition.
PO_PRICE = '1': The value transferred in field NET_PRICE is copied as a gross price that is, it is set with the condition type specified as base price in the calculation schema. In the SAP Standard System, these are condition types PB00 or PBXX. All other condition types remain unchanged. No conditions are copied from the last document.
PO_PRICE = '2': The value transferred in field NET_PRICE is copied as a net price that is, it is set with the condition type specified as base price in the calculation procedure. All other condition types are deleted.
Keyword: NO_PRICE_FROM_PO = X Poitem-po_price = '2'
Alternative: BBP_PO_INBOUND_BADI
- BAPI_PO_CREATE1 净价net_price 无效
- BAPI_PO_CREATE1 PO净价从信息记录获取问题解决
- BAPI_PO_CREATE1
- 关于BAPI_PO_CREATE1
- 国债净价交易
- 总价,净价,有效价
- BAPI_PO_CREATE1创建采购订单
- bapi_po_create1根据PR创建PO
- 根据BAPI_PO_CREATE1创建采购订单
- 根据BAPI_PO_CREATE1创建采购订单
- 采购订单批量创建 BAPI_PO_CREATE1
- SE37 创建PO订单BAPI_PO_CREATE1
- BAPI_PO_CREATE1 批量创建采购订单
- 关于SD净价的计算的机理:
- Problem with BAPI_PO_CREATE1: Delivery Date and PEINH
- BAPI调用 - 创建po的bapi BAPI_PO_CREATE1
- BAPI_PO_CREATE1 批量创建采购订单改进版
- SD--关于SD净价的计算的机理
- C#中对字符串的加密和解密
- 11月更新的上百部 Google 技术视频
- 获取窗口高宽
- cocos2d-x 之sprite布局日记
- 左侧浮动栏
- BAPI_PO_CREATE1 净价net_price 无效
- linux安装usb wifi接收器
- HEX BIN文件 分析介绍
- 内存池的使用(一)
- timer定时操作
- Linux转发性能评估与优化-转发瓶颈分析与解决方案(补遗)
- iOS开发经验
- 架构设计(重业务:后期制作不同业务的sdk)
- UDP和TCP