Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

on change of value--summation error.

$
0
0

Hi,

   

LOOP AT IT_RECEIPT INTO WA_RECEIPT.

      "

       at end of imatnr.

            sum.

       WA_SUMMARY1-INPUT = WA_RECEIPT-IMATNR.

       WA_SUMMARY1-OUTPUT = WA_RECEIPT-MATNR.

*      WA_SUMMARY1-NETPR = WA_RECEIPT-NETPR.  

       WA_SUMMARY1-IRECQTY  = WA_RECEIPT-IRECQTY.

       WA_SUMMARY1-VENDOR = WA_RECEIPT-LIFNR.

 

          COLLECT WA_SUMMARY1 INTO IT_SUMMARY1.

 

            endat.

in my code the netpr field is always same rate for vendor..so i dont want to be add all the rate.

 

for example,

 

 

i/p               o/p              vendor               rate

 

1                    1                001                1
1                    1                001                1

1                    1                001                1

1                    1                001                1

1                    1                001                1

2                    3                 001                4

 

 

after clicking any one button and my output is

 

 

i/p               o/p              vendor               rate

 

1                    1                001                5           here i want to display the rate as 1.(no addition is required here)

2                    3                 001                4

 

 

 

may i know how to change this code..


Viewing all articles
Browse latest Browse all 8914


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