BAPICR_BAPI
发布时间
阅读量:
阅读量
遍历 it_tab 表格,将数据存入 st_tab 变量中。
header-pr_type 赋值为 st_tab-bsart,其值为 'NB'。
headerx-pr_type 被设定为 'X'。
item-preq_item 的数值为 '00010'。
item-pur_group 的取值为 'WY1'。
item-material 对应于 st_tab-matnr,其具体数值为 '625.0408.1320.0200'。
从 makt 表中查询 maktx 字段的单一记录,并将其赋值给 item-short_text,条件是 matnr 等于 item-material 的当前值。
item-plant 设置为 'SH01'。
item-quantity 对应于 st_tab-menge,其示例值为 '4'。
item-deliv_date 与 st_tab-lfdat 相匹配,即当前日期加 10 天作为交货时间。
若 eban-bwtar 不为空,则将 item-val_type 设定为 eban-bwtar 的内容。
item-preq_price 指定为 '12',代表物料价格;而 item-acctasscat 则留空,表示账户类型用于资产采购。
item-item_cat 被设置
全部评论 (0)
还没有任何评论哟~
