cancel
Showing results for 
Search instead for 
Did you mean: 

how to search smartform name from function module

Former Member
0 Kudos

Hello Techies,

I want to search smartform name from function module.

I have done it otherwise using SSF_FUNCTION_MODULE_NAME, but how to get smartform name.

Regards,

Tanaya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi,

Do like this,

Suppose ur fm name is /1BCDWB/SF00000272

then retrieve the fm number from it which is 00000272

now u can get ur form name form table STXFADMI

give the number in the field FMNUMB and u'll get ur fm name in the field FORMNAME

кu03B1ятu03B9к

Edited by: kartik tarla on Dec 23, 2008 12:30 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

hi tanya,

may be this link can prove useful to u

http://help.sap.com/saphelp_nw04/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/content.htm

regards,

prashanti

Former Member
0 Kudos

Hi,

See if the below link helps you.

http://sapbrainsonline.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html.

Regards,

Rahul

Former Member
0 Kudos

hi,

Try to search using Where used list option on the FM SSF_FUNCTION_MODULE_NAME.

It gives the list of Object name where this FM is used then you need to check each object and input parameters to check the Smartform name.

Former Member
0 Kudos

hi avinash,

I think function module name is generated as concatenation of different objects.

Another thing to note is that the FM name will change wherever the SF is transported to.

so i dont think your logic will fetch the desired smartform name correctly everytime.

Regards,

Tanaya

Former Member
0 Kudos

>

> hi avinash,

>

> I think function module name is generated as concatenation of different objects.

yes u r right the fm name is concatenation of different object and if u want to see how its is formed check this include RSTXFMNAME.

Former Member
0 Kudos

Hi,

If you want to search the Smartform name then you can use the way i said.

but if you want the FM name generated for the smartform then if it difficult..because it changes when it is transported as you said.

if you want to call the Generated FM inthe program then the best way is..

1. goto SMARTFORMS tcode give the form name and press the execute button.

2. SE37 is displayed with FM name.

3. Copy the FM name and in the report using the Patter button get the FM templete.

4. Change the FM name with varibale which used as import parameter to get the FM name in SSF_FUNCTION_MODULE_NAME.

Former Member
0 Kudos

Hi Avinash,

the way you are proposing will work only when i know the smartform name. But my question was to search SF name from FM.

Anyway i got the needed solution by Kartik, as follows

Hi,

Do like this,

Suppose ur fm name is /1BCDWB/SF00000272

then retrieve the fm number from it which is 00000272

now u can get ur form name form table STXFADMI

give the number in the field FMNUMB and u'll get ur fm name in the field FORMNAME

кu03B1ятu03B9к

Edited by: kartik tarla on Dec 23, 2008 12:30 PM

this is just for your information.

regards,

tanaya