ABAP:CONV用法
CONV:类型强制转换
CONV 类型( 数据 )
DATA: ls_detail TYPE gjahr.
ls_detail = 2022.
DATA(l_up_year) = CONV gjahr( ls_detail - 1 ).
DATA(l_up_year2) = ls_detail - 1 .
WRITE:/ l_up_year,/,l_up_year2.
函数中也可以直接使用:
CALL FUNCTION 'BAPI_BATCH_CHANGE'
EXPORTING
material = CONV bapibatchkey-material( <fs_alv>-matnr )
batch = <fs_alv>-charg
plant = <fs_alv>-werks
batchattributes = ls_batchattributes
batchattributesx = ls_batchattributesx
TABLES
return = lt_return.
post SAP-Garson
原文链接:https://blog.csdn.net/weixin_43734184/article/details/127526974文章来自于网络,如果侵犯了您的权益,请联系站长删除!