<?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: Convert value during a join statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515301#M237244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before passing values to SELECT, try using conversion routines. That will help to extract data correctly. (If i have correctly understood your problem).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 21:01:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-14T21:01:37Z</dc:date>
    <item>
      <title>Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515300#M237243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;Is there a way to convert value of a table field during a select statement? I have a sql statement that doesn't work because a field has zero characters prefix. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBAN&lt;SUB&gt;BANFN EBAN&lt;/SUB&gt;BNFPO EBAN&lt;SUB&gt;STATU EBAN&lt;/SUB&gt;BSART EBAN&lt;SUB&gt;MENGE EBAN&lt;/SUB&gt;LFDAT EKKO&lt;SUB&gt;AEDAT EKKO&lt;/SUB&gt;EBELN EKKO~LIFNR&lt;/P&gt;&lt;P&gt;      INTO TABLE GT_RFQ_DATA&lt;/P&gt;&lt;P&gt;      FROM EBAN JOIN EKKO ON EKKO&lt;SUB&gt;SUBMI = EBAN&lt;/SUB&gt;BANFN&lt;/P&gt;&lt;P&gt; EBAN&lt;SUB&gt;BANFN = '0003006807' and EKKO&lt;/SUB&gt;SUBMI = '3006807'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do a join with that condition? Will reward points. &lt;/P&gt;&lt;P&gt;Note: I know how to get those data without a join, so I will not give out reward points for those advices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all of your helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 20:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515300#M237243</guid>
      <dc:creator>david_nguyen3</dc:creator>
      <dc:date>2006-08-14T20:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515301#M237244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before passing values to SELECT, try using conversion routines. That will help to extract data correctly. (If i have correctly understood your problem).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515301#M237244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515302#M237245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the fucntion module CONVERSION_EXIT_ALPHA_INPUT to pad with leading Zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to convert the value of &lt;/P&gt;&lt;P&gt;EKKO&lt;SUB&gt;SUBMI = '3006807' to EKKO&lt;/SUB&gt;SUBMI = '0003006807'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to remove leading zeros&lt;/P&gt;&lt;P&gt;use CONVERSION_EXIT_ALPHA_OUTPUT function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: v_submi like ekko-submi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_submi = '3006807'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        INPUT  = v_submi&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT = v_submi&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         OTHERS = 1.&lt;/P&gt;&lt;P&gt;SELECT EBAN&lt;SUB&gt;BANFN EBAN&lt;/SUB&gt;BNFPO EBAN&lt;SUB&gt;STATU EBAN&lt;/SUB&gt;BSART EBAN&lt;SUB&gt;MENGE EBAN&lt;/SUB&gt;LFDAT EKKO&lt;SUB&gt;AEDAT EKKO&lt;/SUB&gt;EBELN EKKO~LIFNR&lt;/P&gt;&lt;P&gt;INTO TABLE GT_RFQ_DATA&lt;/P&gt;&lt;P&gt;FROM EBAN JOIN EKKO ON EKKO&lt;SUB&gt;SUBMI = EBAN&lt;/SUB&gt;BANFN&lt;/P&gt;&lt;P&gt;EBAN&lt;SUB&gt;BANFN = '0003006807' and EKKO&lt;/SUB&gt;SUBMI = v_submi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515302#M237245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515303#M237246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish, &lt;/P&gt;&lt;P&gt;the values are unknown before SELECT and they are in 2 table EKKO, EBAN as you see in the SELECT. Therefore , there are no way to get value and convert it before SELECT. &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515303#M237246</guid>
      <dc:creator>david_nguyen3</dc:creator>
      <dc:date>2006-08-14T21:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515304#M237247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. But the thing is that i want to &amp;lt;b&amp;gt;join EBAN with EKKO on the condition &lt;/P&gt;&lt;P&gt;EKKO&lt;SUB&gt;SUBMI = EBAN&lt;/SUB&gt;BANFN.&amp;lt;/b&amp;gt; The example values is to show the difference between those values. I want to get a result set that match the condition not just one record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515304#M237247</guid>
      <dc:creator>david_nguyen3</dc:creator>
      <dc:date>2006-08-14T21:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515305#M237248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case i think there is no way to fetch the data with join statment as the value in one table is padded with leading 0's and in other table it is padded with leading 0's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515305#M237248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515306#M237249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am thinking the same way to but I just want to investigate it. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515306#M237249</guid>
      <dc:creator>david_nguyen3</dc:creator>
      <dc:date>2006-08-14T21:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert value during a join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515307#M237250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sid is right. As the link between 2 tables is not clear. One table field is padded with zeros and second is not padded with zeroes.&lt;/P&gt;&lt;P&gt;Just to try - can you see with LIKE in WHERE condition if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 21:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-value-during-a-join-statement/m-p/1515307#M237250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T21:37:29Z</dc:date>
    </item>
  </channel>
</rss>

