cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic filename in XI

Former Member
0 Kudos

Hi,

In XI SP12 is possible to use dynamic filename? I need to generate a filename in Adapter using the content of an element in message, how I do it?

thanks.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

I have the bellow experience in Dynamic filename:

in Repository I have the message:

<ZBR_Invoic01_Marcopolo>

<HEADER>

<...>

</HEADER>

<ITEM>

<NFNUM>444</NFNUM>

<...>

</ITEM>

</ZBR_Invoic01_Marcopolo>

In reference variable subistitution :

var1 -> payload:ZBR_Invoic01_Marcopolo,1,ITEM,1,NFNUM1

This cause the error in Adapter: Cannot parse pseudo-path for variable substitution 'var1'.

I change the mesage type to:

<ZBRInvoic01Marcopolo> (without undescore)

<....>

</ZBRInvoic01Marcopolo>

and it work properly, no errors!!!

???

moorthy
Active Contributor
0 Kudos

Hi Elton,

Here is the SAP Note -850694

Pls acknowledge ,

Regards,

Moorthy

Former Member
0 Kudos

Thanks all,

now I see the Variable Substitution and it work fine.

Former Member
0 Kudos

Where I found the some of Adapter(Java) patches to upgrade my system? In the SAP system data I look the level 12 on the SAPGui. What components are necessary to updgrade de Adapter (Java)?

thanks.

Former Member
0 Kudos

Hi -

Check your SAP BASIS 6.40 XI Content version and make sure it is SP12 - within the patching process, applying the latest patch for this is sometimes missed and this contains your adapter metadata which affects your adapter configuration.

To check, log on to the Int. Repository and right click on your SAP BASIS 6.40 SWCV and select Display Support Package. Make sure you see at least SP12. If not, have your Basis team import this content and check you adapter config again.

Regards,

Jin

moorthy
Active Contributor
0 Kudos

Hi Elton,

This Variable Substitution is a part of SP12. If you are not able to see "Variable Substitution" and under that "Enable" Check box in the Reciever File Adapter , then some of Adapter(Java) patches needs to updated/upgraded.

http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

Hi,

I don't see the option Variable Substitution in my Adapter Specific configuration. Remember I use the SP12.

MichalKrawczyk
Active Contributor
0 Kudos

this means that your XI server was not properly

upgreaded to SP12

Regards,

michal

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Elton,

take a look at the file adapter configuration of this blog,

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Variable Name substituion is a prt of XI since SP12.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Elton,

The dynamic filename generation concept is as follows.

In your filename field. just give a variable with % symbols. (eg: %file% ).

Now, under the option Variable Name Substitution, you can give how the value has to be created.

It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.

For the former, your give

message:interface_name ,etc

and for the payload part you give,

Payload: "your element root which u wanna acecss"

Just check this link out,

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

And read the contents under variable substitution and it will help you understand the concepts better.

If you have any clarifications, do get back,

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

hi,

yes you can - you need to use Variable Substitution

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>