<?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: Output format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125820#M1188562</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;Go through the online documentation (F1 help) for loop control events like AT END OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use a temporary work area when using this statement as the fields to the right of EBELN in your work area will be either * or space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before using AT END OF statement&lt;/P&gt;&lt;P&gt;write WA_OUTPUT_TEMP = WA_OUTPUT.&lt;/P&gt;&lt;P&gt;and use WA_OUTPUT_TEMP in the logic b/w AT END OF....ENDAT instead of WA_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 09:55:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T09:55:57Z</dc:date>
    <item>
      <title>Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125814#M1188556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i develoed report,But my report is executing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 hyd1 55000001 hydraulics 0010 10 04.07.2008 10&lt;/P&gt;&lt;P&gt;1 hyd1 55000001 hydraulics 0020  25 09.07.2008 25&lt;/P&gt;&lt;P&gt;1 hyd1 55000001 hydraulics 0030  15 30.07.2008 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my coding:&lt;/P&gt;&lt;P&gt;LOOP AT IT_OUTPUT INTO WA_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WA_OUTPUT-WEMNG = 0.&lt;/P&gt;&lt;P&gt;BAL_QTY = WA_OUTPUT-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;BAL_QTY = WA_OUTPUT-MENGE - WA_OUTPUT-WEMNG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 SY-VLINE, WA_OUTPUT-SLNO UNDER 'SL.NO' CENTERED,&lt;/P&gt;&lt;P&gt;       10 SY-VLINE, WA_OUTPUT-MATNR UNDER 'PART NUMBER',&lt;/P&gt;&lt;P&gt;       30 sy-vline, WA_OUTPUT-EBELN UNDER 'DOC NO',&lt;/P&gt;&lt;P&gt;        45 SY-VLINE, WA_OUTPUT-MAKTX UNDER 'DESCRIPTION',&lt;/P&gt;&lt;P&gt;        70 SY-VLINE,WA_OUTPUT-EBELP UNDER 'ITEM NUMBER',&lt;/P&gt;&lt;P&gt;        83 SY-VLINE, BACKLOG UNDER 'BACKLOG QTY',&lt;/P&gt;&lt;P&gt;        100 SY-VLINE, WA_OUTPUT-XBLNR UNDER 'LASTDOC REF',&lt;/P&gt;&lt;P&gt;        120 SY-VLINE, WA_OUTPUT-MENGE UNDER 'SCHEDULE QTY',&lt;/P&gt;&lt;P&gt;        140 SY-VLINE, WA_OUTPUT-EINDT UNDER 'DATE',&lt;/P&gt;&lt;P&gt;        154 SY-VLINE, WA_OUTPUT-WEMNG UNDER 'DELIVERED QTY',&lt;/P&gt;&lt;P&gt;        172 SY-VLINE,  BAL_QTY UNDER 'BALANCE QTY',&lt;/P&gt;&lt;P&gt;        190 SY-VLINE. " wa_output-etenr Under 'schedule lines' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if im using control break statements,it is displaying o/p as ****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve the output format?&lt;/P&gt;&lt;P&gt;but my o/p should be in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 hyd1 55000001 hydraulics 0010 10 04.07.2008 10&lt;/P&gt;&lt;P&gt;                                         0020  25 09.07.2008 25&lt;/P&gt;&lt;P&gt;                                         0030  15 30.07.2008 15.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125814#M1188556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125815#M1188557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a work area of the same structure as that of your current work area and before the control break statements copy your work area into the new one.&lt;/P&gt;&lt;P&gt;Now use the contents of this work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125815#M1188557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125816#M1188558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using AT NEW EBELN..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note whenever u use AT control statements, it replaces all the left fields of EBELN with ******. So u are getting such O/p..&lt;/P&gt;&lt;P&gt;So previously copy the WA into another before the AT statmnt. then use this temp WA inside the AT statmnt. this is the correct way of doing it.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125816#M1188558</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-02-05T09:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125817#M1188559</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;If possible could you please give me the structure of the table.... i will try to help you out with the issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At end or AT First event only takes the left fields from the mentioned field in AT event rest all fields are *** or 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you can let me know the structure of your internal table... I might be in position to help you out....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125817#M1188559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125818#M1188560</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;This is because of your structure format. Try it changing your structure i.e., keep the ebeln field in the last &lt;/P&gt;&lt;P&gt;it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125818#M1188560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125819#M1188561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   Use At-NEW value of  1 hyd1 55000001 hydraulics&lt;/P&gt;&lt;P&gt;   write: 1 hyd1 55000001 hydraulics&lt;/P&gt;&lt;P&gt;   end at.&lt;/P&gt;&lt;P&gt;   write: rest of the lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears it out&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Viquar Iqbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125819#M1188561</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-05T09:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125820#M1188562</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;Go through the online documentation (F1 help) for loop control events like AT END OF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use a temporary work area when using this statement as the fields to the right of EBELN in your work area will be either * or space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before using AT END OF statement&lt;/P&gt;&lt;P&gt;write WA_OUTPUT_TEMP = WA_OUTPUT.&lt;/P&gt;&lt;P&gt;and use WA_OUTPUT_TEMP in the logic b/w AT END OF....ENDAT instead of WA_OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125820#M1188562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125821#M1188563</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;Try to keep the first field of your internal table same as on which you are using at new or your control break statement. If it is not the first field then all characters are replaced by * and intergers by 0.&lt;/P&gt;&lt;P&gt;If you are using control break on PO number keep ebeln as your first field in the internal table. Also make sure to sort the table on that field. these are the 2 main points while using control break processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps in solving your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 09:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125821#M1188563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T09:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125822#M1188564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Befor using the control event statements in a loop first you have to sort the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u use,&lt;/P&gt;&lt;P&gt;at end of ebeln, &lt;/P&gt;&lt;P&gt;the fields before the ebeln in ur internal table or a structure are treated as key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program, you used at end of ebeln so it prints the data before the fields of ebeln and if any fields after the ebeln will be printerd as '*' s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 10:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125822#M1188564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T10:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125823#M1188565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 03:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format/m-p/5125823#M1188565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T03:45:29Z</dc:date>
    </item>
  </channel>
</rss>

