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

Query.....

Former Member
0 Likes
467

Hi SAP gurus I want to write a logical statement

IF '10' OR '20'.

do this

ENDIF.

could u help me with this

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
449
case field.
 when '10' or '20'.
       perform <do>.
endcase. 
4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
450
case field.
 when '10' or '20'.
       perform <do>.
endcase. 
Read only

Former Member
0 Likes
449

Hello,

data l_var(2) type c.

if l_var = '10' or

l_var = '20'.

...... do something.

else.

..... do something else.

endif.

Regards

Greg Kern

Read only

Former Member
0 Likes
449

what if im using a BADI in a method

Read only

0 Likes
449

Hi Srinivas

have a look at the link

http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm

Badi will be a class which will have methods in it.. so get familarized with the concept of ABAP OO. This is recomended now a days.