CRM : Create Partner Function for Business Partner
In Business Partner, for a particular Sales Area, we want to add Partner Function. For this, we are calling - BAPI_BUPA_PFCT_ADDFUNCTION. But the BAPI is returning Error - Relationship does not exist. We have maintained the requred relationship of the Business Partners. But still we get the error. In the debug mode, I found that a select query was failing since the field 'Validity to' was checked in the where clause with a Range table (I EQ 0000000000000000). Since the validity of the actual record is upto 31.12.9999, the select query is failing. If in the debug mode I delete the line in the Ranges table, we get the correct output.
Is there any other way to get this job done?