<?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 Finding an Current line in Module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606638#M2011429</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I developed an Module screen, where user will upload an excel file.&lt;/P&gt;
  &lt;P&gt;Here in excel file 'If user inputs an invalid movement type need to thrown an error message .&lt;/P&gt;
  &lt;P&gt;I have done validate after PAI module. '&lt;STRONG&gt;But here the issue was i need to show the current line where the invalid movement type'&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Below was the 2nd line item error message to be display and if its 4th line item need to show as so on. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2080738-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2080739-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;MODULE validation INPUT.&lt;BR /&gt;  DATA: wa_bwart TYPE zcg_t_mvt.&lt;BR /&gt;  IF git_resb_tc-bwart IS INITIAL.&lt;BR /&gt;    MESSAGE 'Enter the Movement type' TYPE 'E'.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  LOOP AT git_resb_tc INTO gs_resb_tc.&lt;BR /&gt;    SELECT SINGLE * FROM zcg_t_mvt INTO wa_bwart WHERE bwart = gs_resb_tc-bwart.&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;      PERFORM tc_cur_set.&lt;BR /&gt;      MESSAGE 'Enter the correct Movement Type' TYPE 'E'.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;ENDMODULE.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM tc_cur_set .&lt;BR /&gt;  GET CURSOR FIELD tc_cur-field&lt;BR /&gt;  LINE  tc_cur-line&lt;BR /&gt;  AREA  tc_cur-area.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Aug 2022 10:08:42 GMT</pubDate>
    <dc:creator>divsmart</dc:creator>
    <dc:date>2022-08-04T10:08:42Z</dc:date>
    <item>
      <title>Finding an Current line in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606638#M2011429</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I developed an Module screen, where user will upload an excel file.&lt;/P&gt;
  &lt;P&gt;Here in excel file 'If user inputs an invalid movement type need to thrown an error message .&lt;/P&gt;
  &lt;P&gt;I have done validate after PAI module. '&lt;STRONG&gt;But here the issue was i need to show the current line where the invalid movement type'&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Below was the 2nd line item error message to be display and if its 4th line item need to show as so on. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2080738-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2080739-image.png" /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;MODULE validation INPUT.&lt;BR /&gt;  DATA: wa_bwart TYPE zcg_t_mvt.&lt;BR /&gt;  IF git_resb_tc-bwart IS INITIAL.&lt;BR /&gt;    MESSAGE 'Enter the Movement type' TYPE 'E'.&lt;BR /&gt;  ENDIF.&lt;BR /&gt;  LOOP AT git_resb_tc INTO gs_resb_tc.&lt;BR /&gt;    SELECT SINGLE * FROM zcg_t_mvt INTO wa_bwart WHERE bwart = gs_resb_tc-bwart.&lt;BR /&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;      PERFORM tc_cur_set.&lt;BR /&gt;      MESSAGE 'Enter the correct Movement Type' TYPE 'E'.&lt;BR /&gt;    ENDIF.&lt;BR /&gt;  ENDLOOP.&lt;BR /&gt;ENDMODULE.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;FORM tc_cur_set .&lt;BR /&gt;  GET CURSOR FIELD tc_cur-field&lt;BR /&gt;  LINE  tc_cur-line&lt;BR /&gt;  AREA  tc_cur-area.&lt;BR /&gt;ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606638#M2011429</guid>
      <dc:creator>divsmart</dc:creator>
      <dc:date>2022-08-04T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding an Current line in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606639#M2011430</link>
      <description>&lt;P&gt;I don't get the question. Is it about Table Control or about Excel?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 14:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606639#M2011430</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-08-04T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding an Current line in Module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606640#M2011431</link>
      <description>&lt;P&gt;Issue done &lt;/P&gt;&lt;P&gt;Closing  the thread . &lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-an-current-line-in-module-pool/m-p/12606640#M2011431</guid>
      <dc:creator>divsmart</dc:creator>
      <dc:date>2022-08-05T08:42:41Z</dc:date>
    </item>
  </channel>
</rss>

