cancel
Showing results for 
Search instead for 
Did you mean: 

case statement in smartforms

Former Member
0 Kudos

Hi

Could someone please explain how to write case statements in a smartform.

Ex:case abc.

when a.

enquiry

when b.

order

Endcase.

Regards,

Srihari.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

In smart form->where ever you wnat to put the case statement,goto that page -


>right click->program lines--->In import parameter pass the variable which you want to keep in case statement.Then write cae statement as in report.

former_member210123
Active Participant
0 Kudos

It depends where u want the code to work.If it is specific to a window then create a flow logic in the window.

Or else u can write the code in intilaliztion in global defenetions.

Former Member
0 Kudos

Hi,

You can write the case statements just like the way in ABAP program. You can write it in form routines under Global definitions, in program lines in any page.

Reward points if helpful.

Regards

CS

Former Member
0 Kudos

Hi,

You can write those in the program lines, or for text elements you can create conditions. In the conditions tab of the text elements you can specify your condition.

Normal case statements can be done in the program lines itself just like a normal ABAP program.

Regards,

Narendra.