Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Simon4
Creator
Creator

ApplyMap not working

Hi all,

 

My ApplyMap is not working.

This is my code:

Simon4_0-1665390261086.png

 

What I want: 

When Itemgroupid = 259. Look in maptable for actual Itemgroupid and overwrite old Itemgroupid.

 

The ApplyMap is not working and values are staying at 259. What do I need to change?

 

Labels (1)
12 Replies
agigliotti
Partner - Champion
Partner - Champion

Without an app i guess I can't help you more.

marcus_sommer

I think you have a logically issue. You queries for 259 and if you takes the 259 to look within the mapping which don't contain the 259 and even if it would return always the same value. I assume your applymap-call needs to look more like:

applymap('map', CODE, 'a helpful no-matching default-value')

-  Marcus

Simon4
Creator
Creator
Author

I cant find a way to share an app. I am in the enterprise version within our ERP system. 

 

Unfortunate but understandable. Thank you very much for your help.