cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR no 'DynamicConfiguration' element in the XI Message header

Former Member
0 Kudos

Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message hi am getting error .

and i am not getting

When we run our file to file scenario we can now see that there's a new section called DynamicConfiguration....

will you please tell me what should i do . i have configured

adapter specifc properties

thanking you

please help me it is very urgent

thanmking you

sridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sridhar,

Refer to below links its about Dynamic configuration

Refer- http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

Hope your problem wil get solved....

Thanks

Sai

PS: kindly reward points if helpful

Former Member
0 Kudos

I am not using UDF , i am getting the file name using ABAP code in Proxy

and passing to the target field please help in this

thanking you

former_member181985
Active Contributor
0 Kudos

Hi sridhar,

Since your scenario is proxy you are getting this error as there is no concept dynamic configuartion for PROXY.

It is part of file adapter. Yet you can set value for FileName if your scenario is PROXY To FIle

DynamicConfiguration conf = (DynamicConfiguration)

container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String Filename = arg[0]; // means you have to pass the file name(ABAP PROXY) from Source structure to UDF as a parameter.

conf.put(KEY_FILENAME, Filename );

.

what is your scenario. ABAPPROXY -


>?

Thanks

Gujjeti

Former Member
0 Kudos

it is ABAP proxy

only ,

former_member181985
Active Contributor
0 Kudos

ABAPPROXY TO WHICH SYSTEM

PROXY->XI->WHICH SYSTEM

Thanks

Gujjeti

Former Member
0 Kudos

sorry it is proxy to file

former_member181985
Active Contributor
0 Kudos

Hi,

Then use code which I replied earlier.

DynamicConfiguration conf = (DynamicConfiguration)

container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String OurFileName= arg[0]; // means you have to pass the file name(ABAP PROXY) from Source structure to UDF as a parameter.

conf.put(KEY_FILENAME, OurFileName);

return OurFileName;//if you need this in target structure

Any doubts, you are welcome

Thanks

Gujjeti

Edited by: Praveen Gujjeti on Apr 22, 2008 6:29 AM

Former Member
0 Kudos

Hi,

Use ASMA for your requirement

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Regards

Seshagiri

Former Member
0 Kudos

hi thank you very much , i have done the same , but let me expalin i am getting the same error ,

mean while

this what i am giving in the adapter configuration

target directory /xxxx/einv/xx/xxx

file name schema %filename%

,

variable name filename refference payload:MT_eINVOICE_RECV,1,Filename,

pease help me it is very urgent

former_member181985
Active Contributor
0 Kudos

Hi,

>target directory /xxxx/einv/xx/xx

>file name schema %filename%

You are using variable substitution. Dont use that.

Instead, Give . in the FileName Schema and Check the Adapterspecific parameters and check file name and activate the file Adapter. Then execute the scenario. It should work.

Thanks

Gujjeti

Edited by: Praveen Gujjeti on Apr 22, 2008 7:52 AM

Former Member
0 Kudos

what abt

variable substitution in that payload

should i leave blank ,

please explain clearly , i dont know exactly what to do .

thanking you

sridhar

former_member181985
Active Contributor
0 Kudos

Hi

I guess there will be check box for variable substitution. just uncheck the box. save and activate the scenario then execute the scenario.

Else remove what ever you mentioned in the variable substitution fields save and activate and execute your scenario.

Thanks,

Gujjeti

Edited by: Praveen Gujjeti on Apr 22, 2008 8:19 AM

0 Kudos

Answers (0)