<?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: include program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070163#M727682</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 should delete the records fails the validation from ITAB and move them in a second new table (just like ITAB), in this way the rest of the program will elaborate only the good recordsand at the end you can print the data of the new (error) table in order to displya the failed records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 18:15:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T18:15:16Z</dc:date>
    <item>
      <title>include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070162#M727681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;my reqirement is that, i hava an itab, on which numeric validations have to be performed,&lt;/P&gt;&lt;P&gt;, i want to place the validation code in an include program and &lt;/P&gt;&lt;P&gt;call it from this program when needed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought of doing this way:&lt;/P&gt;&lt;P&gt;put all the validation code in an include program under one subroutine named validation,&lt;/P&gt;&lt;P&gt;and in the main program i would call this validation like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform validation using itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to get back the news whether the validation was successfull or not.&lt;/P&gt;&lt;P&gt;if yes , remaining part of program should go ahead or display &lt;/P&gt;&lt;P&gt;which all records failed the test.&lt;/P&gt;&lt;P&gt;can someone give me some hints on this.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 18:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070162#M727681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070163#M727682</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 should delete the records fails the validation from ITAB and move them in a second new table (just like ITAB), in this way the rest of the program will elaborate only the good recordsand at the end you can print the data of the new (error) table in order to displya the failed records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 18:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070163#M727682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T18:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070164#M727683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana, &lt;/P&gt;&lt;P&gt;Do as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data: message type standard table of bapiret2.
perform validation using itab tables message 

Form validation using itab tables lt_message structure bapiret2.
Do the validations and move the error/information/warning messages into message table.
Return.
EndForm.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your main program read the message table and delete the records for which there is an error message.&lt;/P&gt;&lt;P&gt;process rest of the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;P&gt;pls. reward if the post helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 18:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070164#M727683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T18:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070165#M727684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max and lokesh,&lt;/P&gt;&lt;P&gt;thanks for your replies, &lt;/P&gt;&lt;P&gt;i am also sorry for confusing you,&lt;/P&gt;&lt;P&gt;actually this is just a validation part of program, &lt;/P&gt;&lt;P&gt;so i had already done some code for validation , where in i store all the error data and dont delete it , infact we donnot need to, we just display what is wrong, so teh client goes back make all changes, where error  occured, and resubmit it, so dont go ahead till everything is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i thought of putting all the validations and storing of error data i itab, and also displaying that with write stmt in include program itself, the only thing returningback is yes or no if it  was successfull, while sending we send the whole itab.&lt;/P&gt;&lt;P&gt;if return value is no, we just quit the program., bcos already the display is done in include program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am i thinking in a wrong way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 19:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070165#M727684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T19:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: include program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070166#M727685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perform validation in program (zxy) using subrc Itab. You can fill sy-subrc value or  whatever you want in subrc based on the type. then you can check it in your main program to continue or stop the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 21:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-program/m-p/3070166#M727685</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2007-11-28T21:41:49Z</dc:date>
    </item>
  </channel>
</rss>

