<?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: SAP-SCRIPT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425772#M1245080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'MMMM DD, YY'&lt;/P&gt;&lt;P&gt;This displays the date as : September 26, 07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the codes that can be used in the date mask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YY  Year (2 digits)  &lt;/P&gt;&lt;P&gt;YYYY  Year (4 Digits)  &lt;/P&gt;&lt;P&gt;MM  Month (2 Digits)  &lt;/P&gt;&lt;P&gt;MMM  Month Name (Abbreviated)  &lt;/P&gt;&lt;P&gt;MMMM  Month Name (Full)  &lt;/P&gt;&lt;P&gt;DD  Day as two digits  &lt;/P&gt;&lt;P&gt;DDD  Day name (Abbreviated)  &lt;/P&gt;&lt;P&gt;DDDD  Day name  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;regrds,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 05:28:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T05:28:16Z</dc:date>
    <item>
      <title>SAP-SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425770#M1245078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the date format in SAP-SCRIPT.I need to change the code in only Layout why because &lt;/P&gt;&lt;P&gt;the print program is satandard. Iam not able to change the Print program.&lt;/P&gt;&lt;P&gt;Now it is displaying like this MMDDYYYY&lt;/P&gt;&lt;P&gt;Now i need to change like this DDMMYYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me out in this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425770#M1245078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAP-SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425771#M1245079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try using &lt;STRONG&gt;date mask&lt;/STRONG&gt; with the following syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'date_mask' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Assuming a current system date of March 1st, 1997. 

/: SET DATE MASK = 'Foster City, MM.DD.YY' 
&amp;amp;DATE&amp;amp; -&amp;gt; Foster City, 03.01.97 
&amp;amp;DATE(Z)&amp;amp; -&amp;gt; Foster City, 3.1.97 

/: SET DATE MASK = 'MMMM DD, YYYY' 
&amp;amp;DATE&amp;amp; -&amp;gt; March 01, 1997&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref. From Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425771#M1245079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T05:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAP-SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425772#M1245080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;/: SET DATE MASK = 'MMMM DD, YY'&lt;/P&gt;&lt;P&gt;This displays the date as : September 26, 07&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are the codes that can be used in the date mask:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YY  Year (2 digits)  &lt;/P&gt;&lt;P&gt;YYYY  Year (4 Digits)  &lt;/P&gt;&lt;P&gt;MM  Month (2 Digits)  &lt;/P&gt;&lt;P&gt;MMM  Month Name (Abbreviated)  &lt;/P&gt;&lt;P&gt;MMMM  Month Name (Full)  &lt;/P&gt;&lt;P&gt;DD  Day as two digits  &lt;/P&gt;&lt;P&gt;DDD  Day name (Abbreviated)  &lt;/P&gt;&lt;P&gt;DDDD  Day name  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;regrds,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425772#M1245080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T05:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAP-SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425773#M1245081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like the above one using &lt;STRONG&gt;Date_Mask&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If you not familiar with that then try to call a subroutine pool in the Script to a new program like this example,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition in the SAPscript form:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/: USING &amp;amp;PAGE&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/: USING &amp;amp;NEXTPAGE&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/: CHANGING &amp;amp;BARCODE&amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/: ENDPERFORM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ &amp;amp;BARCODE&amp;amp;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Coding of the calling ABAP program:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT QCJPERFO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUT_PAR STRUCTURE ITCSY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: PAGNUM LIKE SY-TABIX, "page number&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXTPAGE LIKE SY-TABIX. "number of next page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE IN_PAR WITH KEY u2018PAGEu2019.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHECK SY-SUBRC = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAGNUM = IN_PAR-VALUE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE IN_PAR WITH KEY u2018NEXTPAGEu2019.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHECK SY-SUBRC = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEXTPAGE = IN_PAR-VALUE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ TABLE IN_PAR WITH KEY u2018BARCODEu2019.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHECK SY-SUBRC = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF PAGNUM = 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUT_PAR-VALUE = u2018|u2019. "First page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUT_PAR-VALUE = u2018||u2019. "Next page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF NEXTPAGE = 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUT_PAR-VALUE+2 = u2018Lu2019. "Flag: last page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODIFY OUT_PAR INDEX SY-TABIX.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDFORM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425773#M1245081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T05:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP-SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425774#M1245082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WRITE ONE Z PROGRAM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX. ZTEST  &lt;/P&gt;&lt;P&gt;write the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;
PROGRAM  ZTEST.

form GET_NEWDATE tables in_tab STRUCTURE itcsy
                         out_tab STRUCTURE itcsy.

DATA : LV_NEWDATE TYPE D.

DATA : LV_OLDDATE  LIKE OLDDATE,

data : gv_dd(2) type c,
       gv_mm(2) type c,
       gv_yy(4) type c.

 data :      date(8) type c.

gv_dd = LV_OLDDATE(+22).
       gv_mm = LV_OLDDATE(2).
       gv_yy = LV_DOC_DATE+4(4).

  CONCATENATE gv_dd  gv_mm  gv_yy INTO  date.

LV_NEWDATE = DATE.

read table OUT_tab index 1.
MOVE LV_NEWDATE TO OUT_TAB-VALUE.
CONDENSE OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 1.

ENDFORM.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the code below in ur sapscript, &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt;
/:DEFINE &amp;amp;LV_NEWDATE&amp;amp;.
/:PERFORM GET_NEWDATE IN PROGRAM TEST
/:USING &amp;amp;LV_OLD_DATE&amp;amp;
/:CHANGING &amp;amp;LV_NEWDATE&amp;amp;.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRINT &amp;amp;LV_NEWDATE&amp;amp;&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script/m-p/5425774#M1245082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T05:33:36Z</dc:date>
    </item>
  </channel>
</rss>

