Skip to Content
0
Former Member
May 29, 2008 at 07:36 PM

How to write case statement in smart form? where to write, how to pass?

209 Views

Hi Friends,

I am new to the smart forms. I am getting some errors. Could you pls help me. This is very urgent.

I am getting structure data from the form interface. I need to populate some custom text based on the one field of the above structure.

Assume I am getting VBAK structure data from form interface. Based on the order type field, I need to populate custom text in one particular window.

For thisu2026. In Sap script, will written CASE statement.

CASE &vbak-order_type&

When u2018aaau2019.

W_text = u2018abcdefghijklmu2019.

When others.

W_text = u2018wwwwwwwwu2019.

ENDCASE.

The same way I need to write some code in smartform. Could you pls help me.

When I am trying to written the code in the program lines node, it is displaying some errors likeu2026 field vbak-order_type is not defined or unknown like that.

Where I have to mention to display w_text field.?

Pls clarify me.

Thanks in advance

Raghu