<?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 scroll down with OK_CODE '=P+' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192828#M1625378</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;Try this below piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  IF v_indx GE 20.
            perform bdc_dynpro      using 'SAPLIPW1' '0200'.
            perform bdc_field       using 'BDC_OKCODE'
                              '=P+'.
            v_indx = 2.

          ENDIF.

&lt;/CODE&gt;&lt;/PRE&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>Fri, 26 Aug 2011 07:45:01 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2011-08-26T07:45:01Z</dc:date>
    <item>
      <title>BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192821#M1625371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;    I am facing a problem with BDC scoll down. I have written BDC for MB1C with serial numbers. i have 100 serial numbers for my 100 qty. While running BDC i am not able to fill more than 19 rows( max allowed rows for that windaw) . So i have used '=P&lt;EM&gt;' OK_CODE.....while excecuting this i am getting error......"P&lt;/EM&gt; Function not defined".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me ........Following is the my BDC code for looping to enter serial numbers. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE 1 TO v_indx.
*DO V_CNT TIMES.
LOOP AT IT_EXCEL1 WHERE WERKS = IT_EXCEL-WERKS
                  AND   LGORT = IT_EXCEL-LGORT
                  AND   MATNR = IT_EXCEL-MATNR
                  AND   CHARG = IT_EXCEL-CHARG.

perform bdc_dynpro      using 'SAPLIPW1' '0200'.

CONCATENATE 'RIPW0-SERNR(' v_indx ')' INTO V_FNAM.

perform bdc_field       using 'BDC_CURSOR'
                              V_FNAM.
perform bdc_field       using  V_FNAM
                               IT_EXCEL1-SERNR.

perform bdc_field       using 'BDC_OKCODE'
                              '=P+'.
v_indx = v_indx + 1.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 06:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192821#M1625371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T06:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192822#M1625372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before statement for OK_CODE = '=P+' add condition, if v_indx = 19. Also before endif clear v_indx so that for next page down it will again get triggered after 19 items. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: 118775 on Aug 26, 2011 8:50 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: 118775 on Aug 26, 2011 8:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 06:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192822#M1625372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T06:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192823#M1625373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of filling up the 19 rows then doing a page down.. Try the approach of filling  one row and a scroll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger the scroll using the function code "/00".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192823#M1625373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192824#M1625374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; I have traid with our logic, But it is replacing the first 19 rows only every time.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192824#M1625374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192825#M1625375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you simulated via SHDB your transasction code?&lt;/P&gt;&lt;P&gt;Seems that the Transaction you want to duplicate via BDC do not support OK_CODE P+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, i did a mistake, via shdb, i got ok_code =P+.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could approach the question in other way.&lt;/P&gt;&lt;P&gt;Instead of filling the rows and then scroll down, you could use the Function code =NLE that allow to insert a new single position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Simone Milesi on Aug 26, 2011 9:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192825#M1625375</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2011-08-26T07:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192826#M1625376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see BDC_CURSOR for your BDC_OKCODE = '=P+'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try placing the cursor for the okcode page down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192826#M1625376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192827#M1625377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mishra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have traid with our logic also.... i have 100 serial numbers.....if i am excexuting in All Screens mode.....it entered 19 rows continuously &amp;amp; each time it is showing          " Exactly 100 serial numbers must be selected&lt;/P&gt;&lt;P&gt;(instead of 19) " Info message &amp;amp; at last it is showing error for RIPW0-SERNR(20) does not exits on the screen. similar for all rest rowa up to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve this.&lt;/P&gt;&lt;P&gt;can anyone give me some sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192827#M1625377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192828#M1625378</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;Try this below piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  IF v_indx GE 20.
            perform bdc_dynpro      using 'SAPLIPW1' '0200'.
            perform bdc_field       using 'BDC_OKCODE'
                              '=P+'.
            v_indx = 2.

          ENDIF.

