AP adjustment issue
We are facing one issue in AP adjustment. This is a custom program for processing AP adjustment for changing GL and other details after MIRO is processed. But due to some bad coding the application is fetching different PO line item. We need to correct the logic of the coding.
What we need to change is, when user enters invoice number in this application, the application first should go to BKPF to get the invoice number or document number then it should go to a table to fetch the material number and then it has to go to MSEG to get the details of WBS, Amount and GL.
But the problem is, there is one field in BKPF called AWKEY (object key), but it will give only IR number not GR number. So is there any way that we can get the material number to fetch the WBS, amount and GL.