on 04-15-2014 6:54 AM
Hi Experts,
sender side and receiver side i am using same idoc. IDOC to sFTP Scenario (1:1 mapping)
sender side IDOC
IDOC
E1STATE
E1STATE
for two segments E1STATE i need to create two files based on E1STATE. i need to split the idoc based on E1STATE segment and for each E1STATE segment i need to create one file.
please provide me solution for this requirement
Thanks,
Aadi
Hi Venkat ,
Thanks for your reply.
IDoc to sFTP scenario
actual sender structure
IDOC
EDI_DC40
E1ADHDR(1..99)
E1STATE (1..99)
actual Receiver Structure
IDOC
EDI_DC40
E1ADHDR(1..99)
E1STATE (1..99)
requirement sender idoc is the below one
IDOC
EDI_DC40
E1ADHDR(1..99)
E1STATE (1..99)
E1ADHDR(1..99)
E1STATE (1..99)
E1STATE (1..99)
same idoc using at sender side and reciver side in my scenario ,so based on E1STATE segment ,for each E1STATE segment i need to create one file at target side.
in this case i have 3 E1STATE segments so i need to create 3 files at target side.
please give me solution for this.
Thanks,
Aadi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If i was you i would try to divide the problem in several parts:
1. Try to generate N files with a simple payload and a simple IF instruction in the mapping to generate 2 or 3 or 4, etc. You can try with a simple SOAP sender to do this and simple payload as i said.
When you have the first step completed, try the second step:
2. Implement the mapping with your IDOC sender. Try to configure the logic to generate the contexts as Venkat pointed.
3. Merge the two prototypes of the below steps.
Regards.
Hi ,
Don't need to get panic by hearing multi mapping .
In simple terms what you need to do is , in message mapping drag source and target structures -->click on signature tab -->in target structure change the occurrence to 0..unbounded .
IDOC 0..unbounded MT_file 0..unbounded
E1STATE -->remove context-->MT_file
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You could use the multimmaping concept for your purpose. Check these links:
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vila ,
Thanks for your reply.
IDOC
E1ADHDR(1..99)
E1STATE
E1ADHDR(1..99)
E1STATE
E1STATE
this is my source structure so based on E1STATE segment ,for each E1STATE segment i need to create one file at target side.
in this case i have 3 E1STATE segments so i need to create 3 files at target side.
please give me solution for this.
Thanks,
Aadi
Hi,
Under the Message tag in the target mapping you should implement the logic to create so much tags as E1STATE tags. In this Aashish Sinha blog's you have an example of IDOC-FILE scenario 1..n:
Regards.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.