Hi All,
I need a help on validation me having some fields in that i have to keep validations. All validations i am using in view . I kept all other validations but it is throughing me error for this validation which i used below.
Error is : SELECT without an INTO clause is not supported in the OO context. Use
"SELECT ... INTO wa".
IF ls_header-chassis_number IS NOT INITIAL AND
ls_header-date_failure NE '00000000' AND
ls_header-job_card_number IS NOT INITIAL.
SELECT SINGLE * FROM pnwtyh
WHERE RELOB_EXT = PNWTYH-RELOB_EXT AND
zdate_of_failure = PNWTYH-ZDATE_OF_FAILURE AND
zjob_card_num = PNWTYH-ZJOB_CARD_NUM
.
IF sy-subrc = 0.
CALL METHOD lo_message_manager->raise_error_message
EXPORTING
message_text
= 'Same Job card Exists for the Chassis on the Failure Date' .
ENDIF.
ENDIF.
can any one help me out from this.
With Thanks & regards
madhan