<?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: Contract program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810371#M347483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for validation via user-exit i guess you can do the same via: USEREXIT_SAVE_DOCUMENT_PREPARE of include: MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i beleive, it is easy to do the validation in the report program that you upload the flat file and load the contracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 02:15:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-15T02:15:31Z</dc:date>
    <item>
      <title>Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810367#M347479</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;While creating contracts, if I have same Customer, material, and valid dates ranges i need to stop the transaction. For this I need to generate report program. The data comes fron flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give suggestion how to approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 15:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810367#M347479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810368#M347480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Contracts can be created either by using BAPI or BDC method. &lt;/P&gt;&lt;P&gt;In your program sort the internal table, which has contract details, by customer, material and date. &lt;/P&gt;&lt;P&gt;Follow the mentioned procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_CONTRACT into LS_CONTRACT.&lt;/P&gt;&lt;P&gt;  AT NEW DATE-RANGE.&lt;/P&gt;&lt;P&gt;    create contract.&lt;/P&gt;&lt;P&gt;  ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use BAPI_CONTRACT_CREATEFROMDATA for COntract creation using BAPI method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 16:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810368#M347480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810369#M347481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RANI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the main internal table to Main2 internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describe table Main into v_main variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the internal table Main2 by customer and material and date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Delete Adjacent duplicates from Main2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Describe table Main2 into variable V_MAIN2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If v_main NE v_main2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stop the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 10:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810369#M347481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810370#M347482</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 need that user exit name and while creating Contract manually if there is any duplicate based on customer, material and valid dates I need to display error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please update me as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 16:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810370#M347482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810371#M347483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for validation via user-exit i guess you can do the same via: USEREXIT_SAVE_DOCUMENT_PREPARE of include: MV45AFZZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i beleive, it is easy to do the validation in the report program that you upload the flat file and load the contracts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 02:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810371#M347483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T02:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Contract program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810372#M347484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eswar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the matter of uploading contracts through flat file. I need to check the duplicate records while creating or changing through VA41 or VA42. while saving the document if we have any duplicate records based on Customer, material and dates we have display error message &amp;amp; stop the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your information about user exit name and form name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 04:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-program/m-p/1810372#M347484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T04:49:09Z</dc:date>
    </item>
  </channel>
</rss>

