Description: Displaying ICON on the Screen based on some Condition. All Icon names can be obtained from Tcode – ICON.
Step 0. Create a Module Pool program Type ‘M’ and declare some variables and activate the program.
Step 1. create a screen ‘0001’ and click on the continue button.
Step 3. Create some input field as shown below and a Push button with F-code ‘DISP’.
Step 4. Design some Output fields from the SFLIGHT table and set the property of each field as output only.
Step 5. Now select the ICON element from the Screen painter Element list and Put it on the screen and provide a name to it as mentioned.
Step 11. Change the input details and click on the Get Details Button and as per the Max seat and Occ seat the Green icon is displayed.