Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart forms issue with Function Module

Former Member
0 Kudos

Hi,

I have an issue with smartforms.

Smartform A has FM X

Smartform B also has FM X.

Is this possible? We are facing this issue.

1 ACCEPTED SOLUTION

former_member387317
Active Contributor
0 Kudos

Hi A$K,

It will not be the case...

I would suggest you to use FM SSF_FUNCTION_MODULE_NAME

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = 'ZSDIF_FORM1' " Smartform Name
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
   IMPORTING
     FM_NAME                  = FM_NAME1 " Runtime FM name will get generated.. you can call it later on..
   EXCEPTIONS
     NO_FORM                  = 1
     NO_FUNCTION_MODULE       = 2
     OTHERS                   = 3 .

Then

CALL FM_NAME1  "'/1BCDWB/SF00000017'

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

8 REPLIES 8

Former Member
0 Kudos

Hi,

It is not possible. But after creating and activating the smartforms, either the smartform would have corrupted or undergone some modification which would require in generating the function module again.

Try activating the smartform and generate the function module and check.

Thanks

Guru

former_member387317
Active Contributor
0 Kudos

Hi A$K,

It will not be the case...

I would suggest you to use FM SSF_FUNCTION_MODULE_NAME

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = 'ZSDIF_FORM1' " Smartform Name
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
   IMPORTING
     FM_NAME                  = FM_NAME1 " Runtime FM name will get generated.. you can call it later on..
   EXCEPTIONS
     NO_FORM                  = 1
     NO_FUNCTION_MODULE       = 2
     OTHERS                   = 3 .

Then

CALL FM_NAME1  "'/1BCDWB/SF00000017'

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

0 Kudos

hello...

try this...

DATA: FNAME TYPE RS38L_FNAM.

DATA: GS_SSFCOMPOP TYPE SSFCOMPOP.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZSDIF_FORM1'

IMPORTING

FM_NAME = FNAME.

IF SY-SUBRC EQ 0.

ENDIF.

CALL FUNCTION FNAME

EXPORTING

OUTPUT_OPTIONS = GS_SSFCOMPOP

TABLES

itab = wa_tab

IF SY-SUBRC EQ 0.

ENDIF.

hope this will help...

0 Kudos

Is there a way to check the versions or transports for smart forms??

0 Kudos

Hi,

Use the tcode SE03 to get the all the requests related to the smartforms and comapre them.

SE03> Obejct Selection>new entry tick mark, R3TR SSFO & Smartform name--> F8

this will give the list of TRs for the smartforms.

Please mark to close, if solved

Regards,

Aditya

0 Kudos

Thank you so much.Very useful response

Former Member
0 Kudos

It is not possible that Same FM is associated with two different smartform.

You can check the FM that is associated with smartform, by menu options.

0 Kudos

Yes, it cannot be even we were suprised that it did happen. we reactivated the Smartform to make it point to the correct FM.