on 08-28-2007 1:56 PM
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..
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I am getting the pdf data in pdf[] .
Can anyone please let me know how to display this data( for displaying the smartform) in webdynpro java.
Regards
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.