<?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: re:  control table VS bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-control-table-vs-bdc/m-p/1748918#M324714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before doing the page down u have to check the Input values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 05:52:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T05:52:49Z</dc:date>
    <item>
      <title>re:  control table VS bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-control-table-vs-bdc/m-p/1748917#M324713</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 wirtten bdc code to enter the TASKS data into iw22 tcode which contains table control for this. I written the code and it is successfully executing if iam entering new items into tcode if there is no data. But if any data exits in the table control, when i try to change the values it is giving problem.  problem si that table control contains 17 lines. So iam using pagedown every 17 lines. But it is skipping &lt;/P&gt;&lt;P&gt;line items after 17  and it is showing last line item in the table control. So what is the solution to see the 18 line item. I appreciate ur help.&lt;/P&gt;&lt;P&gt;    Just check it out below code and run this code in ur system and enter the notification number.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;p.kp&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: bdctab like bdcdata occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      bdcmsg like bdcmsgcoll occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      it_viqmsm like viqmsm occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: qmnum(12) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  :  I(2) TYPE n,&lt;/P&gt;&lt;P&gt;         y(2) type n,&lt;/P&gt;&lt;P&gt;         v_fnam(30) TYPE c,&lt;/P&gt;&lt;P&gt;         vlines(2) type c value 17,&lt;/P&gt;&lt;P&gt;         z type i,&lt;/P&gt;&lt;P&gt;         z1 type i,&lt;/P&gt;&lt;P&gt;         n type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;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;do 1 times.&lt;/P&gt;&lt;P&gt;perform main.&lt;/P&gt;&lt;P&gt;call transaction 'IW22' using bdctab&lt;/P&gt;&lt;P&gt;                         mode 'A'&lt;/P&gt;&lt;P&gt;                       update 'S'&lt;/P&gt;&lt;P&gt;                       messages into bdcmsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at bdcmsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL function 'MESSAGE_TEXT_BUILD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    msgid                     =   bdcmsg-msgid&lt;/P&gt;&lt;P&gt;    msgnr                     =   bdcmsg-msgnr&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   MESSAGE_TEXT_OUTPUT       =    bdcmsg-fldname.&lt;/P&gt;&lt;P&gt;    modify bdcmsg transporting fldname.&lt;/P&gt;&lt;P&gt;   endloop.&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;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at bdcmsg.&lt;/P&gt;&lt;P&gt;write: / bdcmsg-msgv1,bdcmsg-msgv2,bdcmsg-fldname.&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;form main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLIQS0' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RIWO00-QMNUM'.&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 'RIWO00-QMNUM'&lt;/P&gt;&lt;P&gt;                              qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLIQS0' '7200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=10\TAB11'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from viqmsm into table it_viqmsm&lt;/P&gt;&lt;P&gt;                       where qmnum = qmnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; describe table it_viqmsm lines y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if y = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            assign n value for no of items&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             this is for change if already exits&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            suppose&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    n = 19.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;    n = y.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO n TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I = I + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;STRONG&gt;after fill up one page&lt;/STRONG&gt;************&lt;/P&gt;&lt;P&gt;  IF I &amp;gt; vlines.&lt;/P&gt;&lt;P&gt;   if y &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      z1 = z1 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      z = n - vlines * z1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if z &amp;gt; 0.&lt;/P&gt;&lt;P&gt;         I = 1.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;         I = 2.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;      i = 2.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLIQS0' '7204'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                     V_FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PEND'.&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;*******&lt;STRONG&gt;to enter the data&lt;/STRONG&gt;*******************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear: v_fnam.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VIQMSM-MNGRP' '(' I ')' INTO V_FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLIQS0' '7204'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                     V_FNAM.&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      V_FNAM&lt;/P&gt;&lt;P&gt;                                    'm095'.&lt;/P&gt;&lt;P&gt;  clear: v_fnam.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'VIQMSM-MNCOD' '(' I ')' INTO V_FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                     V_FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using      V_FNAM&lt;/P&gt;&lt;P&gt;                                    'M95B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******&lt;STRONG&gt;end of enter data&lt;/STRONG&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;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLIQS0' '7204'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                               V_FNAM.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BUCH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&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_0039   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0040   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    value(p_0039)&lt;/P&gt;&lt;P&gt;                          value(p_0040).&lt;/P&gt;&lt;P&gt;bdctab-program = p_0039.&lt;/P&gt;&lt;P&gt;bdctab-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;bdctab-dynpro  = p_0040.&lt;/P&gt;&lt;P&gt;append bdctab.&lt;/P&gt;&lt;P&gt;clear  bdctab.&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_0044   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0045   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    value(p_0044)&lt;/P&gt;&lt;P&gt;                         value(p_0045).&lt;/P&gt;&lt;P&gt;bdctab-fnam = p_0044.&lt;/P&gt;&lt;P&gt;bdctab-fval = p_0045.&lt;/P&gt;&lt;P&gt;append bdctab.&lt;/P&gt;&lt;P&gt;clear  bdctab.&lt;/P&gt;&lt;P&gt;endform.                    " bdc_field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 05:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-control-table-vs-bdc/m-p/1748917#M324713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T05:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: re:  control table VS bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-control-table-vs-bdc/m-p/1748918#M324714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before doing the page down u have to check the Input values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 05:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-control-table-vs-bdc/m-p/1748918#M324714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T05:52:49Z</dc:date>
    </item>
  </channel>
</rss>

