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 is the functionality of BIZTALK and how it handles the IDOC’s and how u will transfer the IDOCS to the BIZTALK ?

2232


What are base tables of an aggregate object? : abap data dictionary

602


Which transaction code is used executing a report (type 1 program)? : abap data dictionary

631


Explain the difference between call screen and leave screen?

597


What are field groups?

595






what is abstract classes

870


How can we omit a leading sign and a leading zero in sapscript?

599


What is the function module for INDIAN PAYROLL to read table cluster for given cluster table and sequence number?

1817


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2049


HOW TO DIFFERENT CALL TRANSACTION ON THE BASIS OF DOUBLE CLICKING ON DIFFERENT FIELD.

1773


Explain what is step-loop? Explain all the steps?

704


How to call other programs?

616


How do you read files from the presentation server ? : abap bdc

578


Mention what is alv programming in abap?

578


What are two different ways to add fields to sap tables?

526