<?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 line item problem again in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963849#M699308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGAIN THE SAME OLD PROBLEM EVERYONE FACING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having 7 line items in my conntract cration ( VA41) but screen can accept only 6 so to accept more than seven item i used following logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_item INTO wa_item WHERE vbeln EQ wa_header-bstkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE COUNT TO w_tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' w_tabix ')' INTO w_posnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-MABNR(' w_tabix ')' INTO w_mabnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ZMENG(' w_tabix ')' INTO w_zmeng.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-VKAUS(' w_tabix ')' INTO w_vkaus.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-VBAP_SELKZ(' w_tabix ')' INTO w_selkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF ( w_tabix EQ 07 ) OR ( w_tabix EQ 13 ) OR ( w_tabix EQ 19 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       PERFORM bdc_dynpro      USING 'SAPMV45A' '4906'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    w_MABNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_mabnr&lt;/P&gt;&lt;P&gt;                                    wa_item-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_zmeng&lt;/P&gt;&lt;P&gt;                                    wa_item-zmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_vkaus&lt;/P&gt;&lt;P&gt;                                    wa_item-vkaus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthis  program i used incremental login hence once the line item no is 7 ok_code &amp;lt;b&amp;gt;POAN&amp;lt;/b&amp;gt; is getting called  and then next table control screen will come to accept 7 th line item come.&lt;/P&gt;&lt;P&gt;but in all screen mode, i can see before POAN getting called i gets message "FIELD VBAK-MATNR(07)" doesnt exist in the screen and then ok code &amp;lt;b&amp;gt;POAN&amp;lt;/b&amp;gt; getting called with no input for next table control as 7 th record already been called.&lt;/P&gt;&lt;P&gt;i tested BDCDATA where first ok code POAN is populated and thn 7th record populated but still why 7th record get called before POAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 13:44:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T13:44:31Z</dc:date>
    <item>
      <title>BDC line item problem again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963849#M699308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AGAIN THE SAME OLD PROBLEM EVERYONE FACING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having 7 line items in my conntract cration ( VA41) but screen can accept only 6 so to accept more than seven item i used following logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_item INTO wa_item WHERE vbeln EQ wa_header-bstkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     COUNT = COUNT + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE COUNT TO w_tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-POSNR(' w_tabix ')' INTO w_posnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-MABNR(' w_tabix ')' INTO w_mabnr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-ZMENG(' w_tabix ')' INTO w_zmeng.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VBAP-VKAUS(' w_tabix ')' INTO w_vkaus.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'RV45A-VBAP_SELKZ(' w_tabix ')' INTO w_selkz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF ( w_tabix EQ 07 ) OR ( w_tabix EQ 13 ) OR ( w_tabix EQ 19 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       PERFORM bdc_dynpro      USING 'SAPMV45A' '4906'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    w_MABNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_mabnr&lt;/P&gt;&lt;P&gt;                                    wa_item-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_zmeng&lt;/P&gt;&lt;P&gt;                                    wa_item-zmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING w_vkaus&lt;/P&gt;&lt;P&gt;                                    wa_item-vkaus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthis  program i used incremental login hence once the line item no is 7 ok_code &amp;lt;b&amp;gt;POAN&amp;lt;/b&amp;gt; is getting called  and then next table control screen will come to accept 7 th line item come.&lt;/P&gt;&lt;P&gt;but in all screen mode, i can see before POAN getting called i gets message "FIELD VBAK-MATNR(07)" doesnt exist in the screen and then ok code &amp;lt;b&amp;gt;POAN&amp;lt;/b&amp;gt; getting called with no input for next table control as 7 th record already been called.&lt;/P&gt;&lt;P&gt;i tested BDCDATA where first ok code POAN is populated and thn 7th record populated but still why 7th record get called before POAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 13:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963849#M699308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC line item problem again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963850#M699309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever you are calling the code for Index 7 , 13 etc. you have to call the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPMV45A' '4906' 'X' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;('X' to be passed for the field DYNBEGIN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the POAN command.&lt;/P&gt;&lt;P&gt;&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>Tue, 16 Oct 2007 14:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963850#M699309</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-16T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: BDC line item problem again</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963851#M699310</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 u don't understand is how the BDC system works:&lt;/P&gt;&lt;P&gt;it is &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; like code processign where line2 is processesd &amp;lt;b&amp;gt;only after&amp;lt;/b&amp;gt; line1 is processesd, but more like a &amp;lt;b&amp;gt;block&amp;lt;/b&amp;gt;. all lines in the BDCDATA tab from one bdc_dynpro to another is processed &amp;lt;b&amp;gt;together&amp;lt;/b&amp;gt;. u think of it as lines in code: 1st comes the screen, then the system activates the POAN ok_code (and the table control should change the screen) and then fill the fields. what really happens is the systems calls the screen, fills the fields and activates the ok_code in one step, so the POAN cannot be called before FIELD VBAK-MATNR(07).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What u have to do is every time u want to call a "page down" in your table control, enter these 2 lines together: &lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPMV45A' '4906'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'BDC_OKCODE' '=POAN'.&lt;/P&gt;&lt;P&gt;after these lines u &amp;lt;b&amp;gt;must&amp;lt;/b&amp;gt; have another line of dynpro (PERFORM bdc_dynpro USING 'SAPMV45A' '4906'.) again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And BTW, if the table control contains 6 lines - i don't think a line 7 exists at all: as the BDC "looks" at it, there are always line01, line02,..., line06 line in the control table. Even after u hit page down, the 1st line is not line No. 7 but line No.1 (hit page down and then do F1-&amp;gt;technical information in one of the fields in the 1st line. u will see at the bottom that it says in screen field ....(01) and not ....(07), no matter how many pages are filled in the table control. this does not mean u can't fill more than 6 lines, it just means that even after POAN was called (and u know u r now filling lines 7-11), u still have to number them 01-06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i made myself clear enough, if not ask further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls award points if helps&lt;/P&gt;&lt;P&gt;Igal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 14:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-line-item-problem-again/m-p/2963851#M699310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T14:33:27Z</dc:date>
    </item>
  </channel>
</rss>

