<?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: SELECT ... Join problems with LIFNR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781878#M1952763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. &lt;/P&gt;&lt;P&gt;The SELECT gets the ZLIFNR field from VBAP and inserts it into gt_mytable without any problems. NAME1 should be available from LFA1 thru the LEFT JOIN . Is this last field that I am unable to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug the program I can see that gt_mytable has loaded ZLIFNR (without leading zeros). NAME1 is blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2016 01:39:00 GMT</pubDate>
    <dc:creator>luis_rod</dc:creator>
    <dc:date>2016-07-12T01:39:00Z</dc:date>
    <item>
      <title>SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781875#M1952760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(Warning! Newbie here, so please bear with me).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have an extension to our VBAP table where we store a version of the LFA1-LIFNR field. Let's call it ZLIFNR.&lt;/P&gt;&lt;P&gt;If I check the VBAP table, I can see both, the “normal” value of ZLIFNR, say 123456 and the “Unconverted value”: '0000123456'.&lt;/P&gt;&lt;P&gt;On the other side, LFA1 has a record with the proper '123456' / '0000123456' value in LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem begins when I try to do a:&lt;/P&gt;&lt;P&gt;SELECT ZLIFNR, NAME1&lt;/P&gt;&lt;P&gt;FROM VBAP LEFT JOIN LFA1 &lt;/P&gt;&lt;P&gt;ON VBAP~ZLIFNR = LFA1~LIFNR&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gt_mytable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case ZLIFNR gets inserted into GT_MYTABLE&amp;nbsp; without the leading zeroes AND the join seems to fail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? How could I retain the leading ZEROES when doing the SELECT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 20:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781875#M1952760</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2016-07-11T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781876#M1952761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leading zeros is the way data is stored in the database. When you do a select, the leading zeros are always retained by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SELECT failed, and you didn't get any values in the table, how did you know that ZLIFNR is being selected without leading zeros?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Luis Rodriguez wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In this case ZLIFNR gets inserted into GT_MYTABLE&amp;nbsp; without the leading zeroes AND the join seems to fail.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 00:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781876#M1952761</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-07-12T00:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781877#M1952762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use the data element (LIFNR) in your table VBAP-ZLIFNR ?&lt;/P&gt;&lt;P&gt;Because the domain of data element (LIFNR) has a conversion input (ALPHA) which will save with the leading zero in the database.&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;Yance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 01:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781877#M1952762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-12T01:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781878#M1952763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. &lt;/P&gt;&lt;P&gt;The SELECT gets the ZLIFNR field from VBAP and inserts it into gt_mytable without any problems. NAME1 should be available from LFA1 thru the LEFT JOIN . Is this last field that I am unable to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug the program I can see that gt_mytable has loaded ZLIFNR (without leading zeros). NAME1 is blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 01:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781878#M1952763</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2016-07-12T01:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781879#M1952764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The guys who designed the table's extension did it in base to LIFNR. In fact, if I check VBAP-LIFNR with SE16n, I can see the field with the leading zeroes. It is only when I try to JOIN it to LFA1 that I seem to have some problems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 01:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781879#M1952764</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2016-07-12T01:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781880#M1952765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"When I debug the program I can see that gt_mytable has loaded ZLIFNR (without leading zeros). NAME1 is blank."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the data not saved with leading zeros. Please use CONVERSION_EXIT_ALPHA_INPUT when saved ZLIFNR in VBAP table.&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;Yance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 02:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781880#M1952765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-12T02:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781881#M1952766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought about that. But, if that had been the case, Why does the value appear with leading zeroes when I check it with SE16n?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luis &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 02:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781881#M1952766</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2016-07-12T02:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781882#M1952767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as the total of characters (ZLIFNR) including the leading zero is 10, It will be sure that will get the data of LFA1.&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;Yance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 03:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781882#M1952767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-12T03:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781883#M1952768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasn't able to see why the data is inserted without the leading zeroes, as the DB table looks ok using SE16n.&lt;/P&gt;&lt;P&gt;Nevertheless, as further evaluation of the table contents shows that this is a sparsely populated field, it was decided to use a LOOP AT construct which, along with the proper concatenation of zeroes helped us to solve, albeit a little bit inelegantly, our problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 19:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781883#M1952768</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2016-07-12T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781884#M1952769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Google VBFA. Use SAP Standard. Avoid self-made troubles.&lt;/P&gt;&lt;P&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 22:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781884#M1952769</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-07-12T22:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781885#M1952770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean VBPA? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 23:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781885#M1952770</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-07-12T23:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT ... Join problems with LIFNR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781886#M1952771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/429332" title="https://scn.sap.com/thread/429332"&gt;Whats is VBFA Table? | SCN&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 04:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-join-problems-with-lifnr/m-p/11781886#M1952771</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-07-13T04:56:19Z</dc:date>
    </item>
  </channel>
</rss>

