cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an Enhancement before sending to S/4HC?

Former Member
0 Kudos

Hi,

I made a Message Mapping (XSD-> WSDL) by calling the Journal API.

After this mapping, is there any way to configure some ENHANCEMENT(ABAP) for me to manipulate the data in Iflow?

Thank you,

Marco Antônio

Accepted Solutions (1)

Accepted Solutions (1)

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

marty.mccormick Would you have any examples?

I do not quite understand how I would do this reading and then do the message mapping for API.

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Marco

Can you first tell me what you're looking to do? Are you trying to replace a field in the payload? Because in addition to groovyscript, the mapping feature itself is very powerful and allows for data transformation/manipulation.

Thanks,

Marty

Former Member
0 Kudos

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

Former Member
0 Kudos

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,

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

HI marty.mccormick

OK! Perfect.

Thank you very much for your attention.

Marco Antônio

Answers (1)

Answers (1)

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Hi sandeep.kumar

What other tools to manipulate the data?

Thanks for your attention!