Ver Mensaje Individual
  #1  
Viejo 05/08/09, 13:21:10
caralbgro caralbgro is offline
Senior Member
 
Fecha de Ingreso: sep 2007
Mensajes: 478
conectar smartforms con una tabla interna de un report

alguien me podria explicar como conectar un smartform con una tabla interna que yo ya genere mediante un report tengo la funcion que llama al smartform
ej:
FORM invocar_smartform.
* Inicializar el formulario.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSMART1'
IMPORTING
fm_name = modulo_funcion
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
* Si hubo errores, desplegar mensaje y terminar, si se continua se
* produce un error de run time.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid
TYPE sy-msgty
NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* Enviar datos al formulario e imprimirlo.

CALL FUNCTION modulo_funcion
EXPORTING
CONTROL_PARAMETERS = wa_contrl
OUTPUT_OPTIONS = wa_output
TABLES
gs_mkpf = aux_ekko
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
* Si se produce un error, reportarlo.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid
TYPE sy-msgty
NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.

y en el smartform como lo uno con esa tabla interna????
mi tabkla interna ya tiene datos se llam aux_ekko, por favor una ayuda!!

Slds-
Responder Con Cita