FM for fetch value against unconverted value in SAP ABAP
- Get link
- X
- Other Apps
In SAP ABAP sometimes we need to show value field data but when we fetch data from table we get unconverted value. Most of the time its happens when we need to show Base unit of measurement.
In below I show you the process with example.Hope it will help you to find the desire field.
Function module name: "CONVERSION_EXIT_CUNIT_OUTPUT"
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
EXPORTING
INPUT = GS_QAMV-MASSEINHSW
LANGUAGE = SY-LANGU
IMPORTING
* LONG_TEXT =
OUTPUT = SPEC_U
* SHORT_TEXT =
* EXCEPTIONS
* UNIT_NOT_FOUND = 1
* OTHERS = 2
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
Here GS_QAMV-MASSEINHSW is your fetching data, here i get CST but in value level it is cSt. User need cSt in their report. So i use uper FM to resolve the issue. Hope it will help to solve the issue.
- Get link
- X
- Other Apps
Comments
Post a Comment