Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPScript bar code output in PDF format

Former Member
0 Likes
794

Hi,

As a SAP does not intend to deliver this solution for SAPscript

The report - RSTXPDFT4 does not work correct to bar code in the boletos (Brazil).

Is there some way (or code) to make the bar code works in PDF format WITHOUT change to Smart form?

Obs. I am a Consultant FI and here in the customer there were a lot of problems about bar code (Critical) and in the past the Basis consultant had problems to import all Basis Support Packages and kernel patches in Release 4.6C.

if someone can help me, I really apreciate.

Since now....Thank you !!!!!!

Best regards,

4 REPLIES 4
Read only

Former Member
0 Likes
606

Hello Dear Ailton Fabricio Dias ,

I had the same problem last year for one of my clients, and be sure that there no solution for printing bar codes in pdf with a sapscript formular in the 4.6C version. You can only do it with smartforms.

Best Regards,

Yassine NEJMY

Senior Consultant

Read only

0 Likes
606

Ok, thank you !!

Just one more thing:

How is going to be processed the boleto since it is done using SmartForms ? - SmarForms can't be used in FBZP.

Best regards.

Read only

0 Likes
606

Hello Aillton!

Did it finally worked to generate the Boleto in PDF including the barcode?

We are having the same problem and will appreciate any suggestions!

Muito obrigado!

Saludos

Nino

Read only

Former Member
0 Likes
606

It is possible to first convert data into OTF and then PDF


 CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
            RESULT  = w_result
          TABLES
            otfdata = it_otfdata.    "OTF DATA

CLEAR gt_otf.
  gt_otf[] = it_otfdata[].
*u2022 Convert the OTF DATA to SAP Script Text lines
  CLEAR gt_pdf_tab.


  CALL FUNCTION 'CONVERT_OTF'
   EXPORTING
     format                      = 'PDF'
     max_linewidth               = 132
*   ARCHIVE_INDEX               = ' '
*   COPYNUMBER                  = 0
*   ASCII_BIDI_VIS2LOG          = ' '
*   PDF_DELETE_OTFTAB           = ' '
   IMPORTING
     bin_filesize                = gv_bin_filesize
*   BIN_FILE                    =
    TABLES
      otf                         = gt_otf
      lines                       = gt_pdf_tab
   EXCEPTIONS
     err_max_linewidth           = 1
     err_format                  = 2
     err_conv_not_possible       = 3
     err_bad_otf                 = 4
     OTHERS                      = 5
            .
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.