<?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 Date Display training in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563317#M2007860</link>
    <description>&lt;P&gt;In a new Z program that you have created locally (free name), write code in ABAP language that meets these criteria:&lt;/P&gt;
  &lt;P&gt;1.Extract the day, month and year from the SY-DATUM system date and display it in 'DD/MM/YYYY' format (it could be preceded by the introductory text 'Today's date: '). &lt;BR /&gt; &lt;BR /&gt;2.Then the program will list all the dates of the current month from today's date (pay attention to the months of 30 and 31 days). For convenience, we will consider the month of February with 28 days. All dates will be in 'DD/MM/YYYY' format. &lt;BR /&gt; &lt;BR /&gt;3.This program should be usable for any date without having to modify it when necessary. &lt;/P&gt;
  &lt;P&gt;Here is my code &lt;/P&gt;
  &lt;P&gt;Any comments ll be appreciate.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report ZPODATUM
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT zpodatum.

* Déclaration des Variables

DATA: v_date  TYPE string,      " Variable pour afficher la date au format souhaitée
      v_date1 TYPE d.           " Variable qui récupère la date système

v_date1 = sy-datum.             " Assignement

* Formatage des données comme souhaité et assigné à la variable v_date

CONCATENATE v_date1+6(2)
            v_date1+4(2)
            v_date1(4) INTO v_date SEPARATED BY '/'.

* On affiche la date au format souhaité

WRITE: / 'On est le:',v_date.

* Incrémentation d'un jour de la date du jour

v_date1 = v_date1 + 01.

* Boucle pour afficher les jours suivants, uniqument du mois en cours

WHILE v_date1+4(2) &amp;lt;= sy-datum+4(2). " On check si on est toujours dans le mois en cours

  CONCATENATE v_date1+6(2)
              v_date1+4(2)
              v_date1(4) INTO v_date SEPARATED BY '/'.

  WRITE / v_date.
  v_date1 =  v_date1 + 01.  " On passe au jour suivant

ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Aug 2022 10:58:51 GMT</pubDate>
    <dc:creator>d4xtian</dc:creator>
    <dc:date>2022-08-15T10:58:51Z</dc:date>
    <item>
      <title>Date Display training</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563317#M2007860</link>
      <description>&lt;P&gt;In a new Z program that you have created locally (free name), write code in ABAP language that meets these criteria:&lt;/P&gt;
  &lt;P&gt;1.Extract the day, month and year from the SY-DATUM system date and display it in 'DD/MM/YYYY' format (it could be preceded by the introductory text 'Today's date: '). &lt;BR /&gt; &lt;BR /&gt;2.Then the program will list all the dates of the current month from today's date (pay attention to the months of 30 and 31 days). For convenience, we will consider the month of February with 28 days. All dates will be in 'DD/MM/YYYY' format. &lt;BR /&gt; &lt;BR /&gt;3.This program should be usable for any date without having to modify it when necessary. &lt;/P&gt;
  &lt;P&gt;Here is my code &lt;/P&gt;
  &lt;P&gt;Any comments ll be appreciate.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report ZPODATUM
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
REPORT zpodatum.

* Déclaration des Variables

DATA: v_date  TYPE string,      " Variable pour afficher la date au format souhaitée
      v_date1 TYPE d.           " Variable qui récupère la date système

v_date1 = sy-datum.             " Assignement

* Formatage des données comme souhaité et assigné à la variable v_date

CONCATENATE v_date1+6(2)
            v_date1+4(2)
            v_date1(4) INTO v_date SEPARATED BY '/'.

* On affiche la date au format souhaité

WRITE: / 'On est le:',v_date.

* Incrémentation d'un jour de la date du jour

v_date1 = v_date1 + 01.

* Boucle pour afficher les jours suivants, uniqument du mois en cours

WHILE v_date1+4(2) &amp;lt;= sy-datum+4(2). " On check si on est toujours dans le mois en cours

  CONCATENATE v_date1+6(2)
              v_date1+4(2)
              v_date1(4) INTO v_date SEPARATED BY '/'.

  WRITE / v_date.
  v_date1 =  v_date1 + 01.  " On passe au jour suivant

ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563317#M2007860</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-15T10:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Display training</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563318#M2007861</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;CL_ABAP_DATFM=&amp;gt;CONV_DATE_INT_TO_EXT(
    EXPORTING
      im_datint   = v_date1
      im_datfmdes = '1' "DD.MM.YYYY
    IMPORTING
      ex_datext   = v_date ).
v_date = replace( val = v_date sub = '.' with = '/' occ = 0 ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;+ one procedure to factorize the conversion.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563318#M2007861</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-08-15T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Display training</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563319#M2007862</link>
      <description>&lt;P&gt;Hi Sandra I saw you use a class ( CL_ABAP_DATFM) to format the date, based on what i see on my search...&lt;/P&gt;&lt;P&gt;- CONV_DATE_INT_TO_EXT is an Method of that class right ?&lt;/P&gt;&lt;P&gt;- IM_DATINT and _IM_DAFMDES and EX_DATEXT are Parameters right ?&lt;/P&gt;&lt;P&gt;You imported the data system form my first assignation of V_date1 to im_datint&lt;/P&gt;&lt;P&gt;you imported the format date of the server that you find on the SU11, to the parameter im_datfmes&lt;/P&gt;&lt;P&gt;I guess ex_datext has recieve the date server and has already trasform it as data string  and assign it to v_date&lt;/P&gt;&lt;P&gt;and after with the replace statement you transform the date as required..&lt;/P&gt;&lt;P&gt;and voila... &lt;/P&gt;&lt;P&gt;And in the same time your answer lead to answer to a question i asked on another "ask question" , by using the Tcode  SU01 and enter your user id or name, you can have detail of your current Date format and current language&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks you...&lt;/P&gt;&lt;P&gt;Can we connect ?&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 18:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563319#M2007862</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-15T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date Display training</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563320#M2007863</link>
      <description>&lt;P&gt;By the way for other newbies like me, here is a great website on SAP Object Repository &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sapdatasheet.org/abap/clas/cl_abap_datfm.html" target="_blank"&gt;SAP D@tasheet&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 20:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-display-training/m-p/12563320#M2007863</guid>
      <dc:creator>d4xtian</dc:creator>
      <dc:date>2022-08-15T20:00:57Z</dc:date>
    </item>
  </channel>
</rss>

