on 01-10-2007 7:56 AM
Hi ,
I have one info object in Tranafer Structure , Applied Transfer Rule based on 5 info object and derived the addition of those 5 and stored result in Transfer Rule . That info object is in Key Fig tab of Cube .
Now in Cube i have one Info Obj Char , Which do not have value in Comm Stru , But i need to caluate based on The Transfer Rule Applied that info object Tota Value .
How can we do it ? Is it possibe ?
Consider Transfer Rule Applied info object = ' Total ' .
Now i need to writr update rule based on this Total , To update field ' Grade '
So i click on Info Obj char ' Grade ' In update Rule , Create Routing , Now in
Result = ?
What shoud be given ?
Total or Grade .
Kumar
Hi Kumar,
There is only one ENDIF if you use ELSE IF.
The syntax is like this:
The last statement block is always terminated by ENDIF.
IF ( <condition1> ).
<statement block1>
ELSEIF ( <condition2> ).
<statement block2>
ELSEIF ( <condition3> ).
<statement block3>
.....
ELSE.
<statement block4>
ENDIF.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dinesh . Assigned Points .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Why we need
ELSE IF.
IF .
This is equal to
If
endif.
if
endif .
Is this necessary , <b>In other languages the syntax is like this</b>
If Cond 1
else if Cond 2 to Cond 3
elseif Cond 3 to Cond 4
elseif Cond 4 to Con 5
else Exceptional condition
endif .
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dinesh ,
Can you give simple syntax of using condition like checking a range
Eg : IF A > 10 and < 20 .
Else if A > 20 and < 30 .
ENDIF.
How to brinng this in Routine ? This syntax answer will solve my Problem ?
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Yes. You can have nested "IF" loops. But make sure you dont have too many of them as it affects the performance.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
Can i use Nested If conditions
IF Comm_stru Eq -
Condition 1
Else If Comm_stru Eq .....
Condition 2
Endif .
Can anyone give syntax ? Becaues nested if it shows Error
. Needed after Else
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
Each info-object would have a RESULT so for Grade you need to specify the "Grade Value".
For example you can define for "Grade" routine something like this:
IF COMM_STRUCTURE-TOTAL < 40.
RESULT = 'F'.
Hope this helps.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Result = comm_structure-Applied.
Use the right neme of infoobject for Applied.
Hope it helps.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.