<?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: Regarding Initialization event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035278#M964516</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;      Anybody can suggest me the solution for above prob.&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;                   Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 08:55:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T08:55:43Z</dc:date>
    <item>
      <title>Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035270#M964508</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;   I did some caclutaions to set my parameters some default values.  I did these calculations under INITIALIZATION event beofore declaring paramaetres. But these default value are not coming to the screen. Where did it go wrong. Where should i perform those calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Thanks,&lt;/P&gt;&lt;P&gt;         Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035270#M964508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035271#M964509</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;It doesnt matter where you write the initilization event , It triggers first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise use &lt;STRONG&gt;default option&lt;/STRONG&gt; of parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex :  parameters : p_kunnr like kna1-kunnr default 1002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you paste your code so that we can check it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035271#M964509</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-19T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035272#M964510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_file = 'file.txt'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035272#M964510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035273#M964511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do that in the at selection screen output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest_alv_perc_13317.&lt;/P&gt;&lt;P&gt;parameters:p_test type i .&lt;/P&gt;&lt;P&gt;parameters:p_test1 type i .&lt;/P&gt;&lt;P&gt;at selection-screen output .&lt;/P&gt;&lt;P&gt;p_test = 12 .&lt;/P&gt;&lt;P&gt;p_test1 = p_test .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ztest_alv_perc_13317.&lt;/P&gt;&lt;P&gt;parameters:p_test type i .&lt;/P&gt;&lt;P&gt;parameters:p_test1 type i .&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;p_test = 12 .&lt;/P&gt;&lt;P&gt;p_test1 = p_test .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035273#M964511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035274#M964512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use following code.here calculation is done in initialization event.so you can do like this in your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**********************************************************************
*               INITIALIZATION                                       *
**********************************************************************
INITIALIZATION.


  SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME  TITLE text-001.
  PARAMETERS:

    p_radio2 TYPE c RADIOBUTTON GROUP rad USER-COMMAND rad,
    p_radio1 TYPE c RADIOBUTTON GROUP rad DEFAULT 'X'.
  SELECTION-SCREEN END  OF BLOCK a1 .

  SELECT-OPTIONS
   s_fldate FOR w_fldate.
  MOVE sy-datum TO s_fldate-low.
  MOVE sy-datum TO s_fldate-high.
  w_date = sy-datum.


  s_fldate-low+6(2) = w_date1.
  w_temp = s_fldate-low.
  w_next = s_fldate-low+4(2) + 1.
  w_temp+4(2) = w_next.

  w_last = w_temp - 1.
  s_fldate-high = w_last.
  APPEND s_fldate.

  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME  TITLE text-002 .
  WRITE: 'Sort By'.
  PARAMETERS:

    p_radio4 TYPE c RADIOBUTTON GROUP rad1 USER-COMMAND rad ,
     p_radio3 TYPE c RADIOBUTTON GROUP rad1 DEFAULT 'X'.
  SELECTION-SCREEN END  OF BLOCK b1 .


  SELECT-OPTIONS
     s_carrid FOR w_carrid MODIF ID abc.


START-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035274#M964512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035275#M964513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        i did some date caclulations and need to make it as default values in my paremeters. Even i used defalut optionits working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035275#M964513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035276#M964514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;what are the calculations paste the code we can check it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_date like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt; p_date  = sy-datum + 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also use &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prasanth kasturi on Jun 19, 2008 10:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035276#M964514</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-19T08:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035277#M964515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Calculation part and selection-screen part is like this. Pls suggest me the chagnes. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;-  BEGIN OF SELECTION SCREEN DEFINITIONS&lt;/STRONG&gt;&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS : p_perfr like ptrv_head-datv1 OBLIGATORY default date_first,&lt;/P&gt;&lt;P&gt;               p_perto   like ptrv_head-datb1 OBLIGATORY default date_last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN COMMENT 1(19) TEXT-002.&lt;/P&gt;&lt;P&gt;  PARAMETERS : P_MAIL AS CHECKBOX DEFAULT ' ' USER-COMMAND flag .&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS : P_LAYOUT type slis_vari.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS : P_EMAIL like somlreci1-receiver&lt;/P&gt;&lt;P&gt;                             MODIF ID bl2,&lt;/P&gt;&lt;P&gt;               p_online no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN END OF block B2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF P_MAIL &amp;lt;&amp;gt; 'X' AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    screen-group1 = 'BL2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      screen-active = '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt; -&lt;HR originaltext="-------" /&gt;END OF SELECTION SCREEN DEFINITIONS--&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;  INITIALIZATION--&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set default values for the Parameters on Selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  date_present = sy-datum.&lt;/P&gt;&lt;P&gt;  date_first = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  date_first+6(2) = '01'.        .&lt;/P&gt;&lt;P&gt;  date_first&lt;EM&gt;4(2)    = date_present&lt;/EM&gt;4(2) - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_DATE_OLD = date_present&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      E_DATE_NEW = date_last.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:41:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035277#M964515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035278#M964516</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;      Anybody can suggest me the solution for above prob.&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;                   Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 08:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035278#M964516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035279#M964517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : date_first TYPE sy-datum ,
date_last TYPE sy-datum,
date_present TYPE sy-datum.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : p_perfr LIKE ptrv_head-datv1 OBLIGATORY,
p_perto LIKE ptrv_head-datb1 OBLIGATORY .

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(19) text-002.
PARAMETERS : p_mail AS CHECKBOX DEFAULT ' ' USER-COMMAND flag .
SELECTION-SCREEN END OF LINE.

PARAMETERS : p_layout TYPE slis_vari.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

PARAMETERS : p_email LIKE somlreci1-receiver
MODIF ID bl2,
p_online NO-DISPLAY.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.

    IF p_mail = 'X' AND

    screen-group1 = 'BL2'.

      screen-active = '0'.

      MODIFY SCREEN.

    ENDIF.
  ENDLOOP.

*-------- --------END OF SELECTION SCREEN DEFINITIONS-----------
*
*------------------------ INITIALIZATION---------------------------
INITIALIZATION.

*Set default values for the Parameters on Selection screen

  date_present = sy-datum.
  date_first = sy-datum.

  date_first+6(2) = '01'. .
  date_first+4(2) = date_present+4(2) - 1.

  MOVE date_first TO p_perfr.


  CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'
    EXPORTING
      i_date_old = date_present
    IMPORTING
      e_date_new = date_last.

  MOVE date_last TO p_perto.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 09:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035279#M964517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Initialization event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035280#M964518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code, You must pass the values of date_first and date_last to parameters p_perfr and p_perto that is the problem you did not pass,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : date_first type sy-datum ,&lt;/P&gt;&lt;P&gt;       date_last type sy-datum,&lt;/P&gt;&lt;P&gt;       date_present type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_perfr like ptrv_head-datv1 OBLIGATORY default date_first,&lt;/P&gt;&lt;P&gt;             p_perto like ptrv_head-datb1 OBLIGATORY default date_last. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF block B1.&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;*Set default values for the Parameters on Selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_present = sy-datum.&lt;/P&gt;&lt;P&gt;date_first = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_first+6(2) = '01'. .&lt;/P&gt;&lt;P&gt;date_first&lt;EM&gt;4(2) = date_present&lt;/EM&gt;4(2) - 1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;p_perfr = date_first.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OIL_LAST_DAY_OF_PREVIOUS_MONTH'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_DATE_OLD = date_present&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_DATE_NEW = date_last.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;p_perto = date_last.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 09:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-initialization-event/m-p/4035280#M964518</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-19T09:21:20Z</dc:date>
    </item>
  </channel>
</rss>

