<?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: sapscript issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492184#M1256774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a standard symbol available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write a PERFORM in your SUb routine.&lt;/P&gt;&lt;P&gt;YOu have to pass the current date .&lt;/P&gt;&lt;P&gt;In your FORM, you can return the next month name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/: DEFINE &amp;amp;NEXT_MONTH&amp;amp; = '          '
/: PERFORM NEXT_MONTH IN PROGRAM Z_SAPSCRIPT_PERFORMS
/: USING &amp;amp;MONTH&amp;amp;
/: CHANGING &amp;amp;NEXT_MONTH&amp;amp;
/: ENDPERFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program Z_SAPSCRIPT_PERFORMS&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM NEXT_MONTH TABLES in_tab STRUCTURE itcsy

out_tab STRUCTURE itcsy.

data v_current_month(2).
data v_next_month(10).
READ TABLE in_tab INDEX 1.
v_current_month = in_tab-value.
case v_current_month.
when '01'.
v_next_month = 'February'.
when '02'.
v_next_month = 'March'.
when '03'.
v_next_month = 'April'.
when '04'.
v_next_month = 'May'.
when '05'.
v_next_month = 'June'.
when '06'.
v_next_month = 'July'.
when '07'.
v_next_month = 'August'.
when '08'.
v_next_month = 'September'.
when '09'.
v_next_month = 'October'.
when '10'.
v_next_month = 'November'.
when '11'.
v_next_month = 'December'.
when '12'.
v_next_month = 'January'.
endcase.

out_tab-value = V_next_month.
MODIFY out_tab INDEX 1.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 14:27:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-23T14:27:55Z</dc:date>
    <item>
      <title>sapscript issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492183#M1256773</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 am dsiplaying the month name on the header of my sapscript form. I used the sapscript symbol '&amp;amp;NAMEOFMONTH&amp;amp;' to display it. Now, I need to display the next month's name.&lt;/P&gt;&lt;P&gt; For ex; generating the report using sapscript for current month april, i need to display the month name as 'May 2009' on the form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to enable the change in the form? I tried looking for a sapscript symbol for it. I did not find it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492183#M1256773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492184#M1256774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a standard symbol available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write a PERFORM in your SUb routine.&lt;/P&gt;&lt;P&gt;YOu have to pass the current date .&lt;/P&gt;&lt;P&gt;In your FORM, you can return the next month name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;/: DEFINE &amp;amp;NEXT_MONTH&amp;amp; = '          '
/: PERFORM NEXT_MONTH IN PROGRAM Z_SAPSCRIPT_PERFORMS
/: USING &amp;amp;MONTH&amp;amp;
/: CHANGING &amp;amp;NEXT_MONTH&amp;amp;
/: ENDPERFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program Z_SAPSCRIPT_PERFORMS&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM NEXT_MONTH TABLES in_tab STRUCTURE itcsy

out_tab STRUCTURE itcsy.

data v_current_month(2).
data v_next_month(10).
READ TABLE in_tab INDEX 1.
v_current_month = in_tab-value.
case v_current_month.
when '01'.
v_next_month = 'February'.
when '02'.
v_next_month = 'March'.
when '03'.
v_next_month = 'April'.
when '04'.
v_next_month = 'May'.
when '05'.
v_next_month = 'June'.
when '06'.
v_next_month = 'July'.
when '07'.
v_next_month = 'August'.
when '08'.
v_next_month = 'September'.
when '09'.
v_next_month = 'October'.
when '10'.
v_next_month = 'November'.
when '11'.
v_next_month = 'December'.
when '12'.
v_next_month = 'January'.
endcase.

out_tab-value = V_next_month.
MODIFY out_tab INDEX 1.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492184#M1256774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492185#M1256775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I shall implement and get back if I have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492185#M1256775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492186#M1256776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FM MONTH_NAMES_GET too, or take month name directly from table T247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492186#M1256776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492187#M1256777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a problem with the parameters on the 'PERFORM' statement in sapscript. My 'PERFORM' statement in the program is PERFORM NEXT_MONTH. The program is fetching the current value. However in the sapscript while calling the PERFORM statement is causing the error 'TOO MANY PARAMETERS SPECIFIED WITH PERFORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I shall try this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM NEXT_MONTH IN PROGRAM ZSAP_PROGRAM CHANGING &amp;amp;NEXT_MONTH&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this look OK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;VG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 16:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-issue/m-p/5492187#M1256777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T16:33:03Z</dc:date>
    </item>
  </channel>
</rss>

