<?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: Issue with screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524038#M1425584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to sort the table before using binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on BINARY SEARCH to know more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2010 17:43:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-06T17:43:56Z</dc:date>
    <item>
      <title>Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524035#M1425581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to abap. I am getting the employee no as an input in the screen from the user.If the employee no is present i m trying to display it in the same screen else i am using the function module POPUP_TO_CONFIRM_STEP to display a pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code is: &lt;/P&gt;&lt;P&gt;TABLES : ZSAMP.&lt;/P&gt;&lt;P&gt;Data : itab type zsamp occurs 0 with HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab&lt;/P&gt;&lt;P&gt;      WITH KEY ENO = ZSAMP-ENO&lt;/P&gt;&lt;P&gt;      BINARY SEARCH.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE ENAME AGE DEPT  FROM  ZSAMP INTO (ZSAMP-ENAME,ZSAMP-AGE,ZSAMP-DEPT ) WHERE ENO = ZSAMP-ENO.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        call function 'POPUP_TO_CONFIRM_STEP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is even when i give an no which is already present it display's the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone pls guide me in getting it fixed. Pls tell me if the read stt is correct or any changes req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524035#M1425581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T12:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524036#M1425582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : ZSAMP.
Data : itab type zsamp occurs 0 with HEADER LINE.

sort itab by eno ascending " Add this and Check the Sy-subrc for the
" below Read statement.
READ TABLE itab
WITH KEY ENO = ZSAMP-ENO
BINARY SEARCH.
IF sy-subrc = 0.
SELECT SINGLE ENAME AGE DEPT FROM ZSAMP INTO (ZSAMP-ENAME,ZSAMP-AGE,ZSAMP-DEPT ) WHERE ENO = ZSAMP-ENO.
else.
call function 'POPUP_TO_CONFIRM_STEP'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524036#M1425582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524037#M1425583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;few things to check...&lt;/P&gt;&lt;P&gt;1. before binary search the table should be sorted properly with ascending order.&lt;/P&gt;&lt;P&gt;2. check if any conversion exit present of ENO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just put a break point of the read statement and see the values in the table and in zsamp-eno. every thing will be clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 12:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524037#M1425583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T12:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524038#M1425584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to sort the table before using binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on BINARY SEARCH to know more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 17:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524038#M1425584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524039#M1425585</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;you never fill or append your table itab so you will never find anything in this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 21:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524039#M1425585</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-06T21:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524040#M1425586</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;I have sorted the table but when i debug i can c that no values are found in the internal table. Pls guide me to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 05:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524040#M1425586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-07T05:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524041#M1425587</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;In your coding &lt;/P&gt;&lt;P&gt;r u  selecting the data from  zsamp?&lt;/P&gt;&lt;P&gt;itab internal table having the same data (zsamp data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ZSAMP.&lt;/P&gt;&lt;P&gt;Data : itab type zsamp occurs 0 with HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from zsamp into table itab.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sort itab byeno.&lt;/P&gt;&lt;P&gt;READ TABLE itab WITH KEY ENO = ZSAMP-ENO BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;SELECT SINGLE ENAME AGE DEPT FROM ZSAMP INTO (ZSAMP-ENAME,ZSAMP-AGE,ZSAMP-DEPT ) WHERE ENO = ZSAMP-ENO.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;call function 'POPUP_TO_CONFIRM_STEP'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 05:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524041#M1425587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-07T05:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524042#M1425588</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;first see that there are no null values in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly as per your requirement, place a input box in the screen with some name as 'var_emp' then in the top include or in the report declare this variable with the same name 'var_emp' and its type should be same as the field in the database table(ie., employee number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when you execute,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if var_emp is not initial.
SELECT SINGLE ENAME AGE DEPT FROM ZSAMP INTO (ZSAMP-ENAME,ZSAMP-AGE,ZSAMP-DEPT ) WHERE ENO = var_emp.
if sy-subrc ne 0.
call function 'POPUP_TO_CONFIRM_STEP'.
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2010 05:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-screen-painter/m-p/6524042#M1425588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-07T05:30:45Z</dc:date>
    </item>
  </channel>
</rss>

