Help Smartform

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • javiercar
    Junior Member
    • oct
    • 18

    #1

    Help Smartform

    Hola gente me baje el manual de smartform que hay en esta paguina y no me anda, ya lo cree desde la transaccion smartform y el estilo tal cual lo dice en el manual, luego en el reporte lo hice de la siguiente manera:


    ------------------------------------------------------------

    REPORT yjc_smartform .

    TABLES mkpf.

    DATA int_mkpf LIKE mkpf OCCURS 0 WITH HEADER LINE.

    DATA fm_name TYPE rs38l_fnam.

    DATA: BEGIN OF aux_mkpf OCCURS 0.
    INCLUDE STRUCTURE mkpf.
    DATA: END OF aux_mkpf.


    CLEAR aux_mkpf.
    REFRESH aux_mkpf.
    * Cargar los 10 primeros registros para probar.
    SELECT * UP TO 10 ROWS
    FROM mkpf.
    MOVE-CORRESPONDING mkpf TO aux_mkpf.
    APPEND aux_mkpf.
    ENDSELECT.


    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'YJC_SMART1'
    IMPORTING
    fm_name = fm_name
    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 fm_name
    TABLES
    gs_mkpf = aux_mkpf
    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.

    -----------------------------------------------------------------
    Y ME LO MUESTRA ASI :

    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&
    &aux_gs_mkpf-mblnr& &aux_gs_mkpf-cputm&



    cuando entro a la funcion la tabla q le mando si tiene datos.




    SALUDOS Y GRACIAS!
    Cardozo Javier Hernan
    @r-Tech Consulting S.R.L.
    jcardozo@artech-consulting.com
    Ciudad de Buenos Aires
    Argentina
    www.artech-consulting.com
  • andyoscky
    Miembro Honorario
    • mar
    • 73

    #2
    problema

    El problema que cuando agregas un campo lo tenes que hacer con el signo mas asi te lo toma como variable y no como campo de texto eso lo haces dentro de la ventana de text element

    Comentario

    • DavidXD_XD
      Moderator
      • ago
      • 1255

      #3
      Dentro de los elementos de textos hay un icono con un papel y un signo de suma, tienes que darle ahi y escribir la variable &var&, sino lo mostrará en pantalla como si fuera una cadena constante
      David Carballido Córdova

      Comentario

      • Alfredosite
        Senior Member
        • jul
        • 135

        #4
        Para que lo veas donde adjunto la imagen de referencia.
        Archivos Adjuntos
        Saludos Cordiales,
        Alfredo Pastor Avendaño
        SAP - Consultant HCM

        Comentario

        • javiercar
          Junior Member
          • oct
          • 18

          #5


          Bunisimoo Gracias!!

          Cardozo Javier Hernan
          @r-Tech Consulting S.R.L.
          jcardozo@artech-consulting.com
          Ciudad de Buenos Aires
          Argentina
          www.artech-consulting.com

          Comentario

          Trabajando...