Mapping Queries-File to iDoc
Hi There,
I am working on File to iDoc scenario, I will be getting employee details in xml file and I have to create iDoc out of that which will create employee in SAP ECC6.
I have already mapped the fileds which are coming from xml file but I don;t know what to do with some of these fields,
BEGIN
EDI_DC40
H1HRSM_HEAD
..SEGMENT
..E1P0000
..E1P0001
I can not disable those fields which has a childs in use.
Please suggest.
Thanks,
Nishant
Hi All,
Thanks for your quick replies,
I am not mapping them with a constant because while loading that iDoc in SAP it must be expecting some specific value. I will be creating employee using the converted idoc so if I map any constant value to those fields will my program in SAP will work?
Thanks,
Nishant
Similar Messages
-
Java heap space error occured during message mapping of FILE to IDOC
hello Friends,
I am trying to do the message mapping for File to Idoc scenario.
Idoc which I am using is HRMD_A.HRMD_A06 and infotype which I want to update is 14. I am trying to map the message type which I hav created for infotype 14 with the IDOC
Its very simple scenerio but every time I try to save the mapping before activating it I get an error:
Java heap space
Internal problem occurred (INTERNAL_PROBLEM)
Java heap space.
I am not able to figure out what possibly is the problem wheather its from my end or the BASIS end.
Kindly help.
Regards,
LokeshAs the server probably survives (you restart your Integration Builder and can probably connect immediately), the problem will be on your side (client). Did you add one or more large xml-test-instances to the mapping ? If yes, delete them, because they lower the performance and can make problems. If not, then this is a strange problem. Even if the Idoc structure is complex, the mapping object itself cannot be that large.Is this problem only with this one mapping ?
CSY
Edited by: Christian Sy on Mar 9, 2010 6:26 AM -
Pass through scenario in SAP PI with no mapping for File to IDoc and Idoc to file scenarios
Hi Experts,
Can i have step by step process in SAP PI for pass through scenario with no mapping in case of file to Idoc and Idoc to file both cases please.
What objects i can skip.
My PI system is 7.3 dual stack.
I have seen below blogs, still its confusing to me.
When and how to create an scenario in SAP PI without mapping objects.
Pass Through Scenario with no Mapping in PI 7.1
Appreciate your help on this.
Regards,
Mohan.Hi Mohan
In pass thru interface you don't need to create any ESR objects, only ID objects are required.
Just Create a Receiver Determination and Receiver Agreement for your scenario (no need for Interface Det. and Sender Agreement).
Specify the IDOC in the Sender Interface and namespace as urn:sap-com:document:sap:idoc:messages
Or instead of creating objects manually, Run the wizard with Idoc name/namespace in sender/receiver interface
Regards
Osman -
TO MAP ANSIX12 FILE TO IDOC ORDERS04
HI ALL,
i HAVE A FILE WITH THE DATA IN ANSIX12 AND I HAVE TO CONVERT IT TO IDOC ..
CAN ANY ONE GUIDE ME.
THANKXhi ,
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 . -
Hi,
I have to implement a flatfile --> XI ---> IDOC scenario and I have a question about the mapping.
Suppose I have a Flat Fiel as following with the first 2columns as key:
100991;001;text1;posting date
100991;002;text2;posting date
100992;001;text4;posting date
100992;002;text6;posting date
I have to pass this items to a IDOC strucutured with header and positions.
By mapping how can I group key data to pass to single Idoc?
Thanks
marcoHi ,
I have done it with ORDERS IDOC Structure .
Since the source is a flat file you could take a simple structure with row and all the fields following it ( say filed1 , field2, field3).
Take a bottom up approach for the child :
Change the context of all the individual fields to the root then apply split by value on field3 ( this introduces context changes )
Then format its parents Queue (Field2) based on Field3 Queue for this use the function Format By Example .
Use the resulting queue as one of the argument and Field1 to generate the link .
Using Graphical this requirement is achievable . How ever it is upto your ease to choose which way you want to do it .
Thanks & Regards
Kavitha -
Mapping from File to IDoc with multiple Idocs and multiple line items?
Hi All,
Need some help with mapping, requirement as below: I have a flat file with multiple records, need to create multiple idocs per each separate order in flat file with as many line items.
Order_1 field-1 field-2 field-3 field-4
Order_1 field-1 field-2 field-3 field-4
Order_2 field-1 field-2 field-3 field-4
Order_2 field-1 field-2 field-3 field-4
Order_3 field-1 field-2 field-3 field-4
Order_3 field-1 field-2 field-3 field-4
I have imported IDoc changed to 1:Unbounded, able to create multiple Idocs based on separate order from flat file.
Order_No - removeContexts - splitByValue(ValueChanged) - collapseContexts - exists - creatIf - IDOC
Now I am having hard time creating a line item segment E1EDP01. I want to have Idoc created below way:
IDoc-1 (Order_1)
E1EDP01
E1EDP01
IDoc-2 (Order_2)
E1EDP01
E1EDP01
IDoc-3 (Order_3)
E1EDP01
E1EDP01
I am getting multiple IDocs created. Please help me to create mutlieple line items under each Idoc. Please be speficic about the node funtions to be used, because I tried many times with different combinations, didn't work.
Regards,
N@v!nHi Navin,
Create your source structure like below
<Order>1 to unbounded
<Order_No>
<field1>
<field2>
<field3>
<field4>
</oder>
to create mutiple IDocs based on order number,use below logic
Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)--->collapsecontext-->Idoc
use below logic for E1EDPO1,
Order----->removecontexts------>
formatByexample------>E1EDP01
Order_No-->removecontexts--->sort--->splitbyvalue(Valuechange)-------->
try above logic and let me know if you any issues.
Regards,
Raj -
Hello Experts,
I am new in XI ...
I have following issue with the mapping.
I have an input file in XI and I have to map it to idoc ACC_DOCUMENT.
Input structure: (no levels one flat structure)
bldat
blart
burks
budat
Pstkey1 = 1
kunnr
Amount1
Pstkey2 = 2
GLaccount
Amount2
Pstkey3 = 3
Vatcode
Vat amount
Postkeys must be mapped to idoc ACC_DOCUMENT segment E1BPACCR09. Three times once for posting key 1 once for posting key 2 and once for posting key 3 and with different fields mapped in case of posting key 1 I have to map amount1 when posting key 2 I have to map amount2 etc..
Can you please help me or give me some info on how to realize this mapping.
Thank you very much.
Best regards,
Daisy HeremansHi,
You only need to use the duplicate subtree when you want to have different mapping to the same repeating segment.
Right click on the object and say duplicate subtree.
Please see the below link:
http://tleterme.developpez.com/bw/how/MappingXI30.pdf
Regards,
P.Rajesh
Edited by: Rajesh_1113 on Jul 13, 2011 6:51 PM -
Header Mapping in File to IDoc
Hi all,
When do we go for Header mappin in File - IDoc scenario? How we can configure these steps in XI?
regards,
AnjaneyaHi Swamy,
Header maping can be used to determine the destination in the interface based upon any particular field .If the field is populated with the value then that value can be used for receiver determination to send message for example you have one file that can be mapped to any one pf the multiple IDOCs then based upon the header value you can determine the destination or the IDOC goin to be used
Regards -
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. -
ATTRIBUTE_IDOC_METADEATA Error: File to IDOC Java Mapping
I have done a Java Mapping from File to Idoc and I get the following error in sxmb_moni:
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
<SAP:P1>I::000</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Fehler: I::000</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
The Idoc structure that I generate in my mapping makes no fullfil of the IDOC tags.
For example:
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM/>
<MANDT/>
<DOCNUM/>
<DOCREL/>
<STATUS/>
<DIRECT/>
<OUTMOD/>
<EXPRSS/>
<TEST/>
<IDCOTYP/>
<CIMTYP/>
<MESTYP/>
<MESCOD/>
<MESFCT/>
<STD/>
<STDVRS/>
<STDMES/>
<SNDPOR/>
<SNDPRT/>
<SNDPFC/>
<SNDPRN/>
<SNDSAD/>
<SNDLAD/>
<RCVPOR/>
<RCVPRT/>
<RCVPFC/>
<RCVPRN/>
<RCVSAD/>
<RCVLAD/>
<CREDAT/>
<CRETIM/>
<REFINT/>
<REFGRP/>
<REFMES/>
<ARCKEY/>
<SERIAL/>
</EDI_DC40>
Should I complete these values in my mapping program?
Which values should I complete?
Thank You.Antonio,
you can ignore whole EDIDC Segement make disabled in our mapping still it works . but the problem is not with this is our meta data chekc in IDX2 t/c code of XI box.
it has some problem the strcuture you generate and R/3 accepts are not same their is mismatch in structure
Regards
Sreeram.G.Reddy
Message was edited by:
Sreeram Reddy -
Extension does not exist : File - XI - IDOC
Hello,
I have an IDOC MATMAS03 with an extension, so called
MATMASA03.ZMATMASX
IDX2 - metadata upload done more than once ! OK
mapping from file to IDOC: test ok (Name of Interface ZMATX.MATMAS03.ZMATMASX)
config: test of communication from file system to R/3 with IDOC payload: OK
Process running results in an error:
Attribute IDOC Metadata, Extension ZMATMASX does not exist.
System is running on SP14!
Does anybody here have experience with extensions in IDOCs or knows about this problem?
Lot of thanks for any help!
regards
DirkHi Dirk,
you can also have a look at idoc receiver channel
PORT: SAPXXX
is this the same port that you have your idoc metadata
downloaded in IDX2 ?
worth to check I guess
Regards,
michal -
File to IDOC (CREMAS03)
Hi Experts,
I am trying to load Vendor data in the R/3 system, I got stuck up when I am trying to do mapping between file and IDOC, how can get CREMAS03 Idoc into XI.... Please help
Thnx
RajHi Raj,
You have to import the metadata for SAP Interfaces(IDocs,RFCs) into XI Repository before you can use them in the mapping.
You can import the Idocs into your own SWC but as a best practice, these Idocs were imported into SWCs like SAP APPL, SAP BASIS etc. In this way there is no duplication of these Interfaces in multiple SWCs.
To Import the IDOC metadata
1) Edit the SWC.
2) Make sure you have the "import of RFC and Idoc interfaces from SAP systems permitted" radio button selected with connection data for the backend R/3 system.
4) In the SWC, on the left panel select the Tab "Imported Objects". Provide the connection data if asked for. Select the Idoc CREMAS.CREMAS03 and import it.
5) This imported Idoc will be added to the list of Idocs in "Imported Objects" Tab. Verify the structure of the Idoc before using that in your mapping.
Hope this helps.
Regards,
Sam Raju -
Mapping of Control records in file to idoc scenario
Hi,
In the mapping part of file to idoc scenario is it necessary to provide the exact control record details
or will it pick what ever is mentioned ? Can any one please explain regarding the same?
Many Thanks,
Sharathhi,
in case of apply control records from payload
It is indeed very simple to do it and the feature is available from SP10. I have seen lot of posts on the forum for the same and that is the reason for this blog. We can manipulate the control record in the mapping editor and map the EDI_DC40 segment of Idoc as required. Most of the times we need to map only SNDPRN, RCVPRN, SNDPRT, RCVPRT for posting Idocs with appropriate partner profiles in SAP R/3 destination systems. We can disable the rest of the fields as shown below. We need to manually change the control record of idoc for populating partner profiles in the control records while dealing with non-sap sender system, which will be used by receiver SAP system for posting idocs with appropriate ALE configurations.
check this blog
/people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload
regards
chandra -
Hi,
I am mapping a flat file to idoc in xi. If I execute the test data it works fine. But in actual run, it gave me the following mapping error:
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_MT_APPayment_to_FIDCCP02_: Runt
imeException in Message-Mapping transformatio~
Exception of class CX_XMS_SYSERR_MAPPING
Is it due to some mapping error or some basis config issue?
Thanks,
JassiHi Jassi,
This may be a mapping issue, try this:
a)in interface mapping see if grids are formed at source and target after executing the test option,
b)also take the xml of the idoc from sxmb_moni , copy it and paste it at the source of the mapping ( use the src tab now) and execute the mapping, is your file structute formed?
Check the following link:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Amaresh -
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.
Maybe you are looking for
-
Playing Counter Strike Global Offensive on Macbook Pro Retina 15"
Hello, I have a Macbook Pro Retina 15 2.3GHz 16GB ram. The moment I start to play the fans turn up and when I take a look at the processes looks like the game takes 100% of my CPU. Is this natural?
-
RSR_VARIABLE_F4_RESTRICT_BADI not working in Qua system after move
Hi Experts, i have a requirement to diplay the WBS elemnt based on the 0project on the screnn for this i have implemented the BADI RSR_VARIABLE_F4_RESTRICT_BADI for the 0WBS_ELEMT infoobject and its woring in Dev system. But when transported it i
-
SSLHandShakeException's fatal alert certificate_unknown
Trying to connect RMI SSL Client with RMI non-SSL Server with and getting following exception. How should i check SSLHandShakeException's fatal alert certificate_unknown in the code ? Also I am setting SSL properties(keystore, truststore, passwords)
-
Hi, All, I just installed BPEL Process Manager 10.1.2 and BPEL Designer 0.9.13. The eclispe I have is 3.1.2 for windows. I started BPEL Process Manager first, then I tried to start BPEL Designer, I got an error "Required Java Version 1.4.1 available
-
IMovie photos fail to appear in the video?
Why do some photos turn to black when inserted into the project? They fail to appear in the video. Instead, the ones before them replay.