Skip to Content
0
Former Member
Aug 01, 2007 at 06:16 AM

how can i transfer logo data to application server

24 Views

i am using sapscript in that i have logo i ma converting sapscript spool id to pdf and saving in application server.but logo is not transferres properly . when i remove logo its working properly. but when i add logo its not working.

same thing working fine with logo if i transfer to PC file.

i am using

ERT DV4K903440 1

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

SRC_SPOOLID = P_SPOOLID

NO_DIALOG = 'X'

  • DST_DEVICE =

  • PDF_DESTINATION =

IMPORTING

PDF_BYTECOUNT = PDF_FSIZE

  • PDF_SPOOLID =

  • OTF_PAGECOUNT =

  • BTC_JOBNAME =

  • BTC_JOBCOUNT =

TABLES

PDF = it_pdf

EXCEPTIONS

ERR_NO_OTF_SPOOLJOB = 1

ERR_NO_SPOOLJOB = 2

ERR_NO_PERMISSION = 3

ERR_CONV_NOT_POSSIBLE = 4

ERR_BAD_DSTDEVICE = 5

USER_CANCELLED = 6

ERR_SPOOLERROR = 7

ERR_TEMSEERROR = 8

ERR_BTCJOB_OPEN_FAILED = 9

ERR_BTCJOB_SUBMIT_FAILED = 10

ERR_BTCJOB_CLOSE_FAILED = 11

OTHERS = 12.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

*} INSERT

PERFORM WRITE_REPORT TABLES IT_PDF

USING P_FILENAME.

FORM WRITE_REPORT TABLES PT_REPORT

USING P_FILENAME LIKE RLGRAP-FILENAME.

TRANSLATE P_FILENAME TO LOWER CASE.

  • open output file

OPEN DATASET P_FILENAME FOR OUTPUT IN BINARY MODE .

IF SY-SUBRC NE 0.

MESSAGE ID 'ZA' TYPE 'E' NUMBER 253.

ENDIF.

  • write each row out

LOOP AT PT_REPORT.

TRANSFER PT_REPORT TO P_FILENAME.

ENDLOOP.

  • close the output file

CLOSE DATASET P_FILENAME.

ENDFORM. " WRITE_REPORT