ABAP-物料号内部给号函数
作者:互联网
DATA:lv_mtart TYPE mara-mtart,
lv_matnr TYPE mara-matnr,
lv_mbrsh TYPE mara-mbrsh.
DATA:lt_number TYPE TABLE OF bapimatinr,
lt_return TYPE TABLE OF bapireturn1.
CALL FUNCTION 'BAPI_MATERIAL_GETINTNUMBER'
EXPORTING
material_type = lv_mtart "物料类型
industry_sector = lv_mbrsh "行业领域(默认值为空)
required_numbers = 1 "数量(默认值为1)
IMPORTING
return = lt_return
TABLES
material_number = lt_number.
LOOP AT lt_number ASSIGNING FIELD-SYMBOL(<fs_number>) .
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = <fs_number>-material
IMPORTING
output = <fs_number>-material.
ENDLOOP .
标签:物料,函数,material,lt,number,lv,ABAP,TYPE,mtart 来源: https://www.cnblogs.com/TigerMan/p/16224080.html