IDOC- XI- FILE(s) 1..n mapping problem
I am working on a IDOC->XI->FILES scenario and am stuck on mapping of idoc segments to output structure.
IDOC structure is as following,
WBBDLD05 (1..1)
IDOC (1..1)
EDI_DC40 (1..1)
E1WBB01 (1..10000) ...
so the idoc being sent has multiple E1WBB01 segments, i need to do some content check for each E1WBB01 segment and create files based on thats. (ie. if there are 10 of E1WBB01 segments that meets a condition like "E1WBB02:ATTYP = 01", then i should create a file with 10 lines, and if there are 5 segments that meets "E1WBB01.E1WBB02:ATTYP = 00 or 02" condition , then i need to ALSO create another file with another structure with 5 lines)
i intend to use ccbpm as i find it easier to manipulate control steps. So far i am able to receive abstract idoc message interface, but as i am stuck on this mapping issue, i am not able to use the transformation step for checking content of each E1WBB01 data.
thank you in advance for any help
u wud need to loop thru to check for all the contents and have them transformed accordingly. u can check with block . but before that have E1WBB01 into a multiline interface and then use this interface in the transformation step.
<u>Message Mapping</u>
SOURCE TARGET
WBBDLD05 (1..1)
IDOC (1..1)
EDI_DC40 (1..1)
E1WBB01 (1..10000)---------------------------MI_E1WBB01
Similar Messages
-
Help Urgent -- Mapping Problem.
Hi All,
IDOC to File.
I got a problem while doing Mapping. I have 7 segments.
Idoc structure looks like below:
Seg1
Seg2
Seg3
Seg4
|____Seg5
|____Seg6
Seg7
Now i need to do Mapping for Seg 5 and Seg 6 to single Segment( BLOBE ) and these segments will repeat unbounded times.
Seg5
> BLOBE
Seg6
When i test this scenario.. iam getting Blobe only once and its is not repeating,
when seg5 and seg6 repeats more than once.
Please suggest me what might be the problem.
Can i acheive this or not?
Its Urgent.
Thanks in Advance.
Regards
Seema.Hi Raj,
Seg5 and Seg6 are under Seg4 of my source idoc.iam concanating all the fields in seg5 and seg6 and mapping into <b>Single string</b> "BLOBE" which is at the target side
Source Target
Seg4 Seg4
_____seg5 (1:unbounded)
|_____seg6 (1:unbounded) |___BLOBE(1:unbounded)
Pls reply me if u need any clarification.
Regards
Seema. -
Mapping problem: IDOC - XI - File
Hi,
in my scenario (Z-IDOC - XI - File) I have problems with the mapping:
Z-IDOC :
ZFIBUCH1
_IDOC
___Begin
___EDI_DC40
___Z1L061 (0..999999999)
_____Z1L062 (0..999999999)
example
L061 18000 DE 0101 23236318 050605 EUR
__L062 18000 XXX XXX
__L062 18000 XX1 CCC3
L061 87000 DE 0101 050605 EUR
__L062 87000 XXX XXX
__L062 87000 XX1 XAA4
the result should look like this :
L061 18000 DE 0101 23236318 050605 EUR
L062 18000 XXX XXX
L062 18000 XX1 CCC3
L061 87000 DE 0101 050605 EUR
L062 87000 XXX XXX
L062 87000 XX1 XAA4
I tried the following (target)-data types in the mapping but nothing didnt work very well :
MT_ZIFUCH_FILE
__ row
_____L061
_______L062
or
MT_ZIFUCH_FILE
__ row
_____L061
_____L062
or
MT_ZIFUCH_FILE
_____L061
_____L062
Do I need here a BPM? Or should I use XSLT-Mapping??
Or knows somebody a easyer way?
Regards
ChristophHi,
As per my understanding to have a flat file struture you would require a flat structure at the target side.One similar to the second structure mentioned by you.
DT_Target
|_Header
|______L61.....segment (child of header)
|______L62.....segment (child of header)
Using the mapping we convert the idoc structure to flat structure and then use content conversion like this :
Recordset structure : L61,L62
L61.fieldSeparator = ,(for you this value should be space)
L62.fieldSeparator = ,
I have not been able to convert the Target hierarchial structure to a flat file via content conversion.
when i tried I got the values as
L61,1800,...EUR,L62,8700,......
Hope this helps,
Regards,
Sulakshana -
Problem in idoc to file mapping
Hi Experts,
I am doing a idoc to file scenario...
There is a single idoc with multiple header and line items .
I am using multi mapping for header and lineitems.
The problem i am facing is regarding the occurences in target strucure...
at which level they should be specified so all the headers come in one strucure and line items in another...or should the occurences be o to unbounded at each field level.
Kindly help me regarding the same ...hi
i have the same scenario : IDOC (orders) to Flat File. can you plz help in mapping. the input format to XI is in the given way
idoc
a1---(0-1)
a2---(0-1)
b1--
a3---(0-1)
b1---(0-n)
c1---
b2---
c1---
a3---(0-n)
b1---
b2---
a3---
b1---
b2---
a3
b1---
b2---
i have created the same output DT in the same format (parent-child) for flat file. and my questions are
1. is that correct, do i need to create the same DT as the above idoc (like parent and child) or different?
2. how to map the idoc fields to my file DT..do i need to map parent to parent and child to child...or different.
plz help me out
Thanks
ram -
Hi all,
i'm getting an error from SXMB_MONI in a scenario File to Idoc.
I have done the mapping from source file and Idoc CREMAS03, when i try to test from Integration Repository it's all ok, but when the scenario is executed i find this error in Idoc Adapter :
<SAP:P1>MSGGUID EF7E2140A08811DDBE1202004C4F4F50: Tag #TEXT found instead of tag IDOC BEGIN=</SAP:P1>
The field BEGIN in idoc structure is filled with constant value 1, than i dont understand the error.
This is the xml source file :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Vendor xmlns:ns0="urn:tbit40:workshop:group01:legacy">
- <Address>
<Country>IT</Country>
<Zip>001</Zip>
<City>ROMA</City>
<Street>SATTA</Street>
</Address>
<Currency>USD</Currency>
<SearchTerm>TEST</SearchTerm>
<LastName>GUIDA</LastName>
<VendorNumber>44332</VendorNumber>
</ns0:Vendor>
Any help is really appreciated.
Thanks.Hi all and thanks for your answer.
My problem is that for what i can see all Idoc attribute (like the attribute BEGIN) are mapped with constant value.
In taget source i can see : BEGIN = Constant([value=1])
What i dont understand is why when i execute the scenario it ends with this message :
<SAP:P1>MSGGUID EF7E2140A08811DDBE1202004C4F4F50: Tag #TEXT found instead of tag IDOC BEGIN=</SAP:P1>
It seem to me that the tag BEGIN is not filled with value, i also tried to copy the source xml file directly from SXMB_MONI (from payload) and test it in Integration Repository mapping section, but here is all ok and the test end succesfully. -
Mapping Problem. Idoc to file senerio...
Hi XI Gurus
I need a help.
I have an idoc.The output is papped to a file , this being a IDOC to File senerio. The Idoc contains segmnent1,2,3,4,5,6,7.The occurance of segment 7 is optional.It may come, it may not come. If segment 7 comes then there is a field callled mwskz which would contain 2 digits, say 'D1', or 'D2' or D3' or 'D4' or D5' or 'D6' or D7'or 'F8' or D9'. The file has a mapping, where there are 9 fields [ say F1, f2, f3, f4, f5, f6, f7, f8, and f9 ] in the ROOT. If at any instance, for a given segment 1, there is a segment7, then the contents of the fields MWSKZ is mapped based on it's content , say if the content ofnwskz is D6 then all fields from F1 - F9 would be populated by the constant term 'N' except for the field 'F6' which would contain 'Y'.
I have done a mapping, but it is failing...
I have used, remove contexts for the field as well as segment . I have use the function exists...but, after putting PAYLOASD, what I can see is, the mapping of the occurance of SEGMENT7 is not synchronised with field mwskz.
Experts Pls help.
Pls send me ur email address so that I can show u the screen-shots of the mapping !!!!
Many Thanks in Advance
Arnab
Please read the Forum's Rules of Engagement,
i.e.,
[/thread/117188 [original link is broken];
and refrain from using email correspondence as the main objective of the Forums is to share knowledge.
SDN PI/XI Forum ModeratorHi Arnab,
If i have understood your requirement correctly, you need to duplicate your ROOT node which has fields f1.. f9 for 9 times and map it to a constant. Now you can provide the condition like this:
mwskz = D6-> createIf -> ROOT
and so on....
In the ROOT segment now you can directly map the fields f1 to f9 as per the requirement, i.e., f1 to f5 and f7 to f9 can be mapped to N directly and f6 can be mapped to Y.
Correct me if i have misunderstood your requirement.
Regards,
Sanjeev. -
IDOC to File Mapping problem.
Hi all,
I am working on IDOC to file scenario. Here I need to create CSV file for some fields of the IDOC. Actually flat file should contain around 65 comma separated fields irrespective (independent of the segment presence in the IDOC) of the existence of the corresponding filed in the idoc structure. So could you please tell me how to handle this situation?
Here file is supposed to be created with 65 fields. But it only contains few of those, as some segments in the IDOC are missing. Is there any dependency between the filed and its header/segment?
Thanks in advance,
-Kanth.Hi Prasad,
<i>But it only contains few of those, as some segments in the IDOC are missing. Is there any dependency between the filed and its header/segment?</i> - yes, if your source IDOC is having some segments missing, then your target will not have those segments, so some of your target data will be lost.......
To avoid this you can go for a JAVA mapping.....
Thanks,
Rajeev Gupta -
Mapping Problem ( IDoc to File )
Hi,
I am working on Idoc to file scenario...My input and output structures like below...
Idoc:
ZOrderInfo 1----99999
OrderNumber 0---1
ZItem 1----99999
Quantity 0---1
File:
Item
OrderNumber 0-1
Quantity 0-1
Problem : I need to produce Item nodes in output structure based on OrderNumber. like for 4 order numbers in source need to 4 Item segments.
a) Summation: If any duplicate Ordernumber comes in picture...we need to omit that and need to take the quantity from that...do summation and send to target.
like OrderNumber -1...quantity -10 and Ordernumber -1 ....quantity -20
Need to produce only one ordernumber -1 with the quantity of 10+20 =30.
b) If the Ordernumber not present in any segment....Need to pass the quantity as is...
any suggestions would be appreciated.
-Esha.Sunil,
Note: In this input Idoc - It has 3 segments, 2 segments have same ordernumber and 1 segment doesn't have order number.
And I am expecting two Item nodes in output structure - One with quantities summation (500 +500 =1000) for the same order number and One with no ordernumber and quantity as is (600).
Hope my requirements clear to you! Please help me with the valueable suggestions!
My input structure - IDoc:
<?xml version="1.0" encoding="UTF-8"?>
<ZORDR01>
<IDOC BEGIN="">
<EDI_DC40 SEGMENT="">
<TABNAM/>
<MANDT/>
<DOCNUM/>
<DOCREL/>
<STATUS/>
<DIRECT/>
<OUTMOD/>
<EXPRSS/>
<TEST/>
<IDOCTYP/>
<CIMTYP/>
<MESTYP/>
<MESCOD/>
<MESFCT/>
<STD/>
<STDVRS/>
<STDMES/>
<SNDPOR/>
<SNDPRT/>
<SNDPFC/>
<SNDPRN/>
<SNDSAD/>
<SNDLAD/>
<RCVPOR/>
<RCVPRT/>
<RCVPFC/>
<RCVPRN/>
<RCVSAD/>
<RCVLAD/>
<CREDAT>20080310</CREDAT>
<CRETIM>104301</CRETIM>
<REFINT/>
<REFGRP/>
<REFMES/>
<ARCKEY/>
<SERIAL/>
</EDI_DC40>
<Z1ORDAPH SEGMENT="">
<ORDNO>1234567890</ORDNO>
<DATE/>
<Z1ORDAPL SEGMENT="">
<ORDAPQTY>500</ORDAPQTY>
</Z1ORDAPL>
</Z1ORDAPH>
<Z1ORDAPH SEGMENT="">
<DATE/>
<Z1ORDAPL SEGMENT="">
<ORDAPQTY>600</ORDAPQTY>
</Z1ORDAPL>
</Z1ORDAPH>
<Z1ORDAPH SEGMENT="">
<ORDNO>1234567890</ORDNO>
<DATE/>
<Z1ORDAPL SEGMENT="">
<ORDAPQTY>500</ORDAPQTY>
</Z1ORDAPL>
</Z1ORDAPH>
</IDOC>
</ZORDR01> -
Mapping Problem(file to 2 basic idocs)
Hi,
In my scenario sender File(divided into 3 parts) and receiver 2 basic IDOCS
I am having the conditions,
1) file field Trans_id(part-1 field) = 20 or 30 then only entire mapping required to transfer the file fields into SAP.(total scenario required to execute)
a)In that po_no( part-2 field) is coming from file then need to map part-2 fields of file to one idoc.
else need to map (file part1 and 2) fields to same IDOC-A
b)If all the fields of part-2 and part-3 equal then part-1 and part-2 fields to one IDOC-A and Part-3 fields to another IDOC-B.
which mapping is suggested to achive the requirement and procedure.
Thanks,
Praveen.hi,
i Hope useful to you
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM
/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge
in ccBPM
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge
in ccBPM
Regards -
Problem in idoc to file scenario
hi
while creating the idoc to file scenario i am facing few problems.
1) My design time objects are working fine. i have checked my message mapping, message interface etc.. (all design time objects are in active mode).
2) In ID, i have tested my configuration in test configuration, its working fine there as well (in ID i am using 2 business service one for sender, one for receiver)
3) i am using my ecc6 training server as my sender and using my XI server as receiver.
4) i am sending idoc from ecc6 and converting it to file in XI server and saving it in XI server itself(my receiver in this case).
my error:
i send my idoc from we19 transaction, and i see a error message stating
that 'RCVR_DETERMINATION.NO_RECEIVER_CASE_ASYNC'
my doubts.
1) while sending the idoc from ecc6, is it mandatory to give process code in partner profile ( that is, assign an outbound function module to push the created idoc to the mentioned destination).
2) also is it mandatory to have a partner profile on the receiver side( XI in this case) along with inbound process code.
3) in my receiver adapter ( file adatper in this case ) i have used NFS protocal. is it rite?
kindly help me with this issue.
regards
manoharan>
manoj murugesan wrote:
> 1) while sending the idoc from ecc6, is it mandatory to give process code in partner profile ( that is, assign an outbound function module to push the created idoc to the mentioned destination).
>
> 2) also is it mandatory to have a partner profile on the receiver side( XI in this case) along with inbound process code.
>
> 3) in my receiver adapter ( file adatper in this case ) i have used NFS protocal. is it rite?
>
>
> kindly help me with this issue.
>
>
> regards
> manoharan
and to 1 & 2 ref. below,
Configuration steps required for posting idoc's(XI) -
/people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
ALE configuration for pushing idocs from SAP to XI -
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
3. NFS protocol is used to read/write files to the XI server itself. If you have to write to a local machine then use FTP -
IDoc to File scenario Monitoring Problem
Hi,
I have a problem in monitoring. In my IDoc to file scenario the ftp server is not reachable (wrong ip) but still in sxmb_moni I get a successful processed message with acknowledgement system error.
Now, why dont I get an normal error in sxmb_moni?
Thanks in advance...Hi,
>>Now, why dont I get an normal error in sxmb_moni?
Why because in MONI we generally get the Errors related to the Message Processing like mapping, and pipe line Services.
But the error which u got is related to the Receiver, so this we can find out in the Receiver File Adapter monitoring( CC monitoring)
MONI Shows the Errors those are related to the ABAP Satck means if any Errors occurs while going the process on ABAP Stack
But the error which u got is on Adapter Engine Process, so Definately the Error finding place is on Receiver CC monitoring
REgards
Seshagiri
Edited by: N V Seshagiri on Sep 26, 2008 1:17 PM -
Context handling in message mapping for an IDoc to File Scenario
Hi,
Can somebody help me with this issue. I have an Idoc to file scenario. heres my idoc structure. Its a custom Idoc
Header (1..1)
Detail (0..Unbounded)
DependentDetail (0...Unbounded) Note: This dependentdetail is a subelement of Detail
Trailer(1...1)
I created my target structrure the same way as the Idoc structure.
My output is a simple text file. I need the output in this format
Header
Detail1
Dependentdetail1
DependentDetail2
DependentDetail3
Detail2
DependentDetail1
Dependentdetail2
Detail3
Detail4
Trailer
Since the Detail and Dependent Detail records are unbounded .
But right now i m getting my output like this:
Header
Detail1
Detail2
Detail3
Detail4
Trailer
But the DependentDetail record in not showing up in the output file. I didnot do any context change in my mapping. So do I need to do any context handling??...If so can somebody explain me with this.
Thanks,
Adam
Edited by: hymanroth on Apr 29, 2011 11:11 PMThanks Kenneth foryour quick reply,
Yes, I see the payload for Dependent detail in SXMB_MONI. So as you said earlier there's a problem with my content conversion.
my content conversion is as follows:
Header.fieldNames
Header.fieldFixedLengths
Header.endSeparator
Detail.fieldNames
Detail.fieldFixedLengths
Detail.endSeparator
DependentDetail.fieldNames
DependentDetail.fieldFixedLengths
DependentDetail.endSeparator
Trailer.fieldNames
Trailer.fieldFixedLengths
Trailer.endSeparator
So As I told earlier. With the above content conversion. I am not able to get the Dependent detail record in my output file. So If there is a change in my content conversion can u check it and tell me where I went wrong.
Thanks,
Harsh
Edited by: hymanroth on May 2, 2011 7:03 PM -
Graphic Mapping:IDOC to File-Avoid Error in Adapter Engine
Hi all,
I'm using Graphic Mapping in my IDOC to File scenario in which each segment in source IDOC will generate a ROW in target File with the condition: DATBI >= currentdate (and some other conditions)
I have a UDF and use the mapping function CREATEIF for this purpose:
DATBI -> UDF -> CREATEIF -> ROW
Problem scenario: In the source IDOC if all the segments have DATBI < currentdate then there is no ROW created, and I get the error in Adapter Engine
Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure ...
How can I avoid this?
I've tried to put this condition using XPATH in Interface Determination and got the error.
There is a way to use function current-date() in XPATH condition?
Thanks for your help,
ElaineHi all,
How can I "suppress the row node if condition fails"? I'm new in PI, so please give more details.
My FCC as follows:
Record Structure: Record, Row
Row.addHeaderLine 0
Row.fieldSeparator ,
Record.fieldSeparator 'nl'
Row.endSeparator ; 'nl'
It works fine if the condition satisfied.
In Message Mapping, I've use Test to double check my mapping, and in the scenario that conditions fails, there is no Row in the target message.
Please advise.
Thanks,
Elaine -
Problem IDOC to File scenario: No service for system SAPIDC, clnt in ID
in IDOC to File scenario, when IDOCis triggered from R/3 to XI, it gives error in SM58 transaction
"No service for system SAPIDC, client 800 in Integration Directory"In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
the code is all correct....and it looks like
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String sourceFileName = conf.get(key);
if (sourceFileName == null ){
sourceFileName = "ErrorFile.xml";}
return sourceFileName; -
Mapping Logic in XI for Idoc to File
Hi All,
I have the scenario like this Idoc to File
I have Quantity field inside E1EDL24(Line Item)--E1EDL43Quantity, i have to Sum up the Quantity field.
I have used the ligic like this and works perfectly.
Quantity--Sum-Total and the context od Quantity is set to IDOC level.
Now the problem is, Inside the Line item(E1EDL24) Segment, we have E1EDL43 Segment and this E1EDL43 can repeats twice
then, i have to consider only first Segment quantity value coming from E1EDL43 . I should not take the second E1EDL43 segment .
But here in my case what is happening is while doing the SUM function it is considering the second segment quantity also. and giving the total.
For Example...
-E1EDl24
--E1EDL43
---Quantity -
20
--E1EDL43
---Quantity -
30
And second line item
-E1EDl24
--E1EDL43
---Quantity -
10
--E1EDL43
---Quantity -
50
In this case i shld get 20 + 10 = 30
But iam getting 203010+50 = 110 which is not correct.
Please help me on this
Regardsset the context to Idoc level
use the UDF
int sum=0;
for(int i=0;i<a.length;i++)
sum =sum + Integer.parseInt(a<i>);
i++;
String res = sum;
return res;
Do the mapping as
Quantity----->UDF---->Total
this logic works if E1EDL43 should repeats twice
Maybe you are looking for
-
Hi, I'm trying to burn a DVD for several times with Roxio Toast Titanium 6. I used to do it like this always but now it seems impossible. I'm trying to record a DATA DVD and this is the error I get: The drive reported and error: Sense Key = MEDIUM ER
-
Can flash send me a .PDF file of what a user created?
Hey, Is it possible for my published flash site on the internet to send me a .PDF file of a character that a user has made on my flash site? I can't seem to find an answer anywhere. Thanks in advance
-
Idoc error when uploading Customers
Hi All, I am uploading Customers using LSMW by Idoc. Some of the customers are created perfectly with status 53. But some of the customer have status 53 and the error message is ' ....Editing was terminated ' Message no. FB013 The successful record a
-
Flow is not going to catch block when JMS adapter fails
In a BPEL composite, we have a JMS adapter to write a message into JMS Queue. In this error scenario, JMS is down & so JMS adapter fails with the below error. But control is not going to the catch block where we have some logic to construct a error r
-
InDesign CS4 -- editing problem
Working on a publication in CS4, been in it before, worked in it before, it worked before....but when i click on the Edit, it says theres an error and shuts down on me. Anyone else have anything similar. It just started this yesterday, been working