Application Development and Automation 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: 
Read only

Smart forms issue with Function Module

Former Member
0 Likes
1,016

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
Read only

Former Member
0 Likes
965

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
Read only

Former Member
0 Likes
965

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

Read only

Former Member
0 Likes
967

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

Read only

0 Likes
965

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...

Read only

0 Likes
965

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

Read only

0 Likes
965

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

Read only

0 Likes
965

Thank you so much.Very useful response

Read only

Former Member
0 Likes
965

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.

Read only

0 Likes
965

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