欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【SAP】ABAP——获取采购订单行项目

程序员文章站 2022-05-18 07:54:55
...
CALL FUNCTION 'ME_READ_HISTORY'
      EXPORTING
        ebeln              = ls_po-ebeln
        ebelp              = ls_po-ebelp
        webre              = ls_po-webre
        i_bypassing_buffer = 'X'
        i_refresh_buffer   = 'X'
      TABLES
        xekbes             = it_ekbes.
    IF it_ekbes[] IS NOT INITIAL.
      LOOP AT it_ekbes WHERE zekkn EQ space.
        ADD it_ekbes-wemng TO lv_wemng.
      ENDLOOP.
    ENDIF.