<?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 start and end date in BAPI_CONTRACT_CREATEFROMDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061965#M1354106</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;there are fields CT_VALID_F and CT_VALID_T in structure CONTRACT_HEADER_IN. Have you tried to use these fields? Don't forget to fill structure CONTRACT_HEADER_INX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2009 05:39:25 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2009-09-11T05:39:25Z</dc:date>
    <item>
      <title>Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061964#M1354105</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 am using BAPI_CONTRACT_CREATEFROMDATA to create a contract from within a custom ABAP program. However I cannot figure out how to get the contract start and end dates into the contract header. I know that you can enter them into the ONTRACT_DATA_IN table parameter but these dates only appear on the line items and not the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know which parameters on the function map to the contract header start and end dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 15:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061964#M1354105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-10T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061965#M1354106</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;there are fields CT_VALID_F and CT_VALID_T in structure CONTRACT_HEADER_IN. Have you tried to use these fields? Don't forget to fill structure CONTRACT_HEADER_INX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 05:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061965#M1354106</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-09-11T05:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061966#M1354107</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 the Contracts,Take the Structures of :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTRACT_HEADER_INX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTRACT_HEADER_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are fields CT_VALID_F and CT_VALID_T in structure CONTRACT_HEADER_IN needs to be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 05:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061966#M1354107</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-09-11T05:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061967#M1354108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions but I have in fact tried these fields (and yes I did remember the 'X's in the companion structure). However the dates do not appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts on where I might be going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 07:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061967#M1354108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T07:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061968#M1354109</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;there are also fields QT_VALID_F and QT_VALID_T for quotation or inquiry. So it looks like for different contract types you need to use different fields. This BAPI calls FM SD_SALESDOCUMENT_CREATE which has subroutine ms_move_header_in which maps from BAPI fields to internal fields. Here is a small part of this routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  MOVE order_header_in-qt_valid_f       TO e_vbakkom-angdt.
  MOVE order_header_in-qt_valid_t       TO e_vbakkom-bnddt.
  MOVE order_header_in-ct_valid_f       TO e_vbakkom-guebg.
  MOVE order_header_in-ct_valid_t       TO e_vbakkom-gueen.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check technical fields for the screen  fields "Valid from" and "Valid to" in VA43 I get names GUEBG and GUEEN. So it still looks like you should use CT_VALID_F and CT_VALID_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention you can still debug BAPI to figure out where the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Martin Voros on Sep 11, 2009 9:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 07:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061968#M1354109</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-09-11T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061969#M1354110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would seem that the BAPI is losing certain data on the way through. A MOVE-CORRESPONDING comand seems to ensure that the date gets lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This line is where it happens;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Function SD_SALES_HEADER_MAINTAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;04. Vertragsdaten aus Schnittstelle zur Verarbeitung übernehmen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE-CORRESPONDING FVBAKKOM TO VEDAKOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first structure contains the dates but after the command executes those dates have not made it into the second structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that by putting the dates into the second struture (via the debugger) I could get the header dates written correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't get me round my problem though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AlistairD55 on Sep 11, 2009 2:15 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 13:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061969#M1354110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T13:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061970#M1354111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think those on the header on not the right ones for you. You will have to fill in the start and end date for each item of the contract in the tables parameter CONTRACT_DATA_IN fields CON_ST_DAT, CON_EN_DAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 15:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061970#M1354111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T15:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061971#M1354112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For header, use item number ITM_NUMBER = '000000'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 15:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061971#M1354112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-11T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061972#M1354113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent. That did the trick. Many thanks indeed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061972#M1354113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061973#M1354114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alistair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just want to check where did you change the ITM_NUMBER field, its not available in the header part in the BAPI header structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 01:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061973#M1354114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-03T01:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Contract start and end date in BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061974#M1354115</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 am trying to use the same fields in quotation BAPI (BAPI_QUOTATION_CREATEFROMDATA2 ) to update contract start and end date, because of start date rule, contract start date and end date are not updating. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have any rule field here to update, so then how to use this ct_valid_t and ct_valid_f fields to update contract dates.&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;Muthu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 20:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contract-start-and-end-date-in-bapi-contract-createfromdata/m-p/6061974#M1354115</guid>
      <dc:creator>Muthukumaran</dc:creator>
      <dc:date>2016-08-09T20:10:31Z</dc:date>
    </item>
  </channel>
</rss>

