Autoinvoice : Invalid salesrep id (SALESREP_ID)
Hi All,
Auto Invoice is giving the error :
Invalid primary salesrep id (PRIMARY_SALESREP_ID)
Invalid salesrep id (SALESREP_ID)
Scenario:
The PRIMARY_SALESREP_ID is populated in RA_INTERFACE_LINES_ALL and a record is inserted in RA_INTERFACE_SALESCREDITS_ALL for the same INTERFACE_LINE_ID,
where the value in column SALESREP_ID is same as PRIMARY_SALESREP_ID .
The Bill_to Site exists and is active and the sales rep is also attached to the bill_to site.
But I noticed the following:
The operating unit of the Bill_to site in HZ_CUST_SITE_USES_ALL and the operating unit of the salesrep in JTF_RS_SALESREPS is not the same.