RE:[sap-dev] Abap if statement - BW transformation
Posted by
Admin at
Share this post:
|
0 Comments
Posted by hkb_singh on Feb 21 at 5:31 PM | Mark as helpful |
From what you say. you have 3 conditions each with 2 possibilities <> or Thus you have 8 possibilities ( 2 X 2 X 2 )
Now you can do what you want for your combination ( TTT, TFT, FTT,TTF, FFF, TFF, FTF,
FFT).
Put your code in the if elseif formation and leave the uninterested situations blank.
--- On Sun, 2/21/10, Manu-Munich via sap-dev <sap-dev@Groups.ITtoolbox.com> wrote:
From: Manu-Munich via sap-dev <sap-dev@Groups.ITtoolbox.com>
Subject: RE:[sap-dev] Abap if statement - BW transformation
To: "hkb_singh" <hkb_singh@yahoo.com>
Date: Sunday, February 21, 2010, 12:02 PM
Posted by Manu-Munich (Manu)
on Feb 21 at 12:02 PM
Mark as helpful
MY problem is the logic, it must be either , or of the conditions true and it must fill the corrisponding "X" field,
can you make an example of the coding pls? I am having problems, at the moment if one condition is true, it fills up all 3 " X" not only the one corrispond?ng to the condition, pls help
thanks
Manu
---------------Original Message---------------
From: Manu-Munich
Sent: Friday, February 19, 2010 4:45 PM
Subject: Abap if statement - BW transformation
> Hi all<br/>I have a problems- I need to fill in 3 different fields with 'X' if the all or either of the conditions- corrisponding to the fields- are false<br/>II give the following as an example:<br/>****************************<br/>IF conditionA <> source fields-conditionA<br/>OR<br/>conditionB<> source fields-conditionB<br/>OR<br/>conditionC <> source fields-conditionC<br/>l_s_actions = '02'<br/>l_s_changeconditionA = 'X'.<br/>l_s_changeconditionB= 'X'.<br/>l_s_changeconditionC = 'X'.<br/>***************<br/>Can anybody tell me the correct coding?<br/>I can?t get it<br/>thanks <br/>Manu
__.____._ Now you can do what you want for your combination ( TTT, TFT, FTT,TTF, FFF, TFF, FTF,
FFT).
Put your code in the if elseif formation and leave the uninterested situations blank.
--- On Sun, 2/21/10, Manu-Munich via sap-dev <sap-dev@Groups.ITtoolbox.com> wrote:
From: Manu-Munich via sap-dev <sap-dev@Groups.ITtoolbox.com>
Subject: RE:[sap-dev] Abap if statement - BW transformation
To: "hkb_singh" <hkb_singh@yahoo.com>
Date: Sunday, February 21, 2010, 12:02 PM
Posted by Manu-Munich (Manu)
on Feb 21 at 12:02 PM
Mark as helpful
MY problem is the logic, it must be either , or of the conditions true and it must fill the corrisponding "X" field,
can you make an example of the coding pls? I am having problems, at the moment if one condition is true, it fills up all 3 " X" not only the one corrispond?ng to the condition, pls help
thanks
Manu
---------------Original Message---------------
From: Manu-Munich
Sent: Friday, February 19, 2010 4:45 PM
Subject: Abap if statement - BW transformation
> Hi all<br/>I have a problems- I need to fill in 3 different fields with 'X' if the all or either of the conditions- corrisponding to the fields- are false<br/>II give the following as an example:<br/>****************************<br/>IF conditionA <> source fields-conditionA<br/>OR<br/>conditionB<> source fields-conditionB<br/>OR<br/>conditionC <> source fields-conditionC<br/>l_s_actions = '02'<br/>l_s_changeconditionA = 'X'.<br/>l_s_changeconditionB= 'X'.<br/>l_s_changeconditionC = 'X'.<br/>***************<br/>Can anybody tell me the correct coding?<br/>I can?t get it<br/>thanks <br/>Manu
Copyright © 2010 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
In the Spotlight
_.____.__ Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements