<?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: Required field issue in table control (module pool) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367768#M1542596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you have to validate it in PAI when you modify the content to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write a check if any of the fields are initial when there is a non initial field in the row.&lt;/P&gt;&lt;P&gt;if the complete row is initial then donot do the validation.&lt;/P&gt;&lt;P&gt;Remove the required option from the screen attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT it.
      FIELD:it-a,
            it-b
      MODULE modify_int_table.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module modify_int_table.
"&amp;lt;--do the validations here
modify it index tb-CURRENT_LINE.
endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 15:26:59 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-11-09T15:26:59Z</dc:date>
    <item>
      <title>Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367762#M1542590</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;I have a table control, having 5 fields (columns) - A, B, C, D and E.&lt;/P&gt;&lt;P&gt;Fields A and C are Required (Mandatory Fields).  Now, if I Enter 1 row and press on SAVE, I am prompted to fill in the rest of the rows in the table control as the fields A and C in the rest of the rows are also mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I handle this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;abaper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 01:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367762#M1542590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T01:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367763#M1542591</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;I think what you did in the table control screen's PBO is you inserted empty lines into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to set A and C as mandatory in the way you're using, you could not insert initial empty lines for the user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use button to insert/create new line for user to input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 14:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367763#M1542591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367764#M1542592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Nov 9, 2010 8:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367764#M1542592</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367765#M1542593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiliang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not inserted initial/blank lines to the control.&lt;/P&gt;&lt;P&gt;But, I have set the field TABLECONTROL-LINES to 100 , other wise the empty lines gets greyed out. Do you tink this might be an issue.&lt;/P&gt;&lt;P&gt;If yes, then that means that I cannot make the fields required if I increase the number of input lines and the user wants to input only one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367765#M1542593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367766#M1542594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PBO you have to set it as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLECONTROL-LINES = lines( itab ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367766#M1542594</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367767#M1542595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does not work for my purpose because the user will have to input N number of entries in the control table.&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;Edited by: d sappanese on Nov 9, 2010 4:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367767#M1542595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367768#M1542596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you have to validate it in PAI when you modify the content to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write a check if any of the fields are initial when there is a non initial field in the row.&lt;/P&gt;&lt;P&gt;if the complete row is initial then donot do the validation.&lt;/P&gt;&lt;P&gt;Remove the required option from the screen attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  LOOP AT it.
      FIELD:it-a,
            it-b
      MODULE modify_int_table.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module modify_int_table.
"&amp;lt;--do the validations here
modify it index tb-CURRENT_LINE.
endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367768#M1542596</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T15:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367769#M1542597</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;It depends on how you're inserting the new record into the internal table, here you should have just one only record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367769#M1542597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367770#M1542598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what exactly you meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the user can enter multiple lines/rows and we cannot restrict him. I am NOT using any button to insert one line at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I am assuming that as per Keshav, I will have to validate it myself, and should not be keeping the fields mandatory at the screen level.Rather I will have to code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367770#M1542598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367771#M1542599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what exactly you meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the user can enter multiple lines/rows and we cannot restrict him. I am NOT using any button to insert one line at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I am assuming that as per Keshav, I will have to validate it myself, and should not be keeping the fields mandatory at the screen level.Rather I will have to code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367771#M1542599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367772#M1542600</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;But how do you append the row in the internal table where the rows, to be displayed in table control, are stored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367772#M1542600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367773#M1542601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do a Select Before the loop for the table control in flow logic.&lt;/P&gt;&lt;P&gt;Just fyi that No blank lines are selected. and then I increase Tablecontrol-lines so that the user can input more lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regrads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367773#M1542601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T16:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367774#M1542602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error message to fill mandatary fields should be triggered only if there's a corrisponding record in internal table, so I just want to know if you have appended initial line in order to allow the user to insert new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else if you have appended some records and this records have the mandatary fields with initial value, u need to delete that option from field attribute by screen-painter and do some validation manually in PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PAI.

   LOOP AT ITAB.
       MODULE VALIDATION.
   ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as some guys have suggested to you before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367774#M1542602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T16:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Required field issue in table control (module pool)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367775#M1542603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue is solved.&lt;/P&gt;&lt;P&gt;I did not do validations.&lt;/P&gt;&lt;P&gt;I kept the required/Mandatory fields as it is.&lt;/P&gt;&lt;P&gt;The problem was, I had a mandatory field Country key, whose SET?GET Parameter were checked in the attributes, due to which the values were getting filled in the lines but were invisible in the table control(God knows why ) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 16:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/required-field-issue-in-table-control-module-pool/m-p/7367775#M1542603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T16:36:00Z</dc:date>
    </item>
  </channel>
</rss>

