![]() |
|
||||||
|
SM Using Breakdown Duration (QMIH-AUSZT)
Breakdown duration is a floating-point numeric field that contains the number of hours, seconds, minutes, etc. of a breakdown and resides in table QMIH (Quality message - maintenance data excerpt). The actual information resides in QMIH-AUSZT and is qualified by the field QMIH-MAUEH. To access the breakdown duration field use AUFK-QMNUM from the order master data file. Use the 'UNIT_CONVERSION_SIMPLE' function to convert the stored value (in seconds) to the value you need. Valid time values are stored in T006. The example includes an example of converting this floating-point decimal into a character field.
data:
floatout like qmih-auszt,
floatp type p decimals 0,
printhr(10).
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
INPUT = qmih-auszt
UNIT_IN = 'S'
UNIT_OUT = 'H'
IMPORTING
OUTPUT = floatout
EXCEPTIONS
CONVERSION_NOT_FOUND = 1
DIVISION_BY_ZERO = 2
INPUT_INVALID = 3
OUTPUT_INVALID = 4
OVERFLOW = 5
TYPE_INVALID = 6
UNITS_MISSING = 7
UNIT_IN_NOT_FOUND = 8
UNIT_OUT_NOT_FOUND = 9
OTHERS = 10.
move floatout to floatp.
move floatp to printhr.
condense printhr.
CONCATENATE
'Number of hours on part at failure: ' printhr INTO text6-tdline.
APPEND text6.
Return to ABAP help |
|||||||
[Perl help] [ABAP help] [MySQL help] [TCP/IP troubleshooting] [HTML help] [Feedback] [Humor] Advertise on Golden Ink's Georgia Network
|
|||||||