<?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: Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634196#M875249</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;       DDSHSELOPT in this structure length for low is 45 but u r &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saying this length is 24.i didnt get u what exact the problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is.If u dont  mine could u plz explain in clear way.&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;&lt;/P&gt;&lt;P&gt;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 05:16:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T05:16:04Z</dc:date>
    <item>
      <title>Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634193#M875246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All there,&lt;/P&gt;&lt;P&gt;I am writing a function module the coding for that is like this&lt;/P&gt;&lt;P&gt;FUNCTION ZBAPI_CUST_MAT_NUM.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(SALES_ORG) TYPE  KNMT_REF-VKORG OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(DISTR_CHANNEL) TYPE  KNMT_REF-VTWEG OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(CUSTOMER_NUMBER) TYPE  KNMT_REF-KUNNR OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(MATERIAL_NUMBER) TYPE  KNMT_REF-MATNR OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(CUSTOMER_DESCR) TYPE  KNMT_REF-KDPTX OPTIONAL&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      OUTTAB STRUCTURE  ZVBAP OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT KDMAT FROM KNMT_REF INTO TABLE OUTTAB WHERE&lt;/P&gt;&lt;P&gt;*VKORG EQ VKORG AND VTWEG EQ VTWEG AND KUNNR EQ KUNNR AND MATNR EQ MATNR AND KDPTX EQ KDPTX.&lt;/P&gt;&lt;P&gt;*ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data i_selopt like ddshselopt occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_whereclause type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SALES_ORG = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; i_selopt-shlpname       = 'KNMT_REF'.&lt;/P&gt;&lt;P&gt; i_selopt-shlpfield      = 'VKORG'.&lt;/P&gt;&lt;P&gt; i_selopt-sign           = 'I'.&lt;/P&gt;&lt;P&gt; i_selopt-option         = 'EQ'.&lt;/P&gt;&lt;P&gt; i_selopt-low            = SALES_ORG.&lt;/P&gt;&lt;P&gt; append  i_selopt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if DISTR_CHANNEL = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; i_selopt-shlpname       = 'KNMT_REF'.&lt;/P&gt;&lt;P&gt; i_selopt-shlpfield      = 'VTWEG'.&lt;/P&gt;&lt;P&gt; i_selopt-sign           = 'I'.&lt;/P&gt;&lt;P&gt; i_selopt-option         = 'EQ'.&lt;/P&gt;&lt;P&gt; i_selopt-low            =  DISTR_CHANNEL.&lt;/P&gt;&lt;P&gt; append  i_selopt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if CUSTOMER_NUMBER = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; i_selopt-shlpname       = 'KNMT_REF'.&lt;/P&gt;&lt;P&gt; i_selopt-shlpfield      = 'KUNNR'.&lt;/P&gt;&lt;P&gt; i_selopt-sign           = 'I'.&lt;/P&gt;&lt;P&gt; i_selopt-option         = 'EQ'.&lt;/P&gt;&lt;P&gt; i_selopt-low            =  CUSTOMER_NUMBER.&lt;/P&gt;&lt;P&gt; append  i_selopt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if MATERIAL_NUMBER = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; i_selopt-shlpname       = 'KNMT_REF'.&lt;/P&gt;&lt;P&gt; i_selopt-shlpfield      = 'MATNR'.&lt;/P&gt;&lt;P&gt; i_selopt-sign           = 'I'.&lt;/P&gt;&lt;P&gt; i_selopt-option         = 'EQ'.&lt;/P&gt;&lt;P&gt; i_selopt-low            =  MATERIAL_NUMBER.&lt;/P&gt;&lt;P&gt; append  i_selopt.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if CUSTOMER_DESCR = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; i_selopt-shlpname       = 'KNMT_REF'.&lt;/P&gt;&lt;P&gt; i_selopt-shlpfield      = 'KDPTX'.&lt;/P&gt;&lt;P&gt; i_selopt-sign           = 'I'.&lt;/P&gt;&lt;P&gt; i_selopt-option         = 'EQ'.&lt;/P&gt;&lt;P&gt; i_selopt-low            =  CUSTOMER_DESCR.&lt;/P&gt;&lt;P&gt; append  i_selopt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_CONV_SELOPT_TO_WHERECLAUSE'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        where_clause = v_whereclause&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        selopt_tab   = i_selopt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  KDMAT FROM KNMT_REF INTO TABLE OUTTAB WHERE (V_WHERECLAUSE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the last condition ie in the costumer_descr it is not taking value more than length 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pl suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;helpful answer will definatly rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 04:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634193#M875246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T04:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634194#M875247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              In outtab u may given length 20 for Material Number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description.Actual length for this is 35.I am expecting this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be the problem in ur case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(KDMAT	CHAR	35	Material Number Used by Customer)&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;&lt;/P&gt;&lt;P&gt;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 04:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634194#M875247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T04:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634195#M875248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  1.The problem in the customer_desc for taking the 20 char length for the material description is , the selopt-low length is 24 char only.&lt;/P&gt;&lt;P&gt; 2.so it is opting to 24 chars with including spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reward if helpful(Don't forget).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 04:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634195#M875248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T04:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634196#M875249</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;       DDSHSELOPT in this structure length for low is 45 but u r &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saying this length is 24.i didnt get u what exact the problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is.If u dont  mine could u plz explain in clear way.&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;&lt;/P&gt;&lt;P&gt;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 05:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3634196#M875249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T05:16:04Z</dc:date>
    </item>
  </channel>
</rss>

