<?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: Script to Call a Data Flow in a loop using a Process in CPI-DS in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/13797536#M4841920</link>
    <description>I created a new process and copied script 1 and script 2 exactly from above. The process started and finished without any print statement in the log or calling my data flow.</description>
    <pubDate>Fri, 16 Aug 2024 14:17:46 GMT</pubDate>
    <dc:creator>kendw17</dc:creator>
    <dc:date>2024-08-16T14:17:46Z</dc:date>
    <item>
      <title>Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaq-p/12535804</link>
      <description>&lt;P&gt;I would like to write a script to increment value of a Global Parameter by 1 and when it reaches a number say 10 then Stop the process further. &lt;/P&gt;
  &lt;P&gt;How do I frame my script ?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2005567-loop-data-flow-cpi-ds.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 18:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaq-p/12535804</guid>
      <dc:creator>aourzy_ankur</dc:creator>
      <dc:date>2021-12-17T18:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535805#M4699433</link>
      <description>&lt;P&gt;Global Variable: $G_TIME_LOOP , integer, initial value = 1&lt;/P&gt;&lt;P&gt;Script Before dataflow:&lt;BR /&gt;   print('Loop number = ' || $G_TIME_LOOP);&lt;/P&gt;&lt;P&gt;Script After:&lt;/P&gt;&lt;P&gt;IF&lt;BR /&gt;($G_TIME_LOOP = 10) &lt;BR /&gt;  begin&lt;BR /&gt;   print('Loop finish number = ' || $G_TIME_LOOP);&lt;BR /&gt;   raise_exception_ext('JOB FINISH', 0);&lt;BR /&gt;  end&lt;BR /&gt;else&lt;BR /&gt;  begin&lt;/P&gt;&lt;P&gt;   $G_TIME_LOOP = $G_TIME_LOOP+1;&lt;BR /&gt;  end;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 12:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535805#M4699433</guid>
      <dc:creator>former_member786268</dc:creator>
      <dc:date>2022-01-25T12:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535806#M4699434</link>
      <description>&lt;P&gt;Thankyou Alexey that eased my work to quite a bit. I am able to optimise not one but many tasks.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 05:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535806#M4699434</guid>
      <dc:creator>aourzy_ankur</dc:creator>
      <dc:date>2022-06-17T05:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535807#M4699435</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;nikhaenko&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;It would be really helpful if you could help me with this scenario. I am trying to achieve the same by following your syntax however I am not getting the results as expected. The process is running but not getting into the loop. It ends without even executing the dataflow once.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2061630-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shubham&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535807#M4699435</guid>
      <dc:creator>former_member594071</dc:creator>
      <dc:date>2022-06-20T10:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535808#M4699436</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;shubham54498&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I cannot see any function provided that is capable of re-executing the task in a postload script.&lt;BR /&gt;The functions are listed &lt;A href="https://help.sap.com/docs/SAP_CLOUD_PLATFORM_INTEGRATION_FOR_DATA_SERVICES/dab65b1584e04026a132a06a711e3f5a/4e7e021a09204accbb55958d4d79e172.html?locale=en-US&amp;amp;version=1.0.11.44"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;What you may try is using the exec() function to execute a command that triggers a task execution via &lt;A href="https://help.sap.com/docs/SAP_CLOUD_PLATFORM_INTEGRATION_FOR_DATA_SERVICES/bc51cb2ea4264df892f7beb626c59aeb/b4e1e44efbb44f65ab00b3b854974b67.html?locale=en-US&amp;amp;version=1.0.11.44"&gt;runTask&lt;/A&gt; SOAP web service function. But somebody else here in this Community might have a better and sophisticated best practice for that.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Bence&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535808#M4699436</guid>
      <dc:creator>balazsbence95</dc:creator>
      <dc:date>2022-06-20T10:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535809#M4699437</link>
      <description>&lt;P&gt;Could you tell me if this looping works? and share some screenshot of log how it looks. &lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 02:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/12535809#M4699437</guid>
      <dc:creator>sapsujit</dc:creator>
      <dc:date>2023-10-21T02:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/13797446#M4841908</link>
      <description>I tried a similar loop going from -1 to 0. It should have created two files. One with last months data and one with this months data. It ran for 1 second and produced no print message or files. Did you create the process with three flows in a circle does work?</description>
      <pubDate>Fri, 16 Aug 2024 13:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/13797446#M4841908</guid>
      <dc:creator>kendw17</dc:creator>
      <dc:date>2024-08-16T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Call a Data Flow in a loop using a Process in CPI-DS</title>
      <link>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/13797536#M4841920</link>
      <description>I created a new process and copied script 1 and script 2 exactly from above. The process started and finished without any print statement in the log or calling my data flow.</description>
      <pubDate>Fri, 16 Aug 2024 14:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/script-to-call-a-data-flow-in-a-loop-using-a-process-in-cpi-ds/qaa-p/13797536#M4841920</guid>
      <dc:creator>kendw17</dc:creator>
      <dc:date>2024-08-16T14:17:46Z</dc:date>
    </item>
  </channel>
</rss>

