<?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: convert table to structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487701#M227338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error i got:&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE',&lt;/P&gt;&lt;P&gt; was neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure "SMARTFORMS"&lt;/P&gt;&lt;P&gt; "(FORM)"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;In the function "/1BCDWB/SF00000137" the STRUCTURE parameter "ITAB_CUST" is&lt;/P&gt;&lt;P&gt; typed in such a way&lt;/P&gt;&lt;P&gt;that actual parameters are not valid, unless they are compatible&lt;/P&gt;&lt;P&gt;according to the Unicode fragment view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2006 20:34:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-30T20:34:09Z</dc:date>
    <item>
      <title>convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487695#M227332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;is there a way to convert a table with header line to a structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advanced'&lt;/P&gt;&lt;P&gt;dana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 19:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487695#M227332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487696#M227333</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;  I am not sure if you are looking something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF itab occurs 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE Z_MY_DDIC_STURCT.&lt;/P&gt;&lt;P&gt;  DATA:      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: S_STRUCTURE LIKE ITAB..&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB INTO S_STRUCTURE WITH KEY...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487696#M227333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487697#M227334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate more on what exactly you are trying to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487697#M227334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487698#M227335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the first time i do smartforms.&lt;/P&gt;&lt;P&gt;and when i finish writing my code and ran the program,  i found that the function that call the smartforms doesnt use internal table - it used structure only.&lt;/P&gt;&lt;P&gt;so i want to know if there is a way that i can move data from internal table to a structure so that the function will use the structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487698#M227335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487699#M227336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a structure you can hold only one row, so you have to use a loop and pass the data to smartforms.  Can you specify what FM you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487699#M227336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487700#M227337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fm:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FORMNAME                 = name&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FM_NAME                  = lf_fm_name&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_FORM                  = 1&lt;/P&gt;&lt;P&gt;   NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS                   = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION lf_fm_name&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     CONTROL_PARAMETERS          = control&lt;/P&gt;&lt;P&gt;     parnr                       = parnr&lt;/P&gt;&lt;P&gt;     NAME1                       = NAME1&lt;/P&gt;&lt;P&gt;     TELF1                       = TELF1&lt;/P&gt;&lt;P&gt;     vtext                       = vtext&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;    itab_cust                    = itab_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error i got:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487700#M227337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487701#M227338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error i got:&lt;/P&gt;&lt;P&gt;An exception occurred. This exception is dealt with in more detail below&lt;/P&gt;&lt;P&gt;. The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE',&lt;/P&gt;&lt;P&gt; was neither&lt;/P&gt;&lt;P&gt;caught nor passed along using a RAISING clause, in the procedure "SMARTFORMS"&lt;/P&gt;&lt;P&gt; "(FORM)"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have expected this exception&lt;/P&gt;&lt;P&gt; to occur, the running program was terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;In the function "/1BCDWB/SF00000137" the STRUCTURE parameter "ITAB_CUST" is&lt;/P&gt;&lt;P&gt; typed in such a way&lt;/P&gt;&lt;P&gt;that actual parameters are not valid, unless they are compatible&lt;/P&gt;&lt;P&gt;according to the Unicode fragment view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487701#M227338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487702#M227339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood your question right, doing the following should resolve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION lf_fm_name&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = control&lt;/P&gt;&lt;P&gt;parnr = parnr&lt;/P&gt;&lt;P&gt;NAME1 = NAME1&lt;/P&gt;&lt;P&gt;TELF1 = TELF1&lt;/P&gt;&lt;P&gt;vtext = vtext&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;itab_cust = itab_cust[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add the braces and it should do it.  This is assuming &amp;lt;b&amp;gt;itab_cust&amp;lt;/b&amp;gt; is an internal table with a header line.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI - Any parameter under Tables Tab is a internal table and not a structure, and since its an internal table with a header line you have to enclose the '[]' braces to indicate the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunil Achyut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487702#M227339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487703#M227340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use like this--&amp;gt;&lt;/P&gt;&lt;P&gt;fm:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORMNAME = name&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FM_NAME = lf_fm_name&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NO_FORM = 1&lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;data mystruct type line of itab.&lt;/P&gt;&lt;P&gt;loop at itab into mystruct.&lt;/P&gt;&lt;P&gt;CALL FUNCTION lf_fm_name&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = control&lt;/P&gt;&lt;P&gt;parnr = parnr&lt;/P&gt;&lt;P&gt;NAME1 = NAME1&lt;/P&gt;&lt;P&gt;TELF1 = TELF1&lt;/P&gt;&lt;P&gt;vtext = vtext&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;itab_cust = mystruct.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you using this for smartform or pdfform?&lt;/P&gt;&lt;P&gt;in either cases it will print the forms as different documents. suppose if you are having 10 lines in your internal table then it will give 10 diff documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward me if this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487703#M227340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: convert table to structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487704#M227341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;im sorry but now i understood what i did:&lt;/P&gt;&lt;P&gt;the structure that the function get not match to the struc. that the SF define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry to bother you,&lt;/P&gt;&lt;P&gt;thank you all very much,&lt;/P&gt;&lt;P&gt;dana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 02:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-table-to-structure/m-p/1487704#M227341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T02:48:46Z</dc:date>
    </item>
  </channel>
</rss>

