on 06-11-2019 9:48 AM - last edited on 02-03-2024 8:06 PM by postmig_api_4
Hi Marco
Can you provide example of what you're looking to do? As Sandeep mentioned, you can use Groovy script to modify the payload after message mapping but there are other options too depending on you requirements.
Thanks,
Marty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marco
Yes, in this case you should do a few things. First add a Groovy Script to log the payload (so you can see what you received from sending system) and then you should make all data transformations in this script (or if you have multiple records use something like a splitter/gather) before going to your message mapping step.
Thanks,
Marty
Hi marty.mccormick
Good afternoon!
I'll need to do a logic that reads and summarizes the values of several different tags. Then I have to send this updated value to the Journal Entry API.
And depending on the TAG that is filled out, I have to fill the API differently.
Did you get it?
Thank you for your attention,
Marco Antônio
Hi marty.mccormick
Good evening!
After receiving the input XML file, I'll need to read this XML and do programming logic for processing data before doing the message mapping for API.
Because depending on the values of the XML I will do the mapping with the API in different ways. For example: Document type and cost center.
I'm going to need to do calculations, loops, and concatenate values as if it were a program.
Thank you for your attention,
Marco Antônio,
Hi Marco
I would modify the values before the mapping step (you can set properties to call in your mapping too). You'll probably need to write some groovyscript. I would start by looking at the Exemplars to see if there is a sample already out there: https://blogs.sap.com/2017/12/18/cloud-platform-integration-here-come-the-building-blocks-of-your-in...
There are also tons of examples already in the SAP community of different groovy script that will help you too.
Thanks,
Marty
Hi,
I don't think you can do abap enhancements, that being said have you tried groovy scripts and other tools available in CPI?
Best,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.