<?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 report layout in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016459#M412104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am extrating data for inbound and outbound both are in different tables, know i need to print first&lt;/P&gt;&lt;P&gt;at new&lt;/P&gt;&lt;P&gt;material no desctiption date unit&lt;/P&gt;&lt;P&gt;        in next line i need to print inbound qty for that material unit&lt;/P&gt;&lt;P&gt;                  after printing all the inbound qty i need to start printing the outbound   &lt;/P&gt;&lt;P&gt;                  qty and unit from the last value of inbound qty, under one material,&lt;/P&gt;&lt;P&gt;if i am writing with in a loop then the inbound and outbound are getting one by one else if i am using outside the loop then all the outbound qts are printing at last .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here is my code&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_temp_final INTO wa_temp_final.&lt;/P&gt;&lt;P&gt;    AT NEW matnr.&lt;/P&gt;&lt;P&gt;      READ TABLE i_temp_final INTO wa_temp_final INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Converting to start date and end date.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          iv_date             = wa_temp_final-fbuda&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          ev_month_begin_date = l_bdate&lt;/P&gt;&lt;P&gt;          ev_month_end_date   = l_edate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      NEW-PAGE.&lt;/P&gt;&lt;P&gt;      WRITE: /8 wa_temp_final-matnr NO-ZERO,&lt;/P&gt;&lt;P&gt;             16 wa_temp_final-arktx NO-ZERO,&lt;/P&gt;&lt;P&gt;             32 l_bdate NO-ZERO,&lt;/P&gt;&lt;P&gt;             48 wa_temp_final-obalance ,&lt;/P&gt;&lt;P&gt;             58 wa_temp_final-vrkme_in NO-ZERO.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/32 wa_temp_final-fbuda NO-ZERO,&lt;/P&gt;&lt;P&gt;           55 wa_temp_final-fkimg_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           72 wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           75 wa_temp_final-inbound_flag NO-ZERO,&lt;/P&gt;&lt;P&gt;           108  wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           113  wa_temp_final-vbeln_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           120  wa_temp_final-posnr_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           129  wa_temp_final-vgbel NO-ZERO,&lt;/P&gt;&lt;P&gt;           135  wa_temp_final-vgpos NO-ZERO,&lt;/P&gt;&lt;P&gt;           146  wa_temp_final-vbeln_out NO-ZERO,&lt;/P&gt;&lt;P&gt;           154  wa_temp_final-posnr_out NO-ZERO,&lt;/P&gt;&lt;P&gt;           169  wa_temp_final-kunag NO-ZERO.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at i_outbound into wa_outbound.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE:/77 wa_outbound-fkimg_out LEFT-JUSTIFIED NO-ZERO,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          94 wa_outbound-vrkme_out NO-ZERO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2007 10:15:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-27T10:15:56Z</dc:date>
    <item>
      <title>report layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016459#M412104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am extrating data for inbound and outbound both are in different tables, know i need to print first&lt;/P&gt;&lt;P&gt;at new&lt;/P&gt;&lt;P&gt;material no desctiption date unit&lt;/P&gt;&lt;P&gt;        in next line i need to print inbound qty for that material unit&lt;/P&gt;&lt;P&gt;                  after printing all the inbound qty i need to start printing the outbound   &lt;/P&gt;&lt;P&gt;                  qty and unit from the last value of inbound qty, under one material,&lt;/P&gt;&lt;P&gt;if i am writing with in a loop then the inbound and outbound are getting one by one else if i am using outside the loop then all the outbound qts are printing at last .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here is my code&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_temp_final INTO wa_temp_final.&lt;/P&gt;&lt;P&gt;    AT NEW matnr.&lt;/P&gt;&lt;P&gt;      READ TABLE i_temp_final INTO wa_temp_final INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Converting to start date and end date.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          iv_date             = wa_temp_final-fbuda&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          ev_month_begin_date = l_bdate&lt;/P&gt;&lt;P&gt;          ev_month_end_date   = l_edate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      NEW-PAGE.&lt;/P&gt;&lt;P&gt;      WRITE: /8 wa_temp_final-matnr NO-ZERO,&lt;/P&gt;&lt;P&gt;             16 wa_temp_final-arktx NO-ZERO,&lt;/P&gt;&lt;P&gt;             32 l_bdate NO-ZERO,&lt;/P&gt;&lt;P&gt;             48 wa_temp_final-obalance ,&lt;/P&gt;&lt;P&gt;             58 wa_temp_final-vrkme_in NO-ZERO.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/32 wa_temp_final-fbuda NO-ZERO,&lt;/P&gt;&lt;P&gt;           55 wa_temp_final-fkimg_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           72 wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           75 wa_temp_final-inbound_flag NO-ZERO,&lt;/P&gt;&lt;P&gt;           108  wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           113  wa_temp_final-vbeln_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           120  wa_temp_final-posnr_in NO-ZERO,&lt;/P&gt;&lt;P&gt;           129  wa_temp_final-vgbel NO-ZERO,&lt;/P&gt;&lt;P&gt;           135  wa_temp_final-vgpos NO-ZERO,&lt;/P&gt;&lt;P&gt;           146  wa_temp_final-vbeln_out NO-ZERO,&lt;/P&gt;&lt;P&gt;           154  wa_temp_final-posnr_out NO-ZERO,&lt;/P&gt;&lt;P&gt;           169  wa_temp_final-kunag NO-ZERO.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at i_outbound into wa_outbound.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE:/77 wa_outbound-fkimg_out LEFT-JUSTIFIED NO-ZERO,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          94 wa_outbound-vrkme_out NO-ZERO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 10:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016459#M412104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: report layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016460#M412105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_temp_final INTO wa_temp_final.&lt;/P&gt;&lt;P&gt;AT NEW matnr.&lt;/P&gt;&lt;P&gt;READ TABLE i_temp_final INTO wa_temp_final INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Converting to start date and end date.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;iv_date = wa_temp_final-fbuda&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ev_month_begin_date = l_bdate&lt;/P&gt;&lt;P&gt;ev_month_end_date = l_edate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEW-PAGE.&lt;/P&gt;&lt;P&gt;WRITE: /8 wa_temp_final-matnr NO-ZERO,&lt;/P&gt;&lt;P&gt;16 wa_temp_final-arktx NO-ZERO,&lt;/P&gt;&lt;P&gt;32 l_bdate NO-ZERO,&lt;/P&gt;&lt;P&gt;48 wa_temp_final-obalance ,&lt;/P&gt;&lt;P&gt;58 wa_temp_final-vrkme_in NO-ZERO.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/32 wa_temp_final-fbuda NO-ZERO,&lt;/P&gt;&lt;P&gt;55 wa_temp_final-fkimg_in NO-ZERO,&lt;/P&gt;&lt;P&gt;72 wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;75 wa_temp_final-inbound_flag NO-ZERO,&lt;/P&gt;&lt;P&gt;108 wa_temp_final-vrkme_in NO-ZERO,&lt;/P&gt;&lt;P&gt;113 wa_temp_final-vbeln_in NO-ZERO,&lt;/P&gt;&lt;P&gt;120 wa_temp_final-posnr_in NO-ZERO,&lt;/P&gt;&lt;P&gt;129 wa_temp_final-vgbel NO-ZERO,&lt;/P&gt;&lt;P&gt;135 wa_temp_final-vgpos NO-ZERO,&lt;/P&gt;&lt;P&gt;146 wa_temp_final-vbeln_out NO-ZERO,&lt;/P&gt;&lt;P&gt;154 wa_temp_final-posnr_out NO-ZERO,&lt;/P&gt;&lt;P&gt;169 wa_temp_final-kunag NO-ZERO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of matnr.&lt;/P&gt;&lt;P&gt;*loop at i_outbound into wa_outbound where matnr eq wa_temp_final-matnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WRITE:/77 wa_outbound-fkimg_out LEFT-JUSTIFIED NO-ZERO,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;94 wa_outbound-vrkme_out NO-ZERO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 10:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016460#M412105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T10:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: report layout</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016461#M412106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u have did u just copied my code and pasted it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2007 10:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-layout/m-p/2016461#M412106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-27T10:47:24Z</dc:date>
    </item>
  </channel>
</rss>

