<?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 Validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889729#M1326211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Am uploading the data from the excel i have to do validation against it.How to do.Am going to upload the company code,year and document number .I have to check all the 3 in one shot.Consider the excel data is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CC     year    docnum&lt;/P&gt;&lt;P&gt;12     2008   15000&lt;/P&gt;&lt;P&gt;13    2009    16000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to check if the 15000 doc num exist for year 2008 n cc 12.If not have to proceed with next item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have uploaded the excel data's using the FM ALSM_EXCEL_TO_INTERNAL_TABLE.Please suggest me some solutions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 12:45:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-15T12:45:44Z</dc:date>
    <item>
      <title>Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889729#M1326211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Am uploading the data from the excel i have to do validation against it.How to do.Am going to upload the company code,year and document number .I have to check all the 3 in one shot.Consider the excel data is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CC     year    docnum&lt;/P&gt;&lt;P&gt;12     2008   15000&lt;/P&gt;&lt;P&gt;13    2009    16000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to check if the 15000 doc num exist for year 2008 n cc 12.If not have to proceed with next item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have uploaded the excel data's using the FM ALSM_EXCEL_TO_INTERNAL_TABLE.Please suggest me some solutions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889729#M1326211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T12:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889730#M1326212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi srutiram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If your file has 10001 records in that case , FM treats first record as 0 and 10000 record as 9999 , After this 10001 record is again treated as 0 record in the FM. &lt;/P&gt;&lt;P&gt;Based on the no of records in file FM keeps uploading records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I think you can pass Parameters for FM parameters begin_row etc.. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889730#M1326212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889731#M1326213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what sort of document no.you are passing...&lt;/P&gt;&lt;P&gt;like PO,SO,Posting Doc.,etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889731#M1326213</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-07-15T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889732#M1326214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following code and see if it helps in filtering out the entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

w_wa is a work area of table and t_finout would have the final results

SELECT bukrs
              belnr
              ghjar
   FROM bsid
   INTO w_wa
   FOR ALL ENTIRES IN t_out ' your internal table
  WHERE bukrs = t_out-bukrs
       AND ghjar = t_out-ghjar.

IF sy-subrc EQ 0.

APPEND w_wa TO t_finout.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889732#M1326214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889733#M1326215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have used the function module ALSM_EXCEL_TO_INTERNAL_TABLE  to read data from excel, right?&lt;/P&gt;&lt;P&gt;The internal table which contains the data say GT_UPLOAD should be of type alsmex_tabline right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, LOOP the internal table GT_UPLOAD and fill your workarea and then append it to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      LOOP AT gt_upload INTO gs_upload.
        CASE gs_upload-col.
          WHEN '0001'.
            gs_wa-cc = gs_upload-value. " IF you want you can validate here also
          WHEN '0002'.
            gs_wa-year = gs_upload-value. " IF you want you can validate here also
          WHEN '0003'.
            gs_wa-docnum = gs_upload-value. " IF you want you can validate here also
        ENDCASE.
        AT END OF row.
          APPEND gs_wa TO gt_table
        ENDAT.
      ENDLOOP.

Now, you have all the data to be validated in GT_TABLE...

Loop the table and validate as per your requirement....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation/m-p/5889733#M1326215</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2009-07-15T12:57:59Z</dc:date>
    </item>
  </channel>
</rss>

