PO Form not printing correctly

Hi Ppl,
I have a text (Info Record Note) from PO transaction(ME23N) to be printed in my form. Issue is, the text appears well in print preview but disappears from the transaction and form whenever i do a print.
It's not a form issue i guess. And no custom enhancements were made to the transaction.
Not sure why this is happening. Any info will be of great help.
Thanks,
Santosh.

Hai.
check the example.
*&  Include           ZMFM06PE02
  Smart Form Print Routines                                          *
form entry_neu using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  data: ls_print_data_to_read type lbbil_print_data_to_read.
  data: ls_bil_invoice type lbbil_invoice.
  data: lf_fm_name            type rs38l_fnam.
  data: ls_control_param      type ssfctrlop.
  data: ls_composer_param     type ssfcompop.
  data: ls_recipient          type swotobjid.
  data: ls_sender             type swotobjid.
  data: lf_formname           type tdsfname.
  data: ls_addr_key           like addr_key.
  xscreen = ent_screen.
  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '1'.
  else.
    l_druvo = '2'.
  endif.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
Fill up pricing condition table if calling from ME9F
  if l_doc-xtkomv is initial.
    select * into table l_doc-xtkomv from konv
                                     where knumv = l_doc-xekko-knumv.
  endif.
*Set the print Parameters
  perform set_print_param using     ls_addr_key
                          changing  ls_control_param
                                    ls_composer_param
                                    ls_recipient
                                    ls_sender
                                    ent_retco.
*Get the Smart Form name.
  if not tnapr-sform is initial.
    lf_formname = tnapr-sform.
  else.
    lf_formname = tnapr-fonam.
  endif.
Determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting
            formname           = lf_formname
       importing
            fm_name            = lf_fm_name
       exceptions
            no_form            = 1
            no_function_module = 2
            others             = 3.
  if sy-subrc <> 0.
error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
  call function lf_fm_name
       exporting
            archive_index      = toa_dara
            archive_parameters = arc_params
            control_parameters = ls_control_param
            mail_recipient     = ls_recipient
            mail_sender        = ls_sender
            output_options     = ls_composer_param
            zxekko             = l_doc-xekko  " user_settings = ' '
            zxpekko            = l_doc-xpekko
       tables
            l_xekpo            = l_doc-xekpo[]
            l_xekpa            = l_doc-xekpa[]
            l_xpekpo           = l_doc-xpekpo[]
            l_xeket            = l_doc-xeket[]
            l_xtkomv           = l_doc-xtkomv[]
            l_xekkn            = l_doc-xekkn[]
            l_xekek            = l_doc-xekek[]
            l_xkomk            = l_xkomk
       exceptions
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            others             = 5.
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
get SmartForm protocoll and store it in the NAST protocoll
    perform add_smfrm_prot.
  endif.
endform.
Mahnung
form entry_mahn using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = '3'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
CALL FUNCTION 'ME_PRINT_PO'
      EXPORTING
           ix_nast        = l_nast
           ix_druvo       = l_druvo
           doc            = l_doc
           ix_screen      = ent_screen
           ix_from_memory = l_from_memory
           ix_toa_dara    = toa_dara
           ix_arc_params  = arc_params
      IMPORTING
           ex_retco       = ent_retco.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
Fill up pricing condition table if calling from ME9F
  if l_doc-xtkomv is initial.
    select * into table l_doc-xtkomv from konv
                                     where knumv = l_doc-xekko-knumv.
  endif.
*Set the print Parameters
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
*Get the Smart Form name.
  if not tnapr-sform is initial.
    lf_formname = tnapr-sform.
  else.
    lf_formname = tnapr-fonam.
  endif.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting
            formname           = lf_formname
       importing
            fm_name            = lf_fm_name
       exceptions
            no_form            = 1
            no_function_module = 2
            others             = 3.
  if sy-subrc <> 0.
