cancel
Showing results for 
Search instead for 
Did you mean: 

how to call two layouts through 1 company code

Former Member
0 Kudos

Hi experts,

I am having two layouts say z sf1 and zsf2 with same data but allignment is different and two company codes 1000 and 2000

Now i want to call throgh Zprog say Zsf_prog

How can i call two layouts depends on BUKRS (COMPANY CODE)

REGARDS,

SHASHANK

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If company code = 1000.

Call the function module for smartform z sf1

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = z sf1

IMPORTING

fm_name = l_f_fname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3

ElseIf company code = 2000.

Call the function module for smartform z sf2

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = z sf2

IMPORTING

fm_name = l_f_fname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3

endif

Hope this will solve your problem.

<b>Reward if helpful.</b>