RE:[sap-dev] Abap if statement - BW transformation
Posted by
Admin at
Share this post:
|
0 Comments
Posted by brigittemcdonald on Feb 21 at 11:42 PM | Mark as helpful |
Manu, maybe this is what you need:
IF conditionA <> source fields-conditionA.
l_s_actions = '02'
l_s_changeconditionA = 'X'.
ENDIF.
IF conditionB<> source fields-conditionB.
l_s_actions = '02'
l_s_changeconditionB= 'X'.
ENDIF.
IF conditionC <> source fields-conditionC.
l_s_actions = '02'
l_s_changeconditionC = 'X'.
ENDIF.
Regards
Brigitte
---------------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
__.____._ IF conditionA <> source fields-conditionA.
l_s_actions = '02'
l_s_changeconditionA = 'X'.
ENDIF.
IF conditionB<> source fields-conditionB.
l_s_actions = '02'
l_s_changeconditionB= 'X'.
ENDIF.
IF conditionC <> source fields-conditionC.
l_s_actions = '02'
l_s_changeconditionC = 'X'.
ENDIF.
Regards
Brigitte
---------------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