<?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: How to Validate Customer Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766195#M1305725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sekhar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    U can create the customer using BDC call transaction , because in BDC , data is automaticaly validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 08:44:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-29T08:44:08Z</dc:date>
    <item>
      <title>How to Validate Customer Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766193#M1305723</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 will get a Customer Record from an Application server.&lt;/P&gt;&lt;P&gt;I have a requirement to Validate Complete customer data before create a customer(First I want to Confirm whether the Provided data is valid, If the errors are there i need to show else i need to show Success message to go ahead and Create).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any option to validate the data using XD01 or &lt;/P&gt;&lt;P&gt;to Validate using Call Transaction Method and Transaction Roll Back? Please give me possible ways..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sekhar.J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766193#M1305723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Validate Customer Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766194#M1305724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all use OPEN/READ/CLOSE DATASET to read the information from application server into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can make do your validation to check that all the necessary/mandatory fields ahve been provided by the file.&lt;/P&gt;&lt;P&gt;Next, you can also check if the customerwith those detauils is aready available in system, make use of &lt;STRONG&gt;BAPI_CUSTOMER_GETDETAIL1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,again to validate you can make use of &lt;STRONG&gt;BAPI_CUSTOMER_CREATEFROMDATA1&lt;/STRONG&gt; you will find a return parameters.&lt;/P&gt;&lt;P&gt;Call this BAPI, and loop on the returns parameters for "A" and 'E' (Abort/Error). If there are any errors then write these details to your summary error table.&lt;/P&gt;&lt;P&gt;If no errros have been returned then  you can make use of &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt; to create the custoer in system.&lt;/P&gt;&lt;P&gt;If error have been returned then make use of &lt;STRONG&gt;BAPI_TRANSACTION_ROLLBACK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766194#M1305724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Validate Customer Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766195#M1305725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sekhar ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    U can create the customer using BDC call transaction , because in BDC , data is automaticaly validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-customer-data/m-p/5766195#M1305725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:44:08Z</dc:date>
    </item>
  </channel>
</rss>

