REPORT z0907.
DATA tmp_name TYPE thead-tdname.
DATA tmp_ebeln TYPE matnr.
DATA tmp_ebelp TYPE ebelp.
DATA lines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA tmp10 TYPE char10.
DATA tmp5 TYPE char5.
DATA ccj TYPE char15.
DATA rcj TYPE char15.
***带出采购订单行项目-项目文本
CLEAR: tmp10,tmp5,tmp_name,lines.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "采购订单号补前导0
EXPORTING
input = '6100004578' "采购订单号
IMPORTING
output = tmp10.
* BREAK-POINT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "行项目号补前导0
EXPORTING
input = '10'" 采购订单行项目号
IMPORTING
output = tmp5.
CONCATENATE tmp10 tmp5 INTO tmp_name.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client
SAP中ABAP读取采购订单项目文本及抬头文本
最新推荐文章于 2024-07-26 10:17:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)