Ex 4 Local Data and Control Statements
Ex 4 Local Data and Control Statements
1.
What is wrong with the following data definitions? (There can be more than
one error in each, and some do not have errors.) Write the correct definitions.
a.
b.
c.
d.
In ABAP editor, choose the menu path: Goto >> Text elements >> Selection texts.
SAP UA Conference Hong Kong 3-7th July 2012
Page
Create a calculator to handle the four basic operations and two integer values.
Both values and the operator ( +, -, *, / ) are to be entered as parameters on a
selection screen. This can be achieved with the following code:
parameters : value1 type i,
operator,
value2 type i.
Output the result with two decimal places.
The case statement should be used to test the operator. If the operator is
invalid, display an error message.
Page