<?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: SAPSCRIPT PROBLEM Overriding the Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-overriding-the-variable/m-p/3026012#M715516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used DEFINE infront which did the trick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

/: DEFINE &amp;amp;CO_NAME1&amp;amp; = 'Whayne &amp;amp; Sons Enterprises'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 18:06:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-07T18:06:39Z</dc:date>
    <item>
      <title>SAPSCRIPT PROBLEM Overriding the Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-overriding-the-variable/m-p/3026011#M715515</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 this SAP SCRIPT FORM that gets company info from a table and which works fine. But we don't have access to the table anymore. so if we have an update of the address we have to hard code it in the script. And there lies my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the program was doing before:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
/: PERFORM Z_GET_COINFO IN PROGRAM ZPAY001
/: USING &amp;amp;T001-ADRNR&amp;amp;
/: CHANGING &amp;amp;CO_NAME1&amp;amp;
/: CHANGING &amp;amp;CO_STRAS&amp;amp;
/: CHANGING &amp;amp;CO_ORT01&amp;amp;
/: CHANGING &amp;amp;CO_REGIO&amp;amp;
/: CHANGING &amp;amp;CO_PSTLZ&amp;amp;
/: ENDPERFORM

ZB &amp;lt;B&amp;gt;&amp;amp;CO_NAME1&amp;amp;&amp;lt;/&amp;gt;&amp;lt;B&amp;gt;,...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now since I have to over Ride the info that it gets from the table I changed the code like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
/: PERFORM Z_GET_COINFO IN PROGRAM ZPAY001
/: USING &amp;amp;T001-ADRNR&amp;amp;
/: CHANGING &amp;amp;CO_NAME1&amp;amp;
/: CHANGING &amp;amp;CO_STRAS&amp;amp;
/: CHANGING &amp;amp;CO_ORT01&amp;amp;
/: CHANGING &amp;amp;CO_REGIO&amp;amp;
/: CHANGING &amp;amp;CO_PSTLZ&amp;amp;
/: ENDPERFORM
/: IF &amp;amp;T001-BUKRS&amp;amp; = '9700'
/: &amp;amp;CO_NAME1&amp;amp; = 'Whayne &amp;amp; Sons Enterprises'
/: &amp;amp;CO_STRAS&amp;amp; = '10515 E 40th Ave Ste 103'
...
/: ENDIF

ZB &amp;lt;B&amp;gt;&amp;amp;CO_NAME1&amp;amp;&amp;lt;/&amp;gt;&amp;lt;B&amp;gt;,...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am printing the check its printing blank. (in this case 9700 doesn't even exist in the table. But if i directly print the company name after the IF condition it prints it correctly but in the wrong format and some cases double (where there r old data in the table)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me why its not over riding the data from the table and printing my defined data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anwarul Kabir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 17:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-overriding-the-variable/m-p/3026011#M715515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T17:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSCRIPT PROBLEM Overriding the Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-overriding-the-variable/m-p/3026012#M715516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used DEFINE infront which did the trick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

/: DEFINE &amp;amp;CO_NAME1&amp;amp; = 'Whayne &amp;amp; Sons Enterprises'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 18:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-problem-overriding-the-variable/m-p/3026012#M715516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T18:06:39Z</dc:date>
    </item>
  </channel>
</rss>

