on 05-06-2018 9:00 AM
Hi Experts,
I am trying to read/get the Application Message ID in Integration.I have seen some standard mappings and they were built with UDF mapping. I am unable to import that in the Iflow. Please give me any standard solution for it. Thanks in advance.
Hello Imran,
If I am not wrong you are looking for AppicationId not message id(mpl Id).
ApplicationId can be read using below header (badically this id can be set manually and message can be searched in MessageMinitoring).
${header.SAP_ApplicationID}
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriprasad,
I am unable to retrieve Application ID with the header you have suggested above. Attached are the configuration screenshots.
Please let me know if I am doing anything wrong.
Thanks,
Abhishek
Hello Imran,
Can you please name the standard Integration package name or standard Integration flow name along with message mapping name where you have observed getting the Application Message ID?
Regards,
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Imran,
If you want to read Application Message ID in your Integration flow without mapping or UDF then y
ou can simply create an header in content modifier with “SAP_MessageProcessingLogID” as value and use it.
/Mehar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mehar,
I tried with the key word you have given but it is also giving the Message ID Only. But i need Application Message ID. I tried by taking the keyword in Content Modifier with the type as Constant, it is not producing anything. If i changed the type to header, it has produced the Message ID. But i require the Application Message ID. Attached the screenshot.
Hello Imran,
The below code simple expression should help:
${property.SAP_MessageProcessingLogID}
or you could use below UDF for the same.
import com.sap.it.api.mapping.*;
//Add MappingContext as an additional argument to read or set Headers and properties.
def String customFunc(String input_date,MappingContext context){
//Read property Value and store it in String
String propVal = context.getProperty(SAP_MessageProcessingLogID);
propVal_Str = propVal.toString();
return propVal_Str;
}
ref:
https://answers.sap.com/questions/265499/retrieve-messageid-in-custom-function.html
Hope this helps!
thanks and regards,
Praveen T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.