I am trying to use the FM - CRM_IBASE_COMP_CHANGE in CRM ABAP 6.0.
but am having difficulties actually updating the BP on the record. I need to delete two types of partner functions.
I am building up the table as follows and I am sure I am missing something simple, but I am still learning ABAP and CRM, so please excuse the coding in my method!:
IF NOT GS_OFFER_NO_SALE-IBASE_COMPONENT IS INITIAL.
MOVE: GS_OFFER_NO_SALE-APPLIANCE TO GS_I_COMP-GUID_COMP,
GS_OFFER_NO_SALE-IBASE_COMPONENT TO GS_I_COMP-IBASE,
GS_OFFER_NO_SALE-IBASE_NUMBER TO GS_I_COMP-INSTANCE.
MOVE: GC_RISK_OWNER TO GS_IBASE_PARTNER-PARTNER_FCT,
GW_PARTNER_NUMBER TO GS_IBASE_PARTNER-PARTNER_NO,
GC_TRUE TO GS_IBASE_PARTNER-MAINPARTNER,
GC_DELETE TO GS_IBASE_PARTNER-UPDIND.
APPEND GS_IBASE_PARTNER TO GT_IBASE_PARTNER.
MOVE: GC_APPLIANCE_OWNER TO GS_IBASE_PARTNER-PARTNER_FCT,
GW_PARTNER_NUMBER TO GS_IBASE_PARTNER-PARTNER_NO,
GC_TRUE TO GS_IBASE_PARTNER-MAINPARTNER,
GC_DELETE TO GS_IBASE_PARTNER-UPDIND.
APPEND GS_IBASE_PARTNER TO GT_IBASE_PARTNER.
CALL FUNCTION 'CRM_IBASE_COMP_CHANGE'
EXPORTING
I_COMP = GS_I_COMP
I_PARTNER = GT_IBASE_PARTNER
I_DATE = SY-DATUM
EXCEPTIONS
DATA_NOT_CONSISTENT = 1
IBASE_LOCKED = 2
NOT_SUCCESFUL = 3
OTHERS = 4.
CALL FUNCTION 'CRM_IBASE_SAVE'.
COMMIT WORK.
i have checked this thread but no luck!
function-module-crmibasecompchange
Again, I am sure I am missing something silly, but any advice would be gratefully received!