cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SF Comp Publishing Code - additional conditions in the XML

AlinaTalvescu
Participant
0 Kudos
233

Hi Compensation community,

I am looking to see if there is some available documentation or if someone tried updating the XML code for publishing to add more if conditions.

What I am trying to do is to filter the publishing directly in the code. For example: if field x=0, do not publish this pay component. In our situation, publishing filters from UI do not help.

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

xavierlegarrec
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @AlinaTalvescu 

Check out the blog : https://blogs.sap.com/2020/06/11/manage-exclusions-when-publishing-back-to-employee-central/ and if you don't think that the workaround in it will still NOT work for you then unfortunately you will have no other choice but to add custom columns with formula on the worksheet to do the filtering you want.

A classic example is when you have one country out of 50 that requires a publish back to several pay components instead of one. In that case you need to create as many custom columns as there are pay components in EC to publish back to with custom formula (if paycomponent=ABC,finSalary,0) so you can send the right amount to its matching paycomponent in the xml for publish back.

All the best

Xavier