<?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 Data type problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074408#M974245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well now i have to create a program that would get two parameters.&lt;/P&gt;&lt;P&gt;Posting period as well as the Company Code.&lt;/P&gt;&lt;P&gt;Posting period's format should always be (YYYYMM), I started by declaring&lt;/P&gt;&lt;P&gt;Parameters: pperd(6) type I Obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then I noticed, that when I run it, the length of posting period reaches more than 6. I also noticed that there is a data type of ACCP. whose format is YYYYMM. Unfortunately when I try to declare it, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm tyring to find the simplest solution possible, since I also have to implement error checking i.e Month should not be greater that 12 etc. can anyone help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 01:36:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-02T01:36:23Z</dc:date>
    <item>
      <title>Data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074408#M974245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well now i have to create a program that would get two parameters.&lt;/P&gt;&lt;P&gt;Posting period as well as the Company Code.&lt;/P&gt;&lt;P&gt;Posting period's format should always be (YYYYMM), I started by declaring&lt;/P&gt;&lt;P&gt;Parameters: pperd(6) type I Obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then I noticed, that when I run it, the length of posting period reaches more than 6. I also noticed that there is a data type of ACCP. whose format is YYYYMM. Unfortunately when I try to declare it, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm tyring to find the simplest solution possible, since I also have to implement error checking i.e Month should not be greater that 12 etc. can anyone help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 01:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074408#M974245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T01:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074409#M974246</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;Pls try: Parameters: pperd type SPMON Obligatory.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 01:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074409#M974246</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-07-02T01:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074410#M974247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I tried your solution and its format is MM YYYY when i execute it.&lt;/P&gt;&lt;P&gt;I'm trying for YYYYMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also there was no error when I entered the month 20. &lt;/P&gt;&lt;P&gt;Thanks though I appreciate the effort&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 01:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074410#M974247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T01:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074411#M974248</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;use the table s031-spmon . it will take it in yyyymm. check it in the table table s031.ok . even if u want to declare as parameter declare like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Parameters: pperd type N Obligatory.&lt;/P&gt;&lt;P&gt;     or &lt;/P&gt;&lt;P&gt; Parameters: pperd like s031-spmon Obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will consider only 6 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nothing to get afraid . what ever the format it may be like MMYYYY or YYYYMM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can easily concatenate by your won way look at this example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CONCATENATE lt_output-ausbs&lt;EM&gt;6(2) '/' lt_output-ausbs&lt;/EM&gt;4(2) '/'&lt;/P&gt;&lt;P&gt;            lt_output-ausbs(4) INTO lt_file-ausbs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or goto the TCODE : ABAPDOCU . type keyword as concatenate.&lt;/P&gt;&lt;P&gt;it will work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its really useful .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye &lt;/P&gt;&lt;P&gt;vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 02:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074411#M974248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T02:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074412#M974249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katrina ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format depends on your date format setting in your user master. And you should check the month value in your own program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 02:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-problem/m-p/4074412#M974249</guid>
      <dc:creator>pole_li</dc:creator>
      <dc:date>2008-07-02T02:48:59Z</dc:date>
    </item>
  </channel>
</rss>

