<?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 FI Report Document status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795027#M341670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a FI report based on document type(blart) and document status(bstat). I have three check boxes in the selection screen where I can select the document status(cleared, open or parked). I have to consider all the possible selections of the checkboxes. I can only think of all the possiblities of the checkbox selection and write the select statement .....&lt;/P&gt;&lt;P&gt;Could any on help with simpler logic for this particular report. Thank u in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2007 21:05:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-03T21:05:06Z</dc:date>
    <item>
      <title>FI Report Document status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795027#M341670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a FI report based on document type(blart) and document status(bstat). I have three check boxes in the selection screen where I can select the document status(cleared, open or parked). I have to consider all the possible selections of the checkboxes. I can only think of all the possiblities of the checkbox selection and write the select statement .....&lt;/P&gt;&lt;P&gt;Could any on help with simpler logic for this particular report. Thank u in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 21:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795027#M341670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T21:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report Document status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795028#M341671</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;Create a ranges and build the ranges for each check box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;PARAMETER: P_CDATE AS CHECKBOX.&lt;/P&gt;&lt;P&gt;PARAMETER: P_YDATE AS CHECKBOX.&lt;/P&gt;&lt;P&gt;PARAMETER: P_TDATE AS CHECKBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: R_DATE FOR SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CURRENT DATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF P_CDATE = 'X'.&lt;/P&gt;&lt;P&gt;  R_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  R_DATE-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  R_DATE-LOW = SY-DATUM.&lt;/P&gt;&lt;P&gt;  APPEND R_DATE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;YESTERDAY DATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF P_YDATE = 'X'.&lt;/P&gt;&lt;P&gt;  R_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  R_DATE-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  R_DATE-LOW = SY-DATUM - 1.&lt;/P&gt;&lt;P&gt;  APPEND R_DATE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TOMORROW'S DATE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF P_TDATE = 'X'.&lt;/P&gt;&lt;P&gt;  R_DATE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  R_DATE-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  R_DATE-LOW = SY-DATUM + 1.&lt;/P&gt;&lt;P&gt;  APPEND R_DATE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT R_DATE.&lt;/P&gt;&lt;P&gt;  WRITE: / R_DATE-LOW.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**You can use the ranges in a where clause..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 21:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795028#M341671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T21:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: FI Report Document status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795029#M341672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most simple way is to use ranges in selection.&lt;/P&gt;&lt;P&gt;First you must know what blart and bstat values correspond to each of the checkboxes. The most simple way to do a selection is to create two ranges (for blart and bstat) and populate them with proper values for each selected checkbox. After this you can use select ... where ... blart in range_blart and bstat in range_bstat. BUT it's very IMPORTANT to understand that after that you need properly check every condition, because it is possible to select some fake lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to use where (itab) variant of select clause and populate it with proper ANDs and ORs. Here is an except from help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: CARR_ID LIKE SPFLI-CARRID, 
            CONN_ID LIKE SPFLI-CONNID. 
DATA:       WTAB(72) OCCURS 100 WITH HEADER LINE, 
            AND(3), 
            WA_SPFLI TYPE SPFLI. 

REFRESH WTAB. 
IF NOT CARR_ID IS INITIAL. 
  CONCATENATE 'CARRID = ''' CARR_ID '''' INTO WTAB. 
  APPEND WTAB. 
  AND = 'AND'. 
ENDIF. 
IF NOT CONN_ID IS INITIAL. 
  CONCATENATE AND ' CONNID = ''' CONN_ID '''' INTO WTAB. 
  APPEND WTAB. 
ENDIF. 

SELECT * FROM SPFLI WHERE (WTAB) INTO WA_SPFLI 
  WRITE: / WA_SPFLI-CARRID, WA_SPFLI-CONNID, WA_SPFLI-CITYFROM, 
           WA_SPFLI-CITYTO, WA_SPFLI-DEPTIME. 
ENDSELECT. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 21:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-report-document-status/m-p/1795029#M341672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T21:33:30Z</dc:date>
    </item>
  </channel>
</rss>

