SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Распечатка PDF



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
Yarais
Участник
Участник



Joined: 02 Aug 2008
Posts: 3

PostPosted: Sat Aug 02, 2008 6:38 pm    Post subject: Распечатка PDF Reply with quote

Подскажите как лучше распечатать PDF файл, который хранится не сервере и который подгружается во внутреннюю табличку. Печать нужно осуществлять из программы.
Пытаюсь использовать функцию RSPO_SX_OUTPUT_TEXTDATA, но вместо одной странички она выводит на печать 37. Может дело в шаблоне коорый передается в эту функцию...
Заранее спасибо всем!
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 205
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Mon Aug 04, 2008 10:29 am    Post subject: Reply with quote

Шаблон, это Вы о layout говорите?

Например, так печатает только одну страницу. Может Вам явно указать количесвто строк для печати (в коде закомментировано *rows = 65)

Code:
REPORT  z_print_test LINE-COUNT 65.

DATA: BEGIN OF it_bkpf OCCURS 0,
        belnr TYPE bkpf-belnr,
        gjahr TYPE bkpf-gjahr,
        budat TYPE bkpf-budat,
      END OF it_bkpf.
DATA: rows TYPE i,
      spool_nr LIKE  tsp01-rqident,
      it_text TYPE TABLE OF solisti1 WITH HEADER LINE.

SELECT * FROM bkpf UP TO 100 ROWS
  INTO CORRESPONDING FIELDS OF TABLE it_bkpf.

LOOP AT it_bkpf.
  IF rows < 100.
    rows = rows + 1.
  ENDIF.
  WRITE: / it_bkpf-belnr,
           it_bkpf-gjahr,
           it_bkpf-budat.
  WRITE: it_bkpf-belnr TO it_text,
         it_bkpf-gjahr TO it_text+15,
         it_bkpf-budat TO it_text+20.
  APPEND it_text.
ENDLOOP.

*rows = 65.

CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
     EXPORTING
          name      = in_parameters-pdest  "Spool: Long device names
          startrow  = 1
          title     = 'Contents of bkpf'  "title
          rows      = rows
     IMPORTING
          rqid      = spool_nr  "returned spool number
     TABLES
          text_data = it_text.
Back to top
View user's profile Send private message Blog Visit poster's website
Yarais
Участник
Участник



Joined: 02 Aug 2008
Posts: 3

PostPosted: Mon Aug 04, 2008 2:24 pm    Post subject: Reply with quote

Прошу прощения за опечатку! Функция используется RSPO_SX_OUTPUT_TEXTDATA
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.