<?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: whats wrong here in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558415#M856276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_READ_CLUSTER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ztest_read_cluster.

CONSTANTS: l_gjahr TYPE gjahr VALUE '2008',
           l_poper TYPE POPER VALUE '01',
           l_periv TYPE periv VALUE 'k4'.

* end of const_rec.

DATA: l_budat LIKE sy-datum.


INITIALIZATION.
  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
  EXPORTING
  i_gjahr = '2008'
* i_monmit = 00
  i_periv = l_periv
  i_poper = l_poper
  IMPORTING
  e_date = l_budat
  EXCEPTIONS
  input_false = 1
  t009_notfound = 2
  t009b_notfound = 3
  OTHERS = 4  .
  IF sy-subrc = 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
* raising input_false.
  ENDIF.
  WRITE: l_budat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2008 11:46:52 GMT</pubDate>
    <dc:creator>former_member480923</dc:creator>
    <dc:date>2008-03-28T11:46:52Z</dc:date>
    <item>
      <title>whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558407#M856268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: t093c,bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS:l_gjahr(6) TYPE c VALUE '2008',&lt;/P&gt;&lt;P&gt;          l_poper(3) TYPE c VALUE '01',&lt;/P&gt;&lt;P&gt;          l_periv(2) TYPE c VALUE 'k4'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        end of  CONST_REC.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:l_budat LIKE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_gjahr              = '2008'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_MONMIT             = 00&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_periv              = l_periv&lt;/P&gt;&lt;P&gt;      i_poper              = l_poper&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      e_date               = l_budat&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     input_false          = 1&lt;/P&gt;&lt;P&gt;     t009_notfound        = 2&lt;/P&gt;&lt;P&gt;     t009b_notfound       = 3&lt;/P&gt;&lt;P&gt;     OTHERS               = 4&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         RAISING input_false.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  WRITE: l_budat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558407#M856268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558408#M856269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZVBWORK                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  zvbwork                                 .

tables: t093c,bkpf.

constants:l_gjahr(6) type c value '2008',
l_poper(3) type c value '01',
l_periv(2) type c value 'k4'.


data: l_budat like sy-datum.


initialization.

  call function 'LAST_DAY_IN_PERIOD_GET'
    exporting
      i_gjahr        = '2008'
*      i_monmit       = 00
      i_periv        = 'K4'
      i_poper        = '01'
    importing
      e_date         = l_budat
    exceptions
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      others         = 4.
  if sy-subrc &amp;lt;&amp;gt; 0.

    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    raising input_false.
  endif.
  write: l_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIVE &lt;STRONG&gt;K4&lt;/STRONG&gt; IN CAPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558408#M856269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558409#M856270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which part, the compilation or the execution.  This version at least compiles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t093c,bkpf.

CONSTANTS:l_gjahr(6) TYPE c VALUE '2008',
l_poper(3) TYPE c VALUE '01',
l_periv(2) TYPE c VALUE 'k4'.



DATA:l_budat LIKE sy-datum.


INITIALIZATION.
  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
    EXPORTING
      i_gjahr        = '2008'
      i_periv        = l_periv
      i_poper        = l_poper
    IMPORTING
      e_date         = l_budat
    EXCEPTIONS
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      OTHERS         = 4.
  IF sy-subrc = 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
     RAISING input_false.
  ENDIF.
  WRITE: l_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558409#M856270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558410#M856271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the code below observe the change in declaration of the varaibles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t093c,bkpf.

CONSTANTS:l_gjahr(6) TYPE c VALUE '2008',
*l_poper TYPE T009B-POPER VALUE '01',*
*l_periv TYPE T009B-PERIV VALUE 'K4'.*

*end of CONST_REC.
DATA:l_budat LIKE sy-datum.


INITIALIZATION.
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = '2008'


I_MONMIT = 00
i_periv = l_periv
i_poper = l_poper
IMPORTING
e_date = l_budat
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4
.
*IF sy-subrc EQ 0.*

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING input_false.
ENDIF.
WRITE: l_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558410#M856271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558411#M856272</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;iam getting the  dump when it is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558411#M856272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558412#M856273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting a dump when what is executed?  Your original code?  One of the solutions supplied?  What is the nature of the dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the cause was incorrectly defined data, as the dump says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution given above will make it work - but you have to take the * off! ( You can't bold in code tags )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_poper TYPE T009B-POPER VALUE '01',
l_periv TYPE T009B-PERIV VALUE 'K4'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558412#M856273</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-03-28T11:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558413#M856274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zz_describe_struct.

TABLES: t093c,bkpf.

CONSTANTS:l_gjahr(6) TYPE c VALUE '2008',
l_poper              TYPE t009b-poper VALUE '01',
l_periv              TYPE t009b-periv VALUE 'K4',
l_year               TYPE t009b-bdatj VALUE '2008'.



DATA:l_budat LIKE sy-datum.


INITIALIZATION.
  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
    EXPORTING
      i_gjahr        = l_year
      i_periv        = l_periv
      i_poper        = l_poper
    IMPORTING
      e_date         = l_budat
    EXCEPTIONS
      input_false    = 1
      t009_notfound  = 2
      t009b_notfound = 3
      OTHERS         = 4.
  IF sy-subrc = 0.
*    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  WRITE: l_budat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558413#M856274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558414#M856275</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;ur type mismatching in EXPORT And IMPORT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check ur export parameter type from ur FM...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558414#M856275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong here</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558415#M856276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZTEST_READ_CLUSTER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ztest_read_cluster.

CONSTANTS: l_gjahr TYPE gjahr VALUE '2008',
           l_poper TYPE POPER VALUE '01',
           l_periv TYPE periv VALUE 'k4'.

* end of const_rec.

DATA: l_budat LIKE sy-datum.


INITIALIZATION.
  CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
  EXPORTING
  i_gjahr = '2008'
* i_monmit = 00
  i_periv = l_periv
  i_poper = l_poper
  IMPORTING
  e_date = l_budat
  EXCEPTIONS
  input_false = 1
  t009_notfound = 2
  t009b_notfound = 3
  OTHERS = 4  .
  IF sy-subrc = 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
* raising input_false.
  ENDIF.
  WRITE: l_budat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 11:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-here/m-p/3558415#M856276</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2008-03-28T11:46:52Z</dc:date>
    </item>
  </channel>
</rss>

