<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3910548#M937666</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 am trying to upload transactional data for tcode Va01,that is sales order. During the recording I give the value of sold to party or PO number only once but when I generate a program of the recording the values get repeated and I see in the subroutines that each value is there atleast twice. In the program, I created and internal table and then gave the internal table fields in the place of the values in the perform fields and created a loop for the table. When I execute the program, only once the values from the flat file are taken and the others agian old values. I am attaching the program also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZSALES_BDC&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;data:begin of itab occurs 1,&lt;/P&gt;&lt;P&gt;     auart(4) type c,&lt;/P&gt;&lt;P&gt;     vkorg(4) type c,&lt;/P&gt;&lt;P&gt;     vtweg(2) type c,&lt;/P&gt;&lt;P&gt;     spart(2) type c,&lt;/P&gt;&lt;P&gt;     bstkd(35) type c,&lt;/P&gt;&lt;P&gt;     kunnr(10) type c,&lt;/P&gt;&lt;P&gt;     mabnr(18) type c,&lt;/P&gt;&lt;P&gt;     kwmeng(15) type c,&lt;/P&gt;&lt;P&gt;     kschl(4) type c,&lt;/P&gt;&lt;P&gt;     kbetr(11) type c,&lt;/P&gt;&lt;P&gt;     pspnr(8) type c,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&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;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'D:\zsales_bdc.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAK-SPART'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                              ITAB-AUART.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                               ITAB-VKORG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                               ITAB-VTWEG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                               ITAB-SPART.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                               ITAB-BSTKD.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                               ITAB-KUNNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-MABNR(01)'&lt;/P&gt;&lt;P&gt;                               ITAB-MABNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG(01)'&lt;/P&gt;&lt;P&gt;                               ITAB-KWMENG.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PKO1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                              '1234321'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                              'N45'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                              'FOB'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                              'New York'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KOMV-KBETR(07)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KOMV-KSCHL(07)'&lt;/P&gt;&lt;P&gt;                               ITAB-KSCHL.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KOMV-KBETR(07)'&lt;/P&gt;&lt;P&gt;                               ITAB-KBETR.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=T\05'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KOMV-KSCHL(08)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCNMS' '1300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MLSTS-PSPNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=GO'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-SELNW'&lt;/P&gt;&lt;P&gt;                              ''.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-SELPS'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-PSPNR'&lt;/P&gt;&lt;P&gt;                               ITAB-PSPNR.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCNMS' '1310'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSTSD-TEDAT(03)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=GET'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(01)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(02)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(03)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLV60F' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=S\BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FPLA-BEDAT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FPLA-BEDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FPLA-BEDAR'&lt;/P&gt;&lt;P&gt;                              '07'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SICH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                              '1234321'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                              'N45'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                              'FOB'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                              'New York'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&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;As you can see in the program I gave the internal table fields only for some perform fields. But why is the same value repeating so many times and should I give the value in the flat file every single time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 11:25:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T11:25:02Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3910548#M937666</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 am trying to upload transactional data for tcode Va01,that is sales order. During the recording I give the value of sold to party or PO number only once but when I generate a program of the recording the values get repeated and I see in the subroutines that each value is there atleast twice. In the program, I created and internal table and then gave the internal table fields in the place of the values in the perform fields and created a loop for the table. When I execute the program, only once the values from the flat file are taken and the others agian old values. I am attaching the program also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZSALES_BDC&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;data:begin of itab occurs 1,&lt;/P&gt;&lt;P&gt;     auart(4) type c,&lt;/P&gt;&lt;P&gt;     vkorg(4) type c,&lt;/P&gt;&lt;P&gt;     vtweg(2) type c,&lt;/P&gt;&lt;P&gt;     spart(2) type c,&lt;/P&gt;&lt;P&gt;     bstkd(35) type c,&lt;/P&gt;&lt;P&gt;     kunnr(10) type c,&lt;/P&gt;&lt;P&gt;     mabnr(18) type c,&lt;/P&gt;&lt;P&gt;     kwmeng(15) type c,&lt;/P&gt;&lt;P&gt;     kschl(4) type c,&lt;/P&gt;&lt;P&gt;     kbetr(11) type c,&lt;/P&gt;&lt;P&gt;     pspnr(8) type c,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&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;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'D:\zsales_bdc.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAK-SPART'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                              ITAB-AUART.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                               ITAB-VKORG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                               ITAB-VTWEG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                               ITAB-SPART.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                               ITAB-BSTKD.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                               ITAB-KUNNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-MABNR(01)'&lt;/P&gt;&lt;P&gt;                               ITAB-MABNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG(01)'&lt;/P&gt;&lt;P&gt;                               ITAB-KWMENG.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PKO1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                              '1234321'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                              'N45'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                              'FOB'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                              'New York'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KOMV-KBETR(07)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KOMV-KSCHL(07)'&lt;/P&gt;&lt;P&gt;                               ITAB-KSCHL.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KOMV-KBETR(07)'&lt;/P&gt;&lt;P&gt;                               ITAB-KBETR.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=T\05'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KOMV-KSCHL(08)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCNMS' '1300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MLSTS-PSPNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=GO'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-SELNW'&lt;/P&gt;&lt;P&gt;                              ''.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-SELPS'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MLSTS-PSPNR'&lt;/P&gt;&lt;P&gt;                               ITAB-PSPNR.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCNMS' '1310'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSTSD-TEDAT(03)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=GET'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(01)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(02)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SCROLL_TAB-MARK(03)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLV60F' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=S\BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FPLA-BEDAT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FPLA-BEDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FPLA-BEDAR'&lt;/P&gt;&lt;P&gt;                              '07'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SICH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                              '1234321'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '20000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '06/03/2008'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                              'N45'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                              'FOB'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                              'New York'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&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;As you can see in the program I gave the internal table fields only for some perform fields. But why is the same value repeating so many times and should I give the value in the flat file every single time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 11:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3910548#M937666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3910549#M937667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders instead of the BDC method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 12:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3910549#M937667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T12:19:35Z</dc:date>
    </item>
  </channel>
</rss>

