cancel
Showing results for 
Search instead for 
Did you mean: 

hiding initial fields in smartforms/sapscript

Former Member
0 Kudos

Hi all

i want to know , is there any way to hide the place on the form if that field is initial. the field i am displaying has a data type as char.

please suggest the way for any one of the two forms.(SAPscript or SMARTFORMS)

eg. if field2 is initial i wanna o/p as field1 field1 field1

field2 field3

field3 field3

best answers will be rewarded definitely.

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use conditions to display them, so it is not a problem

Regards,

Narendra.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

thanks for reply.

But the thing is that i have showing the fields in one text node only. so some fields may be initial. so i can't use condition as global to text.

another thing is, i tried it by writing it as

&field1&

if field2 is not initial

&field2&

endif

if field3 is not initial

&field3&

endif

&field4&

but it is showing me the output which i dont need.

o/p is

field1

blank line

blank line

field4

o/p should be

field1

field4

i want to know, should i give '.' after each if & endif statment or what. but i tried that also. its not working.

any other solution pls.

thanks

Former Member
0 Kudos

Hi,

In smartforms under table ->main area will be there -> under that rows will be there.

Select the perticular row type in which your filed is there and double click on it. Then right side screen displays 2 tabs.Press condistiona tab and put your required field <> space condition.

Try it may be this will solve your problem

Thanks,

Suma.

Former Member
0 Kudos

Hi,

Before each variable use the condition to check if it is invisible and then display.

E.g: if &field1& is not initial

&field1&

endif.

if &field2& is not initial

&field2&

endif.

Reward if helpful.

Thanks,

Dishant