cancel
Showing results for 
Search instead for 
Did you mean: 

Function module in SMARTFORMS

Former Member

Dear Abapers

I have a one of Smartform

it will work properly in Development & Quality

my problem is after it transport to production server it sayed that function module (SMARTFORMS) not exit.

please how I solved this problem. every time coming Error dump in Production Server.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member

Hai Nelson

Use this F.M 'SSF_FUNCTION_MODULE_NAME'

Thanks & regards

Sreenivasulu P

Former Member
0 Kudos

yes i used code is bellowing,

this code is working properly in development & quality server

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Z_FL004_BANK_DRAFT'

IMPORTING

fm_name = fm_name.

CALL FUNCTION fm_name

EXPORTING

Former Member
0 Kudos

Try to activate the smart form once in production, so that it generates a function.

When you transported the smart form, did it go through without any errors?

See if the smart form exists in the PROD system exactly the way it is developed in DEV?

Regards,

Ravi

Former Member
0 Kudos

yes Ravi,

Its totaly same with development smartform

Former Member
0 Kudos

Hi Nelson,

Could you check if all the Z objects that you are using in the smartforms exist in the Production Server. It's posible that the problem has something to do with the declaration of the parameters that you are using.

Regards,

Eric

raguraman_c
Active Contributor
0 Kudos

Hi Nelson,

Can have the code snippet in which the error is occuring, like just look for this <b>--></b> text in the dump error, and please post that dump.

Feel free to revert back.

--Ragu

Former Member
0 Kudos

Hi,

You can do one thing in production.

Go to the smartforms transaction and enter the relevant smartforms name .

Click on the test button on the application toolbar .then if it generates the function module name then there is no issue with the transports otherwise it will show the structures whci are not properly generated in the production system.

This way you know where is the problem.

Any further issues .let me know.

Thanks.

FredericGirod
Active Contributor
0 Kudos

Hi,

I hope you use the function SSF_FUNCTION_MODULE_NAME to get the name of the function link to the smartform ?

Rgd

Frédéric

Former Member
0 Kudos

Ran into an issue today in production trying to multi-thread several batch jobs calling the same Smartform. Ran the 1st job thru (1,000 forms) just fine. Kicked off jobs 2 and 3 and 2nd job went half way thru before abending. I get:

"Function module is not active or contains no code".

Source code is there but somehow became inactive. I'm going to move another transport to activate another time and single thread.

Ever heard of this?

raguraman_c
Active Contributor
0 Kudos

Hi,

The problem might be some one would have modified the program when your background job is running.

--Ragu

Former Member
0 Kudos

How are you making the call to the SMART Forms. It should be something like this.

CALL FUNCTION 'SSFE_FUNCTION_MODULE_NAME'.

EXPORING

FUNCTION_NAME = FUNCTION_NAME

CALL FUNCTION FUNCTION_NAME.

So, its a dynamic call to the smart form function.

If you have hardcoded the smart forms function, it will not work.

Sounds like that is what you have done.

Change the code like this in DEV and transport it to PROD.

Regards,

Ravi

NOte : Please mark all the helpful answers