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

What are the differences between session method and call transaction method? : abap bdc

557


What is is a match code? : abap data dictionary

686


What is the difference between a pool table and a transparent table?

545


What is meant by hide area?

660


Why bapi need then bdc ? : abap bdc

582






What is luw?

688


how do you transport lsmw data from one system to another?

666


What is function group?

616


What are the events in screen programming?

626


When to use logical database?

573


Can you create a table with fields not referring to data elements? : abap data dictionary

779


What is the difference between get and get late?

598


SAP query how to use end users?

1703


What is a transport?

628


What are the prerequisites for creating foreign key relationship?

671