<?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 dialog programming, data being washed out in TAB Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671298#M1289617</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 working on dialog programming , in which i am using Table Control  for user input (data is not coming from database table) . everything is going well till assignment of data to internal table but when&lt;/P&gt;&lt;P&gt;control goes to PBO by any means like pressing ENTER etc. then data being washed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE TC_CONTROL.&lt;/P&gt;&lt;P&gt;  LOOP AT it_data&lt;/P&gt;&lt;P&gt;         INTO wa_data&lt;/P&gt;&lt;P&gt;         WITH CONTROL tc_control&lt;/P&gt;&lt;P&gt;         CURSOR tc_control-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tc_control_get_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;LOOP AT IT_DATA.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD WA_DATA-FREPS_N.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-TOEPS_N.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-PRCH_A.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-SRVC_AMT .&lt;/P&gt;&lt;P&gt;      FIELD wa_data-ACCNT_C.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-AMT_D.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-NARR_X.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-CRPRD_N.&lt;/P&gt;&lt;P&gt;      MODULE tc_control_modify ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Abap program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE TC_CONTROL OUTPUT.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE it_data LINES tc_control-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " TC_CONTROL  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TC_CONTROL TYPE TABLEVIEW USING SCREEN 1000,&lt;/P&gt;&lt;P&gt;          TC_CONTROL1 TYPE TABLEVIEW USING SCREEN 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:     G_TC_CONTROLS_LINES  LIKE SY-LOOPC,&lt;/P&gt;&lt;P&gt;          G_TC_CONTROLS_LINES1  LIKE SY-LOOPC.&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;      Module  tc_control_get_lines  OUTPUT&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;P&gt;MODULE tc_control_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g_tc_controls_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding it_data to wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_control_get_lines  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_control_modify INPUT.&lt;/P&gt;&lt;P&gt;move-corresponding wa_data to it_data.&lt;/P&gt;&lt;P&gt;MODIFY it_data&lt;/P&gt;&lt;P&gt;    FROM wa_data&lt;/P&gt;&lt;P&gt;    INDEX tc_control-current_line.&lt;/P&gt;&lt;P&gt;append it_data.&lt;/P&gt;&lt;P&gt;clear it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_control_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me any clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 07:01:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T07:01:37Z</dc:date>
    <item>
      <title>dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671298#M1289617</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 working on dialog programming , in which i am using Table Control  for user input (data is not coming from database table) . everything is going well till assignment of data to internal table but when&lt;/P&gt;&lt;P&gt;control goes to PBO by any means like pressing ENTER etc. then data being washed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE TC_CONTROL.&lt;/P&gt;&lt;P&gt;  LOOP AT it_data&lt;/P&gt;&lt;P&gt;         INTO wa_data&lt;/P&gt;&lt;P&gt;         WITH CONTROL tc_control&lt;/P&gt;&lt;P&gt;         CURSOR tc_control-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE tc_control_get_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;LOOP AT IT_DATA.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD WA_DATA-FREPS_N.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-TOEPS_N.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-PRCH_A.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-SRVC_AMT .&lt;/P&gt;&lt;P&gt;      FIELD wa_data-ACCNT_C.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-AMT_D.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-NARR_X.&lt;/P&gt;&lt;P&gt;      FIELD wa_data-CRPRD_N.&lt;/P&gt;&lt;P&gt;      MODULE tc_control_modify ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Abap program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE TC_CONTROL OUTPUT.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE it_data LINES tc_control-lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " TC_CONTROL  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS: TC_CONTROL TYPE TABLEVIEW USING SCREEN 1000,&lt;/P&gt;&lt;P&gt;          TC_CONTROL1 TYPE TABLEVIEW USING SCREEN 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:     G_TC_CONTROLS_LINES  LIKE SY-LOOPC,&lt;/P&gt;&lt;P&gt;          G_TC_CONTROLS_LINES1  LIKE SY-LOOPC.&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;      Module  tc_control_get_lines  OUTPUT&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;P&gt;MODULE tc_control_get_lines OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g_tc_controls_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding it_data to wa_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_control_get_lines  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_control_modify INPUT.&lt;/P&gt;&lt;P&gt;move-corresponding wa_data to it_data.&lt;/P&gt;&lt;P&gt;MODIFY it_data&lt;/P&gt;&lt;P&gt;    FROM wa_data&lt;/P&gt;&lt;P&gt;    INDEX tc_control-current_line.&lt;/P&gt;&lt;P&gt;append it_data.&lt;/P&gt;&lt;P&gt;clear it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_control_modify  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me any clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671298#M1289617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671299#M1289618</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;Your code part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MODULE tc_control_get_lines OUTPUT.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;g_tc_controls_lines = sy-loopc.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;move-corresponding it_data to wa_data.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDMODULE. " tc_control_get_lines OUTPUT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you have &lt;STRONG&gt;move-corresponding it_data to wa_data&lt;/STRONG&gt; ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that part.&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;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671299#M1289618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671300#M1289619</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 delete this line .&lt;/P&gt;&lt;P&gt;*-----&lt;/P&gt;&lt;P&gt;append it_data.&lt;/P&gt;&lt;P&gt;clear it_data. &lt;/P&gt;&lt;P&gt;*-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_control_modify INPUT.&lt;/P&gt;&lt;P&gt;move-corresponding wa_data to it_data.&lt;/P&gt;&lt;P&gt;MODIFY it_data&lt;/P&gt;&lt;P&gt;FROM wa_data&lt;/P&gt;&lt;P&gt;INDEX tc_control-current_line.&lt;/P&gt;&lt;P&gt;append it_data.        "&amp;lt;---&lt;/P&gt;&lt;P&gt;clear it_data.         "&amp;lt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. " tc_control_modify INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671300#M1289619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671301#M1289620</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;Define the internal table and work area as global data declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether the field names of table control in the screen painter is same as the one you have mapped in PBO (WA_DATA).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671301#M1289620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671302#M1289621</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 repopulating the data in the PBO as well. I am sure your internal table would have values once it reaches the PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nitwick on May 28, 2009 9:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671302#M1289621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671303#M1289622</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 remove this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_tc_controls_lines = sy-loopc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aswarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671303#M1289622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671304#M1289623</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;  U put the condition at PBO ...&lt;/P&gt;&lt;P&gt;  For example: if not it[] is initail.&lt;/P&gt;&lt;P&gt;                       ******&lt;STRONG&gt;check&lt;/STRONG&gt;*********&lt;/P&gt;&lt;P&gt;                     endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 07:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671304#M1289623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T07:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671305#M1289624</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 made some changes to your code , check this --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE tc_control_modify INPUT.
