<?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: Function module:G_Period_Get  error exception1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338848#M1992037</link>
    <description>&lt;P&gt;TRY  &lt;/P&gt;&lt;P&gt;SE37 ... G_PERIOD_GET  (in uper case in your code please)&lt;/P&gt;&lt;P&gt;F8 &lt;/P&gt;&lt;P&gt;and try like this&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 07:34:12 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2021-01-18T07:34:12Z</dc:date>
    <item>
      <title>Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338831#M1992020</link>
      <description>&lt;P&gt;Select - options:&lt;/P&gt;
  &lt;P&gt; s_zyear for s031-spmon.(MM.YYYY)&lt;/P&gt;
  &lt;P&gt;I need to convert the year and month to the fiscal year. And the coding is like this:&lt;/P&gt;
  &lt;P&gt;With debug, the exception 1 was issued, and I don't know why, Can anyone here help me??&lt;/P&gt;
  &lt;P&gt;please,thank you.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;Data:
  LDF_DATUM TYPE SY_DATLO. 

LDF_DATUM+0(4) = S_ZYEAR-LOW+0(4).
LDF_DATUM+4(2) = S_ZYEAR-LOW+4(2).
LDF_DATUM+6(2) = '01'.

Call function 'G_Period_get'.
  Exporting
    company = p_bukrs
    date    = LDF_DATUM
    ledger  = 'LEDGER'
  Importing
    Period = GDF_Period
    Year   = Gdf_year
  Exception
    Lendger_not_assigned_to_company
= 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338831#M1992020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T06:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338832#M1992021</link>
      <description>&lt;P&gt;I've tried to set a range table of s_zyear, but I don't know how to use the range table in a Call function. Date could be a scope??? &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338832#M1992021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T06:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338833#M1992022</link>
      <description>&lt;P&gt;You should provide the error returned by SAP.&lt;/P&gt;&lt;P&gt;at first, ledger could not be 'LEDGER' it is a CHAR2 &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338833#M1992022</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T06:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338834#M1992023</link>
      <description>&lt;P&gt;Hi,Girod!&lt;/P&gt;&lt;P&gt;The error returned by SAP may be 'Get finance period error'. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 1…&lt;/P&gt;&lt;P&gt;About ledger, it's my miss.It is 'Ol'&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338834#M1992023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T06:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338835#M1992024</link>
      <description>&lt;P&gt;Do you have retest with the good ledger value  ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338835#M1992024</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T06:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338836#M1992025</link>
      <description>&lt;P&gt;Yes, test by ledger = 'ol' , there's also the exception error issued.. &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338836#M1992025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338837#M1992026</link>
      <description>&lt;P&gt;(the lowercase value is strange)&lt;/P&gt;&lt;P&gt;Use transaction ST05 to check witch tables are read by the FM, and whitch one is returning 0 record. You will see the WHERE condition criteria and maybe understand what is missing&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338837#M1992026</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T06:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338838#M1992027</link>
      <description>&lt;P&gt;I wonder how to set value of the date with select-options? Should I call function twice with date of S_ZYEAR-LOW and S_ZYEAR-HIGH?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338838#M1992027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T06:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338839#M1992028</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;FUNCTION g_period_get.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(COMPANY) LIKE  T001-BUKRS DEFAULT SPACE
*"     VALUE(DATE) LIKE  SY-DATUM DEFAULT SY-DATLO
*"     VALUE(GLOBAL_COMPANY) LIKE  T880-RCOMP DEFAULT SPACE
*"     VALUE(LEDGER) LIKE  T881-RLDNR DEFAULT SPACE
*"     VALUE(VARIANT) LIKE  T882-PERIV DEFAULT SPACE&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Company is type BUKRS, simple field&lt;/P&gt;&lt;P&gt;Date is type SYDATUM, simple field&lt;/P&gt;&lt;P&gt;Global Company is type RCOMP, simple field&lt;/P&gt;&lt;P&gt;Ledger is type RLDNR, simple field&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;where do you want to put a SELECT OPTION or a RANGE ?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 06:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338839#M1992028</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338840#M1992029</link>
      <description>&lt;P&gt;DO you actually mean that there's nothing with a Select option or a Range? &lt;/P&gt;&lt;P&gt;And it's alright to type SY-DATUM?&lt;/P&gt;&lt;P&gt;Don't I need to concatenate the year and month into DATE? &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338840#M1992029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338841#M1992030</link>
      <description>&lt;P&gt;Because I need to convert the select option into fiscal year... (maybe wrong)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338841#M1992030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338842#M1992031</link>
      <description>&lt;P&gt;There is nothing to do with Select Option nor Range &lt;/P&gt;&lt;P&gt;I don't know if your concatenation is right, because I don't know the internal format of the field S_YEAR&lt;/P&gt;&lt;P&gt;You could describe a date field as  TYPE SY-DATUM or TYPE SYDATUM&lt;/P&gt;&lt;P&gt;and if you want to test simply the FM before playing with your code, you could use in transaction SE37 the test mode (F8), it will generate a Selection screen where you will be able to test the value without doing a program&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338842#M1992031</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T07:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338843#M1992032</link>
      <description>&lt;P&gt;The value of date is gotten from select option, isn't it?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338843#M1992032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338844#M1992033</link>
      <description>&lt;P&gt;You have a problem with SELECT OPTION ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;P&gt;For the value 01 01 2021&lt;/P&gt;&lt;P&gt;Parameters :  20210101  &lt;/P&gt;&lt;P&gt;Select-Options:  I     EQ    20210101 &lt;/P&gt;&lt;P&gt;Do you think you could enter the  I   EQ   20210101  into a simple field  DATE ? &lt;/P&gt;&lt;P&gt;A Select-option is a table with a structure :  Sign, Option, Low, Value     it is very specific&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338844#M1992033</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338845#M1992034</link>
      <description>&lt;P&gt;OK,I see. &lt;/P&gt;&lt;P&gt;Oh,I just now used SE37 to test with value that is used in SE38, there's also the same exception issued&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338845#M1992034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338846#M1992035</link>
      <description>&lt;P&gt;why the exception'ledger_not_assigned_to_company' issued? Omg&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338846#M1992035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338847#M1992036</link>
      <description>&lt;P&gt;No, it actually couldn't be entered into the date value.. &lt;/P&gt;&lt;P&gt;So how I define the value of date?? &lt;/P&gt;&lt;P&gt;I definitely think that the concatenation is wrong &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338847#M1992036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338848#M1992037</link>
      <description>&lt;P&gt;TRY  &lt;/P&gt;&lt;P&gt;SE37 ... G_PERIOD_GET  (in uper case in your code please)&lt;/P&gt;&lt;P&gt;F8 &lt;/P&gt;&lt;P&gt;and try like this&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338848#M1992037</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-01-18T07:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338849#M1992038</link>
      <description>&lt;A href="https://answers.sap.com/users/1146571/miyuriowo.html"&gt;王 雅昕&lt;/A&gt; What are you using G_PERIOD_GET for? Maybe you should use another function module?</description>
      <pubDate>Mon, 18 Jan 2021 07:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338849#M1992038</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-18T07:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function module:G_Period_Get  error exception1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338850#M1992039</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;For getting fiscal period data. &lt;/P&gt;&lt;P&gt;another function module is like what? &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-g-period-get-error-exception1/m-p/12338850#M1992039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-01-18T07:49:40Z</dc:date>
    </item>
  </channel>
</rss>

