<?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: SAP Script multiple items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-multiple-items/m-p/711769#M32845</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;ryo-yama&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;You should tell us what it means "it's not going well".&lt;/P&gt;&lt;P&gt;The first thing I see it's that, in your Sapscript you want to display field &lt;STRONG&gt;XBLNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where do you fill it in your loop in your program?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB.

"Which value has XBLNR in this point if you debug?
  CALL FUNCTION 'WRITE_FORM'
      EXPORTING  ELEMENT = 'ITEM'
                 FUNCTION = 'SET'
                 TYPE = 'BODY'
                 WINDOW = 'WINDOW1'.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Debug your report and check:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;if you have global variable called XBLNR&lt;/LI&gt;&lt;LI&gt;Which value it stores during the loop&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;A little suggestion for the future: use CODE option (pasting your code as plain text) to make it more easy to read and share as much as information you can.&lt;BR /&gt;If you say "it's not going well" is a bit unclear and we struggle into helping you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 11:08:12 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2018-11-27T11:08:12Z</dc:date>
    <item>
      <title>SAP Script multiple items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-multiple-items/m-p/711768#M32844</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
  &lt;P&gt;I want to display multiple records in a window.(Not main window)&lt;/P&gt;
  &lt;P&gt;My code is below.&lt;/P&gt;
  &lt;P&gt;&amp;lt;SE38(ABAP Program for calling subroutines)&amp;gt;&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'START_FORM'.&lt;/P&gt;
  &lt;P&gt;:&lt;/P&gt;
  &lt;P&gt;LOOP AT ITAB.&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;
  &lt;P&gt;EXPORTING&lt;/P&gt;
  &lt;P&gt;ELEMENT = 'ITEM'&lt;/P&gt;
  &lt;P&gt;FUNCTION = 'SET'&lt;/P&gt;
  &lt;P&gt;TYPE = 'BODY'&lt;/P&gt;
  &lt;P&gt;WINDOW = 'WINDOW1'&lt;/P&gt;
  &lt;P&gt;ENDLOOP.&lt;/P&gt;
  &lt;P&gt;:&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'END_FORM'.&lt;/P&gt;
  &lt;P&gt;&amp;lt;SE71(PRINT PROGRAM)&amp;gt;(Window1)&lt;/P&gt;
  &lt;P&gt;DEFINE &amp;amp;BUKRS&amp;amp; = &amp;amp; REGUP-BUKRS&amp;amp;&lt;/P&gt;
  &lt;P&gt;DEFINE &amp;amp;VBLNR&amp;amp; = &amp;amp; REGUP-VBLNR&amp;amp;&lt;/P&gt;
  &lt;P&gt;DEFINE &amp;amp;XBLNR&amp;amp; = ' '&lt;/P&gt;
  &lt;P&gt;PERFORM SUB1 IN PROGRAM PG1&lt;/P&gt;
  &lt;P&gt;USING &amp;amp;BUKRS&amp;amp;&lt;/P&gt;
  &lt;P&gt;USING &amp;amp;VBLNR&amp;amp;&lt;/P&gt;
  &lt;P&gt;CHANGING &amp;amp;XBLNR&amp;amp;&lt;/P&gt;
  &lt;P&gt;ENDPERFORM&lt;/P&gt;
  &lt;P&gt;/E ITEM&lt;/P&gt;
  &lt;P&gt;AS &amp;amp;XBLNR&amp;amp;&lt;/P&gt;
  &lt;P&gt;I wrote this code by reference to other similar questions. &lt;/P&gt;
  &lt;P&gt;But it's not going well. Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-multiple-items/m-p/711768#M32844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-27T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script multiple items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-multiple-items/m-p/711769#M32845</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;ryo-yama&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;You should tell us what it means "it's not going well".&lt;/P&gt;&lt;P&gt;The first thing I see it's that, in your Sapscript you want to display field &lt;STRONG&gt;XBLNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where do you fill it in your loop in your program?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB.

"Which value has XBLNR in this point if you debug?
  CALL FUNCTION 'WRITE_FORM'
      EXPORTING  ELEMENT = 'ITEM'
                 FUNCTION = 'SET'
                 TYPE = 'BODY'
                 WINDOW = 'WINDOW1'.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Debug your report and check:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;if you have global variable called XBLNR&lt;/LI&gt;&lt;LI&gt;Which value it stores during the loop&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;A little suggestion for the future: use CODE option (pasting your code as plain text) to make it more easy to read and share as much as information you can.&lt;BR /&gt;If you say "it's not going well" is a bit unclear and we struggle into helping you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 11:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-multiple-items/m-p/711769#M32845</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2018-11-27T11:08:12Z</dc:date>
    </item>
  </channel>
</rss>

