<?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: Type conversion problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988982#M952954</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;Use 'conversion_exit_alpha_input' function module to get resolve your problem. Pass the order number in the message variable and use the same for your further process.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bujji on Jun 17, 2008 1:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 11:31:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T11:31:53Z</dc:date>
    <item>
      <title>Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988981#M952953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus, &lt;/P&gt;&lt;P&gt;i have written a bdc for order creation then i extract order no from message i.e.BDCMSGCOLL-MSGV1. &lt;/P&gt;&lt;P&gt;then i have have search data from vbap from that order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if ( m_tab1-MSGID = 'V1' and m_tab1-msgnr = 311 ).&lt;/P&gt;&lt;P&gt;     orderno = m_tab1-msgv2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : orderno like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbap&lt;/P&gt;&lt;P&gt;where vbeln = orderno.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;shippoint = vbap-VSTEL.&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;but problem is that its not finding the data as vbeln is extract frm msgv2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for : orderno = 200017445&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so while debuggin when i put 0 in order no i.e - 0200017445&lt;/P&gt;&lt;P&gt;then its working fine. &lt;/P&gt;&lt;P&gt;please can u help me , how to handle this code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while de&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988981#M952953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988982#M952954</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;Use 'conversion_exit_alpha_input' function module to get resolve your problem. Pass the order number in the message variable and use the same for your further process.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bujji on Jun 17, 2008 1:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988982#M952954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988983#M952955</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;if ( m_tab1-MSGID = 'V1' and m_tab1-msgnr = 311 ).&lt;/P&gt;&lt;P&gt;orderno = m_tab1-msgv2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;use conversion exit here:&lt;/P&gt;&lt;P&gt;call function module 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass the returned value to the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : orderno like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbap&lt;/P&gt;&lt;P&gt;where vbeln = orderno.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;shippoint = vbap-VSTEL.&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;Thanks,&lt;/P&gt;&lt;P&gt;Keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988983#M952955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988984#M952956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Please see the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare the data types as required&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : v_input TYPE bdcmsgcoll-msgv2,&lt;/P&gt;&lt;P&gt;       v_output TYPE vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I have taken up the example you had given&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;v_input = '200017445'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the FM to convert the number to proper format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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_input&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    output = v_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The varible would have the formatted value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Barada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988984#M952956</guid>
      <dc:creator>Barada_Swain</dc:creator>
      <dc:date>2008-06-17T11:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988985#M952957</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;1. declare numc variable of length 10.&lt;/P&gt;&lt;P&gt;2. pass the order number to numc variable.&lt;/P&gt;&lt;P&gt;3. use the numc variable in your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: n_c(10) type n,&lt;/P&gt;&lt;P&gt;         order_no type BDC_VTEXT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n_c = order_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ...&lt;/P&gt;&lt;P&gt;vbeln = n_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan Suburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988985#M952957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988986#M952958</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;data : orderno like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA : L_ORDNO(10).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;INPUT  = ORDERNO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IMPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;OUTPUT = L_ORDNO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from vbap&lt;/P&gt;&lt;P&gt;where vbeln = &lt;STRONG&gt;L_ORDNO&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;shippoint = vbap-VSTEL.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion-problem/m-p/3988986#M952958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T11:44:17Z</dc:date>
    </item>
  </channel>
</rss>

