Msg No. F5165 Company Code is not defined - while viewing Parked Invoice
I am trying to park an FV60 Invoice using function module - PRELIMINARY_POSTING_FB01. I am able to park the Invoice Successfully but when I am trying to view the parked Invoice using FB03 TCODE - I am getting an Error Pop Up message saying that "Message No. F5165 Colmpany code "" has not been created in financial accounting ". I am passing the valid Company Code field value in the Function Module .
I did search the forum but could not solve the problem. I am working on ECC 6.0 system. Any help would be great help to me.
Thanks and Have a nice day.