cancel
Showing results for 
Search instead for 
Did you mean: 

Module in the sender Adapter

Former Member
0 Kudos

Dear all ,

I have writeen a module in the sender file adapter.

How do I capture the communication channel name , sender Business sys , party name inside the module

Accepted Solutions (0)

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

com.sap.aii.af.service.cpa

Class Channel

java.lang.Object

+--com.sap.aii.af.service.cpa.impl.cache.AbstractCacheItem

+--com.sap.aii.af.service.cpa.impl.container.CPAObject

+--com.sap.aii.af.service.cpa.impl.container.AttributeExtendedCPAObject

+--com.sap.aii.af.service.cpa.Channel

use the methods,

getChannelName(),

getParty() and getService()

Former Member
0 Kudos

wat is ur exact requirement.

u want all the below information in Mapping. through mapping u can also access the parameter.

refer the below link to access runtime parameters.

http://help.sap.com/saphelp_nw04/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/frameset.htm

chirag

Former Member
0 Kudos

Hi,

Try this

Channel channel = new Channel(moduleContext.getChannelID());

String filename = channel.getValueAsString("file.sourceFileName");

String FileNameAvail = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");

Thnaks & Regards