‎2008 Oct 21 12:02 PM
Hello frds,
i have a field in which i have to enter a NO.
for ex: No of persons 3
if i enter 3 in the above field i have to fill respective fields and press ADD button after each record.
After entering 3rd record ADD button should be disabled or passs an error message .
PPLZ help me with the code.
‎2008 Oct 21 12:22 PM
Hi,
deaclare a counter = number you had given.
loop
if counter <> 0.
then add
count--.
else
write you can't add.
exit.
endloop.
hope it will helps you.
regards,
Lokesh
Edited by: Lokesh Tripathi on Oct 21, 2008 1:22 PM
‎2008 Oct 21 12:08 PM
hi
you can make it invisible during runtime.
At the event, AT SELECTION-SCREEN OUTPUT. you can turn attributes on and off for screen elements. In this case, invisible = 1, makes the element invisible, 0 makes is visible.
here is a short sample.
report zrich_0001.
parameters: p_check type c.
selection-screen pushbutton 40(20) gocfg
user-command gocfg.
at selection-screen output.
loop at screen.
if screen-name = 'GOCFG'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
regards
Satish
‎2008 Oct 21 12:22 PM
Hi,
deaclare a counter = number you had given.
loop
if counter <> 0.
then add
count--.
else
write you can't add.
exit.
endloop.
hope it will helps you.
regards,
Lokesh
Edited by: Lokesh Tripathi on Oct 21, 2008 1:22 PM