‎2008 Mar 09 6:37 PM
‎2008 Mar 10 3:44 AM
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.
‎2008 Mar 10 3:44 AM
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.