While Transporting Smartform form Dev to Test to
Production, it is possible that Name of the Function Module
change, Why? In which case it changes and in which case it
remains same?

Answer Posted / amitesh jaiswal

Once you have activated the smartform, go to the environment
-> function module name. There you can get the name of
funtion module name.

The key thing is the program that calls it. for instance,
the invoice SMARTFORM LB_BIL_INVOICE is ran by the program
RLB_INVOICE.

This program uses another FM to determine the name of the FM
to use itself. The key thing is that when it calls this FM
(using a variable to store the actual name), that the
parameters match the paramters in your smartform.

Another thing to note is that the FM name will change
wherever the SF is transported to.

So you need to use the FM to determine the name of the SF.

Here is the code that can be use to determine the internal
name of the function module:

Code:

if sf_label(1) <> '/'. " need to resolve by name
move sf_label to externalname.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = externalname
importing
fm_name = internalname
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message 'e427'.
endif.
move internalname to sf_label.
endif.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the Inportance of pa30? : abap hr

993


Explain how do you move on to the next screen in interactive reporting?

770


Name a few data dictionary objects?

839


What are the function module in bdc?

884


How to determine the attributes of an internal table?

802


Difference between call by value and call by reference? : abap data dictionary

844


What are the two levels in defining a match code ?

823


What are client dependent objects in abap/sap?

787


What is a match code? : abap data dictionary

847


What is step-loop?

856


What is an update type with reference to a match code id? : abap data dictionary

766


What is an rfc?

811


Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc

717


What are the names of the function modules that will be generated upon activation of a lock object?

762


Why do we need to code a loop statement in both the pbo and pai events for each table in the screen?

844