cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the incoming file name using JMS adapter and SOAP adapter

Former Member
0 Kudos

Hi Everybody,

In one of my interface i need to get the file name of incoming flat file using JMS adapter at sender side. and then i am using xslt to convert it to IDOC and then posting to SAP IDOC.

my incoming filname are in this form price<DateTimestamp>.txt. when i do the tranformation this incoming file name should be part of one element in the IDOC which i am posting.

EX:

<IDOC

<REF>price<DateTimestamp>.txt</REF>

</IDOC>

Hope it is clear to everybody. I need your suggestion how i can capture this incoming file name and send it as part of IDOC.

Thanks

raj

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Beena,

Thanks for your help. It is very useful.

Thanks

raj

Former Member
0 Kudos

Hi shabarish,

Thanks for your reply. Is there anyway i can acheiver this please do let me know. I have one more option.In my application i am using JMS adapter at sender side and they are ready to send the filename as part of messageid, or correlation id. if so how i can get this and manipulate it. if you have any idea please do let me know

Thanks

sudheer

Former Member
Former Member
0 Kudos

If they are passing it in message id or correlation id,

you can access it using

<xsl:variable name="dynamic-conf"

select="map:get($inputparam, 'DynamicConfiguration')" />

<xsl:variable name="dynamic-key"

select="key:create('http://sap.com/xi/XI/System/JMS', 'DCJMSMessageID/ DCJMSCorrelationID')" />

<xsl:variable name="dynamic-value"

select="dyn:get($dynamic-conf, $dynamic-key)" />

Check this:

http://help.sap.com/saphelp_nw70/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm

Thanks,

Beena.

Shabarish_Nair
Active Contributor
0 Kudos

http://help.sap.com/saphelp_nw04/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm

~~~~

the link outlines the parameters you can get when you use the adapter specific properties for JMS adapter

http://help.sap.com/saphelp_nw04/helpdata/en/ca/e7673c86d19b35e10000000a11402f/frameset.htm

~~~

this is for the SOAP adapter

Note that file name is not part of the ASMA