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

SmartForm Function Module not generated in Production

Murali_Shanmu
SAP Champion
SAP Champion
0 Likes
1,956

Hi

I have a smartform in DEV(Box A). It works fine. I trasnsported it to PROD(Box B). It appears as Active state in PROD. But there is no Function module generated for this smartform. As a result my program dumps in PROD.

I am running it on 4.6C Release.

Any suggestions ?

Murali.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,162

Hi muralidaran,

1. The FM generated in PRD

may have a different name,

as compared to DEV and production.

2. use the FM

SSF_FUNCTION_MODULE_NAME

to get the related FM name.

3. Then call the FM

using the variable

CALL FUNCTION fmname

regards,

amit m.

9 REPLIES 9
Read only

Former Member
0 Likes
1,163

Hi muralidaran,

1. The FM generated in PRD

may have a different name,

as compared to DEV and production.

2. use the FM

SSF_FUNCTION_MODULE_NAME

to get the related FM name.

3. Then call the FM

using the variable

CALL FUNCTION fmname

regards,

amit m.

Read only

0 Likes
1,162

Hi

I have an issue in Transporting. I am using SSF_FUNCTION_MODULE_NAME and i am aware of the fact that FM name are specific to the System in which they are created.

Murali.

Read only

0 Likes
1,162

use fm....like this not genrated fm may be diffrent in prd..

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = g_form

IMPORTING

fm_name = g_fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

CALL FUNCTION g_fm_name

EXPORTING

control_parameters = g_control

output_options = g_output

user_settings = ' '

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Read only

0 Likes
1,162

Hi kishan negi

I have called the SmartForm the same way as you have mentioned it. Problem is Function Module itself is not generated in PROD Box after a successful Transport.

Murali

Read only

0 Likes
1,162

Hi again,

1. In that case, just open the

Smartform in PRD server.

2. ENVIRONMENT -


> FUNCTION MODULE NAME

3. Just check, which FM name it is giving !

4. U may also ACTIVATE it once again , in PRD.

(it might happen that after transportation,

the smartform may not have got activated

properly.)

regards,

amit m.

Read only

0 Likes
1,162

Hi

I dont find any Function Module name under ENVIRONMENT -


> FUNCTION MODULE NAME. The status of Smartform is Active. Is this is problem with 4.6C Version. I have lot of smartforms. Now should i get into all these smartforms and again try activating each of them, so that the FM get generated.

Isn't there any other way of doing it as i do not have Modify permissions in PRD.So i believe i may not be able to activate it myself in PRD.

Murali.

Read only

0 Likes
1,162

Hi

The fm of sf isn't generated while trasporting, but when a print is done by that sf for the first time.

So that behavior is very strange, try to check and/or generate it by smartforms trx in PROD enviroment.

Max

Read only

0 Likes
1,162

Hi again,

1. I dont find any Function Module name under ENVIRONMENT -


> FUNCTION MODULE NAME

Click on

FUNCTION MODULE NAME

and it will give a pop-up window

displaying the FM name.

2. If its not there,

then u can do 3 things :

a) in prd server, activate the smart form again.

(this will generate the FM)

b) try to transport a new request,

for the same smartform.

c) ask basis team to check the LOG

of this transport request.

(whether any error / warning was there in the

transport log)

From this log, if any warning/error is there,

then we can come to know, that there is some problem.

regards,

amit m.

Read only

0 Likes
1,162

Thanks everybody. Shall get in touch with my Basis guy.