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

Access a property in message mapping from a content modifier

mrflores
Explorer
0 Kudos
571

I have this groovy script 

mrflores_0-1727214077141.png

import com.sap.it.api.mapping.*;
import com.sap.gateway.ip.core.customdev.util.Message;
/
def String getProperty (String Almacen_Codigo, MappingContext context) {
String value1 = context.getProperty(Almacen_Codigo);
return value1;
}

This script "getProperty" was created   to access the property "Almacen_Codigo"  of type xpath declared in a previous content modifier , but is not reading the property for some reason, the STGE_LOC xpath refers to a value 

please do someone know? 

mrflores_1-1727214199352.png

mrflores_2-1727214342428.png

 

 

 

 

View Entire Topic
tonynp
Explorer
0 Kudos

Hi,

Can you add a constant and give it as a Almacen_Codigo and map to the get property.