<?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: Code - URGENT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682945#M620298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the inputs, so if i have understood your inputs correctly, i will have to paste the entire thing starting from DATA: till the end in my SQ01 query &amp;amp; for the other 4 languages, i will have to enter them in&lt;/P&gt;&lt;P&gt;READ TABLE lt_makt INTO wa_makt WITH KEY matnr = wa_itab-matnr spras = 'E'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_itab-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i replace E with the respective language &amp;amp; end the loop with ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i have understood it clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Aug 2007 13:14:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-26T13:14:35Z</dc:date>
    <item>
      <title>Code - URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682943#M620296</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;At the moment in a query, i am viewing all info related to materials. The issue is, the material description is maintained in 6 different languages, but for few materials, only 3 or 4 are maintained. So when user queries, keeping the language as EN, he wont be able to see a few records. So i want to put a code in the query, where it checks if language is maintained in EN first, if it is there then output the record, if not then check if FR is maintained &amp;amp; so on, so that the user can view the material details atleast in one language. So can anyone help me with this code? Hope my question is clear. Await inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2007 12:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682943#M620296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-26T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Code - URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682944#M620297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could select all the entries, and then use READ TABLE with the language you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_makt TYPE STANDARD TABLE OF makt,&lt;/P&gt;&lt;P&gt;wa_makt TYPE makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK itab[] IS NOT INITIAL. " This is the name of your main table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr maktx&lt;/P&gt;&lt;P&gt;FROM makt&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;WHERE matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa_itab.&lt;/P&gt;&lt;P&gt;READ TABLE lt_makt INTO wa_makt WITH KEY matnr = wa_itab-matnr spras = 'E'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_itab-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;READ TABLE lt_makt INTO wa_makt WITH KEY matnr = wa_itab-matnr spras = 'F'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_itab-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can copy the code for all the relevant languages that you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2007 13:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682944#M620297</guid>
      <dc:creator>GuyF</dc:creator>
      <dc:date>2007-08-26T13:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code - URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682945#M620298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the inputs, so if i have understood your inputs correctly, i will have to paste the entire thing starting from DATA: till the end in my SQ01 query &amp;amp; for the other 4 languages, i will have to enter them in&lt;/P&gt;&lt;P&gt;READ TABLE lt_makt INTO wa_makt WITH KEY matnr = wa_itab-matnr spras = 'E'.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_itab-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i replace E with the respective language &amp;amp; end the loop with ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i have understood it clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2007 13:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682945#M620298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-26T13:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Code - URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682946#M620299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select maktx from makt where matnr = p_matnr&lt;/P&gt;&lt;P&gt;                                            and ( spras eq 'E' or spras eq 'D').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will try to see for english then for D if english is not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Aug 2007 15:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682946#M620299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-26T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Code - URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682947#M620300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Msg for Mr. Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i entered the code mentioned by you in 'Recording Processing' of SQ01, i get the following error when i tried to generate the infoset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global syntax check&lt;/P&gt;&lt;P&gt;GET / GET LATE code / Code for Record Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in code for record processing&lt;/P&gt;&lt;P&gt;Incorrect logical expression: Comparison / SELECT-OPTION can only be followed by "AND", "OR" or ")"&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;Msg for Mr. Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i entered the code mentioned by you in 'Recording Processing' of SQ01, i get the following error when i tried to generate the infoset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global syntax check&lt;/P&gt;&lt;P&gt;GET / GET LATE code / Code for Record Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in code for record processing&lt;/P&gt;&lt;P&gt;Field list without INTO clause is not allowed. itab "OR" INTO (f1....fn)" is not allowed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know what should i do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 11:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-urgent/m-p/2682947#M620300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T11:01:21Z</dc:date>
    </item>
  </channel>
</rss>

