<?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 bdc using call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155078#M118654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM validate_doj .&lt;/P&gt;&lt;P&gt;if it_emp-doj = 00000000 or it_emp-doj &amp;gt;= sy-datum or it_emp-doj = ' ' OR IT_EMP-DOJ CA '/'.&lt;/P&gt;&lt;P&gt;    error_flag = 1.&lt;/P&gt;&lt;P&gt;    it_errorrecds-it_emp_id = it_emp-e_id.&lt;/P&gt;&lt;P&gt;    IT_ERRORRECDS-IT_DESC = 'INVALID DOJ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: INFORMATION IN THE FLAT FILE CONTAINS IN THE FOLLOWING FORMAT .21/12/2006 I.E. MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABOVE CODE I AM USING FOR VALIDATING THE DATE.&lt;/P&gt;&lt;P&gt; BUT IT IS NOT TRAPPING THE ERROR,WHEN MONTH IS GREATER THAN 12.&lt;/P&gt;&lt;P&gt;FORMAT Of THE DATE WHICH I AM USING IS MM/DD/YYYY.&lt;/P&gt;&lt;P&gt; AND THE FOLLOWING IS THE RUN TIME ERROR WHICH I AM GETTING WHEN I EXECUTE MY TRANSACTION is :&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;" THE PROGRAM ATTEMPTED TO INTERPRET THE VAUE " 21/11/2005" AS A NUMBER ,BUT SINCE THE VALUE &lt;/P&gt;&lt;P&gt;  CONTRAVENES THE RULES FOR CORRECT NUMBER FORMATS,THIS WAS NOT POSSIBLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well it is not trapping the error in my validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE PROVIDE ME WITH THE PROPER SOLUTION WHERE I CAN TRAP THIS ERROR IN MY VALIDATIONS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jan 2006 09:36:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-02T09:36:20Z</dc:date>
    <item>
      <title>bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155078#M118654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM validate_doj .&lt;/P&gt;&lt;P&gt;if it_emp-doj = 00000000 or it_emp-doj &amp;gt;= sy-datum or it_emp-doj = ' ' OR IT_EMP-DOJ CA '/'.&lt;/P&gt;&lt;P&gt;    error_flag = 1.&lt;/P&gt;&lt;P&gt;    it_errorrecds-it_emp_id = it_emp-e_id.&lt;/P&gt;&lt;P&gt;    IT_ERRORRECDS-IT_DESC = 'INVALID DOJ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: INFORMATION IN THE FLAT FILE CONTAINS IN THE FOLLOWING FORMAT .21/12/2006 I.E. MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABOVE CODE I AM USING FOR VALIDATING THE DATE.&lt;/P&gt;&lt;P&gt; BUT IT IS NOT TRAPPING THE ERROR,WHEN MONTH IS GREATER THAN 12.&lt;/P&gt;&lt;P&gt;FORMAT Of THE DATE WHICH I AM USING IS MM/DD/YYYY.&lt;/P&gt;&lt;P&gt; AND THE FOLLOWING IS THE RUN TIME ERROR WHICH I AM GETTING WHEN I EXECUTE MY TRANSACTION is :&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;" THE PROGRAM ATTEMPTED TO INTERPRET THE VAUE " 21/11/2005" AS A NUMBER ,BUT SINCE THE VALUE &lt;/P&gt;&lt;P&gt;  CONTRAVENES THE RULES FOR CORRECT NUMBER FORMATS,THIS WAS NOT POSSIBLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well it is not trapping the error in my validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE PROVIDE ME WITH THE PROPER SOLUTION WHERE I CAN TRAP THIS ERROR IN MY VALIDATIONS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 09:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155078#M118654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155079#M118655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Rahavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the data type of it_emp-doj is it like sy-datum or some thing else(like char...)&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 09:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155079#M118655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155080#M118656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CONVERT_DATE_TO_INTERN_FORMAT&lt;/P&gt;&lt;P&gt;   Use the following FM&lt;/P&gt;&lt;P&gt;   to check any Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In parameter DTYPE pass 'DATS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Please do not use any of your own logic&lt;/P&gt;&lt;P&gt;   like checking /, date+4 etc.&lt;/P&gt;&lt;P&gt;   SAP Recommends to use the standard FMs&lt;/P&gt;&lt;P&gt;   to perform any check or calculations.&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;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 09:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155080#M118656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155081#M118657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghavendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            You can use split function in the BDC program so that you can split the date into date, month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can do your validation process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to split the string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the split function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT '/' INTO: str1 str2 str3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: mm(2), dd(2), yyyy(4).
data str(30).

*str has the date.
str = '12/32/3443'.

SPLIT str AT '/' INTO: mm dd yyyy.
write: / mm, / dd, / yyyy.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps by clicking the star on the left side of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Maheswaran B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 09:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155081#M118657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155082#M118658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai vijay!&lt;/P&gt;&lt;P&gt;                 its of type character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 10:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155082#M118658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: bdc using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155083#M118659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since it is char,but you are comparing this...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;it_emp-doj &amp;gt;= sy-datum&amp;lt;/b&amp;gt; with date.&lt;/P&gt;&lt;P&gt;obviously it will give dump...&lt;/P&gt;&lt;P&gt;convert that to date and check...&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2006 10:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/1155083#M118659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-02T10:08:25Z</dc:date>
    </item>
  </channel>
</rss>

