cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms - where used

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Function module that calls Smart Form is

SSN_FUNCTIO_MODULE_NAME

Answers (5)

Answers (5)

Former Member
0 Kudos
Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

check table TNAPR and enter the smartform name if you know output type goto NACE tcode and find out the program name

Former Member
0 Kudos

Hi Chenna....

I tried in TNAPR but no entry with my form name...

any idea ?

Former Member
0 Kudos

tell me your form name or out put type or try goto SE37 enter FM name SSF_FUNCTION_MODULE_NAME dispaly use whare used list.......

Former Member
0 Kudos

hi in which field u r giving ur form name in tnapr?