Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2161

Re: code to display one value out of repeated value in classical report

$
0
0

Hi Anshika,

 

Try,

 

For displaying  customer  code declare a new variable.

 

Data lv_customer type kna1-kunnr.

 

 

loop at t_orders into w_orders .

 

AT NEW OF KUNNR.

lv_customer   = w_order-kunnr.

ENDAT.

 

write : /

          02 lv_customer.                                " Commented 02 w_orders-kunnr,

         35 w_orders-name1,

         55 w_orders-ort01,

         90 w_orders-land1,

         110 w_orders-vbeln,

         125 w_orders-erdat ,

         140 w_orders-netwr ,

         165 w_orders-posnr ,

         185 w_orders-arktx ,

         225 w_orders-werks  .

 

 

     at end of kunnr .

      sum .

    format color 3.

     write :/02'sub total order value',140 w_orders-netwr.

     format color off .

     endat.

 

 

      at last .

         sum .

      format color 3 .

          write : /02'grand total of order value',140 w_orders-netwr .

       format color off.

       endat .

at end of kunnr .

  new-page .

  endat .

 

clear lv_customer.

endloop .

 

 

Hope it helpful,

 

Regards,

Venkat.


Viewing all articles
Browse latest Browse all 2161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>