Since we are not integrating SOP commissions data, importing SLPRSNID & SALSTERR on line items using code like above is not supported. However, eConnect does expose pre and post stored procedures to customize business logic. The following was added in taSopHdrIvcInsertPost to implement the import:
/** Custom Business Logic */
if ((@I_vSLPRSNID <> '') and (@I_vSALSTERR <> '')) begin update SOP10200 set SLPRSNID = @I_vSLPRSNID, SALSTERR = @I_vSALSTERR where SOPNUMBE = @I_vSOPNUMBE and SOPTYPE = @I_vSOPTYPE end
/** Custom Business Logic */
NOTE: with this implementation, the specific SLPRSNID & SALSTERR will have to be provided to the line items, it will not automatically post from header data, or any customer setup data in GP - your integration has to pass the values in.