[52140] in SAPr3-news

home help back first fref pref prev next nref lref last post

Re: Basic ABAP Question

daemon@ATHENA.MIT.EDU (Grasshopper)
Fri Nov 5 15:07:08 2004

To: sapr3-news@mit.edu
Date: Fri, 05 Nov 2004 20:06:04 GMT
From: "Grasshopper" <Grasshopper@KungFu.net>
Message-ID: <M2Rid.16820$cp6.12430@newssvr15.news.prodigy.com>
Reply-To: "Grasshopper" <Grasshopper@KungFu.net>

Buck Turgidson wrote:
> I am trying to implement the following if/then psuedocode in ABAP.  I
> am not sure how to do this with the ABAP construct.  Any advice would
> be appreciated.  It is the nested "then" that I am not sure how to do
> in ABAP.
>
> if f1 = 'a'
>  then if f2 = 'b'
>    do something 1
>  else
>    do something 2
>  endif
> else
>  do something 1
> endif


IF F1 = 'A'.
   PERFORM Z_SOMETHING_A.
ELSEIF F2 = 'B'.
   PERFORM Z_SOMETHING_B.
ELSE.
   PERFORM Z_SOMETHING_OTHER.
ENDIF.

-- 
____________________________
Ah,  Young Grasshopper.
Sometimes it is eyes that blind a man.



home help back first fref pref prev next nref lref last post