Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

getting problem in displaying messages...

I have prepared this report and i want that if the user enters value < 1 on selection screen, a message should be displayed saying that its a lower value and same thing for value > 200. but when i'm executing this code, without checking its displaying d message at selection screen and its doing nothing if i give value > 200. Plz tell me d solution.

REPORT ZVENDORDATA.

tables: LFA1,lfb1.

data: ITAB LIKE LFA1 OCCURS 0 WITH HEADER LINE,

JTAB LIKE LFB1 OCCURS 0 WITH HEADER LINE.

SELECT-OPTIONS: vendor_n for lfa1-lifnr.

set pf-status 'MENU'.

INITIALIZATION.

vendor_n-low = '1'.

vendor_n-high = '200'.

vendor_n-option = 'BT'.

APPEND vendor_n.

clear vendor_n.

IF VENDOR_N-LOW < '1'.

MESSAGE S000(sabapdocu).

clear vendor_n.

ELSEIF vendor_n-HIGH > '200'.

MESSAGE S001(sabapdocu).

ENDIF.

Edited by: neha.7 on May 4, 2009 1:19 PM

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question