<?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: put a variable inside another variable in sapscript form in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992415#M74564</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;t_int-kunnr&amp;amp;+0(&amp;amp;width&amp;amp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2005 14:12:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-26T14:12:24Z</dc:date>
    <item>
      <title>put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992414#M74563</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 assume that the question is a little bit confusing, but what I want to do is very simple, suppose that I list an internal table (t_int) into a form. To show the fields I write things like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;t_int-kunnr&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if I need to determine the width of the column, a way of doing this is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;t_int-kunnr(10)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, what if I need a variable width that it is determined in the control program with a variable, suppose something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;t_int-kunnr(&amp;amp;width&amp;amp;)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't work, so my question is, how can I put a variable inside another variable in a sapscript form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 14:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992414#M74563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992415#M74564</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;t_int-kunnr&amp;amp;+0(&amp;amp;width&amp;amp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 14:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992415#M74564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T14:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992416#M74565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks it solves perfectly the problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I have a problem when I try to give you the points of the forum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 14:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992416#M74565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T14:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992417#M74566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but I think I've spoken too quick, it seems that the solution of sasikumar doesn't work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other ideas?, thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 14:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992417#M74566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992418#M74567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to put one variable into another in the sapscript. Make all your changes in program in one variable i.e. to be used in SAPSCRIPT. Say &lt;/P&gt;&lt;P&gt;wa_kunnr = t_int-kunnr.&lt;/P&gt;&lt;P&gt;clear t_int-kunnr.&lt;/P&gt;&lt;P&gt;t_int-kunnr =  wa_kunnr(8) .&lt;/P&gt;&lt;P&gt;&amp;lt;Shift left right etc&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later in SAPSCRIPT simply use &amp;amp;t_int-kunnr(10)&amp;amp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope this helps. If not give exact scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992418#M74567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992419#M74568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's a good idea, but what I'm looking for is a way of set the width of the columns from the control program instead of &amp;lt;i&amp;gt;hardcoding&amp;lt;/i&amp;gt; it in the form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 15:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992419#M74568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: put a variable inside another variable in sapscript form</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992420#M74569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way of not hardcoding in sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use like t_int-numc to pass the length of the output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAPSCRIPT you can use &lt;/P&gt;&lt;P&gt;/: CASE &amp;amp;t_int_numc&amp;amp;&lt;/P&gt;&lt;P&gt;/: WHEN 10&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;t_int-kunnr(10)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: WHEN 8&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;T_INT-KUNNR(8)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/: ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can achieve by creating different text elements and calling these elements conditionally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E TEXT10&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;t_int-kunnr(10)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;/E TEXT8&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;T_INT-KUNNR(8)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there is no way you can define the output length of a field dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2005 16:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-variable-inside-another-variable-in-sapscript-form/m-p/992420#M74569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-26T16:07:22Z</dc:date>
    </item>
  </channel>
</rss>

