cancel
Showing results for 
Search instead for 
Did you mean: 

FM of smart form is not getting transported to Test environment

0 Kudos

Hi,

Its very urgent,we are working on SAP R/3 4.7EE...we have an issues....

"FM of smart form is not getting transported to Test environment"...

we have created a smart form and moved the transport to Test envoronment...untill and unless smartform is executed(Pressing F8) in the test environment it is not being observed in the test environment....

and the generated FM observed in Dev environment is different from the one that generated in test environment...

as we can not do the same in all the environments...

please guide us how to move the FM generated in dev environment along with the Smartform...

any pointers towards this are valuable....

Thanks in advance,

Vishnu.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184657
Active Contributor
0 Kudos

in ur driver pgm. try doin the following:

Data: g_fname type rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZFIF002'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = g_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.

CALL FUNCTION g_fname" '/1BCDWB/SF00000029'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

WA_BKPF = WA_BKPF

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

regards,

pk

Former Member
0 Kudos

Get the function module generated by the smartform in a variable and pass that variable...

Example

DATA : wrk_funcmodu TYPE rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = wrk_formname “SMARTFORM NAME

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = wrk_funcmodu “FN. MODULE GENERATED BY THE SMARTFORM

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.

CALL FUNCTION wrk_funcmodu

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

control_parameters = st_cntrl

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

output_options = st_outopt_info

  • USER_SETTINGS = 'X'

.

.

.

.

.

Former Member
0 Kudos

Hi,

SmartForm FM name ll be generated in every Environment newly, so use the FM 'SSF_FUNCTION_MODULE_NAME' to get the SmartForm FM name dynamically.

Regards,

Prabhu

Former Member
0 Kudos

hi,

1.Smartform is clinent independent.

2.So, once move the smartform into quality, then activate the smartforms in that.Then function module generate.

ok..

Regards,

If helpful reward with points(Don't forget).