<?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: Dynamic structure to create in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531343#M1561550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have text which is created on SO10. I have declaration part on this element.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; LOOP AT lt_tline INTO ls_tline.&lt;/P&gt;&lt;P&gt;&amp;gt; ....      &lt;/P&gt;&lt;P&gt;&amp;gt; ELSEIF ls_tline-tdline CS text-009. "text-009 contains 'Declaration'&lt;/P&gt;&lt;P&gt;&amp;gt;           PERFORM f_offset_text USING ls_tline-tdline&lt;/P&gt;&lt;P&gt;&amp;gt;                            CHANGING gs_declaration-declaration.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; This means after user write 'Declaration',  he can write anything and this can contain more than one row so &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I NEED STRUCTURE TO SEND EASILY TO SMARTFORM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what exactly you're trying to do here. Anyway if you want to pass the SO10 text to the smartform, you can use the "Include Text" type instead of coding for it.&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 specify dynamic texts as well !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 05:29:35 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-01-03T05:29:35Z</dc:date>
    <item>
      <title>Dynamic structure to create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531341#M1561548</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 have text which is created on SO10. I have declaration part on this element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_tline INTO ls_tline.&lt;/P&gt;&lt;P&gt;....      &lt;/P&gt;&lt;P&gt;ELSEIF ls_tline-tdline CS text-009. "text-009 contains 'Declaration'&lt;/P&gt;&lt;P&gt;          PERFORM f_offset_text USING ls_tline-tdline&lt;/P&gt;&lt;P&gt;                           CHANGING gs_declaration-declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means after user write 'Declaration',  he can write anything and this can contain more than one row so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BASICALLY PROBLEM BEGINS HERE... &lt;/P&gt;&lt;P&gt;because if user write two rows, I need structure that contains two fields and if user write three rows, I need structure structure that contains three fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I NEED STRUCTURE TO SEND EASILY TO SMARTFORM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 04:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531341#M1561548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T04:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic structure to create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531342#M1561549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why wont u use Internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 04:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531342#M1561549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T04:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic structure to create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531343#M1561550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have text which is created on SO10. I have declaration part on this element.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; LOOP AT lt_tline INTO ls_tline.&lt;/P&gt;&lt;P&gt;&amp;gt; ....      &lt;/P&gt;&lt;P&gt;&amp;gt; ELSEIF ls_tline-tdline CS text-009. "text-009 contains 'Declaration'&lt;/P&gt;&lt;P&gt;&amp;gt;           PERFORM f_offset_text USING ls_tline-tdline&lt;/P&gt;&lt;P&gt;&amp;gt;                            CHANGING gs_declaration-declaration.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; This means after user write 'Declaration',  he can write anything and this can contain more than one row so &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I NEED STRUCTURE TO SEND EASILY TO SMARTFORM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what exactly you're trying to do here. Anyway if you want to pass the SO10 text to the smartform, you can use the "Include Text" type instead of coding for it.&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 specify dynamic texts as well !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 05:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531343#M1561550</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-03T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic structure to create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531344#M1561551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 06:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531344#M1561551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic structure to create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531345#M1561552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to ur requirement i also had a requirement where user  can edit the standard text in the provided edior screen in the selection screen and that text has to be passed to the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to display the standard text in the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD G_CUSTOM-&amp;gt;SET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          TABLE  = TEXTLINES&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the user modified to get the details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD G_CUSTOM-&amp;gt;GET_TEXT_AS_R3TABLE&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      TABLE  = TEXTLINES&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and just save it in the dummy text. eg concatenate the SO10 text name_dummy. to create the dummy text following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TEXTLINES INTO W_TEXT.&lt;/P&gt;&lt;P&gt;  W_LINE-TDFORMAT = '*'.&lt;/P&gt;&lt;P&gt;  W_LINE-TDLINE = W_TEXT.&lt;/P&gt;&lt;P&gt;  APPEND W_LINE TO T_LINE.&lt;/P&gt;&lt;P&gt;  CLEAR W_LINE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FID               = G_TDID&lt;/P&gt;&lt;P&gt;    FLANGUAGE         = G_SPRAS&lt;/P&gt;&lt;P&gt;    FNAME             = G_TDNAME&lt;/P&gt;&lt;P&gt;    FOBJECT           = G_TDOBJ&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    FLINES            = T_LINE&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NO_INIT           = 1&lt;/P&gt;&lt;P&gt;   NO_SAVE           = 2&lt;/P&gt;&lt;P&gt;   OTHERS            = 3  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass this dummy text name to the smart form and once the smart form exceuted successfully just delete the dummy text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DELETE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    ID                    = G_TDID&lt;/P&gt;&lt;P&gt;    LANGUAGE              = G_SPRAS&lt;/P&gt;&lt;P&gt;    NAME                  = G_TDNAME&lt;/P&gt;&lt;P&gt;    OBJECT                = G_TDOBJ&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SAVEMODE_DIRECT       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TEXTMEMORY_ONLY       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    NOT_FOUND             = 1&lt;/P&gt;&lt;P&gt;    OTHERS                = 2  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will give some idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mullai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 06:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-structure-to-create/m-p/7531345#M1561552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-03T06:37:39Z</dc:date>
    </item>
  </channel>
</rss>

