<?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: passing parameter in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060640#M724951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bujji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_POSONO is 10 char only. But 'REFERENCE' which is from the z.table is  16 char .In the select statement how can I take first 10 char of 'REFERENCE' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 05:04:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T05:04:25Z</dc:date>
    <item>
      <title>passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060636#M724947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created one function module in which i need to pass PO/SO number from standard EKKO/VBAK tables through the select option parameter S_POSONO. Inside the function module I have a select query which fetches the records from a Z-table which has a field called 'REFERENCE' which is 16-char long. Hence the length mismatches with PO/SO no which is 10-char long. the first 10-char from 'REFERENCE' is PO/SO number, next 3-char is line-item num, and the last three char is schedule item num. It is required to match only first 10-char with the parameter passed i.e, S_POSONO and display only those datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module is as follows..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'YFIIN_RETRIEVE_SOURCE_DATA'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   LT_RANGE_BUKRS          = S_BUKRS[]&lt;/P&gt;&lt;P&gt;   LT_RANGE_DOCNO          = S_POSONO[]&lt;/P&gt;&lt;P&gt;   LT_RANGE_DOCDATE        = S_DATUM[]&lt;/P&gt;&lt;P&gt;   LT_RANGE_CURRENCY       = S_FCURR[]&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    IT_TEMEXPOSU            = LT_TEMEXPOSU&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INVALID_SELECTION       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                  = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Source code inside function module:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  SELECT * FROM ZFIGL_TEMEXPOSU INTO  TABLE IT_TEMEXPOSU&lt;/P&gt;&lt;P&gt;                                 WHERE   COMPANY_CODE IN LT_RANGE_BUKRS&lt;/P&gt;&lt;P&gt;                                 AND  currency in LT_RANGE_CURRENCY&lt;/P&gt;&lt;P&gt;                                 and  REFERENCE in LT_RANGE_DOCNO&lt;/P&gt;&lt;P&gt;                                 and  doc_date in LT_RANGE_docdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; SELECT COMPANY_CODE ATTRIBUTE_01 REFERENCE CREATION_DATE FOREIGN_CURR                                                                &lt;/P&gt;&lt;P&gt;           FROM TEMT_RAWEXPOS APPENDING CORRESPONDING FIELDS OF &lt;/P&gt;&lt;P&gt;               TABLE IT_TEMEXPOSU WHERE COMPANY_CODE IN  LT_RANGE_BUKRS&lt;/P&gt;&lt;P&gt;                                 AND REFERENCE in LT_RANGE_DOCNO&lt;/P&gt;&lt;P&gt;                                 AND CREATION_DATE IN  LT_RANGE_DOCDATE&lt;/P&gt;&lt;P&gt;                                 AND FOREIGN_CURR IN LT_RANGE_CURRENCY.&lt;/P&gt;&lt;P&gt;   ENDIF. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Import Parameter of Function Modules :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LT_RANGE_BUKRS   - type - BUKRS&lt;/P&gt;&lt;P&gt;LT_RANGE_DOCNO  - type - EBELN&lt;/P&gt;&lt;P&gt;LT_RANGE_DOCDATE - type - DOKDATS&lt;/P&gt;&lt;P&gt;LT_RANGE_CURRENCY - type - WAERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to solve this problem..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060636#M724947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060637#M724948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using split command divide the reference variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060637#M724948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060638#M724949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;Yes the reply from p498863  solves ur prob if u use split condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060638#M724949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060639#M724950</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;  In the source code of the function module, you just need to prepare one range for PO/SO number which is coming from first 10 characters of S_POSONO. Then after you need to fetch the data and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 04:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060639#M724950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T04:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060640#M724951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bujji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_POSONO is 10 char only. But 'REFERENCE' which is from the z.table is  16 char .In the select statement how can I take first 10 char of 'REFERENCE' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 05:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060640#M724951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T05:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060641#M724952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram Tej,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Read all the records without Checking REFERENCE field with LT_RANGE_DOCNO into an internal Tbale. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then looping at that internal table delete records from the same internal table where REFERENCE(10) &amp;lt;&amp;gt; LT_RANGE_DOCNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may help ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 05:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060641#M724952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T05:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060642#M724953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can fill your range table like below.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN = 'I'.&lt;/P&gt;&lt;P&gt;OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;LOW = PO/SO followed with a character ('XXXXXXXXXX*')&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;I am not sure but you can try with this. I hope this will works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 05:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameter-in-function-module/m-p/3060642#M724953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T05:10:36Z</dc:date>
    </item>
  </channel>
</rss>

