cancel
Showing results for 
Search instead for 
Did you mean: 

Display proper error message class after condensed statement

suityan98
Explorer
0 Kudos

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.

emanuel_klenner
Active Participant
0 Kudos

What does the definition of the message W101(ZP) look like and what is not working?

Accepted Solutions (0)

Answers (0)