Search base document
I have created an excise add-on.The add-on executes normally if the invoices are added as -
Purchase Order -> Goods Receipt PO -> A/P Invoice
Problem occurs if Goods Receipt PO is added directly.So I want to to check if the base document is added for every Goods Receipt PO.If the base document is not added then I want to restrict user from adding it. How do I search the whether base document is added in the et_FORM_DATA_ADD event.