cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to FILE Scenario

former_member185881
Active Participant
0 Kudos

Hi All

Scenario = IDOC to FILE

My scenario is like this

Sender IDOC Structure is like below -


<ZCOND_A01>

-<IDOC BEGIN="1">

+ <EDI_DC40 SEGMENT="1">

In between these tags HEADER information is there

</EDI_DC40>

+ <E1KOMG SEGMENT="1">

<WERKS>0003</WERKS>

</E1KOMG>

+ <E1KOMG SEGMENT="1">

<WERKS>0005</WERKS>

</E1KOMG>

Now I want to achieve result like this

    • Header information i want same for each segment*

    • for each segment I wanted to create new file and that file will be posted to corrosponding target directory.*

Above i have taken example for two segments only but this could be up to 300 segments and can be many more in future.

Both the segments can be differentiated using field WERKS.

Is this thing posible in XI if yes then what can be the possible solution.

Regards

Dheeraj Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dheeraj,

This is possible in XI.

You have to use multimapping (1:N) for this requirement.

And for target directory, you can use variable substitution approach.

-Supriya.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Dheeraj,

Pls refer the below blog for variable substitution approach:

/people/pavan.kumar110/blog/2009/08/05/processing-multiple-files-in-source-system-and-target-system

-Supriya.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Kumar,

Post your input and expected output here... i am unable to understand the req.

Regards,

Raj

former_member185881
Active Participant
0 Kudos

Hi Raja

Requirement is like this

Sender IDOC

IDOC

SEGMENT1

WERKS

SEGMENT2

WERKS

SEGMENT3

WERKS

WERKS is afield and in each segment werks value will be different.

Now

Required Result want

For each WERKS new file should be generated in the target folder having its corrosponding SEGMENT

Regards

Dheeraj kumar

Edited by: Dheeraj Kumar on Sep 8, 2010 11:25 AM

prasannakrishna_mynam
Contributor
0 Kudos

Hi Dheer,

You can achive it by enabling target message with occurences to 'unbound'. This enable to create each message for each segment's WERKS field. The same should be done in Interfacemapping/operational mapping. In order to maintain the folder and file name's use the UDF/Function Library with Dynamic Configuration to set filename and directoryname of ASMA( Adapter Specific Message Attributes).

Thanks&Regards,

Prasanna...