How to get the Accounting document against Material document in SAP?

Requirement: Business has the requirement to get the list of Accounting documents against respective Material document(s). As we aware that whenever a Goods movement happens, a material document and accounting document will be generated automatically.


In this document, I have explained the process of getting Accounting documents from Material documents with screen shots.

Important Table and Fields which are used in this document

Table – BKPF – Accounting Document Header

Input Screen: 

Input FieldsAWTYP– Reference Transaction. As we are giving Material document as input, reference transaction has to be given as MKPF (This field is an optional. You can pass only AWKEY to get the output because AWTYP will vary among the transactions)

AWKEY – Reference Key. Reference key has to be given the combination of Material document+Material document Year ( MBLNR+MJAHR). While givin the material document, you have to give the total number length (here it is 10)

BKPF Input Screen


Output screen: 

Important Output field:  BELNR-  Accounting Document Number

BKPF Output


Thanks for reading. I hope this document is helpful for you. Share the Blog with your friends in social network.










Difference between STO and Transfer Posting

Stock Transport Order: 

•Separate document type is available in Standard SAP. Stock Transfer Order is created with ME21N.

•Delivery Costs and any other charges can be given in PO Conditions. Separate Pricing procedure for STO is also available in SAP

•Delivery and Billing can be done through STO

•This process is generally preferred when client has plants in different cities or states and when client requires to monitor any other details like texts related , conditions related etc

Transfer Posting:

•This process is done through MIGO

•Conditions can’t be maintained

•This is a transaction where only goods can be transferred so facilities which can be monitored in PO can’t be done

•This process is generally preferred when plants are in same city or client doesn’t want to monitor freight etc. details