Skip to Content
0
Former Member
Aug 27, 2007 at 04:39 PM

Error message and it shd give a popup

244 Views

have to check for venum if the venum is present then it shd come out of the program

FORM validate_venum .

DATA : lv_venum TYPE vekp-venum.

SELECT handling_unit

UP TO 1 ROWS

INTO lv_venum

FROM zws_data

WHERE handling_unit EQ nast-objky.

ENDSELECT.

IF sy-subrc NE 0.

  • MESSAGE e006 WITH lv_venum.

  • WRITE:/ sy-msgty, sy-msgno NO-GAP, ':', l_msg.

Write :/ lv_venum, ' already present '.

ENDIF.

ENDFORM.