<?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: Reports in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949029#M695285</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;if you want to mark something, ry to use TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA flag TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flag is a point to verify, you mark that  point and then check with an if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 17:39:25 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2007-10-10T17:39:25Z</dc:date>
    <item>
      <title>Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949028#M695284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is lalitha .&lt;/P&gt;&lt;P&gt; 1. I jhave got run time error in my pro n not able to solve it .&lt;/P&gt;&lt;P&gt;This is the select statement .&lt;/P&gt;&lt;P&gt;IF T_HOLD-CMGST = 'B' OR&lt;/P&gt;&lt;P&gt;T_HOLD-CMGST = 'C' .&lt;/P&gt;&lt;P&gt;T_HOLD-CMGST = 'YES' .&lt;/P&gt;&lt;P&gt;FLAG = 'X' .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE DEFINED FLAG AS&lt;/P&gt;&lt;P&gt;DATA: FLAG TYPE F .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;''FLAG = 'X' .is an error .flag is defined in float ,but the value is given in 'x' .&lt;/P&gt;&lt;P&gt;I dont know  how to give the value for flag .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 . Please explain me what is a flag?&lt;/P&gt;&lt;P&gt;3. why do define it in a program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards.&lt;/P&gt;&lt;P&gt;lalitha .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949028#M695284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949029#M695285</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;if you want to mark something, ry to use TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA flag TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flag is a point to verify, you mark that  point and then check with an if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 17:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949029#M695285</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-10-10T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949030#M695286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A flag is basically a yes/no indicator.  When you give it the value 'X', it means "yes".  When the value is blank, it means "no".  It needs to be defined as type C (for character).  Type F is for floating point numbers.  Or you can simply define it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA flag(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create a 1-character field.  I hope this helps.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 18:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949030#M695286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949031#M695287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand a little on April's explanation, a "flag" is an indicator as to the state of something - it will depend on your local requirement as to how it is used.  For example, in answer to your question, you could code a test as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  l_flag        type f.  "float

case sy-uname.
  when 'BATCH'  "if current user is batch...
    or 'BATCHJOB'. "or batchjob   
    l_flag = 1.
  when 'FRED'.
    l_flag = 2.
endif.
....
if l_flag is initial.  "not set to anything
  message i398(00) with 'Unauthorised access' space space space.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For "boolean" tests, then the more common approach is to have a char 1 field (like sap_bool for example) that you have a value of "X" or space in, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
  l_flag        type sap_bool.  "char 1
case sy-uname.
  when 'BATCH'  "if current user is batch...
    or 'BATCHJOB'. "or batchjob   
    l_flag = 'X'
  when 'FRED'.
    l_flag = 'X'.
endif.
....
if l_flag is initial.  "not set to anything
  message i398(00) with 'Unauthorised access' space space space.
endif.&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;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 22:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949031#M695287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T22:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949032#M695288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declaration of flag is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FLAG TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work out..Please reward&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, 11 Oct 2007 05:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949032#M695288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reports</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949033#M695289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FLAG TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF T_HOLD-CMGST = 'B' OR&lt;/P&gt;&lt;P&gt;T_HOLD-CMGST = 'C' .&lt;/P&gt;&lt;P&gt;T_HOLD-CMGST = 'YES' .&lt;/P&gt;&lt;P&gt;FLAG = 'X' .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 11:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reports/m-p/2949033#M695289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-11T11:30:13Z</dc:date>
    </item>
  </channel>
</rss>

