<?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 Loop in LSMW / BCD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032393#M84208</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;How can we run a loop for n nos. of records to be inserted in a table. T-Code FF67 (Screeen 2) Manual Bank Reconciliation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2005 13:26:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-30T13:26:14Z</dc:date>
    <item>
      <title>Loop in LSMW / BCD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032393#M84208</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;How can we run a loop for n nos. of records to be inserted in a table. T-Code FF67 (Screeen 2) Manual Bank Reconciliation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 13:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032393#M84208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in LSMW / BCD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032394#M84209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea of LSMW but in case of a BDC,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: t_bdcdata type standard table of BDCDATA.&lt;/P&gt;&lt;P&gt;data: t_messages type standard table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_records.&lt;/P&gt;&lt;P&gt;clear t_bdcdata.&lt;/P&gt;&lt;P&gt;refresh t_bdcdata.&lt;/P&gt;&lt;P&gt;perform fill_dynpro using &amp;lt;screen&amp;gt; &amp;lt;Program name&amp;gt;.&lt;/P&gt;&lt;P&gt;perform fill_fields using &amp;lt;fieldname&amp;gt; &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;perform fill_fields using &amp;lt;fieldname&amp;gt; &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;perform fill_fields using &amp;lt;fieldname&amp;gt; &amp;lt;value&amp;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;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;call transaction 'FF67" using t_bdcdata mode 'N'&lt;/P&gt;&lt;P&gt;                                        update 'S'&lt;/P&gt;&lt;P&gt; messages nto t_messages.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*error handling&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the part inside the loop can be obtained from the shdb recording for the FF67 transaction.&lt;/P&gt;&lt;P&gt;You need to copy that part of the generated code and change the values with the internal table values.&lt;/P&gt;&lt;P&gt;T_BDCDATA is the internal table to hold the BDC recording for each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_Messages is the table to hold the messages returned from the call transaction statement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 13:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032394#M84209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in LSMW / BCD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032395#M84210</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; Use this BDC as a ref. this BDC is for MB1B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;report ZMB1B&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;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Objective:    BDC for transaction MB1B - Transfer Posting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Data is uploaded for Single plant &amp;amp; Storage location   *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              only&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Developer:          Mr. Amey Potale&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Date:               Nov 17, 2005&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Module:             ------&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Last modified by:   ------&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variables &amp;amp; Structure Declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of w_data,&lt;/P&gt;&lt;P&gt;        werks like ikpf-werks,&lt;/P&gt;&lt;P&gt;        lgort like ikpf-lgort,&lt;/P&gt;&lt;P&gt;        matnr like iseg-matnr,&lt;/P&gt;&lt;P&gt;        erfmg LIKE STPOX-MNGLG,&lt;/P&gt;&lt;P&gt;        erfmg1(13),&lt;/P&gt;&lt;P&gt;      end of w_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : counter(2) type n.&lt;/P&gt;&lt;P&gt;data : fld1(20), fld2(20), l_index LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;data : maindate(10), falg(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table Declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For capturing screen details&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Storing BOM items&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA :  STB1 like STPOX         OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For stroing item data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA :  I_DATA LIKE W_DATA       OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of Selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&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;IMPORT I_DATA   FROM MEMORY ID 'IDATA'.&lt;/P&gt;&lt;P&gt;IMPORT MAINDATE FROM MEMORY ID 'MDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_data.&lt;/P&gt;&lt;P&gt;  l_index = sy-tabix.&lt;/P&gt;&lt;P&gt;  ON CHANGE OF I_DATA-lgort.&lt;/P&gt;&lt;P&gt;      falg =  'True'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM07M'       '0400'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'     'RM07M-LGORT'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'     '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'MKPF-BLDAT'     MAINDATE.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'MKPF-BUDAT'     MAINDATE.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM07M-BWARTWA'  '311'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM07M-WERKS'    '1000'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM07M-LGORT'    '0002'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RM07M-WVERS2'   'X'.&lt;/P&gt;&lt;P&gt;      CLEAR fld1.&lt;/P&gt;&lt;P&gt;      counter = 1.&lt;/P&gt;&lt;P&gt;endon.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMM07M'       '0421'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'     'MSEG-ERFMG(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'     '/00'.&lt;/P&gt;&lt;P&gt;      if ( counter eq 1 ).&lt;/P&gt;&lt;P&gt;         perform bdc_field    using 'MSEGK-UMLGO'    '0001'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'MSEG-MATNR(' counter ')' INTO fld1.&lt;/P&gt;&lt;P&gt;      CONDENSE FLD1 NO-GAPS.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FLD1    I_DATA-MATNR.&lt;/P&gt;&lt;P&gt;      CLEAR fld2.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'MSEG-ERFMG(' counter ')' INTO fld2.&lt;/P&gt;&lt;P&gt;      CONDENSE FLD2 NO-GAPS.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FLD2    I_DATA-ERFMG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro     USING 'SAPLKACB'         '0002'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field      USING 'BDC_OKCODE'       '=ENTE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro     USING 'SAPLKACB'         '0002'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field      USING 'BDC_OKCODE'       '=ENTE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      COUNTER = COUNTER + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF COUNTER = '05'.&lt;/P&gt;&lt;P&gt;          PERFORM bdc_dynpro USING 'SAPMM07M'         '0421'.&lt;/P&gt;&lt;P&gt;          PERFORM bdc_field  USING 'BDC_OKCODE'       '=NLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          COUNTER = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM bdc_dynpro USING 'SAPLKACB'         '0002'.&lt;/P&gt;&lt;P&gt;	   PERFORM bdc_field  USING 'BDC_OKCODE'       '=ENTE'.&lt;/P&gt;&lt;P&gt;          PERFORM bdc_field  USING 'BDC_OKCODE'       '/00'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT END OF LGORT.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro     using 'SAPMM07M'         '0421'.&lt;/P&gt;&lt;P&gt;      perform bdc_field      using 'BDC_CURSOR'       'MSEG-ERFMG(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field      using 'BDC_OKCODE'       '=BU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro     USING 'SAPLKACB'         '0002'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field      USING 'BDC_OKCODE'       '=ENTE'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field      USING 'BDC_OKCODE'       '/00'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     - Call the transaction&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL TRANSACTION 'MB1B' USING bdcdata MODE 'E' UPDATE 'S'.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT LAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0080   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0081   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro  USING   P1 P2.&lt;/P&gt;&lt;P&gt;  BDCDATA-program = P1.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO = P2.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0085   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0086   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field  USING  F1 F2.&lt;/P&gt;&lt;P&gt;  BDCDATA-FNAM = F1.&lt;/P&gt;&lt;P&gt;  BDCDATA-FVAL = F2.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  close_group&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM close_group .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " close_group&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 14:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032395#M84210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T14:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in LSMW / BCD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032396#M84211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;you can run the loop in LSMW also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 'Maintain Field Mapping and Conversion Rules' we have options like BEGIN_OF_PROCESSING__  and __BEGIN_OF_TRANSACTION__... so you can write the loop where ever you want, even in th fileds section you can write the loop... &lt;/P&gt;&lt;P&gt;whatever you write in this one, the same will work as SE38 code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to see the code you can choose the option 'Display Conversion Program'.. this will contain the code.. even you put a breakpoint and see how the code is working in the LSMW..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you get my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 15:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032396#M84211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T15:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop in LSMW / BCD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032397#M84212</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;Thanks for the code, it was very useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to put in the bdc data in second screen of ff67&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This screen has a tabular fields,&lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;     F1 | F2 | F3 | F4 |&lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;R1 - D1 | D2 | D3 | D4 |&lt;/P&gt;&lt;P&gt;R2 - D1 | D2 | D3 | D4 | &lt;/P&gt;&lt;P&gt;Rn -  : | :  | :  | :  |&lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to input (D1-D4) n times..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'FEBMKA-VGMAN(01)'  W_UPLD2-VGMAN_01_011. -- This is D1 of R1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBMKA-VGMAN(02)'    W_UPLD2-VGMAN_02_012. -- This is D1 of R2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need to concatenate 'FEBMKA-VGMAN(' &amp;lt;counter&amp;gt; ')' into fld1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what about VGMAN_01_011 --&amp;gt; D1 insertion Field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i use VGMAN...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;viz. perform bdc_field using fld1 using W_UPLD2-VGMAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the current sample BDC Screen2 of FF67&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF40K' '8001'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' 'FEBMKA-KWBTR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE' '=SICH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'FEBMKA-VGMAN(01)'    W_UPLD2-VGMAN_01_011.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBMKA-VGMAN(02)'    W_UPLD2-VGMAN_02_012.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform bdc_field using 'FEBEP-VALUT(01)'     W_UPLD2-VALUT_01_013.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBEP-VALUT(02)'     W_UPLD2-VALUT_02_014.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform bdc_field using 'FEBMKA-KWBTR(01)'    W_UPLD2-KWBTR_01_015.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBMKA-KWBTR(02)'    W_UPLD2-KWBTR_02_016.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform bdc_field using 'FEBMKK-CHECT_KF(01)' W_UPLD2-CHECT_KF_01_017.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBMKK-CHECT_KF(02)' W_UPLD2-CHECT_KF_02_018.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform bdc_field using 'FEBMKK-GSBER_KF(01)' W_UPLD2-GSBER_KF_01_019.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'FEBMKK-GSBER_KF(02)' W_UPLD2-GSBER_KF_02_020.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 05:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-in-lsmw-bcd/m-p/1032397#M84212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T05:33:03Z</dc:date>
    </item>
  </channel>
</rss>

