2006 May 30 11:32 AM
Hi
Could anyone help me to use Condition in Smartform.
I'm trying to display amount on the basis of days.
e.g. if the days are more than 90 days I want the balance amount to be printed in the Smartform.
Could please anyone tell me how to write the code for this .
I want to use IF condition and where shall I write it?
Please Help.
Thanks and Regards,
Deepa
2006 May 30 11:36 AM
IN the text-element where you have thie balance amount field being displayed, go to the conditions tab.
In the conditions tab,
you can give your condition as
Fieldname : v_days (Whatver is the variable for the days)
Comparison value : 90
INbetween select an '='.
Regards,
Ravi
Hi
Could anyone help me to use Condition in Smartform.
I'm trying to display amount on the basis of days.
e.g. if the days are more than 90 days I want the balance amount to be printed in the Smartform.
Could please anyone tell me how to write the code for this .
I want to use IF condition and where shall I write it?
Please Help.
Thanks and Regards,
Deepa
2006 May 30 11:33 AM
insert <b>program lines</b> in the page & write ur code in that .
goto the required window right click on it & then goto
create flow logic in that u hav <b>program line</b> click on it & insert ur if condition in that as per ur req.
or else if u are using any text element to display the sum then u can insert a <b>condition</b> on the number of days variable and comparision operator <b>></b> & value 90 to write balance amount.
plz reward if useful
2007 Nov 06 4:56 AM
Hello Ganesh
I have two logos to be display separetely on the condition
First
Name : quality logo
object: graphics
ID : BMAP
Second
Name : DNV Logo
Object :graphics
ID : BMAP
Now when I click the form painter-> sender box is displaying where the
condtion is there when I click Sender inforamtion Get_Ship_point Address and under that I can see
some conditon in Input Parameters and output paramter
Under Input parameters
IS_DLV_DELNOTE-HD_ORG_SHIP_POINT
Outpput parmaters
TEXT_MODULE So when I open the text_module
TEXT_MODULE = 'Z_SO_DALB'.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = '7DAY'.
TEXT_MODULE = 'Z_SO_7DAY'.
ENDIF.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = 'AAYD'.
TEXT_MODULE = 'Z_SO_AAYD'.
ENDIF.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = 'ARCA'.
TEXT_MODULE = 'Z_SO_ARCA'.
ENDIF.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = 'BERR'.
TEXT_MODULE = 'Z_SO_BERR'.
ENDIF.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = 'CHIN'.
TEXT_MODULE = 'Z_SO_CHIN'.
ENDIF.
IF IS_DLV_DELNOTE-HD_ORG-SHIP_POINT = 'CROW'.
TEXT_MODULE = 'Z_SO_CROW'.
ENDIF.
and under condition nothing is there
sO how Can I write condition for logos which is very important for quality display
2006 May 30 11:36 AM
IN the text-element where you have thie balance amount field being displayed, go to the conditions tab.
In the conditions tab,
you can give your condition as
Fieldname : v_days (Whatver is the variable for the days)
Comparison value : 90
INbetween select an '='.
Regards,
Ravi
2006 May 30 11:38 AM
Hii
If you want to write the output based on if condition,then you can use condition in text element.
Otherwise,if you want to do some manipulations in code based on the value,then you can do as follows
Declare a variable(say V) in Global definition-Global data.
v type (days).
Create a program line and store the value in a variable.
Declare v as output parameter and grlabel as input parameter.
Inside the program line,write your code as
v = grlabel-field.
Then if you want to manipulate something,write your coding in that program line as below.
if v > '90'
..manipulations
print ur balance & &
else.
...
endif.
Regards
Naresh
2006 May 30 11:38 AM
Create a TEXT for the amount to be printed on the smartform.. In the CONDITION tab, give the following condition --> days > '90'
Now the amount will be printed only when the condition is satisfied..
2006 May 30 11:39 AM
Hi Deepa,
Welcome to SDN.
Do the following steps.
1. In your window if you already have a program lines node, add the 'days' variable to the parameter list. Else create a program line and add this variable to your parameter.
2. Next create 'Alternative' node.
3. In the Condition table give Field value as Days variable, and comparison > 90.
4. Under the true node, create a text element with the balance amount in it.
I guess that will serve your purpose.
Regards,
Susmitha
Dont forget to reward points for useful answers.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |