<?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: Problem while incrementing the index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228671#M138641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as Srinivas post before that should work, I just edited some lines, I guess was just mistyped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx = 01.&lt;/P&gt;&lt;P&gt;LOOP AT itabi WHERE ihrez = itabh-ihrez.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING 'BDC_CURSOR' fnam.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-MABNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-mabnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ZMENG(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-zmeng.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-posnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         'Z2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '=PKO1'.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '=V69A_KOAN'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KWERT(07)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(02)' 'ZPR0'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KBETR(02)' itabi-kbetr1.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(03)' 'ZPRS'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KBETR(03)' itabi-kbetr2.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(04)' 'ZR1'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(04)' itabi-kwert1.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(05)' 'ZLWR'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(05)' itabi-kwert2.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(06)' 'ZLDL'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(06)' itabi-kwert3.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(07)' 'ZLFB'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(07)' itabi-kwert4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'KOMV-KSCHL(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'ZLBD'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'KOMV-KWERT(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'0.00'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE'  '=T\13'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE'  '/EBACK'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR'  'VBAP-ZZRFAR'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'VBAP-ZZRWAR'  itabi-wcd.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'VBAP-ZZRFAR'  itabi-fcd.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;IF idx &amp;gt;= 2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;*-- from third line onwards start doing '+'&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;idx = 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*-- this will increment it to 2 and then the IF will takeover&lt;/P&gt;&lt;P&gt;    idx = idx + 1.&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;PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.&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;Another way to do this is, usually the way I go, is to just execute the next two lines for every incoming line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2006 16:49:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-24T16:49:38Z</dc:date>
    <item>
      <title>Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228659#M138629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on creating Credit memos and return orders through BDC. For the item level, I am incrementing the index in order to enter the MATNR, POSNR, KWMENG etc. I have seven lines open in my screen. So when I have an order greater than or equal to seven lines, the program is showing an error that that line does not exist in the screen. Please, let me know what is the solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228659#M138629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T15:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228660#M138630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that when you get to that point, you will need to fire a page down in the OKCODE.  I think maybe P+ may work.  I have seen many posts that cover this.  I usually try to stay away from doing this kind of thing with table controls in BDC,  are you sure there is not a BAPI or function module that will work for you?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="49511"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228660#M138630</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-24T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228661#M138631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right. I was trying the same thing too. I saw a + sign at the bottom of the table control. I am testing through that logic, I hope that works out fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228661#M138631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228662#M138632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, you probably need to keep track of what line number that you are currently on, and when at a certain index 7, 14, 21, 28 etc,  hit the page down icon in your BDC. Please make sure to read the post that I have presented above, it talks about screen resolution.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;3. Screen Size: Make CTU_PARAMS-DEFSIZ = 'X' in your BDC.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which means that this may act differently depending on what box you run it on.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when calling the transaction make sure that you check to use the def size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .


data: opt type CTU_PARAMS.
data: bdcdata type table of bdcdata with header line.


&amp;lt;b&amp;gt;opt-defsize = 'X'.&amp;lt;/b&amp;gt;

call transaction 'VA02' using bdcdata
                       &amp;lt;b&amp;gt; options from opt.&amp;lt;/b&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228662#M138632</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-24T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228663#M138633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically when you have such a feature(+ button), you can press that after entering every line and by doing that, you will get the new line always in either first or second position in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Enter the first line.&lt;/P&gt;&lt;P&gt;2. Enter the second line.&lt;/P&gt;&lt;P&gt;3. Press '+'.&lt;/P&gt;&lt;P&gt;4. Enter the third record in the second(or first depending on how the '+' reacts) position.&lt;/P&gt;&lt;P&gt;5. Repeat 3 and 4 until all the records are exhausted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228663#M138633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228664#M138634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving a new line from the very first line. It is working fine till the seventh line. But after the seventh line, the cursor is coming to the MATNR position and the proghram errors there. I am also attaching my code. If you can correct me from that, it would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx = 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITABI WHERE IHREZ = ITABH-IHREZ.&lt;/P&gt;&lt;P&gt;&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;                                   '=POAN'.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'VBAP-ABGRU(' IDX ')' into FNAM.&lt;/P&gt;&lt;P&gt;    perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                             FNAM.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'RV45A-MABNR(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using fnam&lt;/P&gt;&lt;P&gt;                                    ITABI-MABNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'VBAP-ZMENG(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                     ITABI-ZMENG.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'VBAP-POSNR(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using fnam&lt;/P&gt;&lt;P&gt;                                    ITABI-POSNR.&lt;/P&gt;&lt;P&gt;    concatenate 'VBAP-ABGRU(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                   'Z2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;   CONCATENATE 'VBAP-POSNR(' IDX ')' into FNAM.&lt;/P&gt;&lt;P&gt;   perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                             FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;                                     '=V69A_KOAN'.&lt;/P&gt;&lt;P&gt;     perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                   'KOMV-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&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-KWERT(07)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'KOMV-KSCHL(02)'&lt;/P&gt;&lt;P&gt;                                      'ZPR0'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KBETR(02)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KBETR1.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KSCHL(03)'&lt;/P&gt;&lt;P&gt;                                      'ZPRS'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KBETR(03)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KBETR2.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KSCHL(04)'&lt;/P&gt;&lt;P&gt;                                      'ZR1'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KWERT(04)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KWERT1.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KSCHL(05)'&lt;/P&gt;&lt;P&gt;                                      'ZLWR'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KWERT(05)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KWERT2.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KSCHL(06)'&lt;/P&gt;&lt;P&gt;                                      'ZLDL'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KWERT(06)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KWERT3.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KSCHL(07)'&lt;/P&gt;&lt;P&gt;                                      'ZLFB'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KOMV-KWERT(07)'&lt;/P&gt;&lt;P&gt;                                     ITABI-KWERT4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     perform bdc_field       using 'KOMV-KSCHL(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                     'ZLBD'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     perform bdc_field       using 'KOMV-KWERT(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                    '0.00'.&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_dynpro      using 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;     perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                     '=T\13'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                     '/EBACK'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                     'VBAP-ZZRFAR'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAP-ZZRWAR'&lt;/P&gt;&lt;P&gt;                                      ITABI-WCD.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAP-ZZRFAR'&lt;/P&gt;&lt;P&gt;                                     ITABI-FCD.&lt;/P&gt;&lt;P&gt;     idx = IDX + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 15:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228664#M138634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228665#M138635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the okcode for '+' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228665#M138635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228666#M138636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is '=POAN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228666#M138636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228667#M138637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to code BDC_OKCODE = '/00' after looping 7 times. It should open next 7th line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228667#M138637</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-24T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228668#M138638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are creating it online, enter two lines of data and then press this button. See where the new line comes to. Is the second line a new line or is it the first line itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228668#M138638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228669#M138639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the first line that is new line.I started from the first line because we dont exactly know how many lines are coming in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228669#M138639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228670#M138640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is the 2nd line, something like this should work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
idx = 01.
LOOP AT itabi WHERE ihrez = itabh-ihrez.
  PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.
&amp;lt;b&amp;gt;*  PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&amp;lt;/b&amp;gt;
  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.
  PERFORM bdc_field  USING 'BDC_CURSOR' fnam.
  CONCATENATE 'RV45A-MABNR(' idx ')' INTO fnam.
  PERFORM bdc_field  USING fnam         itabi-mabnr.
  CONCATENATE 'VBAP-ZMENG(' idx ')' INTO fnam.
  PERFORM bdc_field  USING fnam         itabi-zmeng.
  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.
  PERFORM bdc_field  USING fnam         itabi-posnr.
  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.
  PERFORM bdc_field  USING fnam         'Z2'.

  PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=PKO1'.
  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.
  PERFORM bdc_field USING 'BDC_CURSOR' fnam.

  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.

  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
  PERFORM bdc_field USING 'BDC_OKCODE' '=V69A_KOAN'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.

  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KWERT(07)'.

  PERFORM bdc_field USING 'KOMV-KSCHL(02)' 'ZPR0'.
  PERFORM bdc_field USING 'KOMV-KBETR(02)' itabi-kbetr1.
  PERFORM bdc_field USING 'KOMV-KSCHL(03)' 'ZPRS'.
  PERFORM bdc_field USING 'KOMV-KBETR(03)' itabi-kbetr2.
  PERFORM bdc_field USING 'KOMV-KSCHL(04)' 'ZR1'.
  PERFORM bdc_field USING 'KOMV-KWERT(04)' itabi-kwert1.
  PERFORM bdc_field USING 'KOMV-KSCHL(05)' 'ZLWR'.
  PERFORM bdc_field USING 'KOMV-KWERT(05)' itabi-kwert2.
  PERFORM bdc_field USING 'KOMV-KSCHL(06)' 'ZLDL'.
  PERFORM bdc_field USING 'KOMV-KWERT(06)' itabi-kwert3.
  PERFORM bdc_field USING 'KOMV-KSCHL(07)' 'ZLFB'.
  PERFORM bdc_field USING 'KOMV-KWERT(07)' itabi-kwert4.
