cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to multiple file with dynamic file names with same content

Former Member
0 Kudos

Hi,

My scenario is from IDOC to file.

The number of files which i need to create is dynamic, which depends on the number of plants.

I have a Z-table where i will maintin list of all plants ( non SAP plant names).

I need to fetch the data from this z-table and depending on the nunber of plants i need to create the file for each plant and fiel name should contain plant name in it. EX: abc_<plant>_datatype.txt

I want to use only receiver one CC, and files should be created in the same directory.

Can we do this without BPM?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

You can use the Mapping lookup concept to fetch the plant names from Z-tables and then you can use the variable substitution technique to resolve your purpose.

Here you need to create multiple interfaces ie.e per plant to create multiple files. You can use common Communication channel for all.

Mapping Lookup

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

Mapping Lookups - RFC API

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1...

/people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

Variable Substitution

An interesting usage of Variable Substitution in XI

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

Thanks

Swarup

former_member181962
Active Contributor
0 Kudos

You can make use of Variable Substitution technique in File adapter configuration:

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

scroll down to the section: "Variable Substitution (Target Directory/File Name Scheme)"

Regards,

Ravi Kanth talagana

Former Member
0 Kudos

Hi,

I did a bit similar scenario some time ago but not using Idoc i.e file to file...you can find some info in the below thread which i have posted for my scenario.

read this thread also to get some idea

Regards,

Srinivas

Edited by: Srinivas.P on Jun 5, 2008 11:20 AM