cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Overwrite Form created Interaction with New form Interaction

bhaskar_idp
Explorer
0 Likes
275

Hi,

Can we overwrite FORM created interaction with new interaction from FORM?

I tried to update but not successfull. Since i used change mode 'U' form is giving error. Any idea please help me.

IF interaction_data-ia_type EQ 'SPD_FORM'.
SELECT * FROM I_Mkt_Interaction INTO table @data(lt_spdata) WHERE interactioncontact = @interaction_data-contact_key
and InteractionType EQ 'SPD_FORM'.
IF NOT lt_spdata IS INITIAL.
sort lt_spdata descending by interactiontimestamputc.
read table lt_spdata assigning FIELD-SYMBOL(<fs_spdata>) index 1.
if <fs_spdata> is ASSIGNED.
interaction_data-ia_key = <fs_spdata>-interaction.
interaction_change_mode = 'U'.
ENDIF.
ENDIF.
ENDIF.

Accepted Solutions (1)

Accepted Solutions (1)

former_member599277
Contributor

Dear Bhaskar,

So on checking your system , seems the logic is perfectly fine and issue was with the Interest data which is being passed in the form which was raising

Interest *** already exists on database; duplicate interests not allowed

error and this has caused the technical error .

So to identify the exact error in case of technical errors , you can always try F12 ( Developer tools ) and Network tab ->Response which would provide the exact error and this will help in future to fix the issue .

On Removing this Interest details from the Form Interaction has resolved the error.

Regards,
Saravana.

Answers (0)