cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter-Specific Message Attributes

Former Member
0 Kudos

Hello,

I have this configuration in a sender file adapter:

    1. File adapter java class

classname=com.sap.aii.messaging.adapter.ModuleXMB2File

mode=XMB2FILE

##Adress for XMB endpoint

XMB.httpPort=8000 <- Para XI desarrollo

XMB.httpService=/tmp <- Directorio de XI

##File Adapter specific parameters

file.createDir=1

file.targetDir=/DATOS/INTERFACES/RRHH <- Directorio de R/3

file.targetFilename=XXXX0*.txt

#file.writeMode=addTimeStamp

##xml conversion properties if mode XMB2FILEWITHCONVERSION is specified

#xml.addHeaderLine=0

#xml.headerLine=

#xml.fieldFixedLengths=15,25

#xml.fieldSeparator=;

I just wanted to add the Adapter-Specific parameter but I do not how to do it, for keeping the Filename.

Can anyone help me?

Thanks in advanced,

Luis

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Luis,

are you using j2se plain file adapter?

on this page:

http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm

only j2ee adapters are listed - maybe there's no possibility to use it with j2se

Regards,

michal

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Adapter-Specific Message Attributes for J2SE File Sender adapter will be available for XI 3.0 SP20. (Coming in CW 16)

You can use file name and directory.

The parameter is:

file.messageAttributes=<name,directory>

The J2SE receiver file adapter will not support ASMA.

Regards

Stefan

Former Member
0 Kudos

Hi -

There's a checkbox for Adapter Specific Attributes in the config. Just check it and the available options come up. Select File Name and this will add the File Name attribute to the DynamicConfiguration header element of your XI message.

What do you plan to do with it?

Jin

Former Member
0 Kudos

Hi,

The point is that I am configuring the file adapter in the adapter engine of the R/3 system. I know that in XI I have the checkbox if I configure a sender/receiver file adapter channel..

The point is that i try to send a file from R/3 to the XI engine.

Regards,

Luis

moorthy
Active Contributor
0 Kudos

Hi,

<i>The point is that i try to send a file from R/3 to the XI engine.</i>

>>>You can pick the files from the folder created in the R/3 thru File Adapter from XI right.

Thanks,

Moorthy

Former Member
0 Kudos

Hi Moorthy,

I know I can do it like that, but for some reasons I can not use that way, so the only way for me for moving one file from R/3 to XI, was the one described above, and it works fien if I set a Filename in my file receiver channel in XI.

But if I set adapter specific options in the receiver I got an error, because there is no dynamic configuration in the xml message header...So I need to configure the sender adapter in the R/3 for setting that parameter up .

Michal in the help link that u give I couldnt find anything useful...

Thanks anyway,

Luis

Former Member
0 Kudos

Hi Luis -

This does look like the j2se adapter engine config as Michal points out. Are you using j2se adapter engine? For j2se adapter engine, the ASMA feature is not available.

As Moorthy suggests, the easiest way would be to mount or share the R/3 file system so that your central J2EE adapter engine has visibility to it and can be configured to pick up the file from the R/3 system.

Regards,

Jin

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Michal in the help link that u give I couldnt find anything useful...

my link was supposed to show you that you need to use j2ee adapter

(thse configured in integration directory) and not j2se

Regards,

michal

Former Member
0 Kudos

Hi Jin,

you are right, it seems that is not available in j2se adapter engine, but I can not implement your other suggestion.

Thanks a lot anyway,

Luis

Former Member
0 Kudos

Hi michal,

as i said before I can not use j2ee adapter, just only wanted to know if there was a way for setting that parameter in j2se adapter..

Best Regards,

Luis

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

why you cannot ?

BTW

you can also use decentralized adapter engine

(also configured in integration directory)

it's a j2ee part of WAS and you can install it anywhere

(just like j2se adapter)

Regards,

michal

Former Member
0 Kudos

Hi Michal,

maybe it works but I can install anything in the system..What is BTW by the way?

Thanks anyway,

Luis

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>>What is BTW by the way?

BTW is a shortcut for "by the way" ))

Regards,

michal