on ‎2021 Mar 22 12:04 PM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.