error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
  call function lf_fm_name
       exporting
            archive_index      = toa_dara
            archive_parameters = arc_params
            control_parameters = ls_control_param
            mail_recipient     = ls_recipient
            mail_sender        = ls_sender
            output_options     = ls_composer_param
            zxekko             = l_doc-xekko  " user_settings = ' '
            zxpekko            = l_doc-xpekko
       tables
            l_xekpo            = l_doc-xekpo[]
            l_xekpa            = l_doc-xekpa[]
            l_xpekpo           = l_doc-xpekpo[]
            l_xeket            = l_doc-xeket[]
            l_xtkomv           = l_doc-xtkomv[]
            l_xekkn            = l_doc-xekkn[]
            l_xekek            = l_doc-xekek[]
            l_xkomk            = l_xkomk
       exceptions
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            others             = 5.
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
get SmartForm protocoll and store it in the NAST protocoll
    perform add_smfrm_prot.
  endif.
endform.
*eject
Auftragsbestatigungsmahnung
form entry_aufb using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = '7'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
CALL FUNCTION 'ME_PRINT_PO'
      EXPORTING
           ix_nast        = l_nast
           ix_druvo       = l_druvo
           doc            = l_doc
           ix_screen      = ent_screen
           ix_from_memory = l_from_memory
           ix_toa_dara    = toa_dara
           ix_arc_params  = arc_params
      IMPORTING
           ex_retco       = ent_retco.
  if nast-adrnr is initial.
    perform get_addr_key changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
Fill up pricing condition table if calling from ME9F
  if l_doc-xtkomv is initial.
    select * into table l_doc-xtkomv from konv
    where knumv = l_doc-xekko-knumv.
  endif.
*Set the print Parameters
  perform set_print_param using    ls_addr_key
                          changing ls_control_param
                                   ls_composer_param
                                   ls_recipient
                                   ls_sender
                                   ent_retco.
*Get the Smart Form name.
  if not tnapr-sform is initial.
    lf_formname = tnapr-sform.
  else.
    lf_formname = tnapr-fonam.
  endif.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting
            formname           = lf_formname
       importing
            fm_name            = lf_fm_name
       exceptions
            no_form            = 1
            no_function_module = 2
            others             = 3.
  if sy-subrc <> 0.
error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
  call function lf_fm_name
       exporting
            archive_index      = toa_dara
            archive_parameters = arc_params
            control_parameters = ls_control_param
            mail_recipient     = ls_recipient
            mail_sender        = ls_sender
            output_options     = ls_composer_param
            zxekko             = l_doc-xekko  " user_settings = ' '
            zxpekko            = l_doc-xpekko
       tables
            l_xekpo            = l_doc-xekpo[]
            l_xekpa            = l_doc-xekpa[]
            l_xpekpo           = l_doc-xpekpo[]
            l_xeket            = l_doc-xeket[]
            l_xtkomv           = l_doc-xtkomv[]
            l_xekkn            = l_doc-xekkn[]
            l_xekek            = l_doc-xekek[]
            l_xkomk            = l_xkomk
       exceptions
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            others             = 5.
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
get SmartForm protocoll and store it in the NAST protocoll
    perform add_smfrm_prot.
  endif.
endform.
*eject
Lieferabrufdruck fur Formular MEDRUCK mit Fortschrittszahlen
form entry_lphe using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_xfz,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = '9'.
  l_xfz = 'X'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
*Get the Smart Form name.
  if not tnapr-sform is initial.
    lf_formname = tnapr-sform.
  else.
    lf_formname = tnapr-fonam.
  endif.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
*l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
Lieferabrufdruck fur Formular MEDRUCK ohne Fortschrittszahlen
form entry_lphe_cd using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = '9'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
  lf_formname = tnapr-fonam.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
Feinabrufdruck fur Formular MEDRUCK mit Fortschrittszahlen
form entry_lpje using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_xfz,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = 'A'.
  l_xfz = 'X'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
  lf_formname = tnapr-fonam.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
Feinabrufdruck fur Formular MEDRUCK ohne Fortschrittszahlen
form entry_lpje_cd using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  l_druvo = 'A'.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
  lf_formname = tnapr-fonam.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
  INCLUDE FM06PE02                                                   *
form entry_neu_matrix using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '1'.
  else.
    l_druvo = '2'.
  endif.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
  lf_formname = tnapr-fonam.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
Angebotsabsage
form entry_absa using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  l_druvo = '4'.
  clear ent_retco.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
  lf_formname = tnapr-fonam.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
