cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc-To-xml File Dynamic Configuration

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi all.

a few days ago i posted a thread about file-to-file dynamic configuration.

now i have to do the same but with difference that my inbound document is an IDOC, so message_header information cant be use!

i've seen some blog like

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2161. [original link is broken] [original link is broken] [original link is broken] [original link is broken]

ussing file convertion, XI save a plain text document, no xml.

What you sugguest to do?

Rgds

RP

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Rodirgo,

u can use file adapter with content conversion . other way is to write module procesor code in adapter

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

> Rodirgo,

> other way is to write module procesor code in adapter

write a module procesor? i never do something like that.

Rgds

RP

Message was edited by:

Rodrigo Pertierra

Former Member
0 Kudos

Hi Rodrigo,

you can get dynamic filename in UDF in msg mapping....just in ID in comm channel select adapter specific attributes -> filename.....then whatever dynamic name you will create in UDF will be the target filename.....

Thanks,

Rajeev Gupta

Message was edited by:

RAJEEV GUPTA

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi RAJEEV GUPTA .

you said do this?

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

//get Key of Directory File name

DynamicConfigurationKey keyF = DynamicConfigurationKey.create( URLFile, "FileName");

//get Key of Directory

DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");

//Replace value of Filename

conf.put(keyF,file);

//Replace value of Directory

conf.put(keyD,dir);

the problem in this case is there no Key, because there no message_header.

do you know the sentence to generate a new key for file name and Directory?

Rgds!

Rp

Message was edited by:

Rodrigo Pertierra

Former Member
0 Kudos

RP,

As I have told you in my previous post you need to do Variable substitution. If you do variable substitution your issue will be resolved.

---Satish

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi Satish.

I can do that data Idoc save in text file using File Context conversion, my problem now is about data is saved in text plain format, no XML structure.

regards

RP

Message was edited by:

Rodrigo Pertierra

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi RAJEEV GUPTA

I can do that data Idoc save in text file using File Context conversion, my problem now is about data is saved in text plain format, no XML structure.

how can i do?

regards

RP