‎2007 Jan 10 3:03 AM
I HAVE ONE PROBLEM .I have to print values and their text with in the smartform and if the value is zero no text and their value should not print.Just like
charges = 0.00.
so it is not printing in the print priview or else
charges = 999,00 it is print with in the output.
and one more thing where should i write code either in driver program(se38) or smart form (program lines).
with warm regards.
‎2007 Jan 10 3:19 AM
Hi,
Check this example..You should write in the form and not in the print program..
&'P.O. Box 'KNA1-PFACH&
If the KNA1-PFACH has value then output will be -> P.O. Box 99000
If the KNA1-PFACH has no value then output will be ->
Thanks,
Naren
‎2007 Jan 10 3:19 AM
hi
You can write the code in sf..just give the condition like this...within the loop...
loop at itab.
if a1 ne '0' and b1 ne '0' .
&itab-a1&,, &itab-b1&...
...
...
endloop.
if you want entries to appear blank, but a line has to come, then you can move space ' ' to these fields..hope this would help
‎2007 Jan 10 3:48 AM
Hi,
In smartform you can write the code for the same.
Just add a condition to the place where you want to display it.
In tru case inser a text field to display the value and in false case the other required value.
and now pass the codition to the Condition type added.
Regards,
Amit
Reward all helpful replies.
‎2007 Jan 10 4:28 AM
PUT
BTEAK-POINT.
In smartform where u assigned value to display veriable
may be it will getting with your veriable type
otherwise send ur ques clear and with codes it will help to clear ur problem.
‎2007 Jan 10 5:01 AM
You can check this in condition tab.
In output condition you can check the condition.
like. itab-val NE '0'.
‎2007 Jan 10 5:16 AM
Hi Khadar,
U can do the modification in the smartform itself. Pretty simple. U must have already created the texts in the smartforms to print the values and all.
Just check out for the tab 'Conditions' available for that text in the smartform. In the conditions tab, u can specify the condition as 'charges' ne '0.00. Only when this condition is met, the text will be displayed in the print output.
Reward points if useful.