<?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>Question Re: Call a Script Within a Script in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563165#M123532</link>
    <description>&lt;P&gt;Hello Brandon,&lt;/P&gt;
  &lt;P&gt;check the sap script for generating a password. It should include other scripts. I'm not at work right now so I can't check the function to call a script, but it wasn't complicated. &lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Steffi.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 21:56:26 GMT</pubDate>
    <dc:creator>Steffi_Warnecke</dc:creator>
    <dc:date>2017-11-01T21:56:26Z</dc:date>
    <item>
      <title>Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaq-p/563164</link>
      <description>&lt;P&gt;Does anyone know how to call a JavaScript from within a JavaScript?&lt;/P&gt;
  &lt;P&gt;I have two scripts in my job, one local and one global. I want the global script to give me a result and populate a target in my database table and I want my local script to take that result and run a SQL query on it. I'm using a From LDAP pass so I cannot just wrap the function call inside another function call. From LDAP passes have a column specifically for the scripts so you can only use one per line.&lt;/P&gt;
  &lt;P&gt;So again, anyone know how to do this, call a script from inside a script?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaq-p/563164</guid>
      <dc:creator>brandonbollin</dc:creator>
      <dc:date>2017-11-01T19:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563165#M123532</link>
      <description>&lt;P&gt;Hello Brandon,&lt;/P&gt;
  &lt;P&gt;check the sap script for generating a password. It should include other scripts. I'm not at work right now so I can't check the function to call a script, but it wasn't complicated. &lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Steffi.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 21:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563165#M123532</guid>
      <dc:creator>Steffi_Warnecke</dc:creator>
      <dc:date>2017-11-01T21:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563166#M123533</link>
      <description>&lt;P&gt;Hi Brandon,&lt;/P&gt;
  &lt;P&gt;Supposer you are inside script A. call the script as below&lt;/P&gt;
  &lt;P&gt;function ScriptA(Par)&lt;/P&gt;
  &lt;P&gt;{&lt;/P&gt;
  &lt;P&gt;//Calling script B&lt;/P&gt;
  &lt;P&gt;//if script b returns any values then user below syntax&lt;/P&gt;
  &lt;P&gt;var res = scriptB(Par); or UserFunc.scripB(Par)&lt;/P&gt;
  &lt;P&gt;//if script b doesn't return any values then user below&lt;/P&gt;
  &lt;P&gt;scriptB(Par); or UserFunc.scripB(Par)&lt;/P&gt;
  &lt;P&gt;}&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;DP&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563166#M123533</guid>
      <dc:creator>devaprakash_b</dc:creator>
      <dc:date>2017-11-02T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563167#M123534</link>
      <description>&lt;P&gt;I wouldn't think it would be complicated but the simple call of the script that I would think would work, isn't working.&lt;/P&gt;
  &lt;P&gt;var result = externalScript(Par);&lt;/P&gt;
  &lt;P&gt;That above line is producing an error when I try to use it. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563167#M123534</guid>
      <dc:creator>brandonbollin</dc:creator>
      <dc:date>2017-11-02T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563168#M123535</link>
      <description>&lt;P&gt;I tried the:&lt;/P&gt;
  &lt;P&gt;var res = scriptB(Par);&lt;/P&gt;
  &lt;P&gt;That is producing an error. Maybe adding the, "UserFunc" in front of the script will make a difference. I will try that and report back. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563168#M123535</guid>
      <dc:creator>brandonbollin</dc:creator>
      <dc:date>2017-11-02T13:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563169#M123536</link>
      <description>&lt;P&gt;Are both scripts linked to the job? &lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563169#M123536</guid>
      <dc:creator>Steffi_Warnecke</dc:creator>
      <dc:date>2017-11-02T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563170#M123537</link>
      <description>&lt;P&gt;Yes. The only thing I can think of is conflicting scope, i.e. one script is local and the other is global and the local script is trying to call the global script. Maybe they both have to be global or local but you can't have a mix match? I'll find out later today. Need to get into that client's site after getting some other stuff caught up.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563170#M123537</guid>
      <dc:creator>brandonbollin</dc:creator>
      <dc:date>2017-11-02T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563171#M123538</link>
      <description>&lt;P&gt;Hey Brandon,&lt;/P&gt;
  &lt;P&gt;today I called a global script within a global script.&lt;/P&gt;
  &lt;P&gt;Both are of course linked in the job and the call in the first script was just&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;result = otherglobalscript();&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;So pretty easy indeed (the called script does not need a parameter, that's why () is empty). So I think you are correct, that it might have an issue with one script being local and one global (even though I'm confused why this would be an issue).&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Steffi.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 15:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563171#M123538</guid>
      <dc:creator>Steffi_Warnecke</dc:creator>
      <dc:date>2017-11-06T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563172#M123539</link>
      <description>&lt;P&gt;Lol... So, I found out the reason why I was having issues. I was doing a lot of cutting and pasting when I was trying to get this script calling another script to work and the version of the script that's deployed in IDM is called something like, "custom_sap_blah". In my Notepad++ files, the script is called, "z_custom_sap_blah" so when I did what I did, the call to the global script was:&lt;/P&gt;
  &lt;P&gt;var output = z_custom_sap_blah(Par);&lt;/P&gt;
  &lt;P&gt;This, of course, will not work. Once I changed the call to the proper name of the script as it's deployed, it worked. Sorry all. A simple typo was the issue and it's my fault. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 16:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563172#M123539</guid>
      <dc:creator>brandonbollin</dc:creator>
      <dc:date>2017-11-06T16:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call a Script Within a Script</title>
      <link>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563173#M123540</link>
      <description>&lt;P&gt;Good that it was just a simple CnP error. I was scared reading the thread as I do script calls all the time. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/call-a-script-within-a-script/qaa-p/563173#M123540</guid>
      <dc:creator>former_member201064</dc:creator>
      <dc:date>2017-11-10T16:58:47Z</dc:date>
    </item>
  </channel>
</rss>

