Ver Mensaje Individual
  #2  
Viejo 17/07/09, 12:30:32
basilon basilon is offline
Member
 
Fecha de Ingreso: dic 2006
Localización: Barcelona - España
Mensajes: 98
Para llamar y ejecutar un smartforms desde un report tiene que utilizar basicamente dos funciones.

Con la primera obtienes el nombre de la función del smartforms (recuerda q los smartforms son funciones) y con la segunda llamas al smartforms.


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZNOMBRE_SMARTFORMS' "Nombre formulario
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = lv_funcion
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.

CALL FUNCTION lv_funcion
EXPORTING
control_parameters = control_parameters_smf
output_options = output_options_smf
user_settings = ' '
linea1 = linea1
linea2 = linea2
linea3 = linea3
linea4 = linea4
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
__________________
Barcelona blanquiazul !
Responder Con Cita