Skip to Content
0
Oct 06, 2022 at 07:23 AM

SAP Marketing Cloud: Adjusting form files sent to web server (publication)

151 Views

We have set up form publication set up between our SAP Marketing Cloud and the web server. This works fine. Now we have some special requirements and therefore need to adjust the JavaScript logic. I already implemented and tested that logic separatly (via SAP BTP Web IDE and a custom SAPUI5 app). Now I am just struggling with replacing the original file.

One idea I had was to use that BadI:

custom-logic.png

However, there was quite much coding adapted/enhanced in the JavaScript file. So basically I would need to implement the custom logic to replace the whole JavaScript file for the specific form ID. Unfortunatelly, this does not seem to be possible in the context of ABAP (whole JavaScript coding as string).

As another option I thought it would be quite easy to just replace the JavaScript file directly on the web server. However, the web server responsibles were so far not able to do so. I can actually not judge this since I am not familiar with the web server management. Nevertheless, I will try to follow up with them in the meantime.

Until then: Does anyone have some more idea or maybe also some comment in regards to the two approaches I described? Would be very helpful.

Thank you very much for the assistance.

Attachments

custom-logic.png (10.0 kB)