Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

records adding and disabling pushbutton

Former Member
0 Likes
412

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

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

2 REPLIES 2
Read only

satsrockford
Active Participant
0 Likes
392

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

Read only

Former Member
0 Likes
393

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