&lt;/CODE&gt;&lt;/PRE&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>Fri, 26 Aug 2011 07:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192828#M1625378</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-08-26T07:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192829#M1625379</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 believe there isn't an ok-code for scoll down/up the table in that screen, that mean it can be managed by the vertical scroll bar only, but the bar can't be simulate by BDC program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you should use the BAPI BAPI_GOODSMVT_CREATE instead of a bdc program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192829#M1625379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192830#M1625380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   If i traid to use '=P&lt;EM&gt;' OK_CODE  while running BDC in 'A' Mode......when ever OK_CODE = '=P&lt;/EM&gt;'.......it is showing error &lt;/P&gt;&lt;P&gt;" Function not defined ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i have to do?&lt;/P&gt;&lt;P&gt;Is there any thing to include in my program regarding Function Codes activation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 07:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192830#M1625380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T07:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192831#M1625381</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;Declare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data Ls_options type CTU_PARAMS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;before&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; your scroll BDC logic runs add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LS_options-DEFSIZE = 'X' .
LS_options-RACOMMIT = 'X' .
LS_options-NOBINPT = 'X' .
LS_options-NOBIEND = 'X' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope it will capture ur scroll ok code. revert me if any further clarification required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ketan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 08:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192831#M1625381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T08:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192832#M1625382</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;Please check which command you can see in the status gui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 08:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192832#M1625382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T08:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192833#M1625383</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;It seems the ok_code =P+ IS not correct.You need to check the exact ok_code for new line or page down... then only the code given by me will work.. if there is no ok code defined for new line , then you might need to see if any bapi's available for ur requrement.&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>Fri, 26 Aug 2011 08:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192833#M1625383</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-08-26T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192834#M1625384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this.This worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for page down&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  WHILE v_position GT 19.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMF02K' '0320'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=P+'.&lt;/P&gt;&lt;P&gt;    v_position = v_position - 13.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where v_position stores the line number&lt;/P&gt;&lt;P&gt;and replace 'SAPMF02K' '0320' with your program name and dynpro number &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;Sucharita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 09:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192834#M1625384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T09:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192835#M1625385</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;But now its giving the same error for P+ after if condition also? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its replacing same line as its again getting same index starting from one... Declare another variable say lv_count and in loop increment line ur v_indx. And now check condition if lv_count = 19 and inside if clear lv_count. So that lv_indx won't get affected and it will edit correct line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mihika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 09:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192835#M1625385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192836#M1625386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a BAPI?  If so, use of a BAPI is always preferable to BDC and call transaction.  That said, I've always had much better results in these kinds of list with a single entry, enter key press, reposition screen with new line entry or P+, then next entry on line with subscript 2 or 3.....repeat until every row has been processed. You cannot rely upon the number of rows in a screen...different users might have different resolution/sizes...you therefore need to address one row at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But, please consider whether or not you can use a BAPI...they're so much easier to work with and they do the "SAP way" and they are already optimized for performance, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 11:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192836#M1625386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-26T11:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192837#M1625387</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;P+ (=P+ in the BDC) is not a universal function code, but only one which is defined in &lt;STRONG&gt;ABAP lists&lt;/STRONG&gt; . So, 99% of time, it doesn't work for all others situations (like yours).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scrolling a table control is not so easy to do. When you record a page down on a table control in SHDB, you'll get probably a /00 which corresponds to Enter. When you play the recording, it won't scroll. The issue is that "page down" is processed in 2 parts, it changes the "top line" of the table control, and executes Enter. But it's not possible to record/play the "top line" information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is that the program usually implements a function code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;either "add new line"&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;or "position at line"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Sometimes, the function code is hidden so you must look at inside the program (or search SAP notes, like here: [SAP note 187946 (No positioning on PRT overview in routing)|https://service.sap.com/sap/support/notes/187946 ])&lt;/P&gt;&lt;P&gt;And sometimes, there's no function code at all, and then you're stuck ! (or use SAP GUI scripting, but it may only work in dialog).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also try Max/DaveL proposition (BAPI instead of BDC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 12:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192837#M1625387</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-26T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192838#M1625388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the following example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 move 1 to idx1.
      SORT idata BY code.
       LOOP AT idata WHERE code = itab1-code.

        PERFORM bdc_field       USING 'BDC_CURSOR'      v_mat.
        PERFORM bdc_field       USING 'BDC_OKCODE'       '=OK4'.
        move idx1 to idx.
        CONDENSE idx.

        CONCATENATE 'MARA-MATNR(' idx ')'  INTO v_mat.
        CONCATENATE 'QTY(' idx ')'  INTO v_qty.

        PERFORM bdc_field       USING  v_mat    idata-matcode.
        PERFORM bdc_field       USING v_qty     idata-qty.
        perform bdc_field       using 'BDC_OKCODE'     '=P++'.

     idx1 = idx1 + 1.

    

      ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 10:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192838#M1625388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T10:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192839#M1625389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Using '=p+' try with Insert OK CODE IT WILL WORK FINE in your items table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is VA01 item table loop condition ..&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;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;loop at it_va01a into wa_va01a where index = wa_header-index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;if sy-tabix = 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'times new roman', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate 'RV45A-MABNR(' idx ')' into fnam.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using fnam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_va01a-mabnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate 'RV45A-KWMENG(' idx ')' into fnam.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using fnam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_va01a-kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;if sy-tabix &amp;gt;= 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; idx = 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_dynpro using 'SAPMV45A' '4001'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_field using 'BDC_OKCODE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '=POAN'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate 'RV45A-MABNR(' idx ')' into fnam.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'times new roman', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using fnam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_va01a-mabnr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate 'RV45A-KWMENG(' idx ')' into fnam.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'times new roman', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform bdc_field&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using fnam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_va01a-kwmeng.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 10pt;"&gt;endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alan Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 05:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192839#M1625389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-06T05:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC scroll down with OK_CODE '=P+'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192840#M1625390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i am also facing same problem&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;may i know the sloution for this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 12:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-scroll-down-with-ok-code-p/m-p/8192840#M1625390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-13T12:31:17Z</dc:date>
    </item>
  </channel>
</rss>

