Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HELP ME PLEASE

Former Member
0 Likes
835

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.

6 REPLIES 6
Read only

Former Member
0 Likes
793

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

Read only

Former Member
0 Likes
793

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

Read only

amit_khare
Active Contributor
0 Likes
793

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.

Read only

Former Member
0 Likes
793

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.

Read only

Former Member
0 Likes
793

You can check this in condition tab.

In output condition you can check the condition.

like. itab-val NE '0'.

Read only

Former Member
0 Likes
793

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.