Application Development 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: 

Doubt in Application toolbar

Former Member
0 Kudos

Hi All.

I have two screen ,initial screen selection screen 1000 next screen dialogue screen 101.it (101) has one application tool bar like "ELECT",i want deactive application toolbar depending upon condition.example 4 input field in selection screen like 1,Name 2,Age,3Gender ,4Place. if user enter more then 18 old i will allow to active application tool bar in screen 101,if user enter input below 18 in selection screen ,i will deactive application tool bar.

please help me

regards.

Jay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

in pai of the 101 you can get the value of age if you want to validate that.

or when you are calling screen 102 then put the check.

if age(field of 101 screen) ge 18.

call screen 102.

endif.

regards

shiba dutta

5 REPLIES 5

Former Member
0 Kudos

Hi Jay

Make use of statement: SET PF-STATUS with addition: ... <b>EXCLUDING f ... EXCLUDING itab</b>

Kind Regards

Eswar

Former Member
0 Kudos

declare itab

data : BEGIN OF iTAB occurs 0,

FCODE LIKE RSMPE-FUNC,

END OF iTAB.

append the fcodes you dont want to show in itab.

in PBO of your screen 101 just define

module status output.

if age ge 18.

set pf-status 'ELEC'.

else.

set pf-status 'ELEC' excluding itab.

endif.

endmodule.

regards

shiba dutta

or just create another pf status for lt 18 age.

0 Kudos

hi shiba.

I have done it ,Thanks for you ,one more doubt. if user enter with in 18 old from selection screen (1000) to dilogue (101).now ELECT application toolbar showing how can i prevent that?

example:user will enter with 18 yr old from selection screen 1000 to dilogue screen 101,after entered in 101 screen ,user may be change his age below 18 in screen 101,how can i prvent ? (if user press the application toolbar it will poppulate one screen 102 abt election from 101 scree, i have done validation it when user may change age after entered screen 101 like Elction rights only for 18age, but i want to prevent popullation of screen 102)

pls help me.

Former Member
0 Kudos

in pai of the 101 you can get the value of age if you want to validate that.

or when you are calling screen 102 then put the check.

if age(field of 101 screen) ge 18.

call screen 102.

endif.

regards

shiba dutta

0 Kudos

Hi shiba.

I have solution..I have picked 10 mark to you.

Thank s a lot