IDOC- XI- file.txt
Hello everybody!
I have scenario as below.
IDOC->XI->file.txt
I must transfer my packing list from idoc to file txt. The file txt must have a lot of lines for several levels of packing.
I think to try to processing an IDOC message many times over.
How can I Make?
Or have you another idea?
Thanks a lot!
Hi Demetrio,
Please have a look at the below weblogs...i hope it will help you to solve ur requirement...
XI:Idoc Message Packages
/people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages
Collecting IDocs without using BPM
/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
IDOCs (Multiple Types) Collection in BPM
/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
Thanks,
Aravind.pujari
Similar Messages
-
Idoc to file(TXT) scenario
Hi all,
i'm working in a idoc-to file scenario. now its working fine and the file has been written in the target directory of the receiver .but its in xml format i need to store it in a TXT format.
In the receiver communication channel configuration i used file content conversion message protocal and also mentioned the FILETYPE as text and FILEENCODING as UTF-8. i maintained content conversion parameters also.
but still i'm getting the file in a XML format. it wouldbe very helpul if anyone could solve this one.
Thanks,
HariHi,
Its really surprizing the to see even after maintaining all the parameters you are getting XML output.
Can you verify the receiv er end structure of Message type
and refer
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Thanks
Swarup
Edited by: Swarup Sawant on Feb 22, 2008 1:15 PM -
IDoc flat file over AS2 adapter to IDoc adapter
Hi,
The scenario is IDoc flat file(.txt) over AS2 adapter to IDoc adapter. Could anyone help on how to convert the IDoc flat file to xml in AS2 adapter to execute the mapping further? we are using PI 7.0.
Thanks in advance!
-zameerHi,
Since you are on Pi 7.0, you would not be able to use the modules for this in PI 7.1.
You would need to refer this document for converting from Idoc flat to XML
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a?quicklink=index&overridelayout=true
In your sender AS2 adapter, you can pass the file as is to an abap mapping which will do the conversion to Idoc xml. the output of the abap mapping goes to your message mapping then for conversion.
Another option would be to use a custom adapter module in the sender AS2 adapter to call the Aabap mapping to do the conversion into Idoc xml.
The custom adapter module would do a JCO/RFC call which will do the conversion before passing the data back to the adpter module.
Regards -
How to convert Flat file(.txt) data to an Idoc format(ORDERS05)
Hi,
How to convert Flat file(.txt) data to an Idoc format(ORDERS05). If any FM does the same work please let me know.
thanks in advance,
Chand
Moderator message : Duplicate post locked. Read forum rules before posting.
Edited by: Vinod Kumar on Jul 26, 2011 11:11 AMHi,
For more information, please check this link.
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Have a look at the FM IDOC_XML_FROM_FILE. May be it helps...
Regards -
Hi XI friends,
its IDOC to file Scenario..
its daily scheduling report..if we run that report.....Number IDOCs are generated in SAP..
we have 5 legacy systems..
for one legacy systems file type is .txt file and for remaining xml files..
the catagarization based on one of the field in IDOC..
if that field is 01 the file type should be .txt file
for others xml file..
if that field is 01 then ..XI need to collect all the IDOCS into one .txt file for other values direct conversion into XML file i.e..each idoc gets into one xml file
if that filed is 01..then XI need to collect all the IDOCs in that day into single .txt file and the fileds are Fixed lenghts...and at the same time ..that idoc contains number of segments ..if any Idocs doesnt contain some segments..ther should be no more blank lines...each segment should placed in new row...and also..for some segements ..XI should collect into seperate .txt file....
please help me....how to achive,,,,,,
regards
Munna<i>if that field is 01 then ..XI need to collect all the IDOCS into one .txt file for other values direct conversion into XML file i.e..each idoc gets into one xml file
if that filed is 01..then XI need to collect all the IDOCs in that day into single .txt file and the fileds are Fixed lenghts...and at the same time ..that idoc contains number of segments ..if any Idocs doesnt contain some segments..ther should be no more blank lines...each segment should placed in new row...and also..for some segements ..XI should collect into seperate .txt file....</i>
in this case BPM will be required to collect the IDOCs ref: http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
base the correlation on the field that contains the value 01
also then later using XPATH in your receiver det. you can check for the value and route the message to the particular receiver as u want to
ref:
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers -
PI 7.4(Single stack) Idoc to file + additional done file
Hi All,
here the requirement : I want to convert Idoc to file in PI 7.4 (single stack) and send to FTP location with time stamp (eg: xxx_06082014123055.txt) and also need to create another empty file with same time stamp (eg: done_06082014123055.txt) after transferring xxx file. when the target system find the done file then it process the xxx file and deletes done file.
one way is I could create a 2 operation mapping and 2 service interface which will then configured in ID as two receiver interface mentioning 'maintain order at Runtime' pointing to same communication channel but the filename had to be created in UDF in mapping.
My question is , Is there any other alternative or better way to achieve this??
ur ideas pls....
ShaHi Sha,
You can use the multimapping concept, you will generate two messages and two files, with the second message only with its root element in order to create an empty file. Check these links to know more about the multimapping concept:
Multi-Mapping without BPM - Yes, its possible!
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1571?overridelayout=t…
Regards. -
IDOC to File Senario - Mapin error
Hi,
I am trying IDOC to File Senario using XI. I am stuck while message mapping.
I need to map IDOC : MATMAS.MATMAS01 (Material numbaer and Matrial description ) to File.
I have imported IDOC : MATMAS.MATMAS01 in IR.
Created target Data type/ message type/ message interface:
Target Data type structutre:
DT_Matdesc Complex type (Node)
Matno Element 0...1
Matdesc Element 0...1
Using graphical message mapping I am trying to map the the Fields from Idoc structure to Target structure, But I am geting Internal error. Can anyone help me out.
Waiting for the reply.
Thanks in advance.
Shweta.Hi,
I am not able to activate Message Mapping. On activation it gives below error.
Error:
Internal error while checking object Message Mapping MM_Matdesc1 | urn:namespace:santosh (TRAINING, VERSION 1.1 of ssingh); see details
Details Error:
Internal error while checking object Message Mapping
MM_Matdesc1 | urn:namespace:santosh (TRAINING, VERSION
1.1 of ssingh); see details (CHECK_EXCEPTION)
Internal error while checking object Message Mapping
MM_Matdesc1 | urn:namespace:santosh (TRAINING, VERSION
1.1 of ssingh); see details (CHECK_EXCEPTION)
Compilation process error : CreateProcess: null\bin\javac
-J-Xmx512m @D:/usr/sap/RXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map544be4d0b04a11dbb43e005056b72d1d/O1170151922621.txt
@D:/usr/sap/RXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map544be4d0b04a11dbb43e005056b72d1d/S1170151922621.txt
error=2
I am not able to trace out the error. -
Unable to do IDoc to File Scenario ; Please help me....
Hi Experts!!!,
I am trying to convert an IDoc to an .Txt or .Xml file, But I am un able to do it. Whenever I m trying to configure the Idoc adapter , it's not allowing me to select as "sender" (default it will be on the recvr side). Please help me in this regard.
Do I need to use RFC adapet, or BAPI instead of IDoc or any other way..to complete IDoc to File scenario...
THANKS IN ADVANCE!!!
Sunil K Shetty.HI,
No need to use Sender Idoc adapter , default , IDoc adapter resides on Integration Engine. No sender communication channel and sender agreement also
see the below links
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
Idoc settings https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
Regards
Chilla -
IDoc to File with different file name and data based on the IDoc header dat
Hi,
I got a requirement to implement IDOC to file senario. In this the Converted file should have the file name and file content based on IDoc Header data. Means If one of the IDoc header field value is
'A' - then the file name recieved by reciever system should be 'A.txt' and with the columns A B C D F.
'B' - then the file name recieved by reciever system should be 'B.txt' and with the columns C D F.
In both the case IDoc message type is same.
Please suggest me what i need to do to achieve this.
Thanks in Advance. ...
Regards
SriHi,
As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same. Each IDoc has one header record with the file name. Base on the name in the IDoc header record, file needs to be created with different columns and file name. Means..
IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent' 'child' 'descripion'.
IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No' 'Materail' 'Description'.
Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
Thanks for your all help..
Thanks & Regards
Sreeni -
Idoc-xi-file scenario. how to display file in html format
I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
In idoc-xi-file scenario....... how to display file in html format ??
Thanks in advance
KumarHi Vijayakumar,
Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
Regards
Kumar -
In idoc to file scenario, if XI system is down where do idocs pile up?
In idoc to file scenario, if XI system is down where do idocs pile up (get stuck)
what tcode can I use to reprocess it?Sender System ,Check BD87 .. you will see alll the IDOCs in Yellow state ..
You can reprocess all the IDOCs in go from there .. if only they are in yellow state ...
regards
PS -
FIle Content Conversion Problem in IDOC-XI-File Scenario
Dear All,
I am doing IDOC-XI-FILE scenario.
I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
The output xml version generated by Reciever file adapter is as below :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
</ns0:MT_SITE_MASTER>
Plz provide me the code I have to write in the file content conversion .
Thanks in advance
Regards
PrabhatIf u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier. Then use the Suppress Logic for the Current Date.
So it will look like this-
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
- <SITE_DATA>
<STORE_CODE>N002</STORE_CODE>
<TITLE_MEDI>Company</TITLE_MEDI>
<STORE_NAME>Mount Road</STORE_NAME>
<STREET>Chennai</STREET>
<COUNTRY>IN</COUNTRY>
<SALES_TAX_NO>12345678910</SALES_TAX_NO>
</SITE_DATA>
<CURR_DATE>
<CURRENT_DATE>20051105</CURRENT_DATE>
</CURR_DATE>
</ns0:MT_SITE_MASTER>
So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
CURR_DATE.fieldFixedLengths - 0
CURR_DATE.fixedLengthTooShortHanling - Cut
And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
Hope this solves ur problem.
Regards,
Moorthy -
Error/Doubts in Idoc-XI-File scenario
Dear All,
I am doing one scenario in which DELIVERY idoc is posted from R/3 to XI and then from XI that idoc is to be sent as flat file to one local folder.
For this scenario, I have done all ALE settings and I am able to see the idoc in XI in cXML format.Now I want to sent it as flat file.
Now, for doing this I created 2 BS & 2 TS. 1 BS & TS of type Third Party for receiver & 1 BS & TS are of type Web as ABAP for sender. Then I have created one namespace in IR. I have not created any DT, MT, MI, MM becoz the structure of source and target file are same. Now, I created one IM in which I specified specified Type as "ABAP Class" & Mapping program name as one of the Z function module as specified in one of the SAP Guides.
Then in ID, I created 2 Parties ie. one for Sender & one for receiver. Sender is having a communication channel of type Idoc & receiver is having communication channel of type File. And thn further Receiver Agreement, Inetrface Determination, Sender Agreement & Receiver Agreement are configured.
In my system there is one scenario already configured which is using Delivery idoc so I have used party in my scenario for both sender & receiver.
Now, when I am sending the idoc from R/3, I am able to see cXML in SXMB_MONI but it is taking receiver as the one which is defined for the already existing scenario but not the receiver defined by me.
Can anybody guide if I have followed the correct steps & where I am doing the error.
Warm Regards,
N.JainHi ,
Plese refer the following blogs ,
IDoc to File
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
You have to do all this settings mentioned in the docuemnt:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3%28Idocs%29ToXI--Steps+Summarized&
Also can you check this weblogs on the same:
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
/people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
/people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
Thanks ,
Suvarna
Award pts if it helps . -
Integration server as logical system in IDoc to file scenario
Hi,
Will we configure integration server as logical system in IDoc to file scenario or the RFC destination related to the port will be suffice?
For which logical system will the outbound partner profile configured?
Regards,
Gajendra.Hello,
I feel that the RFC destination linked to the port is the key here.
Because the scenario (IDoc to File) works in both the cases:
Case 1: Used the logical system as Integration server
Case 2: Used the logical system related to the file (third party) in the SLD.
In both the above cases the RFC destination points to the integration server.
Is this the case that in the XI scenarios (where IDoc are sent) the logical system name in the partner profile is just dummy and has not much significance??
It is the port that matters and once the Idoc reaches XI the routing takes place based on the configuration in ID.
Thanks.
Regards,
Gajendra. -
How to suppress the Acknowledgement Error in IDOC to File scenario?
Hi -
I got the status in SXMB_MONI as 'Processed Successfully' for the IDOC to File scenario but the Acknoledgement status throws an error saying 'Acknowledgement not possible'.
I read one of the documents in the forums on how to suppress the acknowledgement using a table on R/3 side using IDXNOALE,
i tried that option but i still get the 'Acknowledgement not possible' error.
Is there any other way to suppress this error?
Thanks,
TirumalHi Tirumal,
Receiver adapters that run on the Adapter Engine support system acknowledgments if they are requested by the sender. Acknowledgements are triggered when a message is successfully processed by the adapter or if an error occurs while it is being processed. Receiver adapters do not support application acknowledgments. The RNIF and CIDX adapters are exceptions to this rule, since they also support scenario-dependent application acknowledgments. Sender adapters of the Adapter Engine do not request any acknowledgments.
This means, JDBC adapter does only send system acks, however IDoc adapter is requesting application acks. Therefore as mentioned by the previous poster, you have to disable acks for this scenario using report IDX_NOALE.
Also go through these documents for any further help:
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how to handle acknowledgments for idoc.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
Regards,
abhy
Maybe you are looking for
-
How to use sqlldr for loading data in Oracle 10g xe.
I want to load data using SQL*LOADER in Oracle DB from a .csv file but it doesn't seems to be working can anyony please help me.I am not get getting how to use sqlldr. in CMD in giving this command sqlldr hr/hr control='c:/data/record.ctr' record.ctr
-
How do I change the line spacing in DW CS5?
My problem seemed so simple to start with. All I want to do is create a single line space in DW. When I press "Enter" at the end of a sentence I want DW to go the the next line and not start a new paragraph. I just want one line space not a double pa
-
Would not let any browser start,so have uninstalled firefox 6 and can now get on google chrome.
-
Beginner with a programming problem
I am getting quite frustrated trying to figure out how to proceed with a Java program I've been assigned. I'm hoping that my problem is not too amorphous to warrant assistance. The program is an exercise in Swing and creating GUI's, and at this stage
-
i have a master-detail form. before i save the master detail form i need to know how many details (total number of detail records) does the master has and accordingly call a function. is there any way thru' which i can know the count of the number of