<?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: Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085477#M731737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prajwal&lt;/P&gt;&lt;P&gt;i have one table control program i think it may u help help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zsiva_bdctable  .&lt;/P&gt;&lt;P&gt;*include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_head,&lt;/P&gt;&lt;P&gt;        auart(4),&lt;/P&gt;&lt;P&gt;        vkorg(4),  "Sales Organization&lt;/P&gt;&lt;P&gt;        vtweg(2),  "Distribution Channel&lt;/P&gt;&lt;P&gt;        spart(2),  "Division&lt;/P&gt;&lt;P&gt;        kunnr(10), "sold-to-party&lt;/P&gt;&lt;P&gt;        bstkd(10), "Customer purchase order number&lt;/P&gt;&lt;P&gt;        END OF ty_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_item,&lt;/P&gt;&lt;P&gt;       matnr(18) TYPE c,  "Material&lt;/P&gt;&lt;P&gt;       kwmeng(13) TYPE c, "Quantity&lt;/P&gt;&lt;P&gt;       END OF ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_head TYPE TABLE OF ty_head.&lt;/P&gt;&lt;P&gt;DATA: wa_head LIKE LINE OF it_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_item TYPE TABLE OF ty_item.&lt;/P&gt;&lt;P&gt;DATA: wa_item LIKE LINE OF it_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:v_kwmeng(30) TYPE c,&lt;/P&gt;&lt;P&gt;     v_mabnr(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: val(2) TYPE n VALUE 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_file2 TYPE string,&lt;/P&gt;&lt;P&gt;               w_file1 TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: filename LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;PARAMETERS: filenam1 LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name = filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filenam1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name = filenam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  w_file2 = filename.&lt;/P&gt;&lt;P&gt;  w_file1 = filenam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;HEADER ************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename            = w_file2&lt;/P&gt;&lt;P&gt;      filetype            = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab            = it_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;ITEM *******************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename            = w_file1&lt;/P&gt;&lt;P&gt;      filetype            = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab            = it_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;CREATE SESSION&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      client = sy-mandt&lt;/P&gt;&lt;P&gt;      group  = 'TABLECONT'&lt;/P&gt;&lt;P&gt;      keep   = 'X'&lt;/P&gt;&lt;P&gt;      user   = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;POPULATE BDCDATABLE&lt;/STRONG&gt;***************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM open_group.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_head INTO wa_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                        'VBAK-AUART'.&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 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                                        wa_head-auart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                                 wa_head-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                                        wa_head-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                                        wa_head-spart.&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;                                        '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                                        wa_head-bstkd.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                                       '30.01.2006'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                                       wa_head-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                                        '30.01.2006'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                                        'D'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                                        '0001'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                                        'CIF'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                                        ' COST INSUSRABCE FRIEGHT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_item INTO wa_item .&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RV45A-MABNR(' '0' val ')' INTO v_mabnr.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RV45A-KWMENG(' '0' val ')' INTO v_kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                   v_kwmeng.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM bdc_field       USING v_mabnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                   wa_item-matnr.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING v_kwmeng&lt;/P&gt;&lt;P&gt;                                    wa_item-kwmeng.&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;                                    '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      val = val + 1.		&lt;/P&gt;&lt;P&gt;      IF val &amp;gt;   5.&lt;/P&gt;&lt;P&gt;      val = 5.			&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    val = 01.&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;    CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tcode     = 'VA01'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynprotab = bdcdata.&lt;/P&gt;&lt;P&gt;    REFRESH bdcdata.&lt;/P&gt;&lt;P&gt;    				&lt;/P&gt;&lt;P&gt;*PERFORM bdc_transaction USING 'VA01'.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM close_group.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen                                              *&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 program dynpro.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&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 fnam fval.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;  bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 10:32:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T10:32:15Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085476#M731736</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 a i/o text and table control in a screen. &lt;/P&gt;&lt;P&gt;I want to enter details in table control and then &lt;/P&gt;&lt;P&gt;store it in table. I don't have problem in that process, &lt;/P&gt;&lt;P&gt;but I am facing problem in one user requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My users says that they will add data in one cell in table &lt;/P&gt;&lt;P&gt;control and press ENTER and then the cursor should move &lt;/P&gt;&lt;P&gt;to the NEXT CELL. And when it comes to last cell and he &lt;/P&gt;&lt;P&gt;presses enter then cursor should move to the next row in &lt;/P&gt;&lt;P&gt;the table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to manipulate table control and cursor &lt;/P&gt;&lt;P&gt;movement like this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Prajwal.k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085476#M731736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085477#M731737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prajwal&lt;/P&gt;&lt;P&gt;i have one table control program i think it may u help help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zsiva_bdctable  .&lt;/P&gt;&lt;P&gt;*include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_head,&lt;/P&gt;&lt;P&gt;        auart(4),&lt;/P&gt;&lt;P&gt;        vkorg(4),  "Sales Organization&lt;/P&gt;&lt;P&gt;        vtweg(2),  "Distribution Channel&lt;/P&gt;&lt;P&gt;        spart(2),  "Division&lt;/P&gt;&lt;P&gt;        kunnr(10), "sold-to-party&lt;/P&gt;&lt;P&gt;        bstkd(10), "Customer purchase order number&lt;/P&gt;&lt;P&gt;        END OF ty_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_item,&lt;/P&gt;&lt;P&gt;       matnr(18) TYPE c,  "Material&lt;/P&gt;&lt;P&gt;       kwmeng(13) TYPE c, "Quantity&lt;/P&gt;&lt;P&gt;       END OF ty_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_head TYPE TABLE OF ty_head.&lt;/P&gt;&lt;P&gt;DATA: wa_head LIKE LINE OF it_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_item TYPE TABLE OF ty_item.&lt;/P&gt;&lt;P&gt;DATA: wa_item LIKE LINE OF it_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:v_kwmeng(30) TYPE c,&lt;/P&gt;&lt;P&gt;     v_mabnr(30) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: val(2) TYPE n VALUE 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_file2 TYPE string,&lt;/P&gt;&lt;P&gt;               w_file1 TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: filename LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;PARAMETERS: filenam1 LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name = filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filenam1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name = filenam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  w_file2 = filename.&lt;/P&gt;&lt;P&gt;  w_file1 = filenam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;HEADER ************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename            = w_file2&lt;/P&gt;&lt;P&gt;      filetype            = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab            = it_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;ITEM *******************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename            = w_file1&lt;/P&gt;&lt;P&gt;      filetype            = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab            = it_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;CREATE SESSION&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      client = sy-mandt&lt;/P&gt;&lt;P&gt;      group  = 'TABLECONT'&lt;/P&gt;&lt;P&gt;      keep   = 'X'&lt;/P&gt;&lt;P&gt;      user   = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******&lt;STRONG&gt;POPULATE BDCDATABLE&lt;/STRONG&gt;***************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM open_group.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_head INTO wa_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro      USING 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                        'VBAK-AUART'.&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 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                                        wa_head-auart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                                 wa_head-vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                                        wa_head-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                                        wa_head-spart.&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;                                        '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                                        wa_head-bstkd.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                                       '30.01.2006'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                                       wa_head-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                                        '30.01.2006'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;                                        'D'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-ZTERM'&lt;/P&gt;&lt;P&gt;                                        '0001'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-INCO1'&lt;/P&gt;&lt;P&gt;                                        'CIF'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_field       USING 'VBKD-INCO2'&lt;/P&gt;&lt;P&gt;                                        ' COST INSUSRABCE FRIEGHT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_item INTO wa_item .&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RV45A-MABNR(' '0' val ')' INTO v_mabnr.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'RV45A-KWMENG(' '0' val ')' INTO v_kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                   v_kwmeng.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM bdc_field       USING v_mabnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                   wa_item-matnr.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING v_kwmeng&lt;/P&gt;&lt;P&gt;                                    wa_item-kwmeng.&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;                                    '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      val = val + 1.		&lt;/P&gt;&lt;P&gt;      IF val &amp;gt;   5.&lt;/P&gt;&lt;P&gt;      val = 5.			&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    val = 01.&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;    CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tcode     = 'VA01'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynprotab = bdcdata.&lt;/P&gt;&lt;P&gt;    REFRESH bdcdata.&lt;/P&gt;&lt;P&gt;    				&lt;/P&gt;&lt;P&gt;*PERFORM bdc_transaction USING 'VA01'.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM close_group.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen                                              *&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 program dynpro.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&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 fnam fval.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;  bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085477#M731737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085478#M731738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi prajwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you can use GET CURSOR and SET CURSOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR - field_properties &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [VALUE val] [LENGTH len] [OFFSET off] [LINE lin] [AREA area]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... VALUE val &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... LENGTH len &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... OFFSET off &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. ... LINE lin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. ... AREA area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Using these additions, further information on the cursor position can be imported during PAI processing if the addition FIELD is attached to the statement GET CURSOR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... VALUE val &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The VALUE addition assigns the formatted content of the screen element on which the cursor is positioned to the data object val as a character string. For val, a character-type (prior to Release 6.10 flat) variable is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... LENGTH len &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The addition LENGTH assigns the length of the screen element on which the cursor is positioned to the data object len. For len, a variable of the type i is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... OFFSET off &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The addition OFFSET assigns the position of the cursor within the screen element on which the cursor is positioned to the data object off /&amp;gt;. For off, a variable of the type i is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4 &lt;/P&gt;&lt;P&gt;... LINE lin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the screen element on which the cursor is positioned is within a table control or a step loop, the addition assigns the number of the row of the table control or the group of the step loop to the LINE data object lin. Otherwise, lin is set to 0. For lin, a variable of the type i is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 5 &lt;/P&gt;&lt;P&gt;... AREA area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the screen element on which the cursor is positiioned is within a table control, the addition AREA assigns the name of the table control to the data object area. Otherwise, area is initialized. For area, a character-type (prior to Release 6.10 flat) variable is expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET CURSOR - Dynpro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;SET CURSOR { { FIELD field [LINE line] [[DISPLAY] OFFSET off] } &lt;/P&gt;&lt;P&gt;           | { col lin } }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatives: &lt;/P&gt;&lt;P&gt;1. ... FIELD field [LINE line] [[DISPLAY] OFFSET off] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... col lin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect: &lt;/P&gt;&lt;P&gt;During PBO processing, this statement sets the cursor in the screen layout of the current screen. The cursor can be positioned by entering a screen element after FIELD or by entering a specific position using col and lin. Outside of PBO processing, the cursor is positioned in the next list displayed on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SET CURSOR statement is not specified, depending on the definition of the screen, the cursor is set according to the following hierarchy: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the cursor position determined statically in the screen properties, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first input field of the screen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first screen element of the screen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the input field in the systemtoolbar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter also applies if the input field in the system toolbar is not displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative 1 &lt;/P&gt;&lt;P&gt;... FIELD field [LINE line] [[DISPLAY] OFFSET off] &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;Effect &lt;/P&gt;&lt;P&gt;: The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition OFFSET is not specified, the cursor is set to the first position of the screen element. Using the addition OFFSET, the cursor can be set to the position in a screen element entered in off. In this case, the counting begins at 0. The position of the cursor is only visible in input/output fields. In other screen elements, the whole element is selected. For the data object off, the type i is expected. If the value of off is greater than the length of the screen element, the addition is ignored. If the value of off is negative, the cursor is positioned at the end of the screen element. As of release 6.20, the addition DISPLAY is standard and can be omitted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative 2 &lt;/P&gt;&lt;P&gt;... col lin &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;Effect: &lt;/P&gt;&lt;P&gt;The cursor is positioned in the column specified in col and the line specified in lin in the screen layout, if a screen element is available in this position that is not part of a table control or tabstrip control. For col and lin, data objects of type i are expected. The counting of the columns starts at 2. If the screen element is not an input/output field, the whole element is selected. If no screen element is available at the specified positions, or if the cursor is positioned in a table control or tabstrip control, or if negative values are entered in col or lin, the statement is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kunjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085478#M731738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085479#M731739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about this method,one can try it. If you are using the Table control  wizard the tc structure created by it has a field current_line which specifies the current line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PBO you can use this info and by using the abap command 'Set cursor' you can change the position of the cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also system field sy-cucol gives info about current cursor position.&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;Anubhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085479#M731739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085480#M731740</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;here is code for moving next line by pressing enter.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: cur_lin TYPE i VALUE 1,&lt;/P&gt;&lt;P&gt;      nxt_line TYPE i,&lt;/P&gt;&lt;P&gt;      f TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fld(25) TYPE c VALUE 'ITAB-MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI write like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_1000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ok_code = sy-ucomm.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'UP' OR 'CANC'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt; WHEN ' '.&lt;/P&gt;&lt;P&gt;      GET CURSOR LINE cur_lin.&lt;/P&gt;&lt;P&gt;      f = 1.&lt;/P&gt;&lt;P&gt;  ENDCASE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_1000  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in PBO write like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tab1_change_tc_attr OUTPUT.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; IF sy-ucomm &amp;lt;&amp;gt; ''.&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE itab LINES tab1-lines.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = '' AND f = 1.&lt;/P&gt;&lt;P&gt;    nxt_line = cur_lin + 1.&lt;/P&gt;&lt;P&gt;    SET CURSOR FIELD fld LINE nxt_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 11:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085480#M731740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T11:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085481#M731741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 04:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085481#M731741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T04:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085482#M731742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHECK THE STANDARD REPORT &lt;/P&gt;&lt;P&gt;RSDEMO_TABLE_CONTROL&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 06:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085482#M731742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T06:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085483#M731743</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;when u press enter pai gets executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in pai &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'ENTER'.&lt;/P&gt;&lt;P&gt;***write ur logic and &lt;/P&gt;&lt;P&gt;set cursor field f1.&lt;/P&gt;&lt;P&gt;endcase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 06:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085483#M731743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085484#M731744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use set and get cursor .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your PBO...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_table with control table_control&lt;/P&gt;&lt;P&gt;               cursor t_table-current_line.&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;In PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case okcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'ENTER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set cursor fieldname...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 06:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3085484#M731744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T06:30:56Z</dc:date>
    </item>
  </channel>
</rss>

