<?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 how to display table field data using checkbox in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-table-field-data-using-checkbox/m-p/6019444#M1347380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I have created PR using ME51N.  Our PR datas in EKPO table.  &lt;/P&gt;&lt;P&gt;          I have created select-option with prdat and Checkbox for to view PR open or closed status.&lt;/P&gt;&lt;P&gt;          I want check PR status details from date to date using check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I have created the following code, but i will not generate output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF leban OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE ekpo.&lt;/P&gt;&lt;P&gt;DATA END OF leban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA new(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.&lt;/P&gt;&lt;P&gt;parameters lopen like new AS CHECKBOX USER-COMMAND opn.&lt;/P&gt;&lt;P&gt;parameters lclose like new as checkbox user-command cls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ldat is initial.&lt;/P&gt;&lt;P&gt;   message 'Enter a value' type 'W'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'opn'.&lt;/P&gt;&lt;P&gt;   perform getpr.&lt;/P&gt;&lt;P&gt;   perform findopenpr  tables leban.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form getpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ekpo into leban where PRDAT in ldat.&lt;/P&gt;&lt;P&gt;append leban.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form findopenpr tables ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF LOPEN = 'X'.&lt;/P&gt;&lt;P&gt;       select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.&lt;/P&gt;&lt;P&gt;       SORT leban BY bnfpo.&lt;/P&gt;&lt;P&gt;       CLEAR leban.&lt;/P&gt;&lt;P&gt;       if not sy-subrc = 0.&lt;/P&gt;&lt;P&gt;         message  'PR OPEN' type 'S'.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;       WRITE: / LEBAN-BANFN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 13:16:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-07T13:16:31Z</dc:date>
    <item>
      <title>how to display table field data using checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-table-field-data-using-checkbox/m-p/6019444#M1347380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I have created PR using ME51N.  Our PR datas in EKPO table.  &lt;/P&gt;&lt;P&gt;          I have created select-option with prdat and Checkbox for to view PR open or closed status.&lt;/P&gt;&lt;P&gt;          I want check PR status details from date to date using check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I have created the following code, but i will not generate output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF leban OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE ekpo.&lt;/P&gt;&lt;P&gt;DATA END OF leban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA new(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.&lt;/P&gt;&lt;P&gt;parameters lopen like new AS CHECKBOX USER-COMMAND opn.&lt;/P&gt;&lt;P&gt;parameters lclose like new as checkbox user-command cls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ldat is initial.&lt;/P&gt;&lt;P&gt;   message 'Enter a value' type 'W'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'opn'.&lt;/P&gt;&lt;P&gt;   perform getpr.&lt;/P&gt;&lt;P&gt;   perform findopenpr  tables leban.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form getpr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ekpo into leban where PRDAT in ldat.&lt;/P&gt;&lt;P&gt;append leban.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form findopenpr tables ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF LOPEN = 'X'.&lt;/P&gt;&lt;P&gt;       select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.&lt;/P&gt;&lt;P&gt;       SORT leban BY bnfpo.&lt;/P&gt;&lt;P&gt;       CLEAR leban.&lt;/P&gt;&lt;P&gt;       if not sy-subrc = 0.&lt;/P&gt;&lt;P&gt;         message  'PR OPEN' type 'S'.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;       WRITE: / LEBAN-BANFN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Baskaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 13:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-table-field-data-using-checkbox/m-p/6019444#M1347380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T13:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to display table field data using checkbox</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-table-field-data-using-checkbox/m-p/6019445#M1347381</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;Try this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shouldnt be writing two select statements into the same internal table. Also i dont see any use of perform getpr. so remove that and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF leban OCCURS 0.
INCLUDE STRUCTURE ekpo.
DATA END OF leban.

DATA: BEGIN OF leban1 OCCURS 0.
INCLUDE STRUCTURE ekpo.
DATA END OF leban1.

DATA new(1).

SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
parameters lopen like new AS CHECKBOX USER-COMMAND opn.
parameters lclose like new as checkbox user-command cls.


at selection-screen.

if ldat is initial.
message 'Enter a value' type 'W'.
endif.

IF LOPEN = 'X'.
select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
if sy-subrc = 0.
message 'PR OPEN' type 'S'.
ENDIF.
WRITE: / LEBAN-BANFN.
endif.

if LCLOSE = 'X'.

select single * from ekpo into leban1 where PRDAT IN LDAT AND banfn eq space.
if sy-subrc = 0.
message 'PR CLOSE' type 'S'.
ENDIF.
WRITE: / LEBAN1-BANFN.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vikred on Aug 7, 2009 6:55 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vikred on Aug 7, 2009 7:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 13:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-display-table-field-data-using-checkbox/m-p/6019445#M1347381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T13:25:05Z</dc:date>
    </item>
  </channel>
</rss>

