Function | Returns the attribute value in user format | ||||||||||||
Example |
myuservalue = s10getuservalue( "kunnr" ). |
||||||||||||
Format |
data: myattrname type string, myunitattrname type string, myuservalue type string. myuservalue = s10getuservalue( exporting   attrname = myattrname   unitattrname = myunitattrname ). |
||||||||||||
Parameters |
|
||||||||||||
Description |
The s10getuservalue() method is called by the S10 framework whenever the
value of an attribute is displayed to the user. But the method can also be
called directly, for example to insert values in user format in a message text
or a generated document. The type of formatting is the same as for ABAP
"Write", i.e. the user settings regarding decimal and date representation as
well as a possible conversion exit are taken into account. The conversion exit
can generate different outputs for different logon languages, for example, "Pce"
is output for unit of measure "ST" for logon language French and "PC" for logon
language English. If necessary, a "build" method defined in the ABAP class for the attribute is called before the value is output. If the name of the associated unit or currency attribute is stored in the ABAP class for the attribute to be displayed, the number of decimal places is selected appropriately for the output. Example: data: kwmeng type vbap-kwmeng, vrkme type vbap-vrkme. constants: * assign unit attribute unit_kwmeng type string value 'vrkme'.
If "vrkme" has the value "ST", i.e. piece, the output of "kwmeng" is without
decimal places.
* Class db_mard
constants: * declare method and dependency
* implement method
|
||||||||||||
Components | S10 Framework |