l_xaend[]    = l_doc-xaend[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
   l_xaend                    = l_xaend
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 4
  OTHERS                     = 5
  if sy-subrc <> 0.
    ent_retco = sy-subrc.
    perform protocol_update_i.
    perform add_smfrm_prot.
  endif.
endform.
*eject
Lieferplaneinteilung
form entry_lpet using ent_retco ent_screen.
  data: l_druvo like t166k-druvo,
        l_nast  like nast,
        l_from_memory,
        l_doc   type meein_purchase_doc_print.
  data: l_zekko like ekko,
        l_xpekko like pekko,
        l_xekpo like table of ekpo,
        l_wa_xekpo like ekpo.
  data: l_xekpa like ekpa occurs 0,
        l_wa_xekpa like ekpa.
  data: l_xpekpo  like pekpo occurs 0,
        l_wa_xpekpo like pekpo,
        l_xeket   like table of eket with header line,
        l_xekkn  like table of ekkn with header line,
        l_xekek  like table of ekek with header line,
        l_xekeh   like table of ekeh with header line,
        l_xkomk like table of komk with header line,
        l_xtkomv  type komv occurs 0,
        l_wa_xtkomv type komv.
  data: ls_addr_key           like addr_key.
  clear ent_retco.
  if nast-aende eq space.
    l_druvo = '5'.
  else.
    l_druvo = '8'.
  endif.
  call function 'ME_READ_PO_FOR_PRINTING'
       exporting
            ix_nast        = nast
            ix_screen      = ent_screen
       importing
            ex_retco       = ent_retco
            ex_nast        = l_nast
            doc            = l_doc
       changing
            cx_druvo       = l_druvo
            cx_from_memory = l_from_memory.
  check ent_retco eq 0.
  if nast-adrnr is initial.
    perform get_addr_key
                         changing ls_addr_key.
  else.
    ls_addr_key = nast-adrnr.
  endif.
  perform set_print_param using      ls_addr_key
                            changing ls_control_param
                                     ls_composer_param
                                     ls_recipient
                                     ls_sender
                                     ent_retco.
*Get the Smart Form name.
  if not tnapr-sform is initial.
    lf_formname = tnapr-sform.
  else.
    lf_formname = tnapr-fonam.
  endif.
determine smartform function module for invoice
  call function 'SSF_FUNCTION_MODULE_NAME'
       exporting  formname           = lf_formname
                variant            = ' '
                direct_call        = ' '
       importing  fm_name            = lf_fm_name
       exceptions no_form            = 1
                  no_function_module = 2
                  others             = 3.
  if sy-subrc <> 0.
  error handling
    ent_retco = sy-subrc.
    perform protocol_update_i.
  endif.
move the value
  move-corresponding l_doc-xekko to l_zekko.
  move-corresponding l_doc-xpekko to l_xpekko.
  l_xekpo[] = l_doc-xekpo[].
  l_xekpa[] = l_doc-xekpa[].
  l_xpekpo[] = l_doc-xpekpo[].
  l_xeket[] = l_doc-xeket[].
  l_xtkomv[] = l_doc-xtkomv[].
  l_xekkn[] = l_doc-xekkn[].
  l_xekek[] = l_doc-xekek[].
  call function lf_fm_name
    exporting
     archive_index              = toa_dara
  ARCHIVE_INDEX_TAB          =
     archive_parameters         = arc_params
     control_parameters         = ls_control_param
  MAIL_APPL_OBJ              =
     mail_recipient             = ls_recipient
     mail_sender                = ls_sender
     output_options             = ls_composer_param
     user_settings              = ' '
      zxekko                     = l_zekko
      zxpekko                    = l_xpekko
  l_xaend                    = l_xaend
   IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    tables
      l_xekpo                    = l_xekpo
      l_xekpa                    = l_xekpa
      l_xpekpo                   = l_xpekpo
      l_xeket                    = l_xeket
      l_xtkomv                   = l_xtkomv
      l_xekkn                    = l_xekkn
      l_xekek                    = l_xekek
      l_xkomk                    = l_xkomk
exceptions
   formatting_error     

Similar Messages

  • Cd jewel inserts not printing correctly-come out with only song name not artist and not in landscape form-hl

    cd jewel inserts not printing correctly-only shows song title not artist and printing in portrait form where landscape form is required-pls help!

    iTunes CD printing has been broken for several releases now.  Some people have had success by directing the iTunes print output to a PDF file, and then printing the PDF.

  • Upgraded to CS5 Illustrator form CS3 Illustrator. Colors are not printing correctly in CS5

                                                I have just recently purchased CS5 Premium Suite.  I am working with Illustrator.  When I print my CS3  Illustrator files in CS5 the colors are not printing correctly.  Is there a way to fix this problem

    I've been doing more troubleshooting since I wrote this post. I've now tried printing from a non-Adobe app and I'm getting the same margin error. So it is definitely a Xerox issue and I have a tech coming out on Monday.
    The reason I originally figured it must be an CS5 issue is because just two weeks ago when I was using CS2, our landscape-oriented programs were printing with .25" margins as they should. Then last week after upgrading to CS5, the inside page (2nd page) was noticeably out of whack and shifted to the right (not left). But when I started trying to troubleshoot this week, everything started shifting to the left.
    The only thing different between those two weeks was the fact I updated to CS5.
    But obviously, my printer as decided to go to crap in more ways than one all in a two week period. Hopefully the tech can sort it out next Monday.
    Thanks!
    Christi

  • Transaction Register Report not printing Correctly

    Hi,
    In Accounts Receivables Transaction Register Report is not printing correctly..
    Once I issue print job for Transaction Register Report...Blank page is coming..
    what is the cause..please suggest

    Does the print work properly with other reports? If so, I suggest you run the report in debug mode. Please check (Note: 226013.1 - How to run AR RXi reports in debug mode) for more details.
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=226013.1

  • PDF will not print correctly from any app

    I seem to keep on getting the same error everywhere I print on SL (from safari/firefox/preview etc etc)
    It will usually print any lines or logos but miss all text?? I did have the dreaded adobe reader installed but have since removed it?
    I am in urgent need of printing out some manuals for a class so in real trouble, help!

    Where do these PDFs that do not print correctly come from? Are they downloaded from the internet or from email? Or do you create them yourself on your computer? If so, in which program?
    Do some PDF files print correctly, but not others? Did you remove the dreaded Acrobat Reader before this problem developed or after? Did this problem develop only after you ungraded to a certain release of Snow Leopard or has it never worked in SL?
    PDF is wonderful technology, but every so often there can be issues.
    Arch

  • Printing on HP P1505 not printing correctly yet Explorer 9 works on same web site with same printer.

    I have download the latest software for Firefox and the HP P1505 printer, but the pictures within the web site print correctly. The text information is not printing correctly. Lots of spaces and the font is a mess. You can read the text information, but it is all over the page. Firefox did print with no issues before 4.0b12. It always worked with the version 3 of course. I really do not want to go back to 3 as 4 is better except for this issue.

    This is a known issue in Firefox 4 beta 12. You could wait til' the RC comes out, or you could grab one of the latest nightly builds availible here that fix this problem: ftp://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
    Just a note though, nightly versions of firefox are generally less stable than betas or releases. I am waiting for the Release Candidate to come out myself. (Should be early next week)

  • HP Photosmart premium not printing correct colors or contrast on photo paper.

    My HP Photosmart Premium does not print correct colors or contrast level on photographs using photo paper.  This happens with using most any application and setting the paper type to one of the photo papers...  By using MS PhotoAlbum and selecting the photo tray then forcing "regular paper", I can get a somewhat decent print (this trick only works with MS PhotoAlbum).  When I setup to any of the "photo paper" types, I do not get correct colors or contrast levels (even if the print preview looks good).
    I have the same issue with 8.5 x 11 inch photopaper.  Unless I select "regular paper" as the paper type, I get incorrect color and contrast (even if the preview looks good).  The ICC "Color Profiles" look to be OK (at least the titles are correct).
    Anyone have any ideas?

    Try the troubleshooting steps in this page.  My bet would be the Photo cartridge (the black with the bow tie symbol) is out of ink.  This is only used when photo paper is selected, for plain paper printing the regular black cartridge is used.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Adobe Acrobat Pro X 10.1.7 (Mac) does not print correctly.

    I have a Mac Pro (Model 1.1) with Adobe Acrobat X 10.1.7.  When an item is scanned, it appears correctly on the screen, but it does not print correctly.  I am sending along screenshots of what a scanned item looks like on the screen and then what prints. 
    Message was edited by: DFSons  Added photos

    Thanks Michael, have tried that, no luck. I will wait a couple of days to see if any other solutions come up (or if anyone else is suddenly having the same issue) before reinstalling Acrobat.
    [OK just tried sending a PDF attachment directly from another program (MYOB) through to Mac Mail and had the same problem so it is not an Acrobat issue afterall, it is a Mac Mail or Mac OS X issue. Will post this on the Apple site.]
    I have resolved the MYOB issue, it was working just painfully slow. So I still have the original Acrobat Pro PDF to Mac Mail issue if anyone knows of any solutions please?
    Message was edited by: jmgd

  • Foreign characters are not printed correctly in Analyzer 6.5.0 and java 1.3.0_02

    Hi,I am using Essbase at 6.5.3 level and Analyzer Enterprice edition at 6.5.0 level. The java plug-in is at level 1.3.0_02.Foreign characters are corectly dispalyed in Analyzer java web client, but when I try to print the report the foreign characters are not printed correctly.I have changed the contents of the font.properties file all code pages from 1252 to 1250. The characters are still not printed correctly.How to "force" the Analyzer print the foreign characters to print?Thanks,Grofaty

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Added text & signatures do not print correctly

    I am using Acrobat Reader v10.4.4 on my iPad Mini with IOS 6.1.2 and am having issues printing. I can open any PDF and have it displayed correctly. I can add text and signatures and the document is saved correctly because it can be opened after the changes are made and they are still there. When I try to print the document where I have added text and signatures to, the document does not print correctly. All of the text and the signature are shrunk to a very small size and appear in the lower left hand of the page.
    I depend on my apps to work they way they should and having this issue makes my work very hard. I have to be very creative and perform unnecessary steps to get my PDF's to print the way they should. Does anyone have some insight in to this bug?

    Hi,
    Thanks for reporting this issue. We would like to investigate this issue at our end and if you could share one such pdf file in which you are facing the issue at [email protected], that would greatly help us.
    Thanks,
    Ankit

  • Red not printing correctly

    Hi, 
    The printer is aHP Officejet 6700 Premium.
    The red color is not printing correctly it is printing as a maroon colour. All other colours seem okay. No error messages are appearing.
    I have run the clean printhead pgm and no change.
    Any suggestions?
    Thanks

    Couple of things come to mind.
    First, obviously, make sure it is a Geniune HP cartridge. I have seen other ink that is a little off in color. 
    Second, make sure it has nothing to do with the paper you are using. Print a test page (if you haven't already) on normal white paper, not photo paper or something else. 
    Third, if you have a features tab in the printer preferences, make sure in the color management field, that it is not set on some custom color profile or application controlled setting.
    Hope that helps.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • CR2008 SP5 Labels not printing correctly

    Hi,
    I've got an issue were labels are not printing correctly to a Zebra printer. I'm using Crystal Reports 2008 SP5. The problem is the width is 10cm and the length is 7.5cm but Crystal is automatically changing this to landscape orientation which doesn't print correctly then. From reading older threads, a lot of people have had similar issue but according to this thread - CR 2008 V 12.3.0.601 Labels will not print correctly the issue should be resolved in SP5 but it's still not printing out in the correct orientation despite the print preview looking perfect.
    I've tried checking the No Printer option and the Dissociate Formatting Page Size and Printer Paper Size option and pretty much every other option I've seen mentioned but I still cannot get the label to print in the correct orientation. Has anyone succesfully got this working?
    Thanks

    Hi Gary
    What is the version reported when in the designer you go to the Help menu and then About... ?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • 11x17 tabloid does not print correctly

    I am using an HP Photosmart printer model 8550, my previous printer was an HP Photosmart 8750. That printer died and the 8550 is the newer model of the same printer. When trying to print an 11X17 document in tabloid, the page does not print correctly nor does it show in preview mode correctly. The page shifts to the upper left corner so that the left side and top of the document do not print. If you scale down the size you can get it to print the whole documentm but you cannot get it to use the whole 11x17 page. Anyone else with this problem and a solution? Thanks!

    [email protected] wrote:
    I am having a similar problem.  I have windows XL,
    and a hp Deskjet 9800.  I have been using PM 6.5 ever since it came out.  I publish a newsletter using tabloid fold in half, under booklet.  So it is a really a 4 page document.  It has always done fine until this week.  It prints the copy in reduced format that would fit on a 8 1\2 x 11.  I have tried every setting possible, with no success.  Today I downloaded the trial 7.0 version, it does the same thing.  I went back and printed old versions that a 3 & 4 years old they won't print right now, either.
    It's old software and new operating system/printer drivers. You are unlikely to get any help from Adobe or HP but you can try.
    Create a PDF and print that as it's unlikely the DeskJet has PS mode.
    BTW, booklet printing is far easier with ISO paper sizes.
    Move on up to InDesign while you can still get a big discount with PM Licence number.

  • Colors not printing correctly. Only blue and black work.

    I just got a new HP OfficeJet all in one inkjet 8620 printer. The colors aren't printing correctly. Everything comes out light blue with black lettering. I tried installing new cartridges (genuine HP) and also tried gently shaking the cartridges. But the problem persists.

    Hi @Iolanthe ,
    I see that you are experiencing issues with the colors not printing correctly. I would like to help you resolve this issue.
    I have provided a document with some steps to try to see if that will resolve the issue.
    Fixing Print Quality Problems for the HP Officejet Pro 8610, 8620, 8630, 8640, and 8660 e-All-in-One...
    Please let me know the results of the Print Quality Diagnostic Page?
    If the test pages are printing properly, it could be a software issue.
    What operating system are you using? Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Check the driver name that is installed for the printer. Make sure it shows just the printer's name.
    Click the Apple menu and then click System Preferences. Click Printers & Scanners, highlight the printer name on the left side and on the right side of the screen it should show the printer's name. (Officejet 8620)
    If the full printer name isn't listed correctly, delete it and add the printer name back in from the list. Click the - sign to delete the driver and then click the + sign to add the driver, might have to click the drop down to select the printer's name to add it in.
    Let me know how the printer name was listed.
    From the application, make sure you are selecting the proper paper type.
    Try another application to see if you have the same issue.
    How is the printer connected? (USB/Ethernet/Wireless)
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • LOGO is not printing correctly in Production but printing correctly in Qual

    Hi Friends,
    I am an ABAPER.
    In Scripts I had a logo. Problem is in development and quality systems it is printing correctly but it is not printing correctly in Production system. I have tested all the development, quality & Production systems with the same printer. Experts please guide me where exactly the problem is how to solve it. Good points will be rewarded for related solutions.
    Hi Nageswar,
    The exact problem is the logo is alphabetical characters only, but for example APPLE is the logo. The word Heading 1: APPLE. is in Coloured BOLD letters. In development and quality it is printing as it was original logo. But in Production the letters for APPLE is printing in such a way that A is printing as dotted letter A and so on for PPLE. But in quality and development is working fine Printing as BOLD letters.
    Finally want to mention that APPLE is a scanned logo. Its properties were same in three systems i.e, development, quality and production.
    Experts please help me.
    Edited by: pavan kumar on Feb 6, 2008 12:26 PM

    Not correctly in the sense. Please explain the error you are getting.
    Hi Pavan ,
    Check the printer settings it SPAD transaction and check printer settings were smae in both systems.
    Regards,
    Nageswar
    Edited by: Nageswar Vattikuti on Feb 6, 2008 5:01 PM

Maybe you are looking for

  • Returning to normal voice from Voice affects.

    I just updated my Skype account after not using it for awhile. I was prompted to check my video feed and voice quality. I changed from normal voice to another voice to see how it was. I made a call and talked. It worked. However, I now want to return

  • Acquiring two signals and saving at a Table

    Good Morning, I'm new to LabVIEW, and I need help at a Data Acquisition. Let me explain it, so I hope you guys can help me. I need a graph, and a Table displaying two signals acquired at a Field Point conection: Pressure and Temperature. At this meas

  • In the header file generated by javah, the package name is not in the funct

    and in the header file generated by javah, the package name is not in the function declaration: /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class VocalJNITest */ #ifndef IncludedVocalJNITest #define IncludedVo

  • FI configuration print

    Hi All, I would like to know if there is any possiblity in SAP that I can take printouts of current FI/CO configuration and file it for any mishaps in future I can rebuild the FI system based on the prints I have. Or if there is any procedure to take

  • Shipment Cost Integration to COPA

    Hi , Can any one help me to understand the baisc functionaing of Shiptment Costs handling in SD and itz integration to CO-PA, Any doument link is also most welcome.