<?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/3059871#M724773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to define a datatype(QUAN) in internal table.And also when i use bdc to create sales order i got this error.here i am using table control bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report YMK_BDCSALES1 no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak,vbkd,kuwev,rv45a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       auart like vbak-auart,&lt;/P&gt;&lt;P&gt;       vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;       vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;       spart like vbak-spart,&lt;/P&gt;&lt;P&gt;       bstkd like vbkd-bstkd,&lt;/P&gt;&lt;P&gt;       kunnr like kuwev-kunnr,&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;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of mabnr occurs 0,&lt;/P&gt;&lt;P&gt;         mabnr like rv45a-mabnr,&lt;/P&gt;&lt;P&gt;         end of mabnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of kwmeng occurs 0,&lt;/P&gt;&lt;P&gt;         kwmeng like rv45a-kwmeng,&lt;/P&gt;&lt;P&gt;         end of kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : FLD(20) TYPE C,&lt;/P&gt;&lt;P&gt;CNT(2) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'c:/sale.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;&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;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;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;loop at itab.&lt;/P&gt;&lt;P&gt;refresh bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT ITAB-mabnr  AT ','  into table mabnr.&lt;/P&gt;&lt;P&gt;SPLIT ITAB-kwmeng AT ','  into table kwmeng.&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-AUART'.&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;                              '=SICH'.&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;                              '2155'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-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;                              '24.05.2006'.&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;                              '14.05.2006'.&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;MOVE 1 TO CNT.&lt;/P&gt;&lt;P&gt;LOOP AT mabnr.&lt;/P&gt;&lt;P&gt;CONCATENATE 'rv45a-mabnr( ' CNT ' ) ' INTO FLD.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING FLD mabnr-mabnr.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 1 TO CNT.&lt;/P&gt;&lt;P&gt;LOOP AT kwmeng.&lt;/P&gt;&lt;P&gt;CONCATENATE 'rv45a-mabnr( ' CNT ' ) ' INTO FLD.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING FLD kwmeng-kwmeng.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 09:31:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-27T09:31:05Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3059871#M724773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to define a datatype(QUAN) in internal table.And also when i use bdc to create sales order i got this error.here i am using table control bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report YMK_BDCSALES1 no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak,vbkd,kuwev,rv45a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       auart like vbak-auart,&lt;/P&gt;&lt;P&gt;       vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;       vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;       spart like vbak-spart,&lt;/P&gt;&lt;P&gt;       bstkd like vbkd-bstkd,&lt;/P&gt;&lt;P&gt;       kunnr like kuwev-kunnr,&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;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of mabnr occurs 0,&lt;/P&gt;&lt;P&gt;         mabnr like rv45a-mabnr,&lt;/P&gt;&lt;P&gt;         end of mabnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of kwmeng occurs 0,&lt;/P&gt;&lt;P&gt;         kwmeng like rv45a-kwmeng,&lt;/P&gt;&lt;P&gt;         end of kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : FLD(20) TYPE C,&lt;/P&gt;&lt;P&gt;CNT(2) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'c:/sale.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;&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;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;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;loop at itab.&lt;/P&gt;&lt;P&gt;refresh bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT ITAB-mabnr  AT ','  into table mabnr.&lt;/P&gt;&lt;P&gt;SPLIT ITAB-kwmeng AT ','  into table kwmeng.&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-AUART'.&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;                              '=SICH'.&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;                              '2155'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-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;                              '24.05.2006'.&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;                              '14.05.2006'.&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;MOVE 1 TO CNT.&lt;/P&gt;&lt;P&gt;LOOP AT mabnr.&lt;/P&gt;&lt;P&gt;CONCATENATE 'rv45a-mabnr( ' CNT ' ) ' INTO FLD.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING FLD mabnr-mabnr.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 1 TO CNT.&lt;/P&gt;&lt;P&gt;LOOP AT kwmeng.&lt;/P&gt;&lt;P&gt;CONCATENATE 'rv45a-mabnr( ' CNT ' ) ' INTO FLD.&lt;/P&gt;&lt;P&gt;PERFORM BDC_FIELD USING FLD kwmeng-kwmeng.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3059871#M724773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3059872#M724774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the error you are getting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 09:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3059872#M724774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T09:36:11Z</dc:date>
    </item>
  </channel>
</rss>

