Mapping IDOC to 810
Hello,
I try to implement scenario from IDOC to EDI 810
I work with ItemField converter and I have XSD that represent the structure of the EDI 810.
My problem is to map the IDOC to 810.
I have a problem with segments TDS, SAC, CTT, SE, GE, IEA.
This segment is not come directly from the IDOC and I need to calculate them.
I'll be happy to learn from your experience.
Elad
Hi,
The best thing i would suggest is to use Java Mapping.
Got thro these blogs for Java Mapping:
Java Mapping (Part I)
Java Mapping (Part II)
Java Mapping (Part III)
I dont think other mapping techniques may be used to solve your problem in an optimized manner. May be if graphical mapping is possible u can go for that.it is better to develop a java adapter and run on standalone adapter enginer..
Here is document how to develop adapter modules:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards,
Surya
Similar Messages
-
Problem with mapping [Idoc to EDI]
Hi experts,
i am facing a new problem in my mapping (idoc to edi scenario)
my target is as follow:
InvoiceDME
>Invoice 1..1
>>InvoiceHeader 1..1
>>>IncotermsCode 1..1
My Idoc is as follow:
IDOC
>E1EDK17 0..20
>>QUALF
>>LKOND
>>LKTEXT
There can be 2 scenarios in my source:
1st:
IDOC
>E1EDK17
>>QUALF = 001
>>LKOND = lkond001
>>LKTEXT
2nd:
IDOC
>E1EDK17
>>QUALF = 001
>>LKOND = lkond001
>>LKTEXT
>E1EDK17
>>QUALF = 002
>>LKOND = lkond002
>>LKTEXT = lktext002
If QUALF=002 then I have to take both values of LKOND and LKTEXT and map them to incotermcode
else if qualf=001 alone, then map LKOND to incotermcode
my mapping is as follow:
http://www.flickr.com/photos/30317046@N05/2862446903/
as you can see, the problem is if i am in my second scenario, i get the wrong value in incotercode (lkond001 instead of the concatenate of LKOND and LKTEXT for QUALF = 002)
Do you have any idea how I can solve this??
Thanks a lot,
Regards,
JamalActually i used java mapping:
//write your code here
try
String returnString = "";
for (int i = 0; i < QUALF.length; i++)
if (("002".equals(QUALF<i>.trim())))
returnString = returnString +" "+ LKOND<i> +" "+ LKTEXT<i>;
result.addValue(returnString);
catch(Exception e)
e.printStackTrace();
and the condition on the 'count' of QUALF (if = 2 then else)
Thanks,
Regards,
Jamal -
Using PI to map IDoc BENEFIT3 to EDI 834
Has any used PI/XI to map IDoc BENEFIT3 to EDI 834? We are looking to use this approach but have had problems finding a standard map. You would think SAP would have one since they stand by their BENEFIT3 IDoc being sufficient to map to the 834. This will take forever to do it from scratch or even without an example. Help please.
Hi
You can do 1:n multimapping
in message mapping in messages tab ..add both the structures in target tab and do the mapping
and in operation mapping add both the message interface on the target side
PLease go through this blog
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible -
I have a scenario, ECC-PI-Message broker. ECC sending IDOC to PI, PI execute mapping and sends data to Message borker(thru JMS channel).(with almost one to one mapping)., IDOC(AAE)-PI-JMS. Now my requirement is., from PI after mapping we need to create file with same data what ever send to Message broker and put the file in SAP folder without touching mapping. Is it possible? Please advise with the steps. We are using the ICO for this senario. Quick response is appriciated.
Hi Pratik,
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42?quicklink=index&overridelayout=true
This link might help.
regards
Anupam -
How to map idoc segment field E1IDB02-FIIKONTO with BSEG-ESRNR.
Hi,
I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields segment with my logic, so please anyone kindly contribute in mapping idoc segment field with the logic given below:
idoc type :PAYEXT outbound idoc.
message type: PEXR2002
This is my logic: i need to populate the ISR number(BSEG-ESRNR ) in idoc segment field( E1IDB02-FIIKONTO)
DATA : str1 TYPE string,
len1 TYPE i,
len2 TYPE i,
str2 TYPE string,
str3 TYPE string.
str1 = '01-1234-4'. ---> BSEG-ESRNR "ISR Subscriber Number
REPLACE FIRST OCCURRENCE OF '-' IN str1 WITH '_'.
REPLACE ALL OCCURRENCES OF '-' IN str1 WITH space.
CONDENSE str1.
len1 = STRLEN( str1 ).
IF len1 LT '9'.
len2 = '9' - len1.
CASE len2.
WHEN '1'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '00'.
WHEN '2'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000'.
WHEN '3'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0000'.
WHEN '4'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000000'.
WHEN OTHERS.
ENDCASE.
ELSEIF len1 EQ '9'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0'.
ELSEIF len1 GT '9'.
REPLACE ALL OCCURRENCES OF '_' IN str1 WITH space.
CONDENSE str1.
ENDIF.
Thanks in Advance.Resolved.
-
How to map Idoc fields with external file
Hi All,
How to map Idoc fields with external file.
I want to check the settings where Idoc fields are mapped with external file.
Thanks in advance.
Regards,
Govind.If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment
-
Hi,
I need to map IDOC to xml but the problem is I have 400 fields in IDOC which are to be mapped to 20 elements in XML.
As it a tedious process to go to 400 fields for each xml element.Is their any better way to find correct field in IDOC with very minial time rather going 400 fields for each xml element.
thanks
sreeramhi,
>>1)Even SAP it self does not encourage to use ABAP >>MAPPING and
i dont know where you have read this, but ABAP mapping is one of the most popular/ most efficient and highly recomended by SAP. I have used it in tons of places.
>>2)More over Iam not ABAP resource.
you could also do a java mapping.
there is no other easy way if you are not doing abap/java mapping. you are then left with the only option of using the graphical editor.
cheers,
Naveen
Message was edited by: Naveen Pandrangi -
Functional Specs for Mapping Idocs to EDI
Hello Friends ..
Am new to world of EDI...
can any one explain ..wat do u mean by devolping functional specs for mapping IDocs to EDI..
If you can provide me with examples or if you guys can suggest any site where i can browse some material about EDI..i wud really appreciate...
Best RegardsHi Rohan,
>>>do u mean by devolping functional specs for mapping IDocs to EDI..
you have to know which idoc fields you have to map to EDI message fields
take a look at those links:
they will show how do you map different IDOC message types to EDI messages
<b>IDOC - EDI mappings:</b>
http://www.sapgenie.com/sapedi/mapping.htm
<b>Analysis of the compatibility of EDIFACT messages in the form of SIMPL-EDI with the IDoc Interface:</b>
http://www.sapgenie.com/sapgenie/docs/SIMPL-EDI-E_ORDERS.doc
Regards,
michal -
Hi experts,
I'm doing my first scenario IDOC to JDBC, i've problem with mapping
I don't have seen any example in this forum of mapping IDOC, only i have seen the document :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a
in this document says about party, only this is possible?
i've testing mapping with payload and message 'XML not well-formed' occurs, i've comparing this message with message download testing and i don't see differences..
the error in runtime workbench is:
'com.sap.aii.utilxi.misc.api.BaseRuntimeException
thrown during application mapping
com/sap/xi/tf/_MM_MATMAS03IDOC_TO_MT_MATERIALES_:
RuntimeException in Message-Mapping transformatio~'
very thanksHi,
The error XML Not well formed means that the XML that you've used as a test in message mapping does not conform to XML coding standards.
What you can do is to find a sample XML in SXI_MONITOR then right-click on the lower-right pane then click view source. Copy the all the values using ctrl+a and ctrl+c. Then under test tab in message mapping, click the src or source text view and paste the payload there (overwrite the empty one). Then you can test the mapping for transformation.
Hope this helps, -
ALE: mapping IDoc fields to change document fields - TBD22 for ADRMAS iDoc
Hi,
I am currently try to find a table or way to extract the information of the TBD22 table (ALE: mapping IDoc fields to change document fields) for the iDocs/ Message Types:
ADRMAS
INTERNAL_ORDER
PROJECT
I am looking for a table that shows me to which SAP R/3 tables and fields the segments and fields of the above mentioned messages will be mapped to.
When I add one of the above mentioned message types to the table TBD22 selection criteria I always receive the notification: "No table entries found for specific key".
Could anybody determine Which table I have to use or why I cannot extract this information?
Thanks in advance!
Best regardsHi,
Since we can not map the target IDOC when any of the field changes using nodefunctions , you can write UDF and check the same i.e if field1 changes or field2 changes or field3 changes then trigger new IDoc. This is one of the options that you can try...please try it once.
Regards
Priyanka -
Multi-mapping for EDI 810 Interface
Hi,
I am building EDI 810 interface. We have following requirements.
Source system is SAP. Target systems is AAFES and COSTCO.
1 Source system and 2 target System.
For example: Can i have Interface mapping as shown below?
Invoice IDoc -> MM_EDI_810_AAFES -> EDI_810
MM_EDI_810_COSTCO
Based on DUNS number can i re-direct the interface to choose one of the mapping and accordingly choose the communication channel?
Thanks,
GowriHi,
You can do this in any of the following ways:
Content based routing in XI can be done during
1) Receiver Determinations (Integration Directory) --- Used for entering a condition for
forwarding a message to one or more receivers
http://help.sap.com/saphelp_nw04/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/content.htm
2)Interface Determinations (Integration Directory) --- Used for entering a condition for forwarding a message to multiple inbound interfaces
3) Designing Integration Processes (ccBPM) (Integration Repository) --- Used for entering a condition for processing process steps (see Step Types)
At all the 3 places u will use the Condition editor,
http://help.sap.com/saphelp_nw04/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
Hope this helps you.
Regards,
Abhy -
How to Map Idoc-Orders05 Qualifier permitted values to a flat file Str
Hi All,
My scenario is IDoc-xi-flat file. I have a problem in mapping the respective qualifier value in IDoc to the flat file structure. I am using the function fix values in Message Mapping. Suggest how should the target field should look like to map to the qualifier.
Thanks
Gowri K.hi,
can you tell a little bit more on what are you trying to achive?
do you only need one qualifier in file or all or what?
can you use the same structure as in IDOC ?
be a little more precise
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Fields mapping IDOC WMMBXY to post Goods Receipt against Inbound Delivery
Hi Friends
I am testing Goods Reciept against Inbound Delivery using Inbound IDOC.
IDOC Type used WMMBXY and Function Module :
System is giving erorr message as "Document does not contain any items".
Kindly let me know segment data mapping for above IDOC type
Following data are passed to segments,
E1MBXYH-BLDAT Document date
E1MBXYH-BUDAT Posting date
E1MBXYH- XBLNR .. in this field i am passing Inbound Delivery number
E1MBXYH- TCODE ... MIGO
E1MBXYI-BEAKZ ... B Goods Receipt against Purchase Order
E1MBXYI-MATNR material number
E1MBXYI-WERKS Plant
E1MBXYI-BWART Movement Type
E1MBXYI-LIFNR Vendor code
E1MBXYI-KZBEW B
E1MBXYI-POSNR Item number in delivery
E1MBXYI-VBELN Inbound Delivery number
E1MBXYJ-VLIEF_AVIS Inbound Delivery number
E1MBXYJ-VBELP_AVIS Item number in Inbound Delivery
E1MBXYJ-WM_KZBEW Movement indicator
RajHello,
Did you recieve any answer or find a solution? I encounter a similar issue.
Thanks in advance,
Génia. -
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 -
Mapping IDoc in Web Service structure
Hey,
now I got general question about mapping:
I'm using the SAPRDI02 IDoc to send print data to PI. This should be mapped to the web service structure then.
The IDoc contains the text elements of the sap script and the value of these elements.
The Web service has some structures and one structure for the document content. this structure has some general
fields to describe the type of document, which should be printed and a field for the content of the document. This field
expects unformated XML.
My question now is, how I should do the mapping best. Do you think it's possible to do it with the graphical tool, or should
I use XSLT, Java or ABAP mapping?
I think, the data from the IDoc would be something like this:
E1RDID
SYMNAME
SYMVALUE
The structure of the web service form content is something like this:
Printforms
Printform
Formtype
FormContent
Priority
And as I understand it, the XML content for the field "FormContent" should be something like this:
<FormField1>contentOfFormField1</FormField1>
or
<FormField1 value = 'contentOfFormField1' />
So the fields SYMNAME and SYMVALUE should be transferred to this structure and then to the field "FormContent"
in the webservice.
Any idea how I do this in the best way?
THANK YOU!
MichaelHi Rodrigo,
how do I create the XML tags? The XML-tag name should be the content of SYMNAME and the tag value should be
the content of SYMVALUE.
Like this:
<SYMNAME>SYMVALUE</SYMNAME>
And in the IDoc, Symname and Symvalue are part of a structure, and each line is one symname/symvalue couple. That means,
all the lines of this segment should later be just one field value of FormContent in the webservice....
Example:
Line1:
SYMNAME --> testField1
SYMVALUE --> testContent1
Line2:
SYMNAME --> festField2
SYMVALUE --> testContent2
And this should later result in:
<testField1>testConent1</testField1><testField2>testContent2</testField2>
Sorry, it's a bit hard to explain...
Maybe you are looking for
-
Podcasts not removed from iPhone after playing
Hi Since updating to iOS 5 on my iphone 4, I've been having a few issues with the syncing of podcasts. For some, not all, of them, once I've fully listened to them on my iPhone, syncing with my macbook pro doesn't remove them, even though itunes on t
-
[Web Player][Playlists] Playlist sorting
A previous thread on this topic - https://community.spotify.com/t5/Closed-Ideas/Sort-Playlists-Alphabetically/idi-p/699414 - was incorrectly defined as a duplicate and can therefore no longer benefit from user kudos. Spotify, I'd urge you to pay cl
-
Under the hood? (DP v SP Mac?)
Is Final Cut Pro a multi-threaded app? Will I notice a difference between render times on a single processor G5 vs. a multi-processor G5?
-
How to update firmware for HP Compaq DC small form factor
I have HP Compaq dc7700 small form factor, Windows xp pro. It was bought on ebay and works fine except for one thing. The Bios was upgraded but the firmware is not upgrading. the Bios was upgraded to V3.05 but the firmware remains 2.04 I downloaded
-
Problems Printing from Epson 2400 in Lightroom 2.3
I'm in the process of switching over from a PC to a Mac. I've gotten lightroom running and transfered all my photos over. But I'm having two big problems printing from my Epson 2400. *8.5x11 prints are offset. The top of the picture starts about an i