<?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: Creating  a dynamic variant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-dynamic-variant/m-p/2366369#M524004</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;split the file path lenghth into diffrent lines ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say each line has 45 charcters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm split the lines into number of charcter &lt;/P&gt;&lt;P&gt;fm is SWA_SPLIT_STRING  - here pass ur file path ,length 45 and internal table&lt;/P&gt;&lt;P&gt;internal table output will have diffrent lines,other program is going to concatenate all the lines into one line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2007 23:31:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-11T23:31:01Z</dc:date>
    <item>
      <title>Creating  a dynamic variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-dynamic-variant/m-p/2366368#M524003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Iam using the following two function modules to craete a dynamic variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This function module selects the Selection Screen contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report     = sy-repid&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      selection_table = loc_int_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found       = 1&lt;/P&gt;&lt;P&gt;      no_report       = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH 'Error in RS_REFRESH_FROM_SELECTOPTIONS'(029).&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Craete the variant VAR1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'RS_CREATE_VARIANT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      curr_report               = sy-repid&lt;/P&gt;&lt;P&gt;      curr_variant              = wf_variant&lt;/P&gt;&lt;P&gt;      vari_desc                 = loc_varid&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      vari_contents             = loc_int_tab&lt;/P&gt;&lt;P&gt;      vari_text                 = loc_varit&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      illegal_report_or_variant = 1&lt;/P&gt;&lt;P&gt;      illegal_variantname       = 2&lt;/P&gt;&lt;P&gt;      not_authorized            = 3&lt;/P&gt;&lt;P&gt;      not_executed              = 4&lt;/P&gt;&lt;P&gt;      report_not_existent       = 5&lt;/P&gt;&lt;P&gt;      report_not_supplied       = 6&lt;/P&gt;&lt;P&gt;      variant_exists            = 7&lt;/P&gt;&lt;P&gt;      variant_locked            = 8&lt;/P&gt;&lt;P&gt;      OTHERS                    = 9.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH 'Error while creating dynamic variant'(028).&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is I have one parameter 'filename' on selection screen which is of 255 characters lenth , but the internal table loc_int_tab in above function modules can hold up to 45 characters only. But I want to store all the 255 characters in it.&lt;/P&gt;&lt;P&gt;Have you ever comeacross with this problem"&lt;/P&gt;&lt;P&gt;Or do we have any other function modules which will sove the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brahma Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 23:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-dynamic-variant/m-p/2366368#M524003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T23:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating  a dynamic variant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-dynamic-variant/m-p/2366369#M524004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;split the file path lenghth into diffrent lines ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say each line has 45 charcters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm split the lines into number of charcter &lt;/P&gt;&lt;P&gt;fm is SWA_SPLIT_STRING  - here pass ur file path ,length 45 and internal table&lt;/P&gt;&lt;P&gt;internal table output will have diffrent lines,other program is going to concatenate all the lines into one line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 23:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-dynamic-variant/m-p/2366369#M524004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T23:31:01Z</dc:date>
    </item>
  </channel>
</rss>

