Spend Management Blog Posts by Members
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
PrashantGite
Explorer
602

Dear All,

With this blog i am trying to showcase how can we automatically replicate the exchange rate from S/4 HANA to Ariba Strategic Sourcing Suite.

There has been always a challenge to replicate the exchange rate  and keep both system in sync when you are only using strategic sourcing suite realm. The standard Program ARBCIG_MASTER_DATA_EXPORT gives you an option to replicate the currency conversion for Solution Procure to Pay and Procure to Order and then it gets synchronized to upstream through an ICM Parameter enablement Application.AQS.EnableCurrencyConversionRateSetSync .

But this option doesn't appear when we select sourcing and contract as a solution in standard program

Procure to Pay

PrashantGite_0-1763040862814.png

Procure to Order

PrashantGite_1-1763040893005.png

Sourcing and Contracts

PrashantGite_2-1763041368583.png

Customer often keeps complaining about the desynchronization of exchange rate as  they don't update it regularly in Ariba Upstream which is a manual process. It can be said that Bidding currency in Sourcing Event and the Order currency always differs because Bidding currency is fetch from Ariba and Order Currency will be fetch from S/4 HANA if you are creating a PO in S/4 HANA through an Integration from Ariba sourcing.

The committee who opens the Bids in Sourcing Event has finalized a supplier to award with bidding currency other  than their  base currency. In that case, the price which is finalized in sourcing event should be same  for that item when PO in created in S/4 HANA. for the big value projects even a slight variance in exchange can bring the price variance. This breaks the compliance.

I am sure different customers must have figured out their own ways to replicate exchange rate. However,  we will try to see how can we achieve it through one of the approach.

Steps to Achieve  this requirement:

1) Create a Z custom program by copying the standard program ARBCIG_MASTER_DATA_EXPORT and change the logic such that when we select Sourcing and Contracts as a solution , the Currencyconversion master data check option is available.

PrashantGite_3-1763042500485.png

2) If we understand the standard program and try to replicate the supported master data  for e.g. plant it can be seen from the xml of MasterDataReplication_Async_Out payload in SRT_MONI that the program uses  Parameter name as "event" and parameter value as "Import External System Master data" and operation as "Load and Delete"

PrashantGite_0-1763043270931.png

PrashantGite_2-1763043565103.png

However when we use the same logic for Z program , the integration will fail as "Import External System Master data"  doesn't support currencyconversion csv file

PrashantGite_5-1763044213194.png

 

 

 

3)To understand which csv file support currency conversion, lets download data dictionary This gives us a little hint on what parameter values we should pass in our Z program. In the data dictionary we could see that Import Master Data Batch Pull supports currency conversion csv

PrashantGite_3-1763043862556.png

PrashantGite_4-1763044052134.png

 

4) The z program logic should be written in such a way that it passes Parameter value as " Import Master data batch" and operation as "Load" and only data carrying currenyconversion.csv file should be passed. the standard program logic sends schema.csv file along with currency conversion. that part of logic should be removed.

PrashantGite_7-1763044540280.png

5) Now it is understood that, master data data replication happens through direct connectivity. The program  reads the master data and creates a csv file in directory. From the al11 directory, program pushes the data to CIG by triggering a proxy from S/4 HANA and it reaches CIG and import task pulls the data to Ariba strategic sourcing.

 

PrashantGite_8-1763045133840.png

6) Lets try to understand what  CSV file format it accepts so that we can send the data from Z program accordingly. From the below snap you can see if we send the data in this format then only the data will get imported successfully.

 

PrashantGite_9-1763045379677.png

7) In S/4 HANA we shall create a structure  like wise. Now this structure needs to be mapped to Ariba specific value as it has all capital letters. 

PrashantGite_10-1763045573277.png

We will maintain the  Ariba specific values in table ARBCIG_FIELDMAP  so that the Z program will take the mapping of  Ariba values from SAP structure

PrashantGite_12-1763045801223.png

PrashantGite_11-1763045755952.png

šŸ˜ŽNow lets try to run the Z program and see the behavior

Maintain an exchange rate entry S/4 HANA 

for eg CAD- SAR   Exchange rate 2.7

 

PrashantGite_13-1763046010549.png

9) Execute the Z program

PrashantGite_14-1763046158593.png

Output:

PrashantGite_15-1763046241237.png

cxml payload in completed status in CIG

PrashantGite_16-1763046367771.png

Go to Administration-> Import Export and search batch and you will see that it has successfully pulled the currency conversion data from S/4 HANA. 

PrashantGite_0-1763046662023.png

You can also check currencyconversion.csv file to see the latest entry.

 

PrashantGite_2-1763046860001.png

Now lets try to create a guided sourcing Event and see if we see the updated exchange rate value under system currency conversion

PrashantGite_3-1763047122493.png

The exchange rate updated successfully and is now in sync with S/4 system. The Z program can be scheduled as a batch job for a daily frequency. The program logic is written in a way  that it keeps checking exchange rate update for last 60 days

Note : For example if your Base currency is SAR, and you maintained the exchange rate for INR to USD then the program will successfully replicate the exchange rate to Ariba strategic sourcing suite and will update the data in currencyconversion.csv file. However, when you create a sourcing event and try to look for the exchange rate  INR-> USD it will not display, the system currency conversion will display all exchange rate conversion against your base currency only.

 

Thank you so much

Cheers!!

 

 

 

 

 

 

 

 

 

 

1 Comment