Doubt regarding File Content Conversion. File- RFC
Hi Experts,
My scenario is File -> XI -> RFC,
I am able to update the records in R3 when i get a fixed length file with a single record.
RFC can process one record at a time (its 1 to 1 , its not 1 to unbounded),
May i know what are the changes to be done in the scenario to implement this existing interface to process a fixed length file contains a multiple records.
How to get RFC return messages when ever there is return message , as this is not the synchronous scenario.
Please help me out.
Thanks
HI,
First you need to create a structure [SE12]
Once that is done, open the function module [SE37] and select the tab [Table].
Add a new parameter and for the Associated Type use the structure that you have just created.
Then reimport the RFC in XI.
I hope it helps.
Now, to make the RFC return messages you shall create a BPM.
Notice that this will be a Async -> Sync -> Async interface...
Basically your bpm steps will be like this:
Receive,
Transform if needed,
Syncronously Send and receive response,
Transform again if needed,
Send Asynchronously.
Take a look at the image in the link to have a better idea on the BPM setup
https://weblogs.sdn.sap.com/weblogs/images/251764026/bpmAsync2Sync2Async.JPG
(please, award points if usefull )
Edited by: Luis Melgar on May 9, 2008 9:39 PM
Similar Messages
-
Doubt regarding Sender adapter file content conversion to RFC
Hi Experts,
Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.
How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>testxml</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
I have configured sender file adapter with FCC like :
Document name as: MT_HSA_IDNumber
Document name space as: urn:passhe.com/UpdateIdNumberISA32
Record structure as: COMMIT_I,1,IDENTIFICATION,1
COMMIT_I.fieldNames : COMMIT_I
COMMIT_I.fieldFixedlengths: 1
IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO
IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8
i am getting error like this: even when i change source structure like below metioned:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT>
<COMMIT_I>X</COMMIT_I>
</COMMIT>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>idnumber1</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)
Please help me out
thanks
dhanushHi Dhanush,
Try giving the Sender FCC this way for the source structure you have mentioned above.
Record structure as: COMMIT,1,IDENTIFICATION,1
COMMIT.fieldNames : COMMIT_I
COMMIT.fieldFixedlengths: 1
Hope this helps.
Thanks and Regards,
Induja -
Skip field in file content conversion (file adapter)
hy guys,
I have a log file and want to convert it into xml. that works fine.
the problem is: can I skip some fields that I do not need in the xml with file content conversion
the fields I want to skip are the same in every record of the log file.
thanks.Ralf,
You can only ignore lines in the begiining of the file using Document Offset option.
If you have the unwanted field in the end of the record and you are in SPS12 (PI 7.0), you can use the option additionalLasstFields in FCC parameters. have a look into the blog /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
Easier, is to ignore those fields in mapping.
Also, you can try to remove those fields using a shell script which can be called from the File adapter.
Regards,
Jai Shankar -
Problem in file content conversion, file 2 xml scenario
Hi,
Could some one help me in finding out the error in my file to xml scenario, please do consider the following things what I did for this scenario.
1.My sender file structure is flat file with , seperated 4 fields. On receiver end expecting xml file.
2.Did file content conversion at sender file adapter and given parameters as follows.
Document name : MT_FileInput
DocumentnameSpace : http://file/praveenworkshop
Recordset Name : DT_Record
Recordset Structure : DT_Row,*
KeyfieldType : String( default)
DT_Row.fieldnames : FirstName,LastName,City,PostCode
DT_Row.fieldSeparator : ,
DT_Row.processConfiguration: FromConfiguration
Dt_Row.endSeparator : 'nl'
3. I did check in Adapter Monitor that Both Sender and receiver adapter are showing green and It was showing 'Adapter is up and running: But no messages processed'
4. I did check the SXMB_MONI which was showing " Scheduled for Outbound processing"
5. In SXMB_MONI outbound processing payload was picking up the file and also inbound processing showing the same.
6. my source folder and destination folder are very simple c:/praveenfiles/input and c:/praveenfiles/output
files are source file praveen.txt and destination file praveenOP.xml
Please help me in finding out the error to see the output file in my output folder.Hi Praveen,
Hope these bloga are useful to you..
File content conversion sites
/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,
Satya -
File Content Conversion : File to File Scenario
hi all,
I have a Input file
It has the following structure:
<?xml version="1.0" encoding="utf-8"?>
<n0:rfc_proxy_message_type xmlns:n0="http://kpr.com/sample">
<Name>abhishek</Name>
<Age>10</Age>
</n0:rfc_proxy_message_type>
I use a File to File Scenario, with Sender and receiver FTP adapters.
I would like to convert this file at the recieveing end into a flat file as follows:
Name Age
abhishek 10
How can I do so?
Can anyone please help.
Thanks,
Best Regards
AbhishekHi,
Your Xml file should be like this.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Employee_MT xmlns:ns0="http://sap.com/demo">
<Recordset>
<item>
<Name>vinod</Name>
<Id>12</Id>
<Age>30</Age>
<***>male</***>
</item>
</Recordset>
</ns0:Employee_MT>
In the content conversion parameters mention the following
Document name: Student_MT
Document Namespace: enter your namespace
RecordsetName: Recordset
Recoedset Structure: item,*
item.endSeparator = 'nl'
item.fieldSeparator= ,
item.fieldnames= Name,Id,Age,***
Hope this helps you. -
File content conversion (file to file)
Hi Guys,
Sender File
@! is the delimiter
LEVEL1@!227833338@!08710@!REPAIR@!20080101@!99990909@!0000212897@!0000000001000@!0000000500000@!R400@!A@!Assigned
LEVEL2@!227833338@!08710@!000099071608@!Blind@!20020115@!20020115@!R400@!1@!3@!20020430@!99990909@!SLC-@!VESSELLS@!A@!Assigned
LEVEL3@!227833338@!08710@!000099071608@!0010@!Blind@!20020115@!20020115@!20020430@!20020430@!10000414@!Assigned
LEVEL1@!4501065777@!00010@!SUPERHEAT@!20071206@!99990909@!0000219169@!00000001000@!0000002000000@!R020@!A@!Assigned
LEVEL2@!4501065777@!00010@!000009416742@!Alky@!20080107@!99990909@!R020@!E@!2@!20080101@!99990909@!LAT@!COKE@!A@!Assigned
LEVEL3@!4501065777@!00010@!000009416742@!0010@!v-895@!20080107@!99990909@!20080101@!99990909@!10001577@!Assigned
Sender Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:CostObjects xmlns:ns0="http://*****************">
<LEVEL1>
<LevelID/>
<PONumber>35435454</PONumber>
<POLineNo>545</POLineNo>
<ShortText>AAAAAAA</ShortText>
<StDate>20080101</StDate>
<EndDate>20080101</EndDate>
<Vendor/>
<POValue/>
<ExpectedValue>4343</ExpectedValue>
<Plant/>
<Status>A</Status>
<OrderType>Assigned</OrderType>
</LEVEL1>
<LEVEL2>
<LevelID/>
<PONumber>35435454</PONumber>
<POLineNo>545</POLineNo>
<Level2ID>457899</Level2ID>
<Level2Desc>bbbbbbbbb</Level2Desc>
<L2StDate>20080101</L2StDate>
<L2EndDate>20080101</L2EndDate>
<L2Plant>y001</L2Plant>
<L2Priority>3</L2Priority>
<L2SAPStatus>a</L2SAPStatus>
<L2ActStDate>20080101</L2ActStDate>
<L2ActEndDate>20080101</L2ActEndDate>
<L2FuncLoc>LAR</L2FuncLoc>
<L2FuncDesc>LOS ANGLES</L2FuncDesc>
<L2Status>1</L2Status>
<L2OrderType>Assigned</L2OrderType>
</LEVEL2>
<LEVEL3>
<LevelID/>
<PONumber>35435454</PONumber>
<POLineNo>545</POLineNo>
<Level2ID>457899</Level2ID>
<Level3ID>10</Level3ID>
<Level3Desc>cccccccc</Level3Desc>
<L3StDate>20080101</L3StDate>
<L3EndDate>20080101</L3EndDate>
<L3ActStDate>20080101</L3ActStDate>
<L3ActEndDate>20080101</L3ActEndDate>
<L3WorkCenter>los</L3WorkCenter>
<L3OrderType>Assigned</L3OrderType>
</LEVEL3>
</ns0:CostObjects>
Receiver Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:TCostObject xmlns:ns0="http://**************">
<LEVEL1>
<L1RecordIndicator><L1></L1RecordIndicator>
<L1ID>35435454545</L1ID>
<L1Desc>AAAAAAA</L1Desc>
<L1StartDate>20080101</L1StartDate>
<L1EndDate>20080101</L1EndDate>
<L1Hours>0</L1Hours>
<L1Costs>4343</L1Costs>
<L1Status>A</L1Status>
<L1OrderType>Assigned</L1OrderType>
</LEVEL1>
<LEVEL2>
<L2RecordIndicator><L2></L2RecordIndicator>
<L1ID>35435454545</L1ID>
<L2ID>457899</L2ID>
<L2Desc>bbbbbbbbb</L2Desc>
<L2StartDate>20080101</L2StartDate>
<L2EndDate>20080101</L2EndDate>
<L2Hours>0</L2Hours>
<L2Costs>0</L2Costs>
<L2OrderType>Assigned</L2OrderType>
<L2Plant>y001</L2Plant>
<L2Priority>3</L2Priority>
<L2SAPStatus>a</L2SAPStatus>
<L2CostObject/>
<L2CostObjectDesc/>
<L2ActStartDate>20080101</L2ActStartDate>
<L2ActEndDate>20080101</L2ActEndDate>
<L2AreaID>01</L2AreaID>
<L2FuncLoc>LAR</L2FuncLoc>
<L2FuncLocDesc>LOS ANGLES</L2FuncLocDesc>
<L2UnitName/>
<L2MaintCatCode/>
<L2MiscInfo1/>
<L2MiscInfo2/>
<L2SAPExempt/>
<L2ShortWorkOrderID/>
<L2Status_AorI>1</L2Status_AorI>
<L2LaborTaxFlag/>
<L2EquipTaxFlag/>
<L2MaintTaxFlag/>
</LEVEL2>
<LEVEL3>
<L3RecordIndicator><L3></L3RecordIndicator>
<L1ID>35435454545</L1ID>
<L2ID>457899</L2ID>
<L3ID>10</L3ID>
<L3Desc>cccccccc</L3Desc>
<L3PlanStartDate>20080101</L3PlanStartDate>
<L3PlanEndDate>20080101</L3PlanEndDate>
<L3ActStartDate>20080101</L3ActStartDate>
<L3ActEndDate>20080101</L3ActEndDate>
<L3OrderType>Assigned</L3OrderType>
<L3WorkCenter>los</L3WorkCenter>
<L3WorkAmtScheduled/>
<L3UnitofWork/>
<L3DurationScheduled/>
<L3UnitofDuration/>
<L3NoofEmp/>
</LEVEL3>
</ns0:TCostObject>
The receiver file look more or less the same as sender file but with delimiter @# and the fields are different
<L1>@#...........
<L2>@#..........
<L3>@#............
<L1>@#...........
<L2>@#..........
<L3>@#............
Sender file adapter content conversion:
LEVEL1.fieldNames LevelID,PONumber,POLineNo,ShortText,StDate,EndDate,Vendor,POValue,ExpectedValue,Plant,Status,OrderType
LEVEL1.fieldSeparator @!
LEVEL1.endSeparator 'nl'
LEVEL1.processFieldNames fromConfiguration
LEVEL1.keyFieldValue LEVEL1
LEVEL2.fieldNames LevelID,PONumber,POLineNo,Level2ID,Level2Desc,L2StDate,L2EndDate,L2Plant,L2Priority,L2SAPStatus,L2ActStDate,L2ActEndDate,L2FuncLoc,L2FuncDesc,L2Status,L2OrderType
LEVEL2.fieldSeparator @!
LEVEL2.endSeparator 'nl'
LEVEL2.processFieldNames fromConfiguration
LEVEL2.keyFieldValue LEVEL2
LEVEL3.fieldNames LevelID,PONumber,POLineNo,Level2ID,Level3ID,Level3Desc,L3StDate,L3EndDate,L3ActStDate,L3ActEndDate,L3WorkCenter,L3OrderType
LEVEL3.fieldSeparator @!
LEVEL3.endSeparator 'nl'
LEVEL3.processFieldNames fromConfiguration
LEVEL3.keyFieldValue LEVEL3
ignoreRecordsetName true
Receiver Adapter content conversion:
LEVEL1.fieldSeparator @#
LEVEL2.fieldSeparator @#
LEVEL3.fieldSeparator @#
LEVEL1.endSeparator 'nl'
LEVEL2.endSeparator 'nl'
LEVEL3.endSeparator 'nl'
The file is not being picked up.I am sure sender file adapter is correct as I have used this for (file to soap) and the scenario works file.I am not sure of receiver file adapter,do we have to use adavanced mode in receiver file adapter?Can you guys plz help me.Let me know if you have any questions
ThanksCan someone let me know what are the parameters to give in FCC receiver file adapter.
Thanks -
File Content Conversion File-File scenario
Dear experts,
I have been tweaking with file to file scenario where a simple file goes in source as text delimited and comes out in target as xml.
I know ,i finally get my scenario get working with these settings :
ROOT.fieldSeparator ,
ROOT.fieldNames Store_Id,TRDT,SKU,SALE_RETURN,PRICE_OVERRIDE,PROMOTION_NUMBER,PROMO_DETAIL_ID,MIX_MATCH_NUMBER,DISCOUNT_ID,QUANTITY,EXTENDED_SELLING_PRICE,EXTENDED_ORIGINAL_PRICE,DIFFERENCE_PRICE
ROOT.fieldContentFormatting trim
ROOT.endSeparator 'nl'
ROOT.missingLastfields add
ROOT.processFieldNames fromConfiguration
ignoreRecordsetName true
Now my question is where i can find all properties that are probable in ROOT.Other thing is i kept on getting mapping related errors until i reached
at this stage of properties definition.But there was no tracking as of why i got that error.The error was :
Mapping "http://TPOCTEST_SFILE/OM_TPOCTEST" failed to execute: MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_TPOCTEST_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_TPOCTEST_T/Record. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
I resolved once i made settings on top but this was only a hit and trial.I dont know what actually was the reason behind this error.
I also used Test option of mapping and found things working.Hi Aditya,
That error indicates that when you were facing problems with your FCC the system did not generate XML that worked with the mapping that you have OM_TPOCTEST. The error is showing that you have a target node named Record which I'm guessing is set to 1...unbounded but your FCC did not generate XML that would map in such a manner that 1 or more nodes named Record would be created in your target message.
Regards,
Ryan Crosby -
Input file is Excel file. Should I need to convert this using the File Content Conversion(File Sender), if so can anyone pls explain me how????
thank youHi,
This Will help you,
1) With JAVA Mapping we can Achieve
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
( go thru the Below lines in the Blog )
http://help.sap.com/saphelp_nw04/helpdata/en/1f/0e3237e5875249e10000009b38f936/frameset.htm
Page 37
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f
/people/gregor.wolf3/blog/2006/09/01/excel-to-csv-conversion-with-a-php-web-service
Regards
Agasthuri Doss -
Can't get File content conversion to produce CSV file
Hi Guys
Have no problem at all getting XML file created via an RFC
Structure is something like this
From MONI message monitor inbound message payload
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
<CUSTOMERID>100853</CUSTOMERID>
<COMPANY>Bram Van Tuyl Coldstore</COMPANY>
<SHORT_NAME>VAN TUYL</SHORT_NAME>
<STREET>Middelkampseweg 1</STREET>
etc
</IP_CUSTOMER_HEADER>
</rfc:Z_XI_005_RFC>
Receiver Grouping payload
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
<CUSTOMERID>100853</CUSTOMERID>
<COMPANY>Bram Van Tuyl Coldstore</COMPANY>
<SHORT_NAME>VAN TUYL</SHORT_NAME>
etc.
With no conversion xml file is created on output directory
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test"><customerid>100853</customerid><company>Bram Van Tuyl Coldstore</company>
etc
Now trying to use File content conversion with the simplest possible conversion -- just insert a colon after all the fields in the structure.
Following parameters
Adapter type FILE
receiver box checked
Message protocol File Content conversion
File access etc as before
Content conversion parameters
Recordset : IP_CUSTOMER_HEADER
(have also tried Z_XI 005_RFC)
Name
CUSTOMERID.fieldSeparator : (colon)
MONI shows message received by XI and processed correctly but NO outfile gets written to the target directory.
what am I doing wrong --it's probably something stupid.
The data into XI is a ONE RECORD structure -- not a table etc.
Cheers
jimboHi guys -- both solutions STILL not working
all I'm now getting is just a file with garbage in it
Payload is fine on XI system
Here's the payload
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
- <IP_CUSTOMER_HEADER>
- <item>
<CUSTOMERID>65013</CUSTOMERID>
<COMPANY>OY PANDA AB</COMPANY>
<SHORT_NAME>PANDA</SHORT_NAME>
<STREET>P.O.Box 3</STREET>
<STREET2 />
<STREET3 />
<STREET4 />
<POSTCODE>3331 GT</POSTCODE>
etc etc until end of customer mmaster details
</item>
</IP_CUSTOMER_HEADER>
</rfc:Z_XI_005_RFC>
Without conversion file is generated on target directory
Here's the XML output file sent to the directory
(for testing I only usec the ist 3 fields)
Not sure why <item> disappeared - maybe that has something to do with it ?
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
<CustomerId>65013</CustomerId>
<company>OY PANDA AB</company>
<shortname>PANDA</shortname>
</ns1:MT_customer_header>
RFC call from R3 system is fine (otherwise I wouldn't get the message into XI. Transaction SM58 as well on R3 shows no RFC errors
Converted file is just a blank with nl character at the end ??????
cheers
jimbo -
File Content conversion - IDOC to Fixed length File
Hi,
Scenario : SAP R/3(IDOC) -> XI -> Fixed Length file
IDOC is sending from SAP R/3, XI has to do the mapping and send a Fixed length File to /tmp in XI.
When I am using the message Protocol as "File" in the Receiver communication channel, XML file is writing to /tmp. When I am using "File Content Conversion" as a message protocol,Empty File is writing. Can anybody tell me why empty file is creating. Can we use File content Conversion in this scenario. Is there any additional parameter or settings required?
Receiver communication channel settings:
Message Protocol: File Content Conversion
File type : Binary
Recordstructure : MT_V_PER01
Name Value
MT_V_PER01.fieldFixedLengths 25,35
MT_V_PER01.fieldNames PERSNR,NAME
File Data Type : DT_V_PER01,
Message type : MT_V_PER01
IDOC type : WP_PER01.
Expecting your expert advice.
Thanks
vineeshHi Moorthy,
I am getting success messages in Audit log as below:
2006-09-29 12:08:53 Success Trying to put the message into the send queue.
2006-09-29 12:08:53 Success Message successfully put into the queue.
2006-09-29 12:08:53 Success The message was successfully retrieved from the send queue.
2006-09-29 12:08:53 Success The message status set to DLNG.
2006-09-29 12:08:53 Success The message was successfully transmitted to endpoint http://nslcxi08:8010/sap/xi/engine?type=entry using connection AFW.
2006-09-29 12:08:53 Success The message status set to DLVD.
2006-09-29 12:08:53 Success The message was successfully delivered.
I have checked the Payload maindocument,the IDOC structure contains data.
<?xml version="1.0" encoding="UTF-8" ?>
- <WP_PER01>
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
<IDOCTYP>WP_PER01</IDOCTYP>
<MESTYP>WP_PER</MESTYP>
<STDMES>WP_PER</STDMES>
<SNDPOR>SAPLCD</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPRN>LCDCLNT210</SNDPRN>
<RCVPOR>LXDCLNT250</RCVPOR>
<RCVPRT>LS</RCVPRT>
<RCVPRN>LXDCLNT250</RCVPRN>
</EDI_DC40>
- <E1WPP01 SEGMENT="1">
<PERSNR>0000100006</PERSNR>
- <E1WPP02 SEGMENT="1">
<NAME>Consumer</NAME>
</E1WPP02>
</E1WPP01>
</IDOC>
</WP_PER01>
Thanks
Vineesh -
Receiver File content conversion with nested structure
Hi Guys,
I have the below nested structure and have to convert it using receiver file content conversion.
<Header> [o, unbounded]
<A>a</A>
<B>b</B>
</Header>
<record> [0, unbounded]
<field1>
<X1>x</X1>
<Y1>y</Y1>
</field1>
<field2>
<X2>x</X2>
<Y2>y</Y2>
</field2>
</record>
The file is a comma separated one. Please let me know how to configure the content conversion.
ThanksHi Mukesh,
Have a look at the Shabz's blog for the receiver File content conversion : File Adapter (Receiver) - Are we "really" sure about the concepts?
Thanks,
Pooja -
Doubt regarding Recever file adapter file content conversion (FCC)
Hi Expetrts, below is the my target structure.
<?xml version="1.0" encoding="TF-8"?>
<ns1:MT_StatusChange xmlns:ns1="urn:passhe.com/ChangeOfStatusISA26">
<IV_ST_OBJID>65390091</IV_ST_OBJID>
<IV_BEGDA>25082008</IV_BEGDA>
<LT_STUDENT_STATUS>
<item>
<HS_CAMPUS>65</HS_CAMPUS>
<STOBJID>65390091</STOBJID>
<STUDENT12>michal</STUDENT12>
<HS_STATUS>MISC</HS_STATUS>
<item>
<LT_STUDENT_STATUS>
</ns1:MT_StatusChange>
How to configure in File Content Conversion Recever File Adapter for above target structure. i have done as below, but i am getting error. please correct me where i did mistake.
Recordset Structure : IV_ST_OBJID,IV_BEGDA,LT_STUDENT_STATUS,item
IV_ST_OBJID.fieldNames : IV_ST_OBJID -> for this field there is no subfield
IV_ST_OBJID.fieldSeparator: , (comma)
IV_BEGDA.fieldNames : IV_BEGDA -> for this field there is no subfield
IV_BEGDA.fieldSeparator: , (comma)
LT_STUDENT_STATUS.fieldNames : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
LT_STUDENT_STATUS.fieldSeparator: 'nl'
item.fieldNames : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
item.fieldSeparator: , (comma)
I am getting below error:
'Conversion configuration error: Unknown structure 'ns1:MT_StatusChange' found in document', probably configuration error in file adapter (XML parser error)'
Thanks
Dhanush.Hi Dhanush,
It is better always if u have a structure with Header and trailers if u have a subsrtuctures in it & always try make it in this format:
<?xml version="1.0" encoding="UTF-8"?>
<MT_ContentConversion_Test>
<Header>
<F1>HF1</F1>
<F2>HF2</F2>
</Header>
<Item>
<F1>IF1</F1>
<F2>IF2</F2>
<Item>
<Trailer>
<F1>TF1</F1>
<F2>TF2</F2>
</Trailer>
</ns0:MT_ContentConversion_Test>
Try to go through this blog it will be very helpful to u :
/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
Regards,
Vinod. -
Doubt regarding sender file content conversion
Hi Experts
This is my source XML structure, how to define Sender file adapter (Content Conversion) and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
<?xml version="1.0" encoding="UTF-8"?>
<ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>Student</STUDENT>
<ID_TYPE>New</ID_TYPE>
<ID_NUMBER>12345</ID_NUMBER>
<VALID_FROM>12/03/2008</VALID_FROM>
<VALID_TO>13/04/2008</VALID_TO>
</IDENTIFICATION>
</ns0:IDENTIFICATION_ADD_Req_MT>
Please suggest me how to configure Sender file content conversion
Thanks
Dhanush.hi sekhar,
Just go through this blogs & links.
/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
reward points if found helpfull
regards
chandra.k -
Doubt regarding file content conversion Recever File adapter.
target structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
<BUSINESS_PARTNER>
<item>
<CAMPUSCODE>65</CAMPUSCODE>
<STUDENTNUMBER>6500000192</STUDENTNUMBER>
<ST_OBJID>732298498</ST_OBJID>
</item>
</BUSINESS_PARTNER>
</ns1:MT_ChangeOfAddress>
target structure is look like this.
MT_ChangeOfAddress
BUSINESS_PARTNER (1,1)
item (0 to unbounded)
CAMPUSCODE (0,1)
STUDENTNUMBER (0,1)
ST_OBJID (0,1)
I have given below parameters in recever file adapter (file content conversion)
Recordset Structure : item
item.fieldNames : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
item.fieldSeparator: , (comma)
i am getting first two digits in my output file: that file has only first two digits that is : 65
may i know how hould i define file contente conversion recever adapter to get proper data in file adapter.
thanks,s
DhanushHi,
Go through these blogs:
/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/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/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
Thanks,
Satya -
File content conversion in File-to-RFC without BPM
Hi,
I am using FCC for file to RFc scenario.
My input record is in the following format:
Header record
data rec1
data rec2
Trailer record..
The parameters are used in File content conversion:
Recordset Name : Header,item
Recordset Structure: Header,1,item,*
key field name : data1
and in additional parameters:
Header.fieldNames HI,GenDate,Ftype,Fname,Fdate
Header.keyFieldValue Fname
Header.fieldFixedLengths 1,8,1,50,8
Header.endSeparator nl
item.endSeparator nl
item.fieldNames DATA1,DATA2,DATA3,DATA4
item.keyFieldValue item
item.fieldFixedLengths 231,240,241,120
item.lastFieldsOptional YES
Can anyone check whether any parameters are left, b'cos the file is not being read with this settings. and in the C.C its just showing file processing successfully but not able to see the actual file.Hi,
I assume you have header, item and trailer structure in source file.
Source Data Type will be as follows.
RecordSet
--> Header
--> KeyField(Value OH)
--> H1
--> H2
--> Item
--> KeyField (Value OL)
--> I1
--> I2
-->Trailer
--> KeyField (Value OT)
--> T1
--> T2
Where Item Strucutre can come multiple times.
Please use following settings.
Recordset name: RecordSet
RecordSet Structure: Header,1,Item,*,Trailer,1
Key Field Name: KeyField
Header.fieldNames: KeyField,H1,H2
Header.fieldFixedLengths: 2,3,4
Header.processFieldNames: fromConfiguration
Header.keyFieldValue: OH
Header.LastFieldsOptional: YES
Item.fieldNames: KeyField,I1,I2
Item.fieldFixedLengths: 2,5,6
Item.processFieldNames: fromConfiguration
Item.keyFieldValue: OL
Item.LastFieldsOptional: YES
Trailer.fieldNames: KeyField,T1,T2
Trailer.fieldFixedLengths: 2,8,9
Trailer.processFieldNames: fromConfiguration
Trailer.keyFieldValue: OT
Trailer.LastFieldsOptional: YES
Regards,
Gouri -
Error regarding File content conversion
Hello all,
I am getting the below mentioned error,
com.sap.aii.af.ra.ms.api.MessagingException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value '')', 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: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value '')', probably configuration error in file adapter (XML parser error)'
My scenario is rfc -> file.In receiving adaptor it is giving me this error. I am not able to understand whats going wrong with it.I have checked the parameters specified for file content conversion i think they are fine.
Please can anyone help me to get out of this..
ZZSP.addHeaderLine 0
ZZSP.fieldFixedLengths 6,8,2,6,8,2,148
ZZSP.fixedLengthTooShortHandling Cut
ZZSP.endSeparator 'nl'
ZZRP.addHeaderLine 0
ZZRP.fieldFixedLengths 3,1,2,4,2,6,1,2,2,7,9,2,7,8,5,5,6,12,8,4,6,6,3,2,67
ZZRP.fixedLengthTooShortHandling Cut
ZZRP.endSeparator 'nl'
ZZTOT.addHeaderLine 0
ZZTOT.fieldFixedLengths 3,1,2,2,2,10,35,2,2,10,35,12,12,12,12,12,12,1,14
ZZTOT.fixedLengthTooShortHandling Cut
ZZTOT.endSeparator 'nl'
ZZSUB.addHeaderLine 0
ZZSUB.fieldFixedLengths 3,1,2,10,3,2,2,3,3,6,3,25,25,6,1,12,12,12,12,12,25
ZZSUB.fixedLengthTooShortHandling Cut
ZZSUB.endSeparator 'nl'
ZZLIN.addHeaderLine 0
ZZLIN.fieldFixedLengths 3,1,2,5,2,12,23,2,8,3,6,2,9,3,5,3,3,4,4,1,9,12,12,10,10,12,3,10,1
ZZLIN.fixedLengthTooShortHandling Cut
Edited by: Siddhesh Pathak on Nov 3, 2008 2:19 PM
Edited by: Siddhesh Pathak on Nov 3, 2008 2:19 PM
Edited by: Siddhesh Pathak on Nov 3, 2008 2:20 PMur FCC is not configured correctly, I can not see fieldNames in the FCC.
wat is the strucutre of ur file?
r u having any key field in ur file?
refer sample example:
Content Conversion (Pattern/Random content in input file)
How to send a flat file with various field lengths and variable substructures to XI 3.0
chirag
Edited by: Chirag Gohil on Nov 3, 2008 7:34 PM
Maybe you are looking for
-
I need to close the tab that is open before it will open a new one from the link.
-
Show View doesn't display the views present in the report.
I add a section to the dashboard page. I add a report into the section which has pivot / graph and table view. But, when i click on the reports -> properties - > show view, I don't see any of the views. Why is it so? Please let me know. Thanks
-
SAp Solution for revised IAS 23 - Borrowing Costs
Does SAP has any solution to adopt/adhere to the revised IAS 23 which requries to capitalize the borrowing costs.This is effective from 01.01.2009. I can devide the required activities into below. 1. Determine borrowing cost u2013 Specific borrowings
-
Std iview page for Leave Travel Allowance (LTA) on portal
can you pls help me with the std iview page for Leave Travel Allowance (LTA) on portal
-
System is "stuck" how do I fix it?
I ejected a CD fromn the macbook, which came out fime, but the display still had the CD icon on the desktop, and the cursor changed into the spinning color wheel. I have tried turning the system off, inserting and ejecting multiple other CD's (includ