Mapping idoc
Hello Guys,
I'm doing a mapping between message type and idoc...
There is a node EDI_DC40 with several required element...
Should these element be declared a not required or should I use mapping with a constant or what else should I do ?
Thanks in advance!
Steph
Stephan,
Either you have to fill manually or if you want automatically to be filled up then check this weblog:
/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
/people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload
Regards,
---Satish
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 -
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... -
Hi,
I realize an Abap mapping for "IDoc -> XI -> File" and I want to "play" with idoc segments and idoc fields...
Thus in my coding, I need to define some internal structures which are exactly the same than IDoc segments (e.g E2LFA1M for supplier).
Such a structure exists in R/3 (cf. tcode SE11), but this one does NOT exist in XI. It seems there is only the table IDXEDSAPPL with the list of all fields for one segment.
Is is possible to import and use directly this structure (e.g E2LFA1M) from R/3 to XI ?
or must I define manually in my code the same structure than in R/3 ?
Regards.
MickaelHi Mickael,
I have the same problem.
How did you solve this problem?
Regards
Elsa -
Message Mapping - IDOC to http
Hi ,
I am creating Message mapping for IDOC to Http scenario.
In which i have the following requirement. For a partner Role in segment E1BPDLVPARTNER we need to get the Address_No value
and then with that we need to get the address from segment E1BPADR1
<E1BPDLVPARTNER>
<PARTN_ROLE>AG</PARTN_ROLE>
<PARTNER_NO>0007745359</PARTNER_NO>
</E1BPDLVPARTNER>
<E1BPDLVPARTNER SEGMENT="1">
<PARTNER_NO>0007745359</PARTNER_NO>
<ADDRESS_NO>0000267775</ADDRESS_NO>
</E1BPDLVPARTNER>
<E1BPDLVPARTNER SEGMENT="1">
<PARTNER_NO>0007759123</PARTNER_NO>
<ADDRESS_NO>9000001048</ADDRESS_NO>
</E1BPDLVPARTNER>
<E1BPADR1 SEGMENT="1">
<ADDR_NO>000075</ADDR_NO>
<NAME>BRIDT HOSPITAL INC</NAME>
</E1BPADR1>
<E1BPADR1 SEGMENT="1">
<ADDR_NO>00775</ADDR_NO>
<NAME>BRIDGA</NAME>
</E1BPADR1>
<E1BPADR1 SEGMENT="1">
<ADDR_NO>05</ADDR_NO>
<NAME>BRIDL INC</NAME>
</E1BPADR1>
Can you provide inputs on this.
Thanks,
VishalFor the Address No 0007745359 in E1BPDLVPARTNER we need to go to the E1BPADR1 segment and get the address from
it and populate the target. Also the data above is test one
Me a bit confused about your requirement!
In your structure Partner_Number is having the value 0007745359
What i get is you have to check for PartnerNo in E1BPDLVPARTNER and if that value matches then go to E1BPADR1 segment and get the Address......but to go to a particular E1BPADR1 you need to check for some field within it.....
Your mapping logic will be something like:
PartNum/ AddrNum -->
--->equalS --->
Constant(0007745359)
----> And ----> IfWithoutElse ---> Target
Field_of_E1BPADR1 (validation logic) --> Then(Field_of_E1BPADR1)
Context of PartNum/ AddrNum to be raised and also that of Field_of_E1BPADR1 (the one on which validation is imposed.
If possible get some more details from your technical lead on how to select the E1BPADR1 ...
Regards,
Abhishek.
Maybe you are looking for
-
Creating Open Directory Replica fails with Server Admin Error Value 1127
Hallo, I have seen a lot of similar threads here and they were helpful up to a certain point, but in the end, they did not solve my problem. Currently, it comes down to this. The Server Admin Error message ist really meaningless and I could not find
-
How to downgrade firmware? (Zen Mic
Im a owner of a Zen Micro 6GB, V2.x... For some reason I have the same problem like all the other ME user and trying to downgrade my firmware. When ever I try to downgrade the following message stop me from downgrading "You player is not connected. P
-
IPhone4 - Stuck in Headphone mode
Ok, My iPhone4 is completely stuck in headphone mode. It was in my pocket today and it did get slightly damp (freaking rain). any-case, I really do not know what to do, I've tried using compressed air to blow into the jack etc, No luck. Restoring. No
-
I would like to delete some unwanted custom templates from numbers on my macbook pro. The info I have seen in previous discussions doesn't work for me. In particular, the iWork step is not there. What am I missing?
-
How do I reset or wipe my Macbook?
I want to give my older Macbook Pro to my daughter to use. How do I delete the former user's profile or reset to factory specs?