<?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: Cerating Po Using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570570#M1078514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radhika,&lt;/P&gt;&lt;P&gt;  I guess that you are calling this BAPI through your program and not running the BAPI directly.&lt;/P&gt;&lt;P&gt;  You might have passed the vendor number somewhere in your program as wa_lfa1-lifnr = '1015'.  but there is 'ALPHA' conversion exit for LIFNR.  so you need to pass the value as stated below.&lt;/P&gt;&lt;P&gt;wa_lfa1-lifnr = '0000001015'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this can solve your problem.  Not only vendor number, you have to check all other hard coded fields, whether there is any 'ALPHA' conversion is there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Kishore Kumar M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 11:38:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-08T11:38:30Z</dc:date>
    <item>
      <title>Cerating Po Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570567#M1078511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating purchase order using bapi ''BAPI_PO_CREATE'' but it will return a message like ' No master record exists for vendor 1015 '. But i check in lfa1 table this record will exits.&lt;/P&gt;&lt;P&gt;please tell me what is this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570567#M1078511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cerating Po Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570568#M1078512</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;problem is with the alpha conversion of the vendor number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;&lt;P&gt;vendor_variable = '1015'&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 = vendor_variable&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = vendor_variable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the function call vendor_variable will be&lt;/P&gt;&lt;P&gt;0000001015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: w_vendor       LIKE EKKO-LIFNR,
      w_vendor_n(10) TYPE N.

* Lets assign w_vendor the vendor number 1015
  w_vendor = '1015'.

* Convert vendor number 1015 to vendor number 0000001015
  w_vendor_n = w_vendor.

* Now use w_vendor_n in the BAPI.
  CALL FUNCTION 'BAPI_PO_CREATE' ...


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to use the new vendor number with preceeding 0's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkaram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Omkaram Yanamala on Oct 8, 2008 5:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570568#M1078512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cerating Po Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570569#M1078513</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;It can be the one mentioned in the above reply to yur query. If same is not the case then you need to share the BAPI call Code....to get more information....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570569#M1078513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cerating Po Using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570570#M1078514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radhika,&lt;/P&gt;&lt;P&gt;  I guess that you are calling this BAPI through your program and not running the BAPI directly.&lt;/P&gt;&lt;P&gt;  You might have passed the vendor number somewhere in your program as wa_lfa1-lifnr = '1015'.  but there is 'ALPHA' conversion exit for LIFNR.  so you need to pass the value as stated below.&lt;/P&gt;&lt;P&gt;wa_lfa1-lifnr = '0000001015'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this can solve your problem.  Not only vendor number, you have to check all other hard coded fields, whether there is any 'ALPHA' conversion is there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Kishore Kumar M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 11:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cerating-po-using-bapi/m-p/4570570#M1078514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T11:38:30Z</dc:date>
    </item>
  </channel>
</rss>

