<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Conversion table TLINE to table SOLIX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492110#M1653307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome Henrik! Maybe next time we'll need your help... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merry x-mas!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2011 14:24:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-22T14:24:54Z</dc:date>
    <item>
      <title>Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492101#M1653298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus..&lt;/P&gt;&lt;P&gt;(please see at the end my previous search on SDN on this matter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a problem to convert from table of type TLINE to table of type SOLIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My problem/case&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I convert a spool to PDF. This PDF I later want to assign to a business object.&lt;/P&gt;&lt;P&gt;The conversion to PDF create a table of type TLINE and the assignment to the business object need a table of type SOLIX.&lt;/P&gt;&lt;P&gt;I am able to do this via downloading the pdf to the frontend - then upload it agan as follows ...(after the upload the table is ready to use for assigning the PDF to my business object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      SRC_SPOOLID              = l_spool
      NO_DIALOG                = 'X'
    TABLES
      PDF                      = witab "TYPE TLINE
    EXCEPTIONS
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
    CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD
      EXPORTING
        BIN_FILESIZE            = LV_SIZE  "0
        FILENAME                = LV_FULLPATH
        FILETYPE                = 'BIN'
      CHANGING
        DATA_TAB                = witab "TYPE TLINE
      EXCEPTIONS
&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lv_fullpath  "path to PDF-file
filetype = 'BIN'
IMPORTING
filelength = xlength
TABLES
data_tab = lt_doc. "TYPE STANDARD TABLE OF solix with header line&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally here the table LT_DOC (pdf-document)  is directly able to be used to be linked to the business object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Would really like to do this without do any download/upload just for the conversion..... that is no performance in that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search on SDN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1343887"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;...exactly my problem...but with no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/binary" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/binary&lt;/A&gt;&lt;EM&gt;safe&lt;/EM&gt;copy&lt;EM&gt;between&lt;/EM&gt;variables&lt;EM&gt;of&lt;/EM&gt;different+types&lt;/P&gt;&lt;P&gt;...yihaa...an entire program just for this... but here my combination from TLINE as a table to SOLIX as a table did not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="9574"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;....this one seemed to work my problem...but either I did not understand it fully, or It simply did not apply for my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did test some other links too, but they all seemed to talk about the same thing but in other ways... So I am still confused. There must be a simple way to to this conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best reg&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 09:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492101#M1653298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T09:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492102#M1653299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search on SDN&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1343887"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;...exactly my problem...but with no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I would have suggest to use SX_TABLE_LINE_WIDTH_CHANGE... What is the problem with that FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 09:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492102#M1653299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492103#M1653300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get the PDF data in binary format via the exporting param &lt;EM&gt;BIN_FILE&lt;/EM&gt;(type &lt;EM&gt;XSTRING&lt;/EM&gt;) of the FM &lt;EM&gt;CONVERT_ABAPSPOOLJOB_2_PDF&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Pass the PDF data(from Step1) to the method &lt;EM&gt;CL_DOCUMENT_BCS=&amp;gt;XSTRING_TO_SOLIX( )&lt;/EM&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: You can use the FM &lt;EM&gt;SCMS_XSTRING_TO_BINARY&lt;/EM&gt; as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 10:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492103#M1653300</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-12-22T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492104#M1653301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I get a short dump &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe Im not using i correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
 EXPORTING
*   LINE_WIDTH_SRC                    = '134'
   LINE_WIDTH_DST                    = '255'
*   TRANSFER_BIN                      = ' '
  TABLES
    content_in                        = witab  "TYPE TLINE
    content_out                       = lt_doc "TYPE STANDARD TABLE OF solix with header line
 EXCEPTIONS
   ERR_LINE_WIDTH_SRC_TOO_LONG       = 1
   ERR_LINE_WIDTH_DST_TOO_LONG       = 2
   ERR_CONV_FAILED                   = 3
   OTHERS                            = 4
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;shortdump&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    In unicode-compatible programs, subfield accesses are only allowed for&lt;/P&gt;&lt;P&gt;    structures with a character-type initial part. This is not the case for&lt;/P&gt;&lt;P&gt;    the structure "CONTENT_OUT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 10:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492104#M1653301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T10:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492105#M1653302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was so happy when I saw your response, but Im sorry, when looking at the code I did not quite get it how I should do the coding.&lt;/P&gt;&lt;P&gt;Would you mind clarify how the coding should be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou in advance&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 10:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492105#M1653302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T10:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492106#M1653303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep Suhas is right, better use SCMS_XSTRING_TO_BINARY fm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Full answer is given here: &lt;SPAN __jive_macro_name="message" id="8088156"&gt;&lt;/SPAN&gt;, just change the output to solix format and it will work like a charm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 10:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492106#M1653303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T10:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492107#M1653304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu&lt;/P&gt;&lt;P&gt;I've been trying that one before...but I give it another go now &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Question: How do I get my hands on the variable I_LENGTH from my table WITAB (TLINE table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below...you see the example from your link...and below that my coding....  &lt;/P&gt;&lt;P&gt;Im happy for all comments...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;type-pools sbdst.
FORM itab_clike_2_raw1022 
      using 
        it_any        type standard table "of clike
        i_length      type i 
      changing 
        et_bapiconten type sbdst_content. "table of bapiconten
data l_string type string.
DATA l_buffer TYPE xstring.
data l_xstring type xstring.
CONCATENATE LINES OF it_any INTO l_string RESPECTING BLANKS.
EXPORT my_data = l_string(i_length) TO DATA BUFFER l_buffer.
IMPORT my_data TO l_xstring FROM DATA BUFFER l_buffer IN CHAR-TO-HEX MODE.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    buffer                = l_xstring
  TABLES
    binary_tab            = et_bapiconten.
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to re-write it a bit....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data l_string type string.
DATA l_buffer TYPE xstring.
data l_xstring type xstring.
CONCATENATE LINES OF witab INTO l_string RESPECTING BLANKS.
EXPORT my_data = l_string(xlength) TO DATA BUFFER l_buffer.
IMPORT my_data TO l_xstring FROM DATA BUFFER l_buffer IN CHAR-TO-HEX MODE.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    buffer                = l_xstring
  TABLES
    binary_tab            = lt_doc. "et_bapiconten.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 12:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492107#M1653304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492108#M1653305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, not even sure that length option is mandatory... but I guess you could simply call the strlen function on l_string..&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CONCATENATE LINES OF it_any INTO l_string RESPECTING BLANKS.
l_len = strlen( l_string ).
EXPORT my_data = l_string(l_len) TO DATA BUFFER l_buffer.
IMPORT my_data TO l_xstring FROM DATA BUFFER l_buffer IN CHAR-TO-HEX MODE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 13:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492108#M1653305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492109#M1653306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu ...and Suhas!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou very much for your support! I am very greatful!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Im facing the next problem... I wanna give you both max points for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manu - I will give you full house since you guided me over the edge &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Suhas - You gave the first direction to that FM so you are so so so close behind Manu - but you will get some point to &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou again and MERRY CHRISTMAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 13:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492109#M1653306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion table TLINE to table SOLIX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492110#M1653307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome Henrik! Maybe next time we'll need your help... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merry x-mas!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 14:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-table-tline-to-table-solix/m-p/8492110#M1653307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-22T14:24:54Z</dc:date>
    </item>
  </channel>
</rss>

