<?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: BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631712#M605182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC can be done in following ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do BDC recording from SHDB transaction and use that source code in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a table for bdc with BDCDATA strucutre and message class with BDCMSGCOLL strucuture and call transaction you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use function module..&lt;/P&gt;&lt;P&gt;bdc_open_group&lt;/P&gt;&lt;P&gt;bdc_insert_group&lt;/P&gt;&lt;P&gt;Bdc_close_group&lt;/P&gt;&lt;P&gt;to create  BDC session and user can execute from SM35 Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 10:38:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T10:38:57Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631708#M605178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CAN I CALL A BDC PROGRAM FROM A REPORT ? HOW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631708#M605178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631709#M605179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes we can write BDC program in a report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically we use reports to do BDC's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631709#M605179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631710#M605180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Refer to this link,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="331765"&gt;&lt;/A&gt;&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;Sudha S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631710#M605180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631711#M605181</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;you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction tcode using bdcdata&lt;/P&gt;&lt;P&gt;mode 'N' update 'S' messages into bdcmsgcoll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bdc_opengroup&lt;/P&gt;&lt;P&gt;bdc_insert&lt;/P&gt;&lt;P&gt;bdc_closegroup for session methods,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631711#M605181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631712#M605182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC can be done in following ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do BDC recording from SHDB transaction and use that source code in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a table for bdc with BDCDATA strucutre and message class with BDCMSGCOLL strucuture and call transaction you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use function module..&lt;/P&gt;&lt;P&gt;bdc_open_group&lt;/P&gt;&lt;P&gt;bdc_insert_group&lt;/P&gt;&lt;P&gt;Bdc_close_group&lt;/P&gt;&lt;P&gt;to create  BDC session and user can execute from SM35 Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631712#M605182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631713#M605183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is code for BDC upload in  Report:&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt; 	Give the t-code shdb in the command field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Click the new recording button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Give a name to the recording and the t-code you want to record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;          Recording                           : ZMAT_UPLOAD&lt;/P&gt;&lt;P&gt;          Transaction code                : MM01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	When you click save, it takes you to t-code (MM01) you would like to do recording for upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Record carefully. Fill in the details you want to upload. In this case I have entered the material no, industry sector, material type, material description and basic unit of measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Then the Transaction recorder &amp;#150; edit recording ZMAT_UPLOAD screen is displayed. You can edit your recording or just save it and click back button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Select your recording and click create program button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Enter the program name say ZMAT_UPLOAD.Select the transfer from recording option. Save it.Give the program title, type as executable program and click source code button at the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	The following piece of code is generated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&lt;/P&gt;&lt;P&gt;no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                       'MYMATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                       'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                       'ZOH'. &lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                       'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                       'MY MATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                       'G'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                       'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	From the above code it is clear that recording has been created using matnr = mymaterial10 , industry sector = p , material type = zoh , description = my material10 , basic unit of measure = g. For our case I have assumed industry sector and material type to be constant and have not included in flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	The colored lines in the below code are the changes made to the sap generated program , to upload our data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Programmed by : Kavitha Bhuvaneswaran..................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description : program to upload new materials...........................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technique used : BDC recording.................................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;types declaration..........................................................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_mat,&lt;/P&gt;&lt;P&gt;   matnr(20),&lt;/P&gt;&lt;P&gt;   desc(50),&lt;/P&gt;&lt;P&gt;   uom(5),&lt;/P&gt;&lt;P&gt;end of t_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;internal table and workarea declaration.......................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : i_mat type table of t_mat.&lt;/P&gt;&lt;P&gt;data : wa_mat type t_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;moving the flat file content to internal table................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         FILETYPE                                      = 'DAT'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;         data_tab                                           = i_mat&lt;/P&gt;&lt;P&gt;         .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mat into wa_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                   'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                    wa_mat-matnr.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                    'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                    'ZOH'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                    wa_mat-desc.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                    wa_mat-uom.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                    'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Test the above modified program. We get a selection screen as below.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	We can choose either the session or call transaction method. In our case we continue with session method. Give a name to session say ZMAT_UPLOAD and execute. Then we get the prompt as below.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Enter your flat file name and click transfer. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	We get the below list.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Then go to SM35 and select your session and click process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/2631713#M605183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T10:50:00Z</dc:date>
    </item>
  </channel>
</rss>

