<?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: Help with small code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436857#M545178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, doesn't work. I hardcoded the values in a test program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_matnr like marc-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single MATNR FROM MARC&lt;/P&gt;&lt;P&gt;  INTO LV_MATNR&lt;/P&gt;&lt;P&gt; WHERE MATNR = '000000000001275148'&lt;/P&gt;&lt;P&gt;   AND WERKS = '1020'&lt;/P&gt;&lt;P&gt;   AND ZZLIFNR = '300276'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The record exits, but its not pulling a thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2007 22:19:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-29T22:19:27Z</dc:date>
    <item>
      <title>Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436855#M545176</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;The matnr exists in the table and it should pull something in, however, the following code is not pulling the matrn:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE MATNR FROM MARC&lt;/P&gt;&lt;P&gt;  INTO LV_MATNR &lt;/P&gt;&lt;P&gt; WHERE MATNR = XVBAP-MATNR&lt;/P&gt;&lt;P&gt;   AND WERKS = XVBAP-WERKS&lt;/P&gt;&lt;P&gt;   AND ZZLIFNR = LV_ZZLIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_MATNR is type MARC-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other variables exist and i checked in the table for a record, but it does pull it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 22:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436855#M545176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T22:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436856#M545177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check in debugging ,are you getting values from  XVBAP-MATNR &lt;/P&gt;&lt;P&gt;XVBAP-WERKS ,LV_ZZLIFNR ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so use matnr value - 18 char in query and see the results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope problem might be matnr -&amp;gt; it will have less than 18 char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 22:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436856#M545177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436857#M545178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, doesn't work. I hardcoded the values in a test program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_matnr like marc-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single MATNR FROM MARC&lt;/P&gt;&lt;P&gt;  INTO LV_MATNR&lt;/P&gt;&lt;P&gt; WHERE MATNR = '000000000001275148'&lt;/P&gt;&lt;P&gt;   AND WERKS = '1020'&lt;/P&gt;&lt;P&gt;   AND ZZLIFNR = '300276'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The record exits, but its not pulling a thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 22:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436857#M545178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T22:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436858#M545179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the length of ZZLIFNR -&amp;gt; give all zero's infront of 300276&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 22:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436858#M545179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T22:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436859#M545180</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;Give the variable values/constant values with correct length so that it would fetch the data. Go to SE11 and check the length and display the data and give the same in condition if there are no conversion exits. Else use conversion exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srilatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 22:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436859#M545180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T22:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436860#M545181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just looking at ZZLIFNR i assume that it must be a 10 chracter field, to which you should pass a 10 character value(Padded with enouh 0s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on a side note, you do not need to restrict based on ZZLIFNR at all because, the key for mara is MATNR and WERKS only..&lt;/P&gt;&lt;P&gt;select * from marc into lv_matnr where&lt;/P&gt;&lt;P&gt;matnr = &amp;lt;material&amp;gt; and werks = &amp;lt;Plant&amp;gt;.&lt;/P&gt;&lt;P&gt;if marc-zzlifnr &amp;lt;&amp;gt; &amp;lt;Value you want to compare&amp;gt;.&lt;/P&gt;&lt;P&gt;do some thing.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;do something else.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2007 00:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436860#M545181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-30T00:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with small code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436861#M545182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should change the values of LIFNR as 0000300276 and check the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2007 01:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-small-code/m-p/2436861#M545182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-30T01:00:14Z</dc:date>
    </item>
  </channel>
</rss>

