SAP Virtual/Onsite Trainings

Document Categories:

What's New?

Contribute?

Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials 


Join the Mailing List
Enter name and email address below:
Name:
Email:
Subscribe  Unsubscribe 

Simple Number Game in SAP

...Previous

Create function codes for check boxes and push buttons

 

In Element list you have to define the attribute ok_code to validate the user commands

STEP4

Go to flow logic and build the query  

MODULE USER_COMMAND_0100

CASE OK_CODE.
  
WHEN 'GET'.
    
IF TICK4 = 'X' AND TICK3 = 'X' AND TICK2 = 'X' AND TICK1 = 'X'.
      ANSWER = 
'Ten'.
    
ELSEIF TICK4 = 'X' AND TICK3 = 'X' AND TICK2 = 'X'.
       ANSWER = 
'Nine' .
    
ELSEIF TICK4 = 'X' AND TICK3 = 'X' AND TICK1 = 'X'.
       ANSWER = 
'Eight'.
    
ELSEIF TICK4 = 'X' AND TICK3 = 'X'.
       ANSWER = 
'Seven'.
     
ELSEIF TICK4 = 'X' AND TICK2 = 'X'.
       ANSWER = 
'Six'.
    
ELSEIF TICK4 = 'X' AND TICK1 = 'X'.
       ANSWER = 
'Five'.
     
ELSEIF TICK3 = 'X' AND TICK1 = 'X'.
       ANSWER = 
'Four'.
     
ELSEIF TICK2 = 'X' AND TICK1 = 'X'.
       ANSWER = 
'Three'.
     
ELSEIF TICK2 = 'X'.
       ANSWER = 
'Two'.
     
ELSEIF TICK1 = 'X'.
       ANSWER = 
'One'.
     ENDIF.
  
WHEN 'CLEAR'.
    
CLEAR ANSWER.
    CLEAR: TICK4,TICK3,TICK2,TICK1.
  
WHEN 'BACK'.
    
SET SCREEN 0.
    
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE.                 
" USER_COMMAND_0100  INPUT  

STEP5

Create GUI Status, Titile, Top include for data declaration and Transaction code

GUI Status

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image