<?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: Validate trips before creating in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196388#M1909985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Naimesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After passing &lt;SPAN style="color: #333333; font-size: 11.9999990463257px;"&gt; &lt;STRONG&gt;fcode &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;= 'CHCK', &lt;/STRONG&gt;we are getting errors in RETURN table. But if I pass &lt;STRONG&gt;fcode = 'INS'&lt;/STRONG&gt;, trips are getting created for the same data. If errors are there, why trips are getting created ? Could you please help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2015 05:27:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-07-03T05:27:31Z</dc:date>
    <item>
      <title>Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196386#M1909983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;We have a requirement to validate Trips before creating and return the error messages using an RFC. We are using the FM ' &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;HRTRV_IF_MODIFY_TRIP&lt;/STRONG&gt;'&amp;nbsp; and returns the &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;RETURN&lt;/STRONG&gt; parameter of this FM. Here trip is getting created. I have tried &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;ROLLBACK&lt;/STRONG&gt; after creating the trip. But no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;We also tried to delete the trip using '&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;BAPI_TRIP_DELETE&lt;/STRONG&gt;' after creating trip. Trip is getting deleted and we are able to get the error messages. But the issue in this case is that the trip number is increasing unnecessarily.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;Any other solution is there to validate the trips and get the error messages ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit; background: transparent;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="background: transparent; font-size: 12pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Veena&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 12:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196386#M1909983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-01T12:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196387#M1909984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you pass the FCODE = 'CHCK', it will do the checks but not post the trip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'HRTRV_IF_MODIFY_TRIP'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; employeenumber &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;employee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tripno&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;get_tripno&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; framedata&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;framedata&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;return&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHANGING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= 'CHCK'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The FM HRTRV_IF_MODIFY_TRIP has a BDC on PR01. So, if there is some error while processing the trip in BDC, that will not be captured when you pass CHCK as FCODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 15:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196387#M1909984</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-07-01T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196388#M1909985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Naimesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After passing &lt;SPAN style="color: #333333; font-size: 11.9999990463257px;"&gt; &lt;STRONG&gt;fcode &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11.9999990463257px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;= 'CHCK', &lt;/STRONG&gt;we are getting errors in RETURN table. But if I pass &lt;STRONG&gt;fcode = 'INS'&lt;/STRONG&gt;, trips are getting created for the same data. If errors are there, why trips are getting created ? Could you please help me on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Veena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 05:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196388#M1909985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-03T05:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196389#M1909986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you creating trips in R/3 or using ESS portal ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 05:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196389#M1909986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-03T05:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196390#M1909987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mandar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are Creating trips in R/3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 06:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196390#M1909987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-03T06:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Validate trips before creating</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196391#M1909988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have put enhancement in following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program : SAPMFITP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include : SAVE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form : SAVE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sub routine has many TABLES and USING parameters which contains data required to save the trip. You can check data stored in those tables according to your validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your validations are violated then you can jump the process followed by standard program to save the trip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 06:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-trips-before-creating/m-p/11196391#M1909988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-03T06:50:04Z</dc:date>
    </item>
  </channel>
</rss>

