<?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: ABAP Screen: Implicit transferring fields / LOOP AT TC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422908#M1646777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think You have used&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module item_get.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in PBO, you might have SQL statements there,&lt;/P&gt;&lt;P&gt;so everytime you enter some thing in the input field (price).&lt;/P&gt;&lt;P&gt;This module item_get is executed and your internal table might be refresehed. I think...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2012 08:56:34 GMT</pubDate>
    <dc:creator>surajarafath</dc:creator>
    <dc:date>2012-01-16T08:56:34Z</dc:date>
    <item>
      <title>ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422905#M1646774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed a table control in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;process before output.
  module status_0110.

  loop with control tc_liqivp_items.
    module item_get.
    module screen_modify.
  endloop.

process after input.
  loop with control tc_liqivp_items.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-endpa
             module endpa_check on chain-request.
    endchain.

    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-umz_fenster,
             gs_liqivp_items-endpa
             module item_modify on chain-request.
    endchain.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control is defined as following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;controls: tc_liqivp_items  type tableview using screen 110.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen 110 is defined as subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the classical table control (using loop at TCu2026); in PAI the fields will be transferred implicitly from the table control to the assigned structure &lt;STRONG&gt;gs_liqivp_items&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the table control loop, however in structure not all fields are filled correctly (some fields comes from the last line of the internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;E.g.:
10	Testline1 3.25 CHF	red 	blue
20	Testline1 4.25 CHF	green 	blue
30	Testline1 6.10 CHF	white 	blue
40	Testline1 6.50 CHF	yellow	blue&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the value in line 1 from 3.25 to 4.25 CHF also the fields red and blue will be overwritten by the last line. The result is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;10	Testline1 4.25 CHF	yellow	blue
20	Testline1 4.25 CHF	green 	blue
30	Testline1 6.10 CHF	white 	blue
40	Testline1 6.50 CHF	yellow	blue&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the price field is set as input field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea for this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422905#M1646774</guid>
      <dc:creator>Weiskopf</dc:creator>
      <dc:date>2012-01-16T06:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422906#M1646775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do one thimg you can read your internal table with line nu,ber before appending or modifying the record..please put a debigger and check..please paste the code of where it changes value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422906#M1646775</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2012-01-16T06:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422907#M1646776</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;PRE&gt;&lt;CODE&gt;In PAI  " Flow logic

process after input.
  loop with control tc_liqivp_items.
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-endpa
             module endpa_check on chain-request.
    endchain.
 
    chain.
      field: gs_liqivp_items-umzeichart,
             gs_liqivp_items-umz_fenster,
             gs_liqivp_items-endpa
             module item_modify on chain-request.
    endchain.
    module move_to_progam.  " Add this in your program
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In program  " To Transfer the data of each row of Table control to Internal Table of the Program

MODULE MOVE_TO_PROGAM INPUT. " replace the following variables/Internal Tables with the ones you declared
  DESCRIBE TABLE itab LINES tc-lines.
  if  tc-lines &amp;lt; tc-current_line.
    append gs_liqivp_items to  itab.
  else.
    modify itab from gs_liqivp_items INDEX tc-current_line.
  endif.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would serve your purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 07:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422907#M1646776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-16T07:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422908#M1646777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think You have used&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module item_get.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in PBO, you might have SQL statements there,&lt;/P&gt;&lt;P&gt;so everytime you enter some thing in the input field (price).&lt;/P&gt;&lt;P&gt;This module item_get is executed and your internal table might be refresehed. I think...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 08:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422908#M1646777</guid>
      <dc:creator>surajarafath</dc:creator>
      <dc:date>2012-01-16T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422909#M1646778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not the transfer from control to internal table. The problem is the filling of structure gs_liqivp_items.&lt;/P&gt;&lt;P&gt;Curiously, by debugging the flow logic the &lt;STRONG&gt;gs_liqivp_items&lt;/STRONG&gt; contains u201Coldu201D values from the prior PBO; within control loop not all fields will be set in structure &lt;STRONG&gt;gs_liqivp_items&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback!&lt;/P&gt;&lt;P&gt;Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 09:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422909#M1646778</guid>
      <dc:creator>Weiskopf</dc:creator>
      <dc:date>2012-01-16T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Screen: Implicit transferring fields / LOOP AT TC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422910#M1646779</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 "corresponding fields of " when you move data from wa like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding fields of wa to structute_name.&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;Ravi Seela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 05:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-screen-implicit-transferring-fields-loop-at-tc/m-p/8422910#M1646779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T05:48:39Z</dc:date>
    </item>
  </channel>
</rss>

