Open qauntities in return order
I need to post a goods issue for a return order based on the idoc data. I have to check the open quantities in the order and have to post the goods issue. Can you please tell me how can I know which line item is open and I know I can post the goods issue using BAPI_GOODSMVT_CREATE. Please let me know how I can check the open quantities in the order like field, table etc...