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

Re: Closing Stock on Particular Date(MB5B Tcode)

$
0
0

Hello Pankaj,

 

In your Customised Report use MKPF and MSEG table

 

MKPF ----->  Material and date range as the input

 

Then Pass Material document number from MKPF to MSEG table

 

MSEG ----->  based on material document number from mkpf

 

 

Create Temporary  variable

values comes from the mseg where have credit and debit entries

if debit entry "S" then subtract the values of the Mseg table from the temporary variable1

if credit entry "H" then Add the values of the mseg table to the temporary variable2

finally Add the temporary variable1 and temporary variable 2 and get the total stock.


Viewing all articles
Browse latest Browse all 9369

Trending Articles



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