cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Application Message ID in Integration

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

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

0 Kudos

Hi Sri,

I can see some other value(Idoc Num) with that property you have given. But i didn't get the Application Message ID that we can see in Message Monitoring.

former_member619963
Discoverer
0 Kudos

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

capture1.jpg

capture2.jpg

Answers (3)

Answers (3)

0 Kudos

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

MeharMukka
Explorer
0 Kudos

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.

contentmodifier.jpg

/Mehar

0 Kudos

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.

app-id.png

0 Kudos

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

0 Kudos

Hi Praveen,

I need to get the Application Message ID. You have given logic to get the Message ID. Could you please give solution to get Application Message ID?

Note: We see Application Message ID in end to end iflows only. It don't come for timer event.

0 Kudos

Hello Imran,

Could you please share the screenshot of the 'Application Message ID' from the I-flow logs.

It will help us to understand what exactly you require for your I-flow.

thanks and regards,

Praveen T

0 Kudos

Hi Praveen, I have attached the screenshot. This you can see in Message Monitoring.