Hola,
Yo creo que lo más sencillo es definirte un tipo tabla en el diccionario y ponerlo como parámetro en el import.
La pestaña de tablas nunca la he utilizado, creo que provoca muchos errores.
Saludos.
Anuncio
Colapsar
No hay anuncio todavía.
Desplegar una tabla interna en un Smartform
Colapsar
X
-
Desplegar una tabla interna en un Smartform
Hola Amigos Feliz Año 2015
He buscado y buscado en diferentes lugares, especialmente en scn.sap.com pero no obtengo una clara idea de como desplegar una tabla interna en un SmartForm.
HI' I M NEW TO SMARTFORMS, MY PROBLEM IS =THAT I'VE CREATED A NEW TYPE(SAY TY_BKPF) IN THE DRIVER PROGRAM. THEN I'VE DECLARED AN INTERNAL TABLE OF THIS TYPE. TO PASS THIS INTERNAL TABLE INTO MY SMARTFORM I'VE PASSED THE INTERNAL TABLE'S NAME INTO THE FUNCTION MODULE UNDER THE TABLES PARAMETER. BUT I...
Aqui hablan de que no es posible hacer el trabajo, que necesito crear una estructura en la Transaccion SE11, ahi mismo y en otros foros dicen que si se peudepero noe sta claro como.
Aqui esta mi codigo haber si me pueden auxiliar.
Código:*&---------------------------------------------------------------------* *& Report Z_JE_CC *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT Z_JE_CC. DATA: ModFunctionName TYPE rs38l_fnam. types: begin of t_bsis, recno type i, zuonr like bsis-zuonr, belnr like bsis-belnr, end of t_bsis. data: it_bsis type table of t_bsis, wa_bsis like line of it_bsis. select * up to 10 rows from bsis into corresponding fields of table it_bsis where zuonr ne ''. BREAK-POINT. wa_bsis-recno = 100. wa_bsis-zuonr = 'AAAAA'. wa_bsis-belnr = '2010.07.07'. append wa_bsis to it_bsis. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'Z_SMART_JE_CC' IMPORTING fm_name = ModFunctionName 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. * Enviar datos al formulario e imprimirlo. CALL FUNCTION ModFunctionName TABLES gs_mkpf = it_bsis 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.
Si es posible como? si no? tambien como jejeje
Gracias.
Les agradezcoEtiquetas: Ninguno
Dejar un comentario: