on 01-20-2009 2:55 PM
Hi expert,
I knowk the smartforms name, and now I would like what is the name of program that call the smartforms...
what's the best way to know it ???
tks,
bye
Function module that calls Smart Form is
SSN_FUNCTIO_MODULE_NAME
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this link
http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/content.htm
it will help u
Regards,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If you want to know the name of the program which invokes the Smartform, activate it and find the name of the function module. Now use the Where-Used-List to find where the function module is used and get the name of the calling program.
Hope this helps
Regards,
Jayanthi.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, use this function Module,
CALL FUNCTION u2019SSF_FUNCTION_MODULE_NAMEu2019
EXPORTING
FORMNAME = smf_name
IMPORTING
FM_NAME = fn_name.
CALL FUNCTION fn_name
EXPORTING
WA = wa_doc.
Regards,
Joan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Once u SAVE and Activate the Smart form a function module is generated
.
To know the function module that is generated upon activation of this smart form, click on
Environment ->Function module name.
a number is displayed,say for example /1BCDWB/SF0006789
A function module is generated whenever a Smart Form is activated. This Smart Form could be called from the driver program by calling this function module as shown below:
CALL FUNCTION '/1BCDWB/SF0006789'
So when this Smart Form is transported from the development to Quality or Production system, a new function module name is generated according to the number series available in that system. If the above program is transported to either quality or production system, the program might go for a dump as the function module is not available in that system. To handle this situation, we use the function module SSF_FUNCTION_MODULE_NAME to get the name of the function module for a Smart Form dynamically. If the form is not active, the function module SSF_FUNCTION_MODULE_NAME raises the exception NO_FORM.
in ur report program
DATA:fname TYPE rs38l_fnam.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORMS_ex1' ---> NAME OF THE REPORT PROGRAM
VARIANT = ' '
DIRECT_CALL = ' '
importing
fm_name = fname
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Now replace the function module name '/1BCDWB/SF0006789' with the variable FNAME
call the function name using the number
then change it to fname
CALL FUNCTION FNAME
Regards
Jayapriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check table TNAPR and enter the smartform name if you know output type goto NACE tcode and find out the program name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.