|
以下是所用到过的一些内外部转换方式,如果哪位朋友用过别的,也欢迎跟贴补充。
商品CODE外部格式转换
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MSEG-MATNR
IMPORTING
OUTPUT = MSEG-MATNR.
商品CODE内部格式转换
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MARA-MATNR
IMPORTING
OUTPUT = MARA-MATNR.
仕入先外部格式转换
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
EXPORTING
INPUT = MSEG-MEINS
IMPORTING
OUTPUT = MSEG-MEINS.
数量单位外部格式转换
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MSEG-LIFNR
IMPORTING
OUTPUT = MSEG-LIFNR.
单价外部格式转换
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
CURRENCY = MSEG-WAERS
AMOUNT_INTERNAL = MSEG-DMBTR
IMPORTING
AMOUNT_EXTERNAL = EXTERNAL. |
|