I am unable to create an IDOC for Goods receipt .i am not sending it to any external system.I want to create an idoc for GR and write it to a file and have used the following settings
output type We02,program:RSNASTED ,Form routine:ALE_PROCESSING
process code:Created a process code with Function module ALE_GOODSMVT_CREATE
mesage control:Appl:ME, Msg type:We02 and process code
and also created the file port to write the IDOC and distribution model with BAPI.
Could any one help me by saying where i am doing the mistake.