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
Can a transparent table exist in data dictionary but not in the database physically? : abap data dictionary
There is a situation where there is a field "MATERIAL DESCRIPTION" in say 20 display only transaction. You want that whenever user opens any of these transaction, this particular field is masked with ****. But table does not holds ****. It holds the actual value. What are different ways of doing it? Which is the best way.
What is sap luw or update transaction?
What is the Process to transfer IDOC from Outbound System to Inbound system.
From excel to abap - is batch mode possible ? : abap bdc
A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization
Rp_provide_from_last contains how many parameters ? : abap hr
What is the difference between dialog program and a report?
What two statements are required in an abap program to output an icon using a written statement?
What is the use of message command in a report? What are the different message types?
Program for Prime numbers and Matrix plz explain me the procedural method with steps
What are logical databases?
How does the system handle roll areas for external program components?
How do you validate the selection criteria of a report? And how do you display initial
Name some data dictionary objects?