<?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 BDC Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3527404#M848596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls can you help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create multple materials using BDC program&lt;/P&gt;&lt;P&gt;if you have any sample code pls can you send me.&lt;/P&gt;&lt;P&gt;one more thing that BDC program i want to make it has BAPI&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;MARS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 10:53:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T10:53:30Z</dc:date>
    <item>
      <title>BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3527404#M848596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls can you help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create multple materials using BDC program&lt;/P&gt;&lt;P&gt;if you have any sample code pls can you send me.&lt;/P&gt;&lt;P&gt;one more thing that BDC program i want to make it has BAPI&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;MARS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3527404#M848596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3527405#M848597</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;See, as the no of views depends upon the material types and industry sector. It is very difficult and complex to use BDC for data uploading. To select view, you can use the FM 'MATERIAL_BTCI_SELECTION_NEW'. If you have very few material type then you can use different recording for each material type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think the better way is to use the BAPI 'BAPI_MATERIAL_SAVEDATA' for your purpose. It will autometically take care of the views. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codeREPORT z34332_bdc_create_material .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: la_headdata type BAPIMATHEAD,&lt;/P&gt;&lt;P&gt;la_clientdata type BAPI_MARA,&lt;/P&gt;&lt;P&gt;la_CLIENTDATAX type BAPI_MARAX,&lt;/P&gt;&lt;P&gt;la_return type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_materialdescription type table of BAPI_MAKT,&lt;/P&gt;&lt;P&gt;wa_materialdescription like line of i_materialdescription.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;la_headdata-MATERIAL = '000000000000000004'.&lt;/P&gt;&lt;P&gt;la_headdata-IND_SECTOR = 'M'.&lt;/P&gt;&lt;P&gt;la_headdata-MATL_TYPE = 'FERT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;la_clientdata-BASE_UOM = 'FT3'.&lt;/P&gt;&lt;P&gt;la_CLIENTDATAX-BASE_UOM = 'X'.&lt;/P&gt;&lt;P&gt;la_clientdata-MATL_GROUP = '01'.&lt;/P&gt;&lt;P&gt;la_CLIENTDATAX-MATL_GROUP = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_materialdescription = 'TEST'.&lt;/P&gt;&lt;P&gt;append wa_materialdescription to i_materialdescription.&lt;/P&gt;&lt;P&gt;clear: wa_materialdescription.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;headdata = la_headdata&lt;/P&gt;&lt;P&gt;CLIENTDATA = la_clientdata&lt;/P&gt;&lt;P&gt;CLIENTDATAX = la_CLIENTDATAX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLANTDATA = &lt;/P&gt;&lt;P&gt;PLANTDATAX = &lt;/P&gt;&lt;P&gt;FORECASTPARAMETERS = &lt;/P&gt;&lt;P&gt;FORECASTPARAMETERSX = &lt;/P&gt;&lt;P&gt;PLANNINGDATA = &lt;/P&gt;&lt;P&gt;PLANNINGDATAX = &lt;/P&gt;&lt;P&gt;STORAGELOCATIONDATA = &lt;/P&gt;&lt;P&gt;STORAGELOCATIONDATAX = &lt;/P&gt;&lt;P&gt;VALUATIONDATA = &lt;/P&gt;&lt;P&gt;VALUATIONDATAX = &lt;/P&gt;&lt;P&gt;WAREHOUSENUMBERDATA = &lt;/P&gt;&lt;P&gt;WAREHOUSENUMBERDATAX = &lt;/P&gt;&lt;P&gt;SALESDATA = &lt;/P&gt;&lt;P&gt;SALESDATAX = &lt;/P&gt;&lt;P&gt;STORAGETYPEDATA = &lt;/P&gt;&lt;P&gt;STORAGETYPEDATAX = &lt;/P&gt;&lt;P&gt;FLAG_ONLINE = ' ' &lt;/P&gt;&lt;P&gt;FLAG_CAD_CALL = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN = la_return&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;MATERIALDESCRIPTION = i_materialdescription&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNITSOFMEASURE = &lt;/P&gt;&lt;P&gt;UNITSOFMEASUREX = &lt;/P&gt;&lt;P&gt;INTERNATIONALARTNOS = &lt;/P&gt;&lt;P&gt;MATERIALLONGTEXT = &lt;/P&gt;&lt;P&gt;TAXCLASSIFICATIONS = &lt;/P&gt;&lt;P&gt;RETURNMESSAGES = &lt;/P&gt;&lt;P&gt;PRTDATA = &lt;/P&gt;&lt;P&gt;PRTDATAX = &lt;/P&gt;&lt;P&gt;EXTENSIONIN = &lt;/P&gt;&lt;P&gt;EXTENSIONINX = &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: la_return-TYPE, ',', la_return-MESSAGE.&lt;/P&gt;&lt;P&gt;clear: la_headdata, la_return, la[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 10:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3527405#M848597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T10:58:32Z</dc:date>
    </item>
  </channel>
</rss>

