<?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: question concerning sap script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562325#M254183</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;check the variable names once. it could be &amp;amp;KNA1-NAME1&amp;amp;..am i not correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2006 04:07:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-22T04:07:10Z</dc:date>
    <item>
      <title>question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562318#M254176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all experts! I have a question concerning sap script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First some background information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;#146;ve created a sap script  that is called from a function module and from an executable program,  when I run the executable program the sap script work fine, but when I run the function module, all the variables in the sap script don&amp;#146;t have value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module the variables are defined in the top include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don&amp;#146;t know why these variables don&amp;#146;t take his value from the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Gerardo hernandez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 02:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562318#M254176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T02:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562319#M254177</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;Your problem is because you select your data in your program and not inside the function module. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only pass the internal table from your calling program into the function module, so when you run the functional module alone, you wont get any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solved your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 02:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562319#M254177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T02:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562320#M254178</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;Check in debug mode, whether the Function module is passing data correctly to the Script. I think FM is not passing data correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the fields are not populated correctly in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 02:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562320#M254178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T02:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562321#M254179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.First Debug the function module and check h data is being extracted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Now debug the script with function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 03:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562321#M254179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T03:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562322#M254180</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;When I debug the function Module, the field KUNNR-NAME1 has a correct value in the function module, before the "write_form", but in the sapscript debug this field "KUNNR-NAME1" has not value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 14:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562322#M254180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562323#M254181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you put your field name as &amp;amp;KUNNR-NAME1&amp;amp; inside your sapscript rather than putting KUNNR-NAME1 only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you put your field name as &amp;amp;KUNNR-NAME1&amp;amp; inside your sapscript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 02:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562323#M254181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T02:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562324#M254182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check wether spelling of ur text element in script and write_form are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and if u still face the problem let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 04:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562324#M254182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T04:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562325#M254183</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;check the variable names once. it could be &amp;amp;KNA1-NAME1&amp;amp;..am i not correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 04:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562325#M254183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T04:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: question concerning sap script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562326#M254184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that sapscript expects its variables to be in the program which calls the fm &amp;lt;b&amp;gt;by default&amp;lt;/b&amp;gt;. When you test via SE37 the framework itself is the calling program and it's unlikely that it will have a variable named kunnr-name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To over-ride this default, inside your fm pass the 'options' parameter(type itcpo) to 'open_form' and set the 'tdprogram' value to sy-repid in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested this in my own environemnt and initially got the same error as you. When I set the tdprogram variable it started working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 04:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-concerning-sap-script/m-p/1562326#M254184</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-09-22T04:12:45Z</dc:date>
    </item>
  </channel>
</rss>

