Application Development and Automation 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: 
Read only

RE:SX_TABLE_line_width_change

Former Member
0 Likes
899

Hi,

How to use this function module SX_TABLE_line_width_change

Hi,

How to use this function module SX_TABLE_line_width_change

2 REPLIES 2
Read only

Former Member
0 Likes
548

According to the "where used" for this function module, it is called from function SO_OBJECT_CONVERT_TO_WI, and its purpose there is to convert an internal table OBJCONT that is 255 bytes wide into an internal table, CONTENT, that is as wide as CONTENT-LINES (1024 bytes):

*     * convert object content in archive format
      DESCRIBE FIELD CONTENT-LINES LENGTH ARCHIVE_LINE
                                                    in character mode.
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
           EXPORTING
                LINE_WIDTH_SRC  = 255
                LINE_WIDTH_DST  = ARCHIVE_LINE
           TABLES
                CONTENT_IN      = OBJCONT
                CONTENT_OUT     = CONTENT
           EXCEPTIONS
                ERR_CONV_FAILED = 1
                OTHERS          = 2.

Jonathan

Read only

Former Member
0 Likes
548

hi

good

  • convert pdf table to table for storage in DMS

CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'

EXPORTING

line_width_src = 134

line_width_dst = 1022

TABLES

content_in = tb_pdf

content_out = tb_pdf_content

EXCEPTIONS

err_line_width_src_too_long = 1

err_line_width_dst_too_long = 2

err_conv_failed = 3

OTHERS = 4.

go through this link to get some better idea about this

thanks

mrutyun^