10-18-2007 9:22 AM
Hi,
I would like to write the sentance like this.
If parameter 1 (cost centre) OR parameter 2 (order) on selection screen is entered.
DO THIS.
ELSE.
DO THAT.
ENDIF.
******
Now my code is like this, but the system doesn't recognize it ....
IF S_KOSTL OR S_AUFNR IS initial.
do this.
ELSE
DO THAT.
ENDIF:
**********************
Your coleagues suggested this.... what []???
if s_kostl[] is initial.
Select.........
else.
Select from EKKN and then add EKPO and EKKO as left outer join.
endif.
10-18-2007 9:24 AM
IF <b>S_KOSTL[] is not initial OR S_AUFNR[] IS not initial</b>.
do this.
ELSE
DO THAT.
ENDIF:
10-18-2007 9:24 AM
IF S_KOSTL[] is not initial OR S_AUFNR[] IS not initial.
do this.
ELSE
DO THAT.
ENDIF:
10-18-2007 9:24 AM
IF <b>S_KOSTL[] is not initial OR S_AUFNR[] IS not initial</b>.
do this.
ELSE
DO THAT.
ENDIF:
10-18-2007 9:35 AM
Uh, if i typed this you suggested, there is Error message...
IF S_KOSTL[] is not initial OR S_AUFNR[] IS not initial.
and the error message is:
Incorrect logical expression: Comparison / SELECT-OPTION can only be
followed by "AND", "OR" or ")".
if i put [] out of the Sentence, there is no abap error, but nothing happend ))
Saso