采购订单BAIPI行项目增强自定义字段

1 Introduction

We need add customer field in the EKPO table. When we call BAPI ‘BAPI_PO_CREATE1’ for it . of course that we have add the field in the ekpo table.

2 Implementation

We need add the field in the structure .
在这里插入图片描述

We put it in the EXTENSIONIN table and transfer it to table.
在这里插入图片描述

Code


DATA: lt_extensionin  TYPE TABLE OF bapiparex WITH HEADER LINE,

        ls_item_ext     TYPE bapi_te_mepoitem,
        ls_item_extx    TYPE bapi_te_mepoitemx.

 SELECT SINGLE *
               INTO  @DATA(ls_zsrm_plaf)
               FROM zsrm_PLaF
              WHERE plnum = @PW_DATA-BEDNR and werks = '1100'.
 if sy-subrc = 0 .

    ls_item_ext-po_item = 10.
    ls_item_ext-zbs = 'X'.
    lt_extensionin-structure = 'BAPI_TE_MEPOITEM'.
    lt_extensionin-valuepart1 = ls_item_ext.
    APPEND lt_extensionin .
     clear:lt_extensionin.
    ls_item_extx-po_item = 10.
    ls_item_extx-zbs = 'X'.
    lt_extensionin-structure = 'BAPI_TE_MEPOITEMX'.
    lt_extensionin-valuepart1 = ls_item_extx.
    APPEND lt_extensionin.
     clear:lt_extensionin.

3 Summary

You only keep careful in the anytime .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值