* perform bdc_field using 'KOMV-KSCHL(08)'
* 'ZLBD'.
* perform bdc_field using 'KOMV-KWERT(08)'
* '0.00'.

  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.
  PERFORM bdc_field USING 'BDC_OKCODE'  '=T13'.

  PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.
  PERFORM bdc_field USING 'BDC_OKCODE'  '/EBACK'.
  PERFORM bdc_field USING 'BDC_CURSOR'  'VBAP-ZZRFAR'.
  PERFORM bdc_field USING 'VBAP-ZZRWAR'  itabi-wcd.
  PERFORM bdc_field USING 'VBAP-ZZRFAR'  itabi-fcd.
&amp;lt;b&amp;gt;  IF sy-tabix &amp;gt;= 2.
*-- from third line onwards start doing '+'
    PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.
    PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.
  ELSE.
*-- this will increment it to 2 and then the IF will takeover
    idx = idx + 1.
  ENDIF.&amp;lt;/b&amp;gt;
ENDLOOP.

PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.
PERFORM bdc_field USING 'BDC_OKCODE''=SICH'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228670#M138640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228671#M138641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as Srinivas post before that should work, I just edited some lines, I guess was just mistyped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;idx = 01.&lt;/P&gt;&lt;P&gt;LOOP AT itabi WHERE ihrez = itabh-ihrez.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING 'BDC_CURSOR' fnam.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-MABNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-mabnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ZMENG(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-zmeng.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         itabi-posnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ABGRU(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field  USING fnam         'Z2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '=PKO1'.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '=V69A_KOAN'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KSCHL(01)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR' 'KOMV-KWERT(07)'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(02)' 'ZPR0'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KBETR(02)' itabi-kbetr1.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(03)' 'ZPRS'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KBETR(03)' itabi-kbetr2.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(04)' 'ZR1'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(04)' itabi-kwert1.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(05)' 'ZLWR'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(05)' itabi-kwert2.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(06)' 'ZLDL'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(06)' itabi-kwert3.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KSCHL(07)' 'ZLFB'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'KOMV-KWERT(07)' itabi-kwert4.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'KOMV-KSCHL(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'ZLBD'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform bdc_field using 'KOMV-KWERT(08)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;'0.00'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '5003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE'  '=T\13'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM bdc_dynpro USING 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_OKCODE'  '/EBACK'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'BDC_CURSOR'  'VBAP-ZZRFAR'.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'VBAP-ZZRWAR'  itabi-wcd.&lt;/P&gt;&lt;P&gt;  PERFORM bdc_field USING 'VBAP-ZZRFAR'  itabi-fcd.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;IF idx &amp;gt;= 2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;*-- from third line onwards start doing '+'&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;idx = 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*-- this will increment it to 2 and then the IF will takeover&lt;/P&gt;&lt;P&gt;    idx = idx + 1.&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;PERFORM bdc_dynpro USING 'SAPMV45A' '4001'.&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;Another way to do this is, usually the way I go, is to just execute the next two lines for every incoming line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPMV45A'   '4001'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field  USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it Helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 16:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228671#M138641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T16:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228672#M138642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gilberto, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your changes will work if by pressing the '+' brings a new line as the first one, but in this case I found that it is bringing the new line in the second position. That is why I left idx without resetting it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 17:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228672#M138642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228673#M138643</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;what about starting from first line.I think this code works from second line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 17:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228673#M138643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T17:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228674#M138644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the loop strated, you enter the value in the first line and then the second line. From the third record of the internal table, you will just enter on thw second line only because of the '+'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 17:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228674#M138644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T17:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228675#M138645</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;There is a BAPI to create credit memos and orders BAPI_SALESORDER_CREATEFROMDAT2. But as you have already worked on the BDC thing you can go ahead with that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as BDC is concerned, you need not pass POSNR, it will automatically pick the next available number(increment by 10). Moreover, you need not initialize idx to 1 as you need to press '+' for all items &amp;gt;= 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first line you can just type values without pressing '+', only when it comes to line 2 or more you will use '=POAN'. But I recommend you use BAPI for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 18:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228675#M138645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228676#M138646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCs are very outdated now.  BAPIs are the direction in which you should heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the company with whom you are working goes to upgrade to newer version of SAP, custom BDCs frequently cause headaches as the screens get changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should really re-work your project using BAPIs.  Upgrades will be little or NO problem then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 18:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228676#M138646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T18:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228677#M138647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It almost solved my problem. I am now getting all the lines in order. But somehow the item condition values is not being populated. I can see the value when I debug. But when I run it in background the condition values are not coming in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 19:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228677#M138647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while incrementing the index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228678#M138648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the conditions, I think you may not be selecting the correct line item. Again, your BDC logic should be such that you always select the second line item(except for the first record of the internal table) and then go to conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you consider the suggestions regarding the use of BAPI instead of BDC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2006 19:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-incrementing-the-index/m-p/1228678#M138648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-24T19:59:42Z</dc:date>
    </item>
  </channel>
</rss>

