Application Development 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: 

Transport a smartform

Former Member
0 Kudos

Hi,

I have a problem with a smartform in production. We transported the smartform but I don't know why don't appear it's function module, so the smartform doesn't work. I don't know if we have to do something special to transport the smartform because I know that the FM is generated automatically by the smartform so in production doesn't exist the FM and if I activated the FM in production it generated a new number.

So I hope someone can help me

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Laura,

Smartforms Name are system dependant !

They are dynamically generated.

You have to use :

data : function_name type rs38l_fnam.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZFORM_NAME' "Smartform name

direct_call = 'X'

importing

fm_name = function_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

  • erreur.

endif.

and then, you call your smartform with :

call function function_name

exporting

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = st_ssfctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = st_ssfcompop

user_settings = ' '

....

Good luck,

Regards,

Erwan.

4 REPLIES 4

Former Member
0 Kudos

Hi Laura,

Smartforms Name are system dependant !

They are dynamically generated.

You have to use :

data : function_name type rs38l_fnam.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZFORM_NAME' "Smartform name

direct_call = 'X'

importing

fm_name = function_name

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

  • erreur.

endif.

and then, you call your smartform with :

call function function_name

exporting

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = st_ssfctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = st_ssfcompop

user_settings = ' '

....

Good luck,

Regards,

Erwan.

0 Kudos

Hi,

I know which is the name of the smartform but the problem is that in development it has the FM for example /BW00003 and in production it doesn't appear and I have to generate so if I generate I obtain a different number and the programs which are related to the smartform, doesn't work because internally it has the number /BW00003 but in production it doesn't exist

0 Kudos

YES I've understand.

You'll have to read the code I've post above .

The first FM('SSF_FUNCTION_MODULE_NAME') get the name of the smartform corresponding <b>FM</b> in the system.

Eg : Smartform = Z_pick_list.

- it will give you the Corresponding FM = /BW0000003 ( DEV environement )

- It will give you the Corresponding FM = /BW0000005 ( PROD environement )

Regards,

Erwan.

Message was edited by: Erwan LE BRUN

Message was edited by: Erwan LE BRUN

0 Kudos

Thank you!!

It's works 🐵