<?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: Custom Function related issue in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102921#M3642864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first sight, should work. I&lt;SPAN class="hps"&gt;f&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt;'ve followed &lt;SPAN class="hps"&gt;those steps&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;carefully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Can you check your field lengths? Steps 3 and 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Also I do not immediately understand why you are unable to assign the paramter value at job level. Should not be a problem at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 12:54:31 GMT</pubDate>
    <dc:creator>former_member187605</dc:creator>
    <dc:date>2014-03-04T12:54:31Z</dc:date>
    <item>
      <title>Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaq-p/10102918</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;There is a custom function defined and it is called in the query transform as function call output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custome Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( $PREV_NAME IS NULL )&lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;$PREV_NAME = $CURR_NAME ;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;$PREV_NAME = $PREV_NAME || ',' || $CURR_NAME ;&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;Return $PREV_NAME ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am getting the output always only $Curr_name parameter value, here Prev_name parameter is initialized NULL in work flow stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise here,why else part is not working and let me know if you need any further information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Edu.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 03:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaq-p/10102918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T03:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102919#M3642862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you call your function? What are the values passed for your parameters?&lt;/P&gt;&lt;P&gt;Assuming $PREV_NAME and $CURR_NAME are both input parameters (and not global variables), and you always pass a null value for $PREV_NAME, it's obvious the else-part of your logic will never be executed, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 07:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102919#M3642862</guid>
      <dc:creator>former_member187605</dc:creator>
      <dc:date>2014-03-04T07:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102920#M3642863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks for your response, the thing is that as a new mumber, am practicing some of the custom functions and scenario's. as such ,I had issue with&amp;nbsp; the below scenario. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here I had declared the input parameter initail value as NULL&amp;nbsp; in work flow , not in the job level because unable to assign at job level and executed the data flow as a result I am getting &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;output is only currecnt values ie not appending the previous values..else is not working.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Consider the following Source data in a flat file:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 7.5pt;" width="70%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background: #c2dfff; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;DEPTNO&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: #c2dfff; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;ENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;G&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;F&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;H&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;Scenario 5:&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; Lets try to load the target table data as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="padding: 7.5pt;" width="70%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background: #c2dfff; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;DEPTNO&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: #c2dfff; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;ENAME_LIST&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C,D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C,D,E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C,D,E,F&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C,D,E,F,G&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;A,B,C,D,E,F,G,H&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;Solution:&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1. Let us first define the Source &lt;STRONG&gt;File Format&lt;/STRONG&gt;. This same file format will be reused for the next set of the scenario questions. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;2. Next we use the same &lt;STRONG&gt;Batch Job&lt;/STRONG&gt;, JB_SCENARIO_DS. Within the Job we create a &lt;STRONG&gt;Data Flow&lt;/STRONG&gt;, say DF_SCENARIO_5. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;3. At the Data flow level i.e. &lt;STRONG&gt;Context&lt;/STRONG&gt; DF_SCENARIO_5, we Insert a new Parameter using the &lt;STRONG&gt;Definitions&lt;/STRONG&gt; tab. Lets name it as $PREV_NAME with &lt;STRONG&gt;Data type&lt;/STRONG&gt; varchar(100) and &lt;STRONG&gt;Parameter type&lt;/STRONG&gt; as &lt;STRONG&gt;Input&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;At the Job level i.e. &lt;STRONG&gt;Context&lt;/STRONG&gt; JB_SCENARIO_5, we initialize the Parameter $PREV_NAME using the &lt;STRONG&gt;Calls&lt;/STRONG&gt; tab. We set the &lt;STRONG&gt;Agrument value&lt;/STRONG&gt; to &lt;STRONG&gt;NULL&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;4. Next we create a New &lt;STRONG&gt;Custom Function&lt;/STRONG&gt; from the Local Object Library. Lets name it CF_CONCAT_ENAME. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Within the Custom Function Smart Editor, first we Insert two Parameters, namely $CURR_NAME and $PREV_NAME with Data types as varchar(20) and varchar(100) respectively. Their &lt;STRONG&gt;Parameter type&lt;/STRONG&gt; being &lt;STRONG&gt;Input&lt;/STRONG&gt; and &lt;STRONG&gt;Input/Output&lt;/STRONG&gt; respectively. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Also we modify the &lt;STRONG&gt;Return&lt;/STRONG&gt; Parameter Data type to varchar(100). &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;5. Next we define the custom function as below and Validate the same. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;if ( $PREV_NAME IS NULL )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;$PREV_NAME = $CURR_NAME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;$PREV_NAME = $PREV_NAME || ',' || $CURR_NAME;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Return $PREV_NAME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;The purpose of defining the Parameter and Custom Function is to perform &lt;STRONG&gt;Parameter Short-circuiting&lt;/STRONG&gt;. Here within the function, we basically set the $PREV_NAME Parameter of type Input/Output to concatenate all employee names till the current processing row. Since it is of type Input/Output the concatenated string value is passed back into the Dataflow Parameter. So by using Custom Function we can modify and pass values to a Dataflow Parameter. Hence the Parameter defined at Dataflow level is short-circuited with the Input/Output Parameter of the Custom Function. &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;6. Lets go back and design the Data flow. First of all we take the File Format defined earlier, from the Local Object Library as Source. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;7. Next we place a &lt;STRONG&gt;Query&lt;/STRONG&gt; transform, say QRY_SORT. First we select the columns DEPTNO and ENAME from the &lt;STRONG&gt;Schema In&lt;/STRONG&gt; of the Query transform and &lt;STRONG&gt;Map to Output&lt;/STRONG&gt;. Specify the &lt;STRONG&gt;ORDER BY&lt;/STRONG&gt; on DEPTNO and ENAME in &lt;STRONG&gt;Ascending&lt;/STRONG&gt; type. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;8. Next we place a &lt;STRONG&gt;Query&lt;/STRONG&gt; transform, say QRY_CONCAT_NAME. First we select the columns DEPTNO from the &lt;STRONG&gt;Schema In&lt;/STRONG&gt; of the Query transform and &lt;STRONG&gt;Map to Output&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Next we specify a &lt;STRONG&gt;New Function Call&lt;/STRONG&gt; in &lt;STRONG&gt;Schema Out&lt;/STRONG&gt; of the Query transform. Choose the &lt;STRONG&gt;Custom Functions&lt;/STRONG&gt; from the &lt;STRONG&gt;Function categories&lt;/STRONG&gt; and select the &lt;STRONG&gt;Function name&lt;/STRONG&gt; CF_CONCAT_ENAME. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Next we &lt;STRONG&gt;Define Input Parameters&lt;/STRONG&gt;. We specify the inputs as below: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;$CURR_NAME = QRY_SORT.ENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;$PREV_NAME = $PREV_NAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Select the &lt;STRONG&gt;Return&lt;/STRONG&gt; column as the &lt;STRONG&gt;Output Parameter&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;9. Next we place a &lt;STRONG&gt;Query&lt;/STRONG&gt; transform, say QRY_FORMAT. First we select the columns DEPTNO and Return from the &lt;STRONG&gt;Schema In&lt;/STRONG&gt; of the Query transform and &lt;STRONG&gt;Map to Output&lt;/STRONG&gt;. Rename the Return column to ENAME_LIST. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10. Finally we place a &lt;STRONG&gt;Template Table&lt;/STRONG&gt; as Target in the Target &lt;STRONG&gt;Datastore&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Please advise am I done mistake here..&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12pt; font-family: 'Times New Roman','serif';"&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;Edu&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 11:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102920#M3642863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T11:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102921#M3642864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first sight, should work. I&lt;SPAN class="hps"&gt;f&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;you&lt;/SPAN&gt;'ve followed &lt;SPAN class="hps"&gt;those steps&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;carefully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Can you check your field lengths? Steps 3 and 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Also I do not immediately understand why you are unable to assign the paramter value at job level. Should not be a problem at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 12:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102921#M3642864</guid>
      <dc:creator>former_member187605</dc:creator>
      <dc:date>2014-03-04T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102922#M3642865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edukondalu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your requirement custom function is very simple .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you write the custom function as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$L_DEPTNO = $P_DEPTNO;&lt;/P&gt;&lt;P&gt;$L_PREV_DEPTNO = $P_PREV_DEPTNO ;&lt;/P&gt;&lt;P&gt;$L_ENAME = $P_ENAME ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( $L_DEPTNO &amp;lt;&amp;gt; $L_PREV_DEPTNO OR $L_PREV_DEPTNO is null&amp;nbsp; )&lt;/P&gt;&lt;P&gt; begin&lt;/P&gt;&lt;P&gt;&amp;nbsp; $L_ENAMEOUT = '';&lt;/P&gt;&lt;P&gt;&amp;nbsp; $L_ENAMEOUT = $L_ENAME;&lt;/P&gt;&lt;P&gt; end &lt;/P&gt;&lt;P&gt; else &lt;/P&gt;&lt;P&gt; begin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $L_ENAMEOUT = $L_ENAMEOUT || ','|| $L_ENAME ;&lt;/P&gt;&lt;P&gt; end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return $L_ENAMEOUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your output will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border: 0px solid black;" width="64"&gt;DEPTNO&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px solid black; border-left: none;" width="94"&gt;PREV_DEPT&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px solid black; border-left: none;" width="64"&gt;ENAME&lt;/TD&gt;&lt;TD class="xl64" style="border: 0px solid black; border-left: none;" width="82"&gt;ENAME_OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;NULL&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E,F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;G&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E,F,G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;H&lt;/TD&gt;&lt;TD class="xl63" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E,F,G,H&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change the custom function as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$L_DEPTNO = $P_DEPTNO;&lt;/P&gt;&lt;P&gt;$L_PREV_DEPTNO = $P_PREV_DEPTNO ;&lt;/P&gt;&lt;P&gt;$L_ENAME = $P_ENAME ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( $L_PREV_DEPTNO is null&amp;nbsp; )&lt;/P&gt;&lt;P&gt; begin&lt;/P&gt;&lt;P&gt;&amp;nbsp; $L_ENAMEOUT = '';&lt;/P&gt;&lt;P&gt;&amp;nbsp; $L_ENAMEOUT = $L_ENAME;&lt;/P&gt;&lt;P&gt; end &lt;/P&gt;&lt;P&gt; else &lt;/P&gt;&lt;P&gt; begin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $L_ENAMEOUT = $L_ENAMEOUT || ','|| $L_ENAME ;&lt;/P&gt;&lt;P&gt; end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return $L_ENAMEOUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your output will become&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="324"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border: 0px solid black;" width="64"&gt;DEPTNO&lt;/TD&gt;&lt;TD class="xl66" style="border: 0px solid black; border-left: none;" width="94"&gt;PREV_DEPT&lt;/TD&gt;&lt;TD class="xl66" style="border: 0px solid black; border-left: none;" width="64"&gt;ENAME&lt;/TD&gt;&lt;TD class="xl66" style="border: 0px solid black; border-left: none;" width="102"&gt;ENAME_OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;NULL&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D,E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D,E,F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;G&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D,E,F,G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border: 0px solid black; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;20&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;H&lt;/TD&gt;&lt;TD class="xl65" style="border: 0px solid black; border-left: none; border-top: none;"&gt;A,B,C,D,E,F,G,H&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 13:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102922#M3642865</guid>
      <dc:creator>venkataramana_paidi</dc:creator>
      <dc:date>2014-03-04T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function related issue</title>
      <link>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102923#M3642866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;The inital argument input parameter $PREV_NAME = NULL is declared at work flow level so the &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;below fuction is calling for others rows then it is alwasys taking the NULL value&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custom Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;if ( $PREV_NAME IS NULL )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;$PREV_NAME = $CURR_NAME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;$PREV_NAME = $PREV_NAME || ',' || $CURR_NAME;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;Return $PREV_NAME;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;Output for this custom function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="PADDING-BOTTOM: 7.5pt; PADDING-LEFT: 7.5pt; WIDTH: 70%; PADDING-RIGHT: 7.5pt; PADDING-TOP: 7.5pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;E&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;F&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;G&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: black 1px solid; padding: 7.5pt;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman', 'serif'; font-size: 12pt;"&gt;H&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;parameter should be initailse as a starting otherwise getting an errors.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Edu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 13:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/custom-function-related-issue/qaa-p/10102923#M3642866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T13:52:36Z</dc:date>
    </item>
  </channel>
</rss>

