Skip to Content
0
Former Member
Aug 28, 2007 at 12:56 PM

getting error in dispaling smartform

13 Views

Hi ,

I have an application where the below BAPI is displaying the smartform in ABAP webdynpro.

The output is taken from a TLINE table which consists of the special characters.

The requirement is to display this smartform from Webdynpro Java but the output is not correctly displayed in WD java because WD Java is not able to handle the special characters.

*********************BAPI**************************

FUNCTION information_details

*"----


""Local Interface:

*" IMPORTING

*" VALUE(SPOOLNO) TYPE ZSMART-SPOOL_ID OPTIONAL

*" EXPORTING

*" VALUE(RETURN) TYPE BAPIRETURN

*" TABLES

*" PDFDATA STRUCTURE TLINE OPTIONAL

*"----


DATA: v_spoolid TYPE tsp01-rqident.

  • vspool(10) VALUE '4904'.

DATA otf LIKE itcoo OCCURS 100 WITH HEADER LINE.

DATA cancel.

DATA pdf LIKE tline OCCURS 100 WITH HEADER LINE.

DATA doctab LIKE docs OCCURS 1 WITH HEADER LINE.

DATA: numbytes TYPE i,

arc_idx LIKE toa_dara,

pdfspoolid LIKE tsp01-rqident,

jobname LIKE tbtcjob-jobname,

jobcount LIKE tbtcjob-jobcount.

spoolno = '4904'.

v_spoolid = spoolno.

*SPOOLNO = 4904.

CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'

EXPORTING

src_spoolid = v_spoolid

  • NO_DIALOG = 'X'

  • DST_DEVICE =

pdf_destination = 'C:\File.pdf'

IMPORTING

pdf_bytecount = numbytes

pdf_spoolid = pdfspoolid

  • OTF_PAGECOUNT =

btc_jobname = jobname

btc_jobcount = jobcount

TABLES

pdf = pdfdata[]

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.

ENDFUNCTION.

Can anyone please let me know the approach to solve this error??

Thanks in advance..