2013 Apr 05 5:04 AM
After upgrade getting this error when calling FM 'SX_TABLE_LINE_WIDTH_CHANGE' in describe statement
DESCRIBE FIELD CONTENT_OUT LENGTH LINE_WIDTH_DST IN CHARACTER MODE.
Dump : For the statement "DESCRIBE" only flat, character-type data objects are supported at the argument position "CONTENT_OUT".
In this case, the operand "CONTENT_OUT" has the non-character-type or non-flat type "SSFBIN". The current program is a Unicode program. In the Unicode context, the type 'X' or structures containing not only character-type components are regarded as non-character-type.
. Code is as folloiwng
1. Convert from OTF format obtained from close_form into PDF format
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = bin_filesize
TABLES
otf = otfdata
doctab_archive = doctab
lines = pdfline
EXCEPTIONS
OTHERS = 0.
2. DATA: it_pdfline TYPE STANDARD TABLE OF tline,
it_pdf_line TYPE STANDARD TABLE OF ssfbin,
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
TABLES
content_in = it_pdfline
content_out = it_pdf_line
EXCEPTIONS
err_line_width_src_too_long = 0
err_line_width_dst_too_long = 0
err_conv_failed = 0
OTHERS = 0.
3. Using this it_pDf_line in sending mail as pdf
How to convert data and resolve this.
Thanks
ap
2013 Apr 05 8:29 AM
First check if Note 1021957 - Archiving binary documents is implemented on your system, then use transfer_bin to indicate that your structure is to be considered as binary and not character like.
Regards,
Raymond
2013 Apr 05 9:52 AM
2013 Apr 06 9:37 AM
Either ask basis to implement the note so the FL will be able to adjust binary tables and not only char tables in an Unicode system.
Or use another structure without non-charlike field, so not ssfbin but a structure like CHAR255. You require two structures of same type binary (eg SSFBIN) or character (CHAR255, TLINE) but not a mix in Unicode.
Regards,
Raymond