<?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: Write Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538503#M576567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;1) B&lt;/P&gt;&lt;P&gt;2) D&lt;/P&gt;&lt;P&gt;3) C&lt;/P&gt;&lt;P&gt;4) A&lt;/P&gt;&lt;P&gt;5) A&lt;/P&gt;&lt;P&gt;6) D&lt;/P&gt;&lt;P&gt;7) E&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if its helpful.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2007 16:36:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-08T16:36:58Z</dc:date>
    <item>
      <title>Write Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538502#M576566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can some one answer the following please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Which one of the following is an INCORRECT form of the WRITE statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) write x no-sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) write x no-decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) write x left-justified no-gap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) write x no-zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) write x under y currency us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Update Bundling can occur within which of the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Within dialog tasks and dequeue processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Within dialog and update tasks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Within enqueue processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) Within enqueue and dequeue processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Table ztest has a secondary index on the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tnum, tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from ztest where tnum ne '123' and tcode = '456'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the index not used in the above case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Indexes are not allowed on Z tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) Variables must be used, NOT literals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Select individual fields, not select *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) Client is not in the where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) NE invalidates the use of an index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) Within update tasks and enqueue processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Program specifications ask for error checking on a selection-screen which contains a parameter inside a frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) at selection-screen on block b1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) selection-screen check block b1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) at selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) selection-screen on field f1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) check selection-screen&lt;/P&gt;&lt;P&gt;5. Which statement is INCORRECT when referring to SAP memory or ABAP memory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) ABAP memory is only stored during the lifetime of an external session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) You can use ABAP memory to pass data between internal sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) SAP memory is also referred to as Global Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) SAP memory is available across transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) IMPORT/EXPORT (TO MEMORY) statements are used for SAP memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. An internal table icode contains the following entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field1  Field2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;John    12345&lt;/P&gt;&lt;P&gt;Alice   23478&lt;/P&gt;&lt;P&gt;Sam     54321&lt;/P&gt;&lt;P&gt;john    50000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ICODE OCCURS 0,&lt;/P&gt;&lt;P&gt;        FIELD1(5),&lt;/P&gt;&lt;P&gt;        FIELD2(5),&lt;/P&gt;&lt;P&gt;      END OF ICODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ICODE WITH KEY FIELD1 = 'John' BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does executing the above code return a sy-subrc of 4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Icode-field2 must be a numeric field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) The internal table has an incorrect structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) Both internal table fields must be used in the search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) The internal table must be sorted first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) 'John' should not be capitalized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. A standard type internal table ICODE contains the following entries:&lt;/P&gt;&lt;P&gt;field1 field2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;001    New York&lt;/P&gt;&lt;P&gt;002    Boston&lt;/P&gt;&lt;P&gt;003    Houston&lt;/P&gt;&lt;P&gt;008    Denver&lt;/P&gt;&lt;P&gt;010    San Diego&lt;/P&gt;&lt;P&gt;020    Seattle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ICODE WITH KEY FIELD1 = '015' BINARY SEARCH.&lt;/P&gt;&lt;P&gt;WRITE: / SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the value of sy-tabix after executing the above code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Table ZNAME                    Table ZINFO&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;                  -&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;field    key                   field          key&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;                  -&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;mandt      X                   mandt            X&lt;/P&gt;&lt;P&gt;id         X                   id               X&lt;/P&gt;&lt;P&gt;lname      X                   dept&lt;/P&gt;&lt;P&gt;fname      X                   division&lt;/P&gt;&lt;P&gt;address                       &lt;/P&gt;&lt;P&gt;phone&lt;/P&gt;&lt;P&gt;fax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the above table definitions, which one of the following selects uses proper syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) select * from zinfo where id = '0025'.&lt;/P&gt;&lt;P&gt;Loop at zinfo.&lt;/P&gt;&lt;P&gt;Write: / id.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) select mandt id lname into (client, id, lname)&lt;/P&gt;&lt;P&gt;from zname where id = '0025'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write: / id.&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) select * into table itab from zname&lt;/P&gt;&lt;P&gt;where id = '0025'.&lt;/P&gt;&lt;P&gt;  Select * from zinfo for all entries in itab&lt;/P&gt;&lt;P&gt;   where id = itab-id.&lt;/P&gt;&lt;P&gt;    Write: / zinfo-dept.&lt;/P&gt;&lt;P&gt;  Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d) select a&lt;SUB&gt;id a&lt;/SUB&gt;lname a&lt;SUB&gt;fname b&lt;/SUB&gt;dept into table itab&lt;/P&gt;&lt;P&gt;from zname as a INNER JOIN zinfo as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;id = b&lt;/SUB&gt;id&lt;/P&gt;&lt;P&gt;where lname = 'Smith'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at zname.&lt;/P&gt;&lt;P&gt;Write: / zname-id, zname-lname.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e) select count ( id ) sum ( lname ) into (num, lname)&lt;/P&gt;&lt;P&gt;from zname where id = '0025'.&lt;/P&gt;&lt;P&gt;Write: / num, lname.&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 16:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538502#M576566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T16:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Write Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538503#M576567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer:&lt;/P&gt;&lt;P&gt;1) B&lt;/P&gt;&lt;P&gt;2) D&lt;/P&gt;&lt;P&gt;3) C&lt;/P&gt;&lt;P&gt;4) A&lt;/P&gt;&lt;P&gt;5) A&lt;/P&gt;&lt;P&gt;6) D&lt;/P&gt;&lt;P&gt;7) E&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if its helpful.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 16:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538503#M576567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Write Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538504#M576568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ravi. Rewarded points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 19:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement/m-p/2538504#M576568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T19:28:12Z</dc:date>
    </item>
  </channel>
</rss>

