<?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: Selection screen -Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587578#M1273969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a Query and infoset. the code exists in the infoset .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 20:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T20:47:18Z</dc:date>
    <item>
      <title>Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587573#M1273964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query which has selections form extars tab in the&lt;/P&gt;&lt;P&gt;infoset and one selection for language from the selection tab. &lt;/P&gt;&lt;P&gt;The problem is that when this selection in teh selection screen &lt;/P&gt;&lt;P&gt;from the selection tab is filled with no language(blank)&lt;/P&gt;&lt;P&gt;and run withoutselecting anyother selection it gives all teh result,&lt;/P&gt;&lt;P&gt;similaryly if I put in a language and in it and run it still shows up &lt;/P&gt;&lt;P&gt;witha ll the result. Actually I would like to see only thiose&lt;/P&gt;&lt;P&gt; materials with description for which the language is entered and not all .&lt;/P&gt;&lt;P&gt;Since this selection copmes from teh selection tab fo the infoset &lt;/P&gt;&lt;P&gt;its not filtering as required but the other selection criteria which &lt;/P&gt;&lt;P&gt;comes from teh extra tab does filter accordingly.&lt;/P&gt;&lt;P&gt;Could anyone sufggest as how tyo gho about doing it so&lt;/P&gt;&lt;P&gt;that it shows the result by filtering from this languiage criteria also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection screen is as follows.&lt;/P&gt;&lt;P&gt;(General data selection)&lt;/P&gt;&lt;P&gt;TDG Language                    ___&amp;lt;----- this comes from the selection tab in infoset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Report-specific selection)&lt;/P&gt;&lt;P&gt;Material Number                 ____               to    ____ (these comes from the extra tab in infoset)&lt;/P&gt;&lt;P&gt;Material Type                   ____               to    ____ &lt;/P&gt;&lt;P&gt;Material Desc. Language         ____               to    ____ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout      ____ &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 16:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587573#M1273964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T16:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587574#M1273965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 17:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587574#M1273965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587575#M1273966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could anyone please suggest as what to do for this . I ahve added a piece of code to it . Thera re two columns for text one for english language text and other for other language tyext and the call function is used . When I put this poiece of code it works for the english one , such that when I enter EN in selection screen it shows only for the materials having EN text , but the same code dosent work with the other language , it shows both the texts in it. The quesry is showing an warning saying 'Recursive sourcing in teh code'. as sequnec for both code is 2 and eitjher of them has the variable used in each other.&lt;/P&gt;&lt;P&gt;Is ther a way I can solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 20:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587575#M1273966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587576#M1273967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aarav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the problem lies in your select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give the snippet of your code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways it should go something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if rad_1 = 'x'.

select *
from table 
into corresponding fields of table itab 
where (give ur language specification here).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 20:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587576#M1273967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T20:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587577#M1273968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two different columsn(additional field) for two diffrenet texts.&lt;/P&gt;&lt;P&gt;FOr the first one its :and its sequence is 2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: name3 type tdobname,
      language3 type spras,
      tlines3 type table of tline with header line.
language3 = sy-langu.
clear tdgtextz1.
name3 = mara-matnr.
call function 'READ_TEXT'
  exporting
    id                            = 'PRUE'
    language                      = language3
    name                          = name3
    object                        = 'MATERIAL'
  tables
    lines                         = tlines3
  exceptions
    others                        = 1.
if sy-subrc = 0.
  loop at tlines3.
    if sy-tabix = 1.
      tdgtextz1 = tlines3-tdline.
    else.
      concatenate tdgtextz1 tlines3-tdline into
          tdgtextz1 separated by space.
    endif.
  endloop.
endif.
if p_spras = language3.
check not tdgtextz1 = ' '.
tdg_text = ' '.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;for the second one as follows and has the same sequence in infoset as 2.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: name2 type TDOBNAME,
      language2 type SPRAS,
      tlines2 type table of TLINE WITH HEADER LINE.
language2 = sy-langu.
clear tdg_text.
name2 = mara-matnr.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    ID                            = 'PRUE'
    LANGUAGE                      = language2
    NAME                          = name2
    OBJECT                        = 'MATERIAL'
  TABLES
    LINES                         = tlines2
  exceptions
    others                        = 1.
IF SY-SUBRC = 0.
  loop at tlines2.
    if sy-tabix = 1.
      tdg_text = tlines2-tdline.
    else.
      concatenate tdg_text tlines2-tdline into
          tdg_text SEPARATED BY space.
    endif.
  endloop.
ENDIF.
if p_spras = language2.
check not tdg_text = ' ' .
tdgtextz1 = ' '.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 20:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587577#M1273968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T20:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587578#M1273969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a Query and infoset. the code exists in the infoset .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 20:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587578#M1273969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T20:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587579#M1273970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you suggest anything on this so that I get the text for only the language i enter and only materiuals that have text in them .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 21:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587579#M1273970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T21:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen -Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587580#M1273971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 17:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-query/m-p/5587580#M1273971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-22T17:02:24Z</dc:date>
    </item>
  </channel>
</rss>

