Mapping to an IDOC
Hello, I'm mapping an XML structure to an IDOC and the mapping goes through the compilation but when I test the mapping nothing happens??? Are there any possibility to look to a log file and see what the server is doing. I mean the way you do in webMethods/BC.
Thank you
Ernesto Duran
Hallo Ernesto,
in XI3.0 you have the possibility to display the Queue after each Mapping Function in the Data flow editor of the Message Mapping editor.
With right mouse click on the function stones in the data flow editor you get the function "Display queue". In the queue the outcomming values of the function are shown. But before, you have to enter a test instance into the test tab.
Regards Franz
Similar Messages
-
Mapping issue in idoc to JDBC scenario
mapping issue in idoc to JDBC scenario
source structure
E1KNB1M
BUKRS = 1000
E1KNB1M
BUKRS= 9000
E1KNB1M
BUKRS= 2000
THE NODE E1KNB1M is repeated many times and the field BUKRS is also repeated with E1KNB1M as above
TARGET field : ISFRANCHISE
if any where value of BUKRS =9000 we have to pass Y to the target filed, else N
if BUKRS = 9000 THEN ISFRANCHISE= Y
ELSE
ISFRANCHISE=N
I've done the mapping as below
BUKRS = 9000--> IF THEN Y ELSE N--
> ISFRANCHISE
BUT everry time the target value is N only
pl suggest
rgds
mojibmapped like this
BUKRS--->SORT---->
EQUALS --------IF---THEN Y
9000------------------------> ----------------->ISFRANCHISE
ELSE N
context of BUKRS set to parent node
its worked
thanks to all for valuable suggestions
rgds
mojib -
Mapping to an IDOC using an externally created XSL file
I want to map a message to an IDoc using an ABAP XSLT transform. I am creating the XSLT in an external tool.
I need to use an XSD definition of the IDOC as the target document of the mapping. I can get that in two ways:
1) Get the XSD definition of the IDOC from transaction WE60 and use the menu command 'Documentation -> XML Schema'
2) In the Integration Repository, export the XSD of the imported IDOC.
The problem is, there are significant syntax differences between these versions, and I don't know which is the correct version. For instance, the XSD exported from the Integration Repository has a mandatory attribute 'SEGMENT' for each segment that must be filled to create a valid XML message; this is not the case when the XSD definition is created in WE60.
Can somebody advise which is the correct version to use?Hi Anthony,
This is really strange...
In both case XSD should be same...can you please tell for which idoc you are generating xsd?
Eventhough if you generate XML Schema using WE60, mandatory attribute 'SEGMENT' for each segment has to be there....this validation would be done while posting idoc. It will check for all mandatory fields.
I have some different thoughts that what wojciech has suggested...
"If were your shoes I would use xsd from integration repository because that's the expected result...."
But final goal is not to achieve mapping but posting idoc with proper data in R/3 system successfully.
Your second question..
"Do I assume then that placing a constant value of 1 in the SEGMENT attribute is just to satisfy the validation of the XML message against the XSD:..?
ummm...I think if you assign constant "1" to segment it will generate that segment while creating idoc. Its mandatory to assign constant value to segment which you want to generate...
"Can I assume that the IDoc adapter will fill the SEGMENT attribute with the correct value?.."
I dont think so Idoc adapter will fill this attribute automatically...you need to assign constant to field segment.
Nilesh -
Mandatory fields for mapping in ORDERS idoc.
Hi
I m working on File to idoc scenario for creation of sales order in ECC 6.0 , now I want to know what are the mandatory fields in ORDERS idoc which needs to be populated or else disbaled so that the sales order gets created properly in the ECC 6.0..
Pl let me know the method of finding mandatory field for mapping for any idoc and which fileds of idoc are to be disabled.
Pl help ..
ans will be rewarded .
thanks & rgds
mojibHI,
U can disable the control record segment and in the IDOC adapter use the option apply control record from payload.
If you have set the Apply Control Record Values from Payload indicator in the receiver IDoc adapter, the following fields are filled from the IDoc-XML payload:
· MESCOD
· MESCFT
· TEST
· EXPRSS
· STD
· STDVRS
· STDMES
· SNDSAD
· SNDLAD
· RCVSAD
· RCVLAD
· REFINT
· REFGRP
· REFMES
· STATUS
· DIRECT
· OUTMOD
· CREDAT
· CRETIM
read the information in below link:
http://help.sap.com/saphelp_nw70/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/frameset.htm
thnx,
chirag -
Mapping issue: FCC: Idoc for each record in file
Hi,
I have file to Idoc scenario.
I receive csv file with multiple records.
The requirement is to create an Idoc for each record.
For eg.
source file
A1,B1,C1
A2,B2,C2
A3,B3,C3
After FCC
<MT>
<TRANS>
<ROW>
<A>A1</A>
<B>B1</B>
<C>C1</C>
</ROW>
<ROW>
<A>A2</A>
<B>B2</B>
<C>C2</C>
</ROW>
<ROW>
<A>A3</A>
<B>B3</B>
<C>C3</C>
</ROW>
</TRANS>
<MT>
I have first tested it with only 1 record to test end to end connectivity. It works as expected and Idoc is posted to target system.
Now when I am trying to send multiple records, I am getting some issues.
Below are the steps that I have taken to process multiple records:
1. Changed the cardinality of ROW (child of RecordSet) from 1 to Unbounded.
2. Changed the occurance of Idoc to Unbounded.
3. Mapped ROW to Idoc root.
I have tested the mapping in IR and it generates multiple IDOCs.
When I send the test file, it fails with error Tag found instead of tag IDOC BEGIN=
I can see the xml message created with multiple ROWs in XI by File adapter in sxmb_moni.
When I do Test Configuration in ID, with the XML message extracted from sxmbmoni, the result that I got was:_
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
This means that idoc was not created while mapping.
But the same sample message works OK in IR!
Pls help where I have missed.
Regards,
Anirudh.Sudhir,
Thanks for your response.
FCC is working fine. I have taken the XML message in XI created after FCC from csv sample message.
I have tested this message in IR by placing it between
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
</ns0:Message1>
</ns0:Message>
It is working fine and Idocs are created in mapping in IR.
But the same sample message is creating below output ID!
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"><ns0:Message1></ns0:Message1></ns0:Messages>
Regards,
Anirudh. -
hi experts,
we have a scenario to map shipment 05 idoc to delivery 05 idoc. there will be one or more handling units in source idoc.for every handling unit in shipment 05 we should map respective article information to seperate delivery 05 idoc. this means foe every e1edl37 segement in source idoc we need to create seperate delivery05 . but the occurence of the imported delivery 05 idoc is 1. so how to map this.. do we need to go for bpm. can anyone please suggest.Hi,
1)Double Click on the imported IDOC
2)Export the WSDL file to your desktop.
3)Change the max occurrence of the IDOC Segment.
e.g.
Original
<xsd:element name="IDOC" type="CAP_PRIMCOST.CAP_PRIMCOST01" />
Change
<xsd:element name="IDOC" type="CAP_PRIMCOST.CAP_PRIMCOST01" minOccurs="0" maxOccurs="999999999" />
4)Import the new WSDL as an external definition and use it insted of IDOC.
Regards,
Himanshu
Edited by: Himanshu Mohan on Oct 7, 2008 1:55 PM -
Message Mapping - JDBC to IDoc
Hi,
I trying to map the resultset from a JDBC adapter (sender) to Inbound IDoc into SAP. I have problems with message mapping and after reading through a number of threads, I followed the following steps:
1. Download the IDoc definition as XSD.
2. Change occurrence of node IDOC to 1..unbounded.
3. Upload changed XSD as external definition and
4. use the external definition in the mapping.
After importing the external XSD definition the IDOC node turned red. How do I map this node, now that it is unbounded?
Example from Message mapping:
MT_ETA_RMX................ZSDETA01
..EtaNode........................IDOC (unbounded = RED)
....CARID.................................BEGIN
...............................................EDI_DC40
...............................................Z1RETA
.................................................SEGMENT
.................................................CARID
Thanks,
HenkHendrik,
whichever data record is occuring multiple on your sender JDBC message should be mapped to IDoc segment. It really depends on your JDBC message structure.
If EtaNode is occuring multiple times, and if based on EtaNode an IDoc has to be created, map that to IDOC and if per every CARID one idoc needs to be created, then use CreateIf and exists node functions to IDoc.
regards
SKM -
Mapping ansix12 to idoc orders04
hi ,
I have created the data type in the integration repository and i bought the message type for message mapping, but i need to know how to map this with idoc orders04 and im not sure with the loop concept in XI for mapping. like mapping for more than one line item.
if any one have any idea idea abt it pls helpme.
thankx.hi ,
I have to map the ansi x12 file to idoc meta data and for mapping do i need to write a XML schema for the the ansix12 file .. i need help reagrding this .
thankx . -
SAP R/3 Mapping with EDI IDOC's 846 and 852 (Outbound)
Hi:
How are the following EDI IDOC Types mapped in SAP - R/3?
1. Inventory Inquiry / Advice (846)
2. Product Activity Data (852)
What is the basic type, message type, idoc type that has to be used
in both the cases - outbound based ones.
This is a consumer products industry and not a retail industry. This
is a hypothetical scenario where the end customer would like to see
the price and the stock from all the plants and then place an order
(846); and also see what is being planned in aparticaular plant for
a planning period (852). The cycle countings are carried out based
on the type of product in question and SAP-R/3 has been set up for
this. What is the trigger point for the enitre activitiy to take
place. Any valuable suggestions or guidelines are most welcome.
Regards
RohitCheck this link and see if it leads you somewhere.
http://sap.ittoolbox.com/groups/technical-functional/sap-interfaces/information-on-the-edi-idoc-types-1739410
http://www.jt77.com/CRM/related-discussion-1111.html
Regards,
Ravi Kanth Talagana -
Hi! All
It would be of great help if you provide your suggestions on:
Mapping one XML source file to 6 IDOC receivers, 2 of them are of the same type and 4 are distinct idoc types.
I tried multi-mapping and received the following error:
"Messages in multi-message format can only be sent to one Adapter Engine"
Looks like IDOC adapter does not support multi mapping...
Can you please suggest any other option apart from using BPM(since it consumes lot of resources).
Thanks a lot!!
Regards,
PatrickHey
its not possible to do Multimapping over IDOC's without BPM.
other way around can be to do a single -single scenario,suppose u have 6 IDOC's to post then u need to design 6 different scenarios for them.
without BPM you cant do multimapping for IDOC or HTTP
Thanx
Aamir
Message was edited by:
Aamir Suhail -
Doubt in fields - message mapping (file 2 idoc scenario)
while doing message mapping in file 2 idoc scenario, i could not able find the values for some field names
( i am following this wiki help
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC& )
cremas04 idoc
vendorNo LIFNR
vendor name Name1
Pur_org ? ( I could not able locate field with the similar desc in idoc MT side)
Company code ?
Acc_Grp ?
Search term MCOD1
Address ADRNR
City ORT01
Pin_code PSLTZ
could you help me out with this?
Message was edited by: praba
prabahi,
I got the answer. -
Mapping Problem ORDERS Idoc to Edifact
Hi,
I have a mapping problem with the IDOC ORDERS:
I get the IDOC with several E1EDP01. Each E1EDP01 has several E1EDPT1, where i want only the first one (which I get over the TDID value). Each E1EDPT1 has min. 1 E1EDPT2.
Now I have to map each field TDLINE from first two E1EDPT2 of the first E1EDPT1 to the Edifact fields /LIST/S_UNB/S_UNH/G_SSG25/S_LIN/S_IMD[1]/C_C273/D_7008 (from the first E1EDPT2) and, if a second E1EDPT2 exists in /LIST/S_UNB/S_UNH/G_SSG25/S_LIN/S_IMD[1]/C_C273/D_7008_2.
I use following UDF:
//a = TDLINE
//b = Number of entry in the List
int pos =Integer.parseInt(b[0]);
if ( pos < a.length )
result.addValue(a[pos]);
else
result.addValue(ResultList.SUPPRESS);
Unfortunatly, I think becaus of the context problems (not every E1EDPT1 has two E1EDPT2), it's not working. Could somebody help me with this problem?
Thanks in advance
DominicDear Dominic ,
I had same problem when I was trying to do the same thing for FTX segment.
Your UDF is fine but you don't need else condition.
//a = TDLINE
//b = Number of entry in the List
int pos =Integer.parseInt(b[0]);
if ( pos < a.length )
result.addValue(a[pos]);
for C_C273 assigned contant value and
D_7008 assigned TDLINE but change the context to E1EDPT1
and for D_7008_2
TDLINE(context to E1EDPT1 )
====>UDF====>D_7008_2
Contant(=1)
It should work becasue my map is working fine. If not let me know error message.
Thanks
Shubhankar -
1:N mapping without BPM ( Idoc Receiver)
Hi,
I have a scenario like 1:N, source would be JMS and the receiver side have two Idocs with the same business system. based on one Item segment value, I need to route the input JMS message to corresponding receiver IDoc.
INput Structure:
Record
Header 1..1
H1
H2
H3
Item 1..Unbounded
I1
I2
I3
NOte: Based on value I2, I need to route the message to corresponding receiver Idoc. like If I2=A then Idoc1 and I2=B then Idoc2. Can we achieve the same without using BPM?
-EshaHi,
This can be achieved with Interface Determination conditions. Go for 2 mapping. And in Interface Determination put condition to check which mapping to use. No need of ccBPM.
If you still want to go for 1:N multimapping please refer link:
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
without BPM.
Regards,
Vineetha.
Edited by: Vineetha on Apr 27, 2010 11:44 AM -
Mapping Error- In IDoc to File scenario
Hi Experts,
Got the Mapping error for one interface (IDoc to file). After comparing with successful message found that the field value (TDLINE) is not availbale in first segment (E1EDT10) in idoc for this failed one.
Mapping is :
TDLINE -- Exists --- Creatif --- Receiver field(in the file)
But here due to the the empty value in first segment the message is failed in XI system, next segment values is not trasmitted to the recever end(maping is the same above). To overcome this issue please suggest the suitable mapping design in IR.
Regards
MaheshHi,
After your CreateIf, use a "IfWithoutElse" by selecting the properties "Keep SUPPRESS Values". To do that, do a right click on IfWithoutElse, choose "Properties".
With this option, you will keep the fact that you have nothing in the source, and so the target context will have a "SUPPRESS" line. I have not THE solution, so do your own test.
If it's not enough, see also about the "mapWithDefault" (but that depends of your real rule).
Regards.
Mickael -
Message mapping issue in idoc to jdbc scenario
We have a scenario of idoc->XI-JDBC
the below given segment may get repeated , as shown below ,
E1EDP19[2]--idoc segment
QUALF---003
IDTNR---01000123(Bar Code No)
E1EDP19[3]--idoc segment
QUALF---003
IDTNR---20500000000034(EAN No)
Reqd mapping
if QUALF=003
THEN IDTNR----->Bar_code_Number_EAN
Now IDTNR has to be mapped with Bar_code_Number_EAN for the segment which comes last
Pl suggest how to map using graphical mapping for the above scenario.Hi Raj ,
The current mapping works fine if the parent segment E1EDP01 is only one but if that gets repeated then the last value of IDTNR is getting populated in the target side, very clearly i m giving the source and target structure and the mapping done using the UDF
Source structure
E1EDP01
E1EDP19[1]--idoc segment
QUALF---002
IDTNR---01000123(Bar Code No)
E1EDP19[2]--idoc segment
QUALF---003
IDTNR---01000123(Bar Code No)
E1EDP19[3]--idoc segment
QUALF---003
IDTNR---20500000000030(EAN No)
E1EDP01
E1EDP19[1]--idoc segment
QUALF---002
IDTNR---01000123(Bar Code No)
E1EDP19[2]--idoc segment
QUALF---003
IDTNR---01000123(Bar Code No)
E1EDP19[3]--idoc segment
QUALF---003
IDTNR---20500000000031(EAN No)
E1EDP01
E1EDP19[1]--idoc segment
QUALF---002
IDTNR---01000123(Bar Code No)
E1EDP19[2]--idoc segment
QUALF---003
IDTNR---01000123(Bar Code No)
E1EDP19[3]--idoc segment
QUALF---003
IDTNR---20500000000032(EAN No)
Target mapping
if QUALF=002
THEN IDTNR--->Article_No this is the direct mapping so , no issues
if QUALF=003
THEN IDTNR----->Bar_code_Number_EAN, now this IDTNR should get repeated every time the segment E1EDP01 gets repeated , currently only the last value form all the IDTNR is coming to the target side.
The current mapping works fine if the parent segment E1EDP01 is only one
Target structure
Access1
IDTNR--> Bar_code_Number_EAN( value is 20500000000030)
Access2
IDTNR--> Bar_code_Number_EAN( value is 20500000000031)
Access3
IDTNR--> Bar_code_Number_EAN( value is 20500000000032)
Current mapping
If QUALF = 003
Then QUALF ---->
mapBarCodeEAN---->Bar_code_Num_EAN
If QUALF = 003
Then IDTNR ---->
Context of QUALF is set to E1EDP01
Context of IDTNR is set to E1EDP01
thanks for your personalised help
rgds
mojib
Edited by: mohammad mojib ur rahman on Apr 9, 2010 1:30 PM -
Error in Message Mapping "Target message IDOC: ORDRSP.ORDERS02 does not exi
Hi,
I have joined newly to the team.
When I tried to open one message mapping it throwinf follwing error...
"Target message IDOC: ORDRSP.ORDERS02 does not exist in software component version ID: 44423362454456485465..
Check whether the software component version ID: 44423362454456485465 is in Enterprise Service Repository. Import this version if necessary"
Is there any impact because of which in the message flow?
In my case some of the messages are failing with mapping error "runtime exception occured during application mapping com/sap/xi/tf/_SUS2MMOrderResponse_; java.lang.NullPointerException: while trying to invoke the method java.util.Map.get(java.lang.Object) of an object loaded from field com.sap.aii.map`"
And some of the messages are processed sucessfully and they also using the same mapping program 'SUS2MMOrderResponse'.
Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
Regards
Baskaran KCould someone tell me is there any relation for the above error in XML messages and to the message mapping?
The error mentions that you have used an IDOC in your mapping program which is not found in the ESR....you need to check if the IDOC is present in the ESR and is present under the correct SWCV.
Once you have done the check do some dummy change to the mapping and activate it (if in DEV) and then check the CACHE.
Maybe you are looking for
-
Missing library error while deploying the ADFBC application
Hi, I have small application developped using ADFBC. The application is working perfectly fine when I run the app using JDev. When I try to deploy the app to the standalone oc4j, I am getting following error... Binding SRDemoApp web-module for applic
-
Hi guys I have this error message when installing new Itunes updates: HResult: 0x800736FD. Can anyone help me? thanks
-
Acrobat 9 Lesezeichen + Struktur aus Dateinamen/Ordnerstruktur
Sehr geehrte Forenleser, ich möchte 1 PDF Datei aus mehreren PF Dateien erstellen, als Lesezeichen soll der Dateiname genommen werden. Die einzelnen PDFs liegen in einer Ordnerstruktur bereit. Diese soll auch übernommen werden! Jedoch bekomme ich das
-
Question - How does the Priority feature of the Send Port work?
How does the Priority feature of the Send Port work?
-
I have 139 items in my Trash, When I click on secure empty trash to erase them it wants to erase 1309 items. Does anyone know what may be going on?