<?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: FK02  -  Batch Input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fk02-batch-input/m-p/4629781#M1090374</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;I think you need the Table Control concept of BDC here. To add more than one vendor the code should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;id = 3.

Data: fnam(20) type c.

loop at itab.

      concatenate 'RM06E-EPSTP(0' id ')' into fnam.
      perform bdc_field       using fnam itab-itmcategory.

      concatenate 'EKPO-KNTTP(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-accassignment.

      concatenate 'EKPO-EMATN(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-material.

      concatenate 'EKPO-TXZ01(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-shortxt.

id = id + 1.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishwa Sri Hari on Oct 24, 2008 8:11 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishwa Sri Hari on Oct 24, 2008 8:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2008 02:41:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-24T02:41:27Z</dc:date>
    <item>
      <title>FK02  -  Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fk02-batch-input/m-p/4629780#M1090373</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;I need to add new vendors in FK02 with a batch input, but i don't know how to indicate in the code when is more than one vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of mi code:&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-BVTYP(03)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'       '=UPDA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFBK-BANKS(03)'    'MX'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFBK-BANKL(03)'     '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFBK-BANKN(03)'    '77788888'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFBK-BVTYP(03)'      '3'.&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;&lt;/P&gt;&lt;P&gt;The (03) indicate the position to insert, but if  I try  with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lin(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lin = lin + 1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFBK-BANKN' (lin)          itab-bankn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP said:  "Field  LFBK-BVTYP, not found  in loop of the screen SAPMF02K  0130"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can anybody help me please????&lt;/P&gt;&lt;P&gt;&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;Betty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 22:37:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fk02-batch-input/m-p/4629780#M1090373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T22:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: FK02  -  Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fk02-batch-input/m-p/4629781#M1090374</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;I think you need the Table Control concept of BDC here. To add more than one vendor the code should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;id = 3.

Data: fnam(20) type c.

loop at itab.

      concatenate 'RM06E-EPSTP(0' id ')' into fnam.
      perform bdc_field       using fnam itab-itmcategory.

      concatenate 'EKPO-KNTTP(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-accassignment.

      concatenate 'EKPO-EMATN(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-material.

      concatenate 'EKPO-TXZ01(0' id ')' into fnam.
      perform bdc_field       using fnam TI_STAGING-shortxt.

id = id + 1.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishwa Sri Hari on Oct 24, 2008 8:11 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishwa Sri Hari on Oct 24, 2008 8:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 02:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fk02-batch-input/m-p/4629781#M1090374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T02:41:27Z</dc:date>
    </item>
  </channel>
</rss>

