前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ABAP BAPI_PO_CREATE1 净价net_price 无效

ABAP BAPI_PO_CREATE1 净价net_price 无效

作者头像
matinal
发布2020-11-30 10:01:51
9030
发布2020-11-30 10:01:51
举报
文章被收录于专栏:SAP TechnicalSAP Technical

今天测试发现用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. 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.

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-10-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档