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

smart forms

Former Member
0 Likes
317

how can we call two smart forms at a time

1 ACCEPTED SOLUTION
Read only

kiran_k8
Active Contributor
0 Likes
299

Sridhar,

I guess you mean to say calling two different smartforms depending on a condition.If it is so,the following example calls two different smartforms depending on the company code.

if vbrk-bukrs = 'XXXX'.

v_form = 'ZFORM1'.

else

v_form = 'ZFORM2'

endif.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = v_form

importing

fm_name = v_fnam

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

K.Kiran.

1 REPLY 1
Read only

kiran_k8
Active Contributor
0 Likes
300

Sridhar,

I guess you mean to say calling two different smartforms depending on a condition.If it is so,the following example calls two different smartforms depending on the company code.

if vbrk-bukrs = 'XXXX'.

v_form = 'ZFORM1'.

else

v_form = 'ZFORM2'

endif.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = v_form

importing

fm_name = v_fnam

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

K.Kiran.