on 05-19-2022 10:29 AM
Can I asked how to display the data that has been condensed to the error class message?
I try to compare data with two table that have the same key value, I am using the "READ table into with KEY" and I perform three times because I have 3 different key, but I facing problem that the error message cannot be shown properly....Any recommendation?
if ( lv_value >= lw_range-a_MIN and lv_value <= lw_range-a_MAX ).
READ TABLE lt_qamr into lw_qamr WITH KEY verwmerkm = 'PPTMEL'.
CALL FUNCTION 'QSS0_FLTP_TO_CHAR_CONVERSION'
EXPORTING
I_NUMBER_OF_DIGITS = 2
I_FLTP_VALUE = lw_qamr-mittelwert
* I_VALUE_NOT_INITIAL_FLAG = 'X'
* I_SCREEN_FIELDLENGTH = 16
IMPORTING
E_CHAR_FIELD = lv_value.
lv_value = condense( lv_value ).
if ( lv_value >= lw_range-b_MIN and lv_value <= lw_range-b_MAX ).
READ TABLE lt_qamr into lw_qamr WITH KEY verwmerkm = 'PPTMEL'.
CALL FUNCTION 'QSS0_FLTP_TO_CHAR_CONVERSION'
EXPORTING
I_NUMBER_OF_DIGITS = 2
I_FLTP_VALUE = lw_qamr-mittelwert
* I_VALUE_NOT_INITIAL_FLAG = 'X'
* I_SCREEN_FIELDLENGTH = 16
IMPORTING
E_CHAR_FIELD = lv_value.
lv_value = condense( lv_value ).
if ( lv_value >= lw_range-c_MIN and lv_value <= lw_range-c_MAX ).
READ TABLE lt_qamr into lw_qamr WITH KEY verwmerkm = 'PPTMEL'.
CALL FUNCTION 'QSS0_FLTP_TO_CHAR_CONVERSION'
EXPORTING
I_NUMBER_OF_DIGITS = 2
I_FLTP_VALUE = lw_qamr-mittelwert
* I_VALUE_NOT_INITIAL_FLAG = 'X'
* I_SCREEN_FIELDLENGTH = 16
IMPORTING
E_CHAR_FIELD = lv_value.
lv_value = condense( lv_value ).
if lv_value >= lw_range-c_MIN and lv_value <= lw_range-c_MAX.
* success.
else.
message W101(ZPP) with 'xxxx' lv_value lw_resb-charg.
leave to screen sy-dynnr.
endif.
else.
message W101(ZPP) with 'PPMTYS' lv_value lw_resb-charg.
leave to screen sy-dynnr.
endif.
else.
message W101(ZPP) with 'PPTMTS' lv_value lw_resb-charg.
leave to screen sy-dynnr.
endif.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.