<?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: date conversion problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279614#M496254</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; Assign One more variable like below showing..Keep lebag as character10...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: Var_dat type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;concatenate leabg&lt;EM&gt;0(2) leabg&lt;/EM&gt;2(2) leabg+4(4) into var_dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the masking perfectly ,means you should get the 8 digits into var_dat...&lt;/P&gt;&lt;P&gt;Now pass this into bapi..This Will Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward All Helpfull Answers.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 04:34:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T04:34:39Z</dc:date>
    <item>
      <title>date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279607#M496247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN's&lt;/P&gt;&lt;P&gt;i get some dates from an excel sheet into internal table.&lt;/P&gt;&lt;P&gt;internal table declaration is as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF it_tab OCCURS 0,
         bukrs LIKE anla-bukrs,
         anln1 LIKE anla-anln1,
         anln2 LIKE anla-anln2,
         grufl LIKE anla-grufl,
         leabg TYPE anla-leabg,
       END OF it_tab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the FM : ALSM_EXCEL_TO_INTERNAL_TABLE to get data frm excel to internal table format.&lt;/P&gt;&lt;P&gt;suppose i have a date 12.05.2007 but now when i write the date to the internal table LEABG its taking only 12.05.20&lt;/P&gt;&lt;P&gt;because the FM stores the value in type STR. now my question is how do i update the value LEABG in internal table with the correct date (12.05.2007)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 01:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279607#M496247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T01:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279608#M496248</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;Change your internal table declaration as &lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;         bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;         anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;         anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;         grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;         &amp;lt;b&amp;gt;leabg(10) TYPE C,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;       END OF it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 01:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279608#M496248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T01:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279609#M496249</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;    Try to Change your Internal Table Declaration like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;         bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;         anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;         anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;         grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;         leabg(10),&lt;/P&gt;&lt;P&gt;       END OF it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not working Goto your EXCEL_FILE &lt;/P&gt;&lt;P&gt;goto file save as(text -tab delimited...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now You can use GUI_UPLOAD...This is the easy method this will work properly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward All helpfull Answers........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 01:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279609#M496249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T01:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279610#M496250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : BEGIN OF temp_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;         bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;         anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;         anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;         grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;         leabg(10),&lt;/P&gt;&lt;P&gt;       END OF temp_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;         bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;         anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;         anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;         grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;         leabg TYPE anla-leabg,&lt;/P&gt;&lt;P&gt;       END OF it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the function module and get data in temp_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TEMP_TAB.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING TEMP_TAB TO IT_TAB.&lt;/P&gt;&lt;P&gt;CONCATENATE TEMP_TAB-LEABG&lt;EM&gt;6(4) TEMP_TAB-LEABG&lt;/EM&gt;3(2) TEMP_TAB-LEABG+0(2) INTO IT_TAB-LEABG.&lt;/P&gt;&lt;P&gt;APPEND IT_TAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 02:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279610#M496250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T02:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279611#M496251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;thanks you for the replies..&lt;/P&gt;&lt;P&gt;i tried all these things.. but finally i need to pass that date to a BAPI. If i delcare as leabg(10) type C. the BAPI is giving an error saying that Date should be in format '__.__.____'. other formats are not allowed.&lt;/P&gt;&lt;P&gt;but while debug i see that the LEABG is containing the date as '12.02.20' where as 07 is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279611#M496251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279612#M496252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will not give an error in BAPI as it_itab contains leabg as type d.&lt;/P&gt;&lt;P&gt;Please see the code carefully below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF temp_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;leabg(10),&lt;/P&gt;&lt;P&gt;END OF temp_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it_tab OCCURS 0,&lt;/P&gt;&lt;P&gt;bukrs LIKE anla-bukrs,&lt;/P&gt;&lt;P&gt;anln1 LIKE anla-anln1,&lt;/P&gt;&lt;P&gt;anln2 LIKE anla-anln2,&lt;/P&gt;&lt;P&gt;grufl LIKE anla-grufl,&lt;/P&gt;&lt;P&gt;leabg TYPE anla-leabg,&lt;/P&gt;&lt;P&gt;END OF it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the function module and get data in temp_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TEMP_TAB.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING TEMP_TAB TO IT_TAB.&lt;/P&gt;&lt;P&gt;CONCATENATE TEMP_TAB-LEABG&lt;EM&gt;6(4) TEMP_TAB-LEABG&lt;/EM&gt;3(2) TEMP_TAB-LEABG+0(2) INTO IT_TAB-LEABG.&lt;/P&gt;&lt;P&gt;APPEND IT_TAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the BAPI after this and it should not give an error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279612#M496252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279613#M496253</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;data : date         like sy-datum,&lt;/P&gt;&lt;P&gt;data1(10) type c.&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;      call function 'CONVERT_DATE_TO_INTERNAL'&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;                date_external            = date1&lt;/P&gt;&lt;P&gt;           importing&lt;/P&gt;&lt;P&gt;                date_internal            = date&lt;/P&gt;&lt;P&gt;           exceptions&lt;/P&gt;&lt;P&gt;                date_external_is_invalid = 1&lt;/P&gt;&lt;P&gt;                others                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should fix ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279613#M496253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279614#M496254</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; Assign One more variable like below showing..Keep lebag as character10...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: Var_dat type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;concatenate leabg&lt;EM&gt;0(2) leabg&lt;/EM&gt;2(2) leabg+4(4) into var_dat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the masking perfectly ,means you should get the 8 digits into var_dat...&lt;/P&gt;&lt;P&gt;Now pass this into bapi..This Will Work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward All Helpfull Answers.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279614#M496254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279615#M496255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define earlier date leabg as char 10  only&lt;/P&gt;&lt;P&gt;and let me know which BAPI you are using, I will let you know how to code for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279615#M496255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279616#M496256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratyu , &lt;/P&gt;&lt;P&gt;  Please check when you upload the data using the FM ALSM_EXCEL* what is the lenght of the feild into which you move the date feild , since you have modified the date feild in the internal table to CHAR 10 , so the entire data will be taken.&lt;/P&gt;&lt;P&gt;Please check this and still if you have problems please do revert back.&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>Wed, 23 May 2007 04:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279616#M496256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279617#M496257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the BAPI : BAPI_FIXEDASSET_CHANGE&lt;/P&gt;&lt;P&gt;even now i get the same error.&lt;/P&gt;&lt;P&gt;Error : Entry too long (please enter in the format __.__.____)&lt;/P&gt;&lt;P&gt;this is the it_return for the BAPI&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE	C	1 	E
ID	C	20 	00
NUMBER	N	3 	089
MESSAGE	C	220 	Entry too long (please enter in the format __.__.____)
LOG_NO	C	20 
LOG_MSG_NO	N	6 	000000
MESSAGE_V1	C	50 	__.__.____&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279617#M496257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: date conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279618#M496258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratyu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should define the date in internal table as char 10, but while passing the date to this BAPI change the date using FM&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL&lt;/P&gt;&lt;P&gt;and pass the same to this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will surely resolve the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward points to all useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 05:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-conversion-problem/m-p/2279618#M496258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T05:28:29Z</dc:date>
    </item>
  </channel>
</rss>

