1, 内部单位转到外部单位 写BDC程序时,遇到物料单位需要输入外部单位,比如是‘PC’,但是通常在程序中读到的是内部单位‘ST',这就需要进行一个内部单位和外部单位的转换,ST转换到PC。 可以通过CONVERSION_EXIT_CUNIT_OUTPUT进行转换, 2, 外部单位转到内部单位 另外也可以通过CONVERSION_EXIT_CUNIT_INPUT把外部单位转换...
CALLFUNCTION'CONVERSION_EXIT_CUNIT_OUTPUT'EXPORTINGinput=LANGUAGE= SY-LANGUIMPORTING*LONG_TEXT =OUTPUT=*SHORT_TEXT =*EXCEPTIONS*UNIT_NOT_FOUND = 1*OTHERS = 2.IFsy-subrc <>0.*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.ENDIF....
1CALLFUNCTION'CONVERSION_EXIT_CUNIT_INPUT'2EXPORTING3input = ls_data-meins4language ='1'5IMPORTING6output = ls_data-meins7EXCEPTIONS8unit_not_found =19OTHERS =2.
i can get rid of "Error in conversion exit CONVERSION_EXIT_CUNIT_INPUT ". because of "CUNIT_INPUT" error, i suspected "input data". humm... so i changed "CS" into commercial format. fortunately, it worked... The other unit of commercial format is the same as measurement unit for...
I understand we have a function module conversion_exit_cunit_input which is specifically used to convert external to internal formats, however, this function module doesn't yield anything when the input is GLL. On the contrary I tried the FM conversion_exit_cun...
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT' EXPORTING input = uom LANGUAGE = SY-LANGU IMPORTING OUTPUT = uom_result * EXCEPTIONS * UNIT_NOT_FOUND = 1 * OTHERS = 2 . IF sy-subrc = 0. move uom_result to BAPI structure MARM. ENDIF. Hope this helps. Ernesto Reply abdulgaffarmohd Part...
CONVERSION_EXIT_CUNIT_OUTPUT Hope this helps. Reply Former Member In response to Former Member Options Mark as New Bookmark Subscribe Mute Subscribe to RSS Feed Permalink Print Report Inappropriate Content 2015 Jun 01 1:10 PM 0 Kudos 162 SAP Managed Tags: ABAP Development Hi Gaura...
外部系统传入SAP的单位用的中文,需要切换为SAP内部格式的单位 调用函数:CONVERSION_EXIT_CUNIT_INPUT 1CALLFUNCTION'CONVERSION_EXIT_CUNIT_INPUT'2EXPORTING3input = ls_data-meins4language ='1'5IMPORTING6output = ls_data-meins7EXCEPTIONS8unit_not_found =19OTHERS =2....
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT' EXPORTING input = WA_SPREADSHEET-MEINS MPORTING OUTPUT = WA_FINAL-MEINS. Goto SE37 and give this function module and press display, then see the Input and Output strucutres, you need to give the same data type Regards Sudheer Reply Former Member...
CALLFUNCTION'CONVERSION_EXIT_CUNIT_OUTPUT'EXPORTINGinput=LANGUAGE= SY-LANGUIMPORTING*LONG_TEXT =OUTPUT=*SHORT_TEXT =*EXCEPTIONS*UNIT_NOT_FOUND = 1*OTHERS = 2.IFsy-subrc <>0.*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.ENDIF....