IDOC to FIle (FCC)
Hi friends,
In Real time where we will normally use IDOC to File (FCC ) Scenario.
Could any one give some instance of this.
Hi,
>>>>In Real time where we will normally use IDOC to File (FCC ) Scenario.
whenever the receiver system can only handle flat files
or when the company is which we work tells us to do so
these are the only two scenarios when we will use FCC
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>
Similar Messages
-
Hi Friends.
Scenario is in PI 7.0 . IDOC is received from SAP and after file content conversion placed in file server.
Suddenly few days back it started throwing error in receiver file FCC communication channel - error is -
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value ' ' too long (>3 for 27. column) - must stop', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value ' ' too long (>3 for 27. column) - must stop', probably configuration error in file adapter (XML parser error)
but the same scenario with same inputs (same payload,same IR and ID configuration) works fine in development environment.
in SXMB_MONI message shows as SUCCESSFUL and payload is also OK.
Pls suggest what to do in this case..Hi,
This is happening because - if there is any empty tag coming from source then target structure tag will not be created and because of which ur payload structure and FCC configuration is not matching.
I would recon use map with default between source n target strcture so in case source tag dont have value target structure will be created because of mapwithdegfault fuction and ur FCC will not fail.
Open SXMB_MONI output payload and compare the structre with Data type u will se for no source value target tag is not created at all and FCC is failed.
For exa- I ahve name,age,*** as my target data type and FCC is 10,3,4
If i dont receive age from source the value of *** is taken as 3 length as per FCC becus age tag is not created in target.
chirag -
FCC in receiver side in idoc to file scenario
Hi all,
I am doing an idoc to file scenario using FCC .I am using FCC in receiver side ,but i am getting my output file in only one line while i want structre to be seprated by new line.for more information i am giving muy file structre.
Record
header(1to1)
data (0 to unbounded)
footer (1to 1) header, data, footer are three structre which contain various fields.I have to use fieldFixedLengths as filed separator. I am also using endseperator as 'nl' but its not coming in new line.Please share ur views on this issue.
Regards
Nehahi neha,
In your scenario
Recordset Structure header,data,footer
header.fieldFixedLengths = 1,2,3, whatever it is
data.fieldFixedLengths = similar to header
footer.fieldFixedLengths = similar to header
header.endSeparator = 'nl'
data.endSeparator = 'nl'
footer.endSeparator = 'nl'
I guess you dont have to do any thing else.
Regards
Pushkar
Message was edited by:
Pushkar Anand -
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 -
Hi,
I want to create idoc 2 file scenario with out any Transformation.
In that case how/what to create Data type for receiver.
I want to receive the same idoc in the receiver folder/Directory (like XML file) with out any transformation.
Thanks
RubanHi,
For this scenario you need to create the Data type structures as similar to IDOC type and just have to transfer to file without FCC.
It will transfer the IDOC data as it is in XML format
refer
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
/people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/error%2bhandling%2bin%2bfile-idoc%2bscenario
(Just avoid using FCC conversions on receiver file adapter in above scenarios)
Thanks
Swarup
Edited by: Swarup Sawant on Mar 24, 2008 6:15 PM -
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 -
IDoc to file - how to delete a blank record at the end of the file.
Hi,
My senario is IDoc to file. I have successfully implemented this using FCC. But when i checked the flat file, it has a blank record at the end of the file( i think PI adds one blank line/record at the end of the file). Please suggest me What i need to do, to delete the blank record .
Thanks & regards
SreeniKindly Check below.
Check whether the problem is at mapping level of adapter level.. to do this count no. of rows/IDOC before mapping and after mapping in IE and no. of rows in the output file.
Thnx
Subbu -
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 -
Hello People,
Just a very good problem, to put your brains work.
The senario is Idoc to File.
Now Suppose the structure of IDoc is in such a way.
segment1 - fields A, B, C, D --- >> Single
segment2 - fields E,F --->> This segment can come multiple times.
segment3 - fields G, H -
>> Single
segment4 - filds I, J, K -
>> Multiple.
Now the format of the file is Fixed Length.
The record will be inserted Row wise.
Let us assume that the number of segments are.
segment1
segment2
segment2
segment3
segment4
segment4
All segments are at the same level.
Example of file :-
A B C D E1 F1 G H I1 J1 K1
A B C D E2 F2 G H I2 J2 K2
So please let me know, what kind of structure should i create in my repository for the Target and also let me know , the File content Conversion part ..
Thanks in Advance.
Harpreet.hi,
Repeat the row for each segment and in the (i)th iteration of the map it to the (i)th segment from the input. Now in your FCC, it will be like writing a normal fixed length conversion.
For e.g. you target structure will look somewhat like this.
Document
Recordset
Record(i)
FieldA
FieldB
FieldC
FieldD
FieldE(i)
FieldF(i)
and so on....
Cheers,
Sarath.
Award if helpful. -
Hi all,
iam doing file to idoc format
I have file which is in idoc format . file 3 segements
contol reacord ,header , item .
EDI_DC40 2 WMMBID02 WMMBXY ABC LS KWE SAPT02 LS THT02100 20040727143536
E2MBXYH001 000001000000012004072620040727D/N.20040727-014NCR.20040727-005 INV.20040727-111 MIGO
E2MBXYI001 00000200000102 ABC 101 7.000 450009131110 B
E2MBXYI001 00000300000102 ABC 101 4.000 450009131130 B
Please tell me what are the FCC parameters which i need to set .
how can i ingore control record
Thanks,
SridharBuild your MT for this file without control record details in the strucutre, if you want to keep it in strucutre make sure the occurence will be 0-unbounded
your MT would be sometinglike this
MT
ContolReacord
Header
Item
Now
Header.filedNames
Header.endSeparator
Header.fieldSeparator
Header.KeyfieldName
Header.KeyfieldValue
Specify the fieldname and value with which you are identifing the Header row in the txt file.....
repeate the following for Item....
Basically you are reading the records only for header and Iteam with this and skipping the control record data, but for this you need the keyfieldname and value to identify the value.
you can also read th data for control record also but dnt use that in mapping.... -
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.
Maybe you are looking for
-
Open password protected pdf using c
open password protected pdf using c#... we will be providing a pdf path & also its password.. we need to open it in browser without it asking for password.. Can this be done.??
-
Changing Dimensions of spry horiz menu: problems
You change the dimension of menu items by changing the width properties of the menu item's li and ul tags. Locate the ul.MenuBarVertical li or ul.MenuBarHorizontal li rule. Change the width property to a desired width (or change the property to auto
-
How to access old Web sites that exist in iDisk Sites folder
I have old personal Web sites that still appear to exist on my iDisk, under Home>Sites. But if I can't remember their URL, how do I access them? It seems that if I can see them on iDisk, there ought to be some sort of option to access them or to find
-
Setting up monitering and alerts OAS 10.1.2.0.2
Hi I have oracle application server 10.1.2.0.2 installed. I have a single OC4J instance which has a single application deployed to it. I want to set up alerts such that if the application's memory usage (or the memory usage of the OC4J instance) goes
-
Aperture Split View Misbehaving
The vertical photos in the split view bar have all switched from being displayed vertically/normally to being rotated and showing "squashed". They only do it with photos imported from my Sony DSV-HX5V, not iPhone or other cameras. Any ideas?