move-corresponding wa_data to it_data.
MODIFY it_data
*FROM wa_data " Commented
INDEX SY-STEPL.  " SY-STEPL
*append it_data. ommented
clear it_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671305#M1289624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671306#M1289625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;     probelm is not here because here our purpose is to store the data in internal table only.&lt;/P&gt;&lt;P&gt;i am facing the problem when data is going back to screen in PBO, there also data in internal exist but when i try to assign it to screen field structure then data is being overlap and loop is running as many times as i have the rows in my table control. so when i input 2 rows entry in my table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then loop run by 3 times each time data is going into wa_itab but it washed in next loop pass.&lt;/P&gt;&lt;P&gt;and finally i get the clean sweap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_control_modify INPUT.&lt;/P&gt;&lt;P&gt;move-corresponding wa_data to it_data.&lt;/P&gt;&lt;P&gt;MODIFY it_data&lt;/P&gt;&lt;P&gt;*FROM wa_data " Commented&lt;/P&gt;&lt;P&gt;INDEX SY-STEPL.  " SY-STEPL&lt;/P&gt;&lt;P&gt;*append it_data. ommented&lt;/P&gt;&lt;P&gt;clear it_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671306#M1289625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programming, data being washed out in TAB Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671307#M1289626</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 understood the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your ABAP code replace all the occurrrences of &lt;STRONG&gt;wa_data&lt;/STRONG&gt;  with the structurename.&lt;/P&gt;&lt;P&gt;Use the &lt;STRONG&gt;TABLES&lt;/STRONG&gt; keyword to declare the structure .That structure will be same as&lt;/P&gt;&lt;P&gt;reference table of the table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the structure is SPFLI.&lt;/P&gt;&lt;P&gt;Check the bellow code , it will resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP code - -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;program  zsdn.
tables spfli.  " Declare the structure
data : it_data like table of spfli with header line,
*wa_data TYPE spfli,  " commented
w_i type i.
*CONTROLS TC_CONTROL TYPE TABLEVIEW USING SCREEN 100.

controls: tc_control type tableview using screen 1000,
tc_control1 type tableview using screen 1000.

data: g_tc_controls_lines like sy-loopc,
g_tc_controls_lines1 like sy-loopc.


module tc_control output.
  describe table it_data lines tc_control-lines.

endmodule. " TC_CONTROL OUTPUT


module tc_control_get_lines output.

  g_tc_controls_lines = sy-loopc.

  move-corresponding it_data to spfli.


endmodule. " tc_control_get_lines OUTPUT



module tc_control_modify input.
  move-corresponding spfli to it_data.
  modify it_data
  from spfli
  index tc_control-current_line.
  append it_data.
  clear it_data.


endmodule. " tc_control_modify INPUT

module status_0100 output.
  set pf-status 'STAT'.
*  SET TITLEBAR 'xxx'.

endmodule.                 " STATUS_0100  OUTPUT

module user_command_0100 input.
  case sy-ucomm.
    when 'BACK' or 'EXIT' or 'CANCEL'.
      leave to screen 0.
  endcase.

endmodule.                 " USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  POPLATE_TABLE  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module poplate_table output.
  if it_data is initial.
    select * from spfli into table it_data.
  endif.
endmodule.                 " POPLATE_TABLE  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen code (Scr no 1000) - -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  MODULE poplate_table.

  MODULE tc_control.
  LOOP AT it_data WITH CONTROL tc_control CURSOR w_i.
    MODULE tc_control_get_lines.
  ENDLOOP.
*
PROCESS AFTER INPUT.
  MODULE user_command_0100.


  LOOP AT it_data.

    MODULE tc_control_modify ON CHAIN-REQUEST.
*    ENDCHAIN.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 12:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programming-data-being-washed-out-in-tab-control/m-p/5671307#M1289626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T12:00:11Z</dc:date>
    </item>
  </channel>
</rss>

