R/3(Idoc)-XI-R/3 (Idoc)
Hello,
I'm having some issues with sending IDOC from one system to another system via XI. Both of these systems are R/3 6.20.
I've pasted the trace output. Can someone please help me identify the problem.
Thanks
Mohammed
<Trace level="1" type="T">Get Information from SD-IDoc-Endpoint</Trace>
<Trace level="2" type="T">----
</Trace>
<Trace level="2" type="T">IDoc-Endpoint Channel :</Trace>
<Trace level="2" type="T">RFCDEST : DVHCLNT013</Trace>
<Trace level="2" type="T">Port : SAPDVH</Trace>
<Trace level="2" type="T">Docrel :</Trace>
<Trace level="2" type="T">Version : 3</Trace>
<Trace level="2" type="T">Saprel : 620</Trace>
<Trace level="2" type="T">Queue-ID:</Trace>
<Trace level="2" type="T">----
</Trace>
<Trace level="1" type="T">Get IDoc-XML from the Resource Objekt</Trace>
<Trace level="1" type="T">----
</Trace>
- <Trace level="1" type="B" name="CL_IDX_IDOC_RESOURCE-GET_IDOC">
<Trace level="1" type="B" name="CL_IDX_IDOC_RESOURCE-BINARY_TO_ITAB" />
<Trace level="1" type="B" name="CL_IDX_IDOC_RESOURCE-FILTER_SEGMENTS" />
- <!-- ************************************
-->
<Trace level="2" type="T">----
</Trace>
<Trace level="2" type="T">IDX_STRUCTURE_GET Details</Trace>
<Trace level="2" type="T">Port : SAPDVH</Trace>
<Trace level="2" type="T">IDoctyp : COSMAS01</Trace>
<Trace level="2" type="T">Cimtyp :</Trace>
<Trace level="2" type="T">RFCDest :</Trace>
<Trace level="2" type="T">Release :</Trace>
<Trace level="2" type="T">Version : 3</Trace>
<Trace level="2" type="T">Direct : 2</Trace>
<Trace level="2" type="T">SAPREL : 620</Trace>
<Trace level="2" type="T">----
</Trace>
</Trace>
</Trace>
</Trace>
- <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST">
<Trace level="3" type="T">No persisting of message after plsrv call, because of config</Trace>
</Trace>
<Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
- <!-- ************************************
-->
<Trace level="3" type="T">Persisting message Status = 014</Trace>
<Trace level="3" type="T">Message version 002</Trace>
<Trace level="3" type="T">Pipeline CENTRAL</Trace>
</SAP:Trace>
Hallo Mohammed Amerali,
i have the same Szenario and the same error message. Have you solve the problem yet. If there is an answer please let me know. Thank's
Ulrich Adler
Similar Messages
-
Get IDoc-number from flat IDoc using dynamic configuration
Dear experts
In an IDoc2File scenario I have added the IDoc-number to dynamic configuration using the folling code in an UDF:
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","DOCNUM");
conf.put(FileName, a);
The information is stored in the SOAP message
<SAP:DynamicConfiguration SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="DOCNUM">0000000000012345</SAP:Record>
</SAP:DynamicConfiguration>
Can anybody tell me how I can access this information in the "variable substitution" section of the CC? Perhaps something like "message:docnum"?
Additional information:
Taking the IDoc-number from the payload using e.g. "payload:ORDERS05,1,IDOC,1,EDI_DC40,1,DOCNUM,1" does not work, since the XML-IDoc has been converted to an flat-IDoc.
Thanks in advance for any good ideas
MarkusDear Rodrigo and Sarvesh
Thanks for your help so far! I applied your hints and now it is working fine.
But now I have the following additional questions
1.) My message mapping only maps the input IDoc to an output IDoc of the same type and structure. The MM is only required to process the UDF. Is there another, better solution to achieve my requirement that the IDoc-number shall be part of the filename?
2.) In the CC you have the possibility to use temporary files (section "Processing", Option "Put File" = "Use Temporary File". I think this will not work with the given solution, will it?
To possibly help somebody else or clarify the mechanism once again, I wrote down how my solution now looks like.
My UDF in the message-mapping looks like this
- Input = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
- Outpt = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
- UDF:
public String putDynamicConfiguration(String docnum, Container container) throws StreamTransformationException{
try
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String filename = "Prefix_" + docnum + ".txt";
conf.put(key, filename);
return docnum;
catch (Exception e)
return docnum;
In the CC the settings are now as follows
File Name Scheme = . -> only a dot or something else, because this field is obligatory, even if it is not used in this case.
Variable substitution (...)
Enable -> unchecked
Adapter-Specific Message Attributes
Use Adapter-Specific Message Attributes -> checked
Fail If Adapter-Specific Message Attributes Missing -> checked
File Name -> checked
Directory, File Type, Temporary Name Scheme for Target File Name -> unchecked
When I send an IDoc to PI and view the Adapte-Engine Version of the message (the SOAP-document, not the payload) I can find the Filename:
<SAP:DynamicConfiguration SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">Prefix_0000000000012345.txt</SAP:Record>
</SAP:DynamicConfiguration> -
Hi,
I have a requirement wherein we have to read the IDOC flat file and post it as IDOC to SAP using XI. I understand we have to use the Flat File Sender adapter and the IDOC Receiver Adapter. On the Sender Side we have to define the Content Conversion to convert the IDOC Flat File to IDOC XML. Writing File Content Conversion for the IDOC Flat File would be very tedious because of the number of fields and fixed structure of the flat file.
I have don through the following guide Section 3.2 where it talks abt converting IDOC to IDOC XML using reportRSEINB00.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20convert%20between%20idoc%20and%20xml%20in%20xi%203.0.pdf
I am not clear how to invoke this report in the Flat File Sender adapter. Also is there any other approach.
Thanks
Rajeev GuptaHi Rajeev
You have a flatfile at the sender side so you dnt have any feasiable option to do other than FCC....FCC is not a tediuos one...if you can provide the strucutrre we will help you out...
Check out you have a fixedlength file or piple separated one....
In the functional design how many fields re present and buil the DT,MT MI accoprdingly.....
you have to just use some conecnt conversion parameters that's it...
item.fieldSeparator
item.endSeparator
item.fieldNames
here item is your recordset name
let us know your strucutre
regards
Nisar -
IDOC-File - records in Idoc to file based on some condition
Hello experts,
I have a idoc to file scenario. the incoming Idoc can have multiple records in it and i have to map these records to a csv file. Now the problem is not all records has to be mapped to the file. Based on the value of a perticular file (which is not root), i need to decide if the entire record has to be processed or not. Like the idoc structure is say:
IDOC
E1WPA01 0....9999
E1WPA04 0...99
KONDART 0..1
Now for all valid E1WPA01 where the value of KONDART equals to some spacified value (known) , there has to be one record in the target csv file.
How can this be done at the root level?
One way of doing is we give empty values in the target file where the condition of KONDART is not fulfilled. Say if there are 10 records of E1WPA01 and only 4 satisfies the condition, we will ahve 10 records in the output file but only 4 records will have value and the rest 6 will be blank like (,,,,,,,). But I dont want this. I want only 4 records in the output file.
I tried mapping like this:
E1WPA01----
>Advanced -
> Root
E1WPA04-KONDART---->UDF
The problem i am facing here is if 4 records fulfill the condition, the first 4 are taken and the revelent 4.
Please help.
Regards,
YashHi Chirag,
I wrote the following code in UDF:
for(i=0;i<a.length;i++)
if(a{i}.equals("Specified Values"))
result.addValue("a{i}");
else
result.addValue(ResuktList.SUPPRESS);
And its working partially. I mean the queue of the UDF looks like
1. AAAA SUPPRESS
2. <Specified value> <Specified value>
3. AAA SUPPRESS
4. AAA SUPPRESS
5. AAA SUPPRESS
6. AAA SUPPRESS
7. <Specified value> <Specified value>
8. AAA SUPPRESS
9. AAA SUPPRESS
and it creates 2 ROOT nodes. But the root nodes are created for line 2 and line 8 insteed of 7.
What can be problem??
Yash -
IDOC Serialization(EOIO) using IDOC Adapter throwing Mapping error
Hello SDN Gurus,
The scenario I am working on is IDOC(PAYEXT & EUPEXR) --> XI (ABAP Mapping) --> Flat File (IDOC Structure).
The IDOCS produced in Appl system may be in the following order
PAYEXT
PAYEXT
EUPEXR
PAYEXT
PAYEXT
PAYEXT
EUPEXR
I need them to be processed in the same order into flat file.
The scenario is working good except for the serialization. So I did the following
Created two entries in IDXQUEUE one for each message type with the same Queue name in XI system.
Created a new rule for the queue and an associated function module. Used this rule in partner profile for both the message types. I used the following link to create the above two steps.
/people/community.user/blog/2006/11/04/how-to-serialize-idoc-xml-messages-fed-into-xi
The SAP system in based on WAS 6.4.
I can see the queue name & EOIO in the inbound message header.
I am getting a mapping error in ABAP program. If I inactivate the queue(in Appl system SAP ECC), I don't get any error.
Does anybody had this problem earlier? Please advice.
Thanks
Srini VaidyamI found an OSS note to resolve my issue. The note number is 1057573.
Whenever the queue is activated, the sender system will not send the <TABNAM> field value in EDI_DC40 structure. This note addresses this problem.
I found out this by comparing the results from SXI_MAPPING_TEST individually for the message that failed after queue is activated and the message that was successful if the queue is inactivated.
Only thing I noticed now is even if you selected the radio button "Trasfer Immediately" in Partner profile of Appl. system, the messages are not sent. They are getting collected. So we need to manually push them out using WE14.
This forum Rocks.
Thanks.
Srini Vaidyam -
I am receiving flat file in SFTP Server which need to be posted into SAP (No mapping involved)
What will be the best approach ?
1. I tried using IDOCFlatToXmlConvertor (The limitation in the format of source file. The parent and child node relationship should be explicitly mentioned in IDoc flat file which legacy system is not able to do) - Any workarounds ?
2. I moved the Idoc flat file into SAP application server. Now need to schedule job using program RSEINB00
3. File Content Conversion
Any other better solution ? Appreciate your help.
Thanks and regards,
Jose AugastineFor converting Idoc Flat file to idoc xml, ABAP mapping is one of the feasible option.
-
EDI / IDoc : While posting inbound IDocs, IDocs gets into status 56
EDI / IDoc : While posting inbound IDocs, IDocs gets into status 56 with message "EDI: Sender port in control record is invalid".
But if I reprocess the same idoc without doing any changes using RBDINPUT and select radio button to processs idocs for status 56, then it gets successfully posted.
So not getting why this stucks for the first time.
Thanks in Advance..........i fixed this my self
-
Error: Idoc name IDoc cannot find request IDoc in Integration Server
Hi,
I am getting an error while working on a scenario.
scenario is Idoc to file. when the Idoc is posted, i am getting the error "ALEAUDIT IDoc cannot find request IDoc in Integration Server" when i see the status in SXMB_MONI
I have tested the message mapping and configuration induvidually. They are working fine.
Kindly help me out in solving this issue.
please replyHi,
The AleAduit sent in the case of Idoc to File if the file is posted successfuly is not actually a App Ack, and that is why we get the info Ack not possible.
But, as the R3 might expect this Idoc, XI still sends it back to the Source R3 system.
Regards,
phani -
ABAP Report for IDOC data of perticular IDOC basic type
Hi,
I have requirment to create report to display the IDOC Data of the perticular IDOC type.
However I believe in IDOC the data comes in raw format.
Is there any standard TCODE wherein we can have IDOC data of perticular IDOC type.
or Could you please let me know how is it possible to retrieve data from IDOC using SAP ABAP .
Thanks
Vinay
Moderator message: (almost) duplicate post locked.
Edited by: Thomas Zloch on May 2, 2011 12:39 PMHi,
Please find a sample code
* Build Control records
CONTROL_RECORD_OUT-MESTYP = MESTYP.
CONTROL_RECORD_OUT-IDOCTP = IDOC_TYPE.
CONTROL_RECORD_OUT-RCVPRT = 'LS'. " << Fill the receiver port type US/LS
CONTROL_RECORD_OUT-RCVPRN = LOGSYS.
* Build Data records
*--- EDIDD40 data Here if you have multiple items then make a loop
loop at i_itab. " i_itab contains the details about EDIDD40 fields
IT_EDIDD-SEGNAM = SEGMENT. " Will be EDIDD40
IT_EDIDD-SDATA = i_itab.
*--- Append the data
APPEND IT_EDIDD.
endloop.
aRs -
ALEAUDIT IDoc cannot find request IDoc in Integration Server
Hi,
i m working with a scenario SAP ECC 7.0 -> IDoc -> PI -> IDoc -> R/3 4.6c
I m sending a purchase order (ORDERS.ORDERS05) from SAP ECC and i want to receive an acknowledgment from R/3. Unfortunately there are only zeros in the field E1ADHDR / E1STATE / DOCNUM, this leads to the error "ALEAUDIT IDoc cannot find request IDoc in Integration Server" on PI.
Does anybody know what to do in the R/3 system to send the original IDoc number in E1STATE / DOCNUM?
XML Source of the ALEAUD received at PI:
<?xml version="1.0" encoding="UTF-8" ?>
<ALEAUD01>
<IDOC BEGIN="1">
<EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>100</MANDT>
<DOCNUM>0000000004307392</DOCNUM>
<DOCREL>46C</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
<IDOCTYP>ALEAUD01</IDOCTYP>
<MESTYP>ALEAUD</MESTYP>
<SNDPOR>SAPQV1</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>QV1CLT100</SNDPRN>
<RCVPOR>A000000022</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN>QXC100</RCVPRN>
<CREDAT>20090605</CREDAT>
<CRETIM>111523</CRETIM>
<SERIAL>20090605111521</SERIAL>
</EDI_DC40>
<E1ADHDR SEGMENT="1">
<MESTYP>ORDERS</MESTYP>
<MESTYP_LNG>ORDERS</MESTYP_LNG>
<E1STATE SEGMENT="1">
<DOCNUM>0000000000000000</DOCNUM>
<STATUS>53</STATUS>
<STACOD>SAPV1311</STACOD>
<STATXT>&1 &2 wurde gesichert</STATXT>
<STAPA1>Terminauftrag EX</STAPA1>
<STAPA2>2510016042</STAPA2>
<STATYP>I</STATYP>
<STAMQU>SAP</STAMQU>
<STAMID>V1</STAMID>
<STAMNO>311</STAMNO>
<STAPA1_LNG>Terminauftrag EX</STAPA1_LNG>
<STAPA2_LNG>2510016042</STAPA2_LNG>
<E1PRTOB SEGMENT="1">
<DOCNUM>0000000004307353</DOCNUM>
<OBJTYPE>BUS2032</OBJTYPE>
<OBJKEY>2510016042</OBJKEY>
</E1PRTOB>
</E1STATE>
</E1ADHDR>
</IDOC>
</ALEAUD01>
Regards,
UdoHi Volker,
yes, that was the right hint
I needed to change the RCVPRT field to LS to force the receiving system to send the ALEAUD with original number at the right place. Strange reaction, but it is SAP software, he, he.
Regards,
Udo -
IDoc Split to different IDocs!!!!!!!!URJENT
Hi
Is there any possibility to split the IDoc ?
We have a scenario like - Header without any data - Segments with the data - trailer segment with the details of the segment count and parent idoc details.
We received one Inbound IDoc with 20000 segments.
While processing the IDoc, because of the huge data it is going to dump with low memory issue.
Is there any possiblity to split the segments into seperate idocs...in WE19 we can cut down the segments and create seperate idoc but count is very high we are not able to identify the numbers count.
Is there any other way we can process the IDoc splitting into different IDocs.
VVR
FICO ConsultantHi Vuppala,
CAn you please help how u split the IDOC.
I have ARTMAS IDOC and as there is huge data i need to split it.
Can you please help
Thanks,
Akriti -
Examples needed for Idoc to file and IDOC to web services
Hi ,
Could any one of you give some examples which take me through step-by-step in building IDOC-TO-FILE and IDOC-TO-WEB SERVICES?
Regards,
XI Developer.Hi,
For IDOC scenario you need to first do the required configuration:
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
Testing purpose u can use the below method:
IDOC testing using WE19
/people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters --> For Idoc sender: IDOC -file
IDOC configuration:
Please follow the below process for configuration:
Pre-requisites for Inbound IDoc to R/3 from PI:
Configuration required at Xi side:
Go to IDX1: configure the port.
Go to IDX2: load the DOC metadata.
Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
Configiration required at R3 side:
Maintain Logical System for PI (SALE transaction):
Maintain Partner Profile for XI system(WE20):
Pre-requisites for Outbound IDoc from R/3 to PI:
Configurations required in R/3:
Maintain Logical System (SALE)
Define RFC Destination (SM59) which points to PI system
Maintain Port (WE21)
Maintain partner profile. (WE20):
Maintain Distribution Model (BD64):
File To IDOC - Part1 (SLD and Design):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
File To IDOC - Part2 (Configuration):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
File To IDOC - Part3 (Steps required in XI and R3):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
SOAP scenario:
YOu have to first create the WSDL through ID and import that WSDL in to IR external definition.
Refer the below thread and pdf:
How to use SOAP adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
SAP AII - How to consume and expose webservices ?
Thnx
Chirag
reward points if it helps. -
"ALEAUDIT IDoc cannot find request IDoc in Integration Server" error in PI
Hi Experts,
i am getting error "ALEAUDIT IDoc cannot find request IDoc in Integration Server" and
<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_NO_REQUEST</SAP:Code> in PI .
i am using ALEAUD.ALEAUD01 IDoc in my scenario.
i found two threads in SCN (scn.sap.com/thread/1370194,scn.sap.com/thread/1132815)but still i did not understand clearly for this issue .
Please clearly expline the solution for this issue in this thread ,i will give you points who post the correct solution.
Please send me solution for this issue clearly.
see the below payload also.
Thanks,
Aadithe same problem
"ALEAUDIT IDoc cannot find request IDoc in Integration Server"
Could someone help with it? -
IDOC (finsta) -- XI--- (finsta) IDOC
Hello experts!
I have the next landscape
IDOC (finsta) >XI-> (finsta) IDOC
These different scenarios have to exit because one Business system has 3 different names functional politics
CORP =MT00=MT01 PEP=MT01=MTN1
The first scenery work correctly, but I dont know how to make a copy from the IDOC to it self by the time xi send to an other organism
1.-
CORP >XI-> PEP condition PMXP
CORP >XI->CORP (return) condition PMXC
2.-
MT00>XI->MT01 condition MT01 at the same time has to make a copy to itself
--->MT00 (return)
3.-
MTN0 >XI-> MTN1 condition MTN1 at the same time has to make a copy to itself
--->MT00 (return)
THANKS...
Edited by: LETY REAL on Feb 21, 2008 1:35 AMHi,
I am not sure with your requirment but probably you could create three different scenarios in Integration Scenario.
There are 3 Business systems available on sender as well as receiver side.
So whenver you will be pushing the IDOC you need to process it for three Busines systems seperatly. There is no option for it because at the time of Outbound processing Function module you need to pass the Business system name whih is always single one.
Just call the same function module repeatative for other Business systems.
On Receiver end also configure the Inbound processing seperatly for all 3 Business systems.
In XI, you can use same objects of IR but in ID you need to create 3 scenarios for it.
To be honnest its of waste development because you will be re-creating same scenario just for maintaining 3 Business systems ....don't know but that could be the disadvantage of.... functional politics
Thanks
Swarup -
How to create an inbound Idoc from an inbound IDoc in same client
How to create an inbound Idoc from an inbound IDoc in same client
Idoc will come from XI as an inbound idoc to SAP, now I have to read this inbound Idoc and split it into Several Inbound Idocs and now needs to be posted in the same client.
please let me know the procedure..
Thanks in advance,
SagarHi Sagar,
Develop a cusom Z-Inbound function module, configure the Z-FM to trigger when idoc is recieved from XI. In your Z-Inbound function module split the idoc (Recieved from XI) into respective Idocs and Using MASTER_IDOC_DISTRIBUTE post the IDOCs into the same system.
Thanks & Regards -
Idoc WPUWBW: Status 51 - IDoc not fully processed
Hi All!
Hi All!
This is regarding Goods Moment.
In Quality, Idoc is successfully generated at POSDM system and also in ECC system.
In Production, Idoc is successfully generated at POSDM, but in ECC it is failed (Idoc WPUWBW: Status 51-IDoc not fully processed).
So, at WPER it is showing as In deficit of stock. But stock is available.
Kindly suggest me how to close this issue.
Note: PFA Below. Its the screenshot of the error at WPER.
With Regards,
Yarnagula Sudhir.Dear Venu
Difficult to answer with this limited information. If you share some more info will be easier to help
regards
Manish
Maybe you are looking for
-
Mac running slow - Not loading web pages
Something is wrong with my Mac. Out of the blue, over the last few days, it is running extremely slow. Web pages won't load or if they finally do it takes forever. The little spin wheel just keeps going. Sometimes a page will load after a very long
-
Card Reader not working for HP 20 All-in-One
I have an HP 20 All-in-One PC and have bought two All in one card readers that use the USB slots to connect with the PC. Neither work though which is very frustrating! Nothing happens apart from the light comes on in the card reader.
-
Hi, I've a little question about probe value when creating a probe script. Exit code 100 (automatic failover) means that the probe is not valid and it should restart during the rety-count in the retry_interval, Exit code 0 means that everything is OK
-
Hi, Currently we have a custom devoloped Java application deployed in oracle iplanet webserver 7 with JDK 1.6. I am receiving the below errors. The application is not stable. It gives a 500 internal error sometimes when browsing. When i checked the e
-
HT2404 what is the lastest software version my computer can download?
if i have a mac book is the lastes software i can download 10.5.8