<?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/1622711#M278494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a good choice to do the goods movement via BDC. Because the max lines in the table control depends on the GUI settings. I suggest you try the function&lt;/P&gt;&lt;P&gt;BAPI_GOODSMVT_CREATE and BAPI_TRANSACTION_COMMIT to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 08:33:29 GMT</pubDate>
    <dc:creator>former_member198224</dc:creator>
    <dc:date>2006-09-12T08:33:29Z</dc:date>
    <item>
      <title>BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622710#M278493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai friends,&lt;/P&gt;&lt;P&gt;    The following program is, to create a Stock transfer Order using TC me21. here i want to post multiple line item. i think looping is the problem help me&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;vallamuthu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM OPEN_GROUP      USING GROUP USER KEEP HOLDDATE CTU.&lt;/P&gt;&lt;P&gt;  LOOP AT RO_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMM06E' '0100'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'          'RM06E-EPSTP'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'          '/00'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'EKKO-LIFNR'          RO_HEADER-SUP_PLANT."'1060'."SUPPLING PLANT&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM06E-BSART'         'KRUB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF N EQ '01'.&lt;/P&gt;&lt;P&gt;      WRITE: RO_HEADER-DELI_DATE TO RO_HEADER-DELI_DATE.&lt;/P&gt;&lt;P&gt;      DAT = RO_HEADER-DELI_DATE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM06E-BEDAT'         DAT."RO_HEADER-DELI_DATE."'11.09.2006'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'EKKO-EKORG'          '1000'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'EKKO-EKGRP'          RO_HEADER-PUR_GRP."'300'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM06E-EPSTP'         'U'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM06E-LPEIN'         'T'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RM06E-WERKS'         RO_HEADER-REC_PLANT."'1010'."RECEIVING PLANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT RO_ITEM.&lt;/P&gt;&lt;P&gt;      N = N + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0120'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-EEIND(02)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'EKPO-EMATN(N)'       RO_ITEM-MATERIAL."'7'."MATERIAL&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     perform bdc_field       using 'EKPO-EMATN(02)'       RO_ITEM-MATERIAL."'7'."MATERIAL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WRITE: RO_ITEM-QTY to qnty.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'EKPO-MENGE(N)'       qnty."QTY&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     perform bdc_field       using 'EKPO-MENGE(02)'       qnty."QTY&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;      perform bdc_field       using 'RM06E-EEIND(01)'       RO_HEADER-DELI_DATE."'11.09.2006'."DELIVERY DATE&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0120'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-BSTPO(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=KOPF'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-EBELP'          '1'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-TCSELFLAG(01)'  'X'."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0101'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'EKKO-EKGRP'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=TXK'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'EKKO-EKGRP'           RO_HEADER-PUR_GRP."'300'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'EKKO-PINCR'           '1'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'EKKO-UPINC'           '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0103'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-LTEX1(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=BACK'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-LTEX1(01)'      RO_HEADER-HDR_TEXT."'HEADER TEXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0120'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-EBELP'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=DETA'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'RM06E-EBELP'          '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0111'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'EKPO-MENGE'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=TXP'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'EKPO-MENGE'           qnty."'10'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-EEIND'           RO_HEADER-DELI_DATE.".&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'RM06E-LPEIN'          'D'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'EKPO-MAHN1'           '10'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform bdc_field       using 'EKET-SLFDT'           RO_HEADER-DELI_DATE."'11.09.2006'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'EKPO-MAHN2'          '30'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'EKPO-MAHN3'          '60'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0106'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-LTEX1(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=VW'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM06E' '0106'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'           'RM06E-LTEX1(03)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'           '=BU'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM06E-LTEX1(03)'      ro_item-it_text." 'REMARKS TEXT FOR LINE ITEM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP."END OF ITEM&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;    PERFORM BDC_TRANSACTION TABLES MESSTAB&lt;/P&gt;&lt;P&gt;        USING                          'ME21'&lt;/P&gt;&lt;P&gt;                                        CTU&lt;/P&gt;&lt;P&gt;                                        MODE&lt;/P&gt;&lt;P&gt;                                        UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP."END OF HEADER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_transaction using 'ME21'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CLOSE_GROUP USING     CTU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 08:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622710#M278493</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2006-09-12T08:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622711#M278494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a good choice to do the goods movement via BDC. Because the max lines in the table control depends on the GUI settings. I suggest you try the function&lt;/P&gt;&lt;P&gt;BAPI_GOODSMVT_CREATE and BAPI_TRANSACTION_COMMIT to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 08:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622711#M278494</guid>
      <dc:creator>former_member198224</dc:creator>
      <dc:date>2006-09-12T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622712#M278495</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;check the below link,u can have some idea regarding handling of multiple items in BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/abap/handling-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 08:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622712#M278495</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-12T08:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: BDC PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622713#M278496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I fill the field EMATN using the bapi BAPI_GOODSMVT_CREATE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this bapi don't have this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandre nogueira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 22:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/1622713#M278496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T22:53:32Z</dc:date>
    </item>
  </channel>
</rss>

