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

Issue on Script is passing into FM

Former Member
0 Likes
376

Hi Experts,

In my driver program , script is passing in to the FM ' SSF_FUNCTION_MODULE_NAME'

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'SCRIPT NAME HARDCODED'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = tp_function_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

and the tp_function_name is calling with import , export parameters and tables. Now the line item entries are comming in the TABLES.But if I am changing in another window oter that MAIN , it is not reflecting in the output.

Can anyone pls help me to resolve this issue?

Regards,

Sreeja

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
344

Hi Sreeja,

Are you sure that you use this FM "SSF_FUNCTION_MODULE_NAME' for SAP Scripts. I think we use this only for Smart Forms, because this is what generates a function module when activated. SAP Scripts do not generate any such FM.

For Scripts we use OPEN_FORM, WRITE_FORM and CLOSE_FORM.

Thanks & Regards,

Ram.

Edited by: ram Kumar on Jun 12, 2009 5:11 PM

Hi Experts,

In my driver program , script is passing in to the FM ' SSF_FUNCTION_MODULE_NAME'

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'SCRIPT NAME HARDCODED'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = tp_function_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

and the tp_function_name is calling with import , export parameters and tables. Now the line item entries are comming in the TABLES.But if I am changing in another window oter that MAIN , it is not reflecting in the output.

Can anyone pls help me to resolve this issue?

Regards,

Sreeja

2 REPLIES 2
Read only

Former Member
0 Likes
345

Hi Sreeja,

Are you sure that you use this FM "SSF_FUNCTION_MODULE_NAME' for SAP Scripts. I think we use this only for Smart Forms, because this is what generates a function module when activated. SAP Scripts do not generate any such FM.

For Scripts we use OPEN_FORM, WRITE_FORM and CLOSE_FORM.

Thanks & Regards,

Ram.

Edited by: ram Kumar on Jun 12, 2009 5:11 PM

Read only

0 Likes
344

Hi Raj,

Even I was using this FM only for smartforms, but since I am in to Support team , i faced such a script , in which SSF_FUNCTION_MODULE_NAME is used to create an FM for the existing script and passing the values into tp_function_name and exporting the tables.

But i need to modify one window , other than main.It is not reflecting in the output.

Please suggest if you hav any idea.

Regards,

Sreeja