<?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 program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732443#M634525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i got the outputnow ..&lt;/P&gt;&lt;P&gt;i have one doubt..&lt;/P&gt;&lt;P&gt;it will process all the records one by one, which i had given the text file.. like in session process, &lt;/P&gt;&lt;P&gt;but in my case , it processing only onr record and for each and every record it is showing ok code..&lt;/P&gt;&lt;P&gt;may ie text file problem i think..&lt;/P&gt;&lt;P&gt;if possible can u pls send me one text file &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2007 05:39:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-11T05:39:56Z</dc:date>
    <item>
      <title>bdc program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732441#M634523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arun,&lt;/P&gt;&lt;P&gt;i written the program .. can u pls check is it correct or not ?&lt;/P&gt;&lt;P&gt;bye iam not getting any output.&lt;/P&gt;&lt;P&gt;pls help me what should i do?&lt;/P&gt;&lt;P&gt;here is the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZBDCVENDOR&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;DATA: BEGIN OF ITAB OCCURS 2,&lt;/P&gt;&lt;P&gt;LIFNR_001(016) TYPE C,&lt;/P&gt;&lt;P&gt;EKORG_002(004) TYPE C,&lt;/P&gt;&lt;P&gt;KTOKK_003(004) TYPE C,&lt;/P&gt;&lt;P&gt;ANRED_004(015) TYPE C,&lt;/P&gt;&lt;P&gt;NAME1_005(035) TYPE C,&lt;/P&gt;&lt;P&gt;SORTL_006(010) TYPE C,&lt;/P&gt;&lt;P&gt;LAND1_007(003) TYPE C,&lt;/P&gt;&lt;P&gt;SPRAS_008(002) TYPE C,&lt;/P&gt;&lt;P&gt;WAERS_009(005) TYPE C,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BDC LIKE BDCDATA OCCURS 2 WITH HEADER LINE.&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_dataset using dataset.&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;PERFORM READ_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;CLEAR BDC.&lt;/P&gt;&lt;P&gt;REFRESH BDC.&lt;/P&gt;&lt;P&gt;perform BDC_DYNPRO using 'SAPMF02K' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'RF02K-KTOKK'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RF02K-LIFNR' ITAB-LIFNR_001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RF02K-EKORG' ITAB-EKORG_002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RF02K-KTOKK' ITAB-KTOKK_003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02K' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'LFA1-SPRAS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFA1-ANRED' ITAB-ANRED_004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFA1-NAME1' ITAB-NAME1_005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFA1-SORTL' ITAB-SORTL_006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFA1-LAND1' ITAB-LAND1_007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFA1-SPRAS' ITAB-SPRAS_008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02K' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'LFA1-KUNNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02K' '0130'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'LFBK-BANKS(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '=ENTR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02K' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'LFM1-WAERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'LFM1-WAERS' ITAB-WAERS_009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02K' '0320'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'RF02K-LIFNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '=ENTR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSPO1' '0300'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '=YES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_transaction using 'XK01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;*********************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIRST FM -- OPEN GROUP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM OPEN_GROUP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;GROUP = 'TEST'&lt;/P&gt;&lt;P&gt;KEEP = 'X'&lt;/P&gt;&lt;P&gt;USER = 'SAPUSER'.&lt;/P&gt;&lt;P&gt;ENDFORM. "OPEN GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SECOND FM -- READ_DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM READ_DATA.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'H:\EMP.TXT'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "READ DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;THIRD FM -- BDC_DYNPRO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING P_PROG&lt;/P&gt;&lt;P&gt;P_SCR.&lt;/P&gt;&lt;P&gt;BDC-PROGRAM = P_PROG.&lt;/P&gt;&lt;P&gt;BDC-DYNPRO = P_SCR.&lt;/P&gt;&lt;P&gt;BDC-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;APPEND BDC.&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FOURTH FM -- BDC_FILED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING P_FNAM&lt;/P&gt;&lt;P&gt;P_FVAL.&lt;/P&gt;&lt;P&gt;CLEAR BDC.&lt;/P&gt;&lt;P&gt;BDC-FNAM = P_FNAM.&lt;/P&gt;&lt;P&gt;BDC-FVAL = P_FVAL.&lt;/P&gt;&lt;P&gt;APPEND BDC.&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FIFTH FM -- CLOSE_GROUP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;FORM CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;ENDFORM. " CLOSE_GROUP&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;pandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 04:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732441#M634523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T04:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: bdc program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732442#M634524</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;Try  uncommenting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;*perform bdc_transaction using 'XK01'.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732442#M634524</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2007-09-11T05:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: bdc program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732443#M634525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i got the outputnow ..&lt;/P&gt;&lt;P&gt;i have one doubt..&lt;/P&gt;&lt;P&gt;it will process all the records one by one, which i had given the text file.. like in session process, &lt;/P&gt;&lt;P&gt;but in my case , it processing only onr record and for each and every record it is showing ok code..&lt;/P&gt;&lt;P&gt;may ie text file problem i think..&lt;/P&gt;&lt;P&gt;if possible can u pls send me one text file &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;pandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732443#M634525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T05:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: bdc program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732444#M634526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pandu,&lt;/P&gt;&lt;P&gt;     First u have to down load the file.After that open the session using the FM BDC_open_group.Loop the internal table ITAB and after that u haven't used BDC_insert to insert the internal table data to BDC table...........then close the Session using BDC_close_group...........try like this....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 05:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/2732444#M634526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T05:48:21Z</dc:date>
    </item>
  </channel>
</rss>

