Application Development 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: 

how can i transfer logo data to application server

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Hi

First Transport the Logo (in PDF format) to presentation server.

and then use the tcode <b>CG3Z</b> to transport the same to Application server and see whether it comes properly or not.

<b>Reward points for useful Answers</b>

Regards

Anji

0 Kudos

no it still give same problem.

when i remove logo its working fine

but when i add logo its giving error while opening file that

"there was an error while trying to parse an image"

Former Member
0 Kudos

Hi ,

CG3Z - to upload file from presentation server to application server.

Upload a empty .txt file any path in the application server using CG3Z tcode and use this path in the program.

Thanks

Naveen khan

0 Kudos

no it still give same problem.

when i remove logo its working fine

but when i add logo its giving error while opening file that

"there was an error while trying to parse an image"

Former Member
0 Kudos

Run the program RSTXLDMC to upload logo into SAPSCRIPT.

Former Member
0 Kudos

You need to attach the Logo ( which is in the form of standard text ) to a transport request using the program RSTXTRAN.

for that your Tr. request should be a correction.

You need to goto SE10 and select the TR number and goto menu ->request/task->change type and change the type as correction.

Then you execute the program RSTXTRAN and give the details of the standard text. Then only your standard text will get attached to the request.

Then you need to transport this TR.

regards,

srinivas

<b>*reward for useful answers*</b>