Sender FCC with complex nested structure - FCC Configuration
Hi Guys,
I am working on a File-to-File Scenario using FCC at sender side. I need to configure FCC for this .
The structure below is nested.
Can anyone help me with the FCC Configuration for this structure.?
Souce structure :
ROD_DT
num_orders
test_mode
order_x
order_id
order_date
mfg_id
catalog_id
first_name
last_name
recipient
message
address1
address2
address3
city
state
zip
country
country_code
phone
subtotal
tax
shipping
total
shopatron_total
fulfiller_total
shipment_id
additional_info
in_store_pickup
express_shipping
express_shipping_flag
express_shipping_text
express_shipping_arrival
discount
discount_description
discount_percentage
discount_total
language_id
currency_id
ship_type
packing_list
num_items
items
item_x
item_id
quantity
price
part_number
fulfiller_total
shopatron_total
options
option_x
FCC Configuration:
Recordset Structure =
Header.fieldNames =
Header.fieldSeparator =
Header.endSeparator =
Body.fieldNames =
Body.fieldSeparator =
Body.endSeparator =
Any help in this regard is highly appreciated
Note that the maximum nesting level that is supported in FCC is as below;
<recordset>
<NameA>
<field-nameA1>field-value</field-nameA1>
<field-nameA2>field-value</field-nameA2>
<field-nameA3>field-value</field-nameA3>
</NameA>
<NameB>
<field-nameB1>column-value</field-nameB1>
<field-nameB2>column-value</field-nameB2>
<field-nameB3>column-value</field-nameB3>
</NameB>
</recordset>
So if your nesting exceeds 2 levels ... FCC is not possible.
Similar Messages
-
The XI does not send messages with correct IDOC structure
SAP XI 3.0 sends to ECC IDOC HRMD_A07
The XI does not send messages with correct IDOC structure.
In XI Design, Software Component RHEVOLU, Ive imported the Objects
HRMD_A.HRMD_A07 from SAP ECC; In Tools -> Export Reduced XSD, I saved
HRMD_A.HRMD_A07.xsd in Namespace http://suezambiental.com.br/HR . At
Message Mapping -> mmAdmissao, in Imported Message -> Import XML or
XSD, I imported the reduced Idoc file generated above, mapping source
fields to target fields.
The IDOC sent from XI to ECC has this structure (template: 22122)
E1PLOGI
E1PORIG
E1PITYP
E1P0000
E1P0001
E1P0002
Status 53 -HR: ALE inbound processing for HR master data
But does not update HR Master data.
The structure expected in ECC side (template: 20376) is:
E1PLOGI
E1PORIG
E1PITYP
E1P0000
E1PITYP
E1P0001
E1PITYP
E1P0002
Status 53 -HR: ALE inbound processing for HR master data
By using WE19 transaction, this structure was changed manually; so, the
HR Master data was updated.
Witch kind of customizing or correction could be made in XI, to send
the correct structure to ECC?
Best Regards
ClaudioHi Claudio,
In your case, there are perhaps two causes:
1. perhaps when you have import the idoc, for a strange reason, a bad metadata was created by XI. You can clean this one in tcode <b>IDX2</b> (Idoc metadata cache).
2. but it's also probably an error in your Message Mapping. Have you correctly manage segment E1PITYP?
Regards
Mickael -
Sender FCC with unbounded RecordSet Structure produces Empty File
Hi Experts,
My scenario is File (FTP) to IDoc, using FCC on the sender.
The source file is a flat file representation of the IDoc e.g. with the segment names preceeding each record row.
FCC parameters are as follows:
RecordSet Name: Z1RECORDSETNAME
RecordSet Structure: EDI_DC,1,E1TPDLH,1,Z1TPI2H,1,E1TPACC,E1TPTRM,,E1EDT13,,E1TPDIH,1,Z1TPI2HD,1,E1TPNOT,*
RecordSet Sequence: Variable OR Ascending
.fieldFixedLengths
.fieldNames
.keyFieldValue
.endSeparator
.keyFieldInStructure
above parameters are used in all segments, except in E1TPNOT where ignoreRecordsetName is added
My issue is when the test file contains more than 1 value for the unbounded segments E1TPTRM, E1EDT13 (e.g. 3 row values for E1TPTRM and 2 row values for E1EDT13) the Content Conversion succesfully finishes but produces an Empty File (size = 0)
Does anyone know how to fix this issue? Am i missing something in the parameters to be able to support the current file structure?
Kindly share your ideas/solution
I've tried to edit the test file to have only 1 record value for the unbounded segments and it is succesfull and does not produce an empty file.Try giving
EDI_DC,1,E1TPDLH,1,Z1TPI2H,1,E1TPACC,E1TPTRM, * ,E1EDT13, * ,E1TPDIH,1,Z1TPI2HD,1,E1TPNOT,*
I got it, i guess even you have given the astrix after E1TPTRM and E1EDT13 and it changed to bold.
Ok ignore my answer. -
Mail sending problem with long xml structure
Hello,
we are sending IDocs through XI to a TOPCALL mail server
by SMTP.
In the RWD->message monitoring->adapter engine for the mailsender adapter the message looks fine and can be displayed in the internetexplorer.
In TOPCALL suddenly the content in the XML structure contains a CARRIAGE, LINE FEED character in a line at position 1098. If this occurs in a tag, the XML structure is not valid anymore.
Has somebody also experiences like this?
How can I find out, from which system (SAP, TOCALL,...)this error comes from.?
thanks for your help
Werner MagerlHi,
I did not think the characterset and database would matter for this problem, but here is the info you requested.
The database is an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
The characterset : NLS_CHARACTERSET AL32UTF8
And i don't have a clue about the characterset of the operating system (not even sure what the operating system is), but i think that will be utf-8 aswell.
I'm not sure what i did, to come over as rude, but i didn't mean to and i apologize for it. -
JAXB: Marshalling complex nested data structures?
Hello!
I am dealing with complex data structures:
Map< A, Set< B > >
Set< Map< A, B > >
Map< A, Map< B, Set< C > > >
Map< A, Set< Map< B, C > > >
[and so on](NOTE: In my case it doesn't matters if I use Set<?> or List<?>)
I wanted to write wrappers for JAXB for these data structures, but I have no idea how.
My idea was: write XmlAdapter with generics for Map, Set and List, but it failed:
"[javax.xml.bind.JAXBException: class java.util.LinkedList nor any of its super class is known to this context.]"
because I was using LinkedList<T> inside the XmlAdapter (it seems that from the point of view of JAXB,
LinkedList<T> is same as LinkedList<Object>)
Any ideas?According to sec 4.4 "By default if xml schema component for which java content interface is to be generated is scoped within a complex type then the java content interface should appear nested within the content interface representing the complex type. ".
So I doubt that worked with beta and you may have to represent this anonymous complex type as a named complex type to avoid the nesting.
Regards,
Bhakti -
FCC on Sender CC to convert flat file to complex xml structure
Hi ,
i need to create a complex xml structure using FCC at the sender communication channel.
the datatype structure is as follows:
Data type Occurrence
DT_SOURCE
SEG_9 1..1
SEG_10 1..1
SEG_20 1..1
SEG_30 0..1
SEG_40 1..2
SEG_50 0..1
SEG_55(loop) 0..1
SEG_55 0..9999
SEG_60-70(loop) 1..1
SEG_60 0..1
SEG_70 0..9999
SEG_90 0..1
Please let me know how this can be acheived.
Regards,
Meenakshi
Edited by: meenakshipradhan on Apr 5, 2010 7:44 PMHi Meenakshi,
Please let us know the Hierarchy of the structure to be created, is it one level only?
Could you please explaing what is the loop meant here?
SEG_55(loop) 0..1
SEG_55 0..9999
SEG_60-70(loop) 1..1
Please specify if there are any delimiters or what is the file format at source.
Or Try reading the whole content of the file then use a XSLT to create the desired structure, i think in XSLT you can easily try out the looping.
Regards,
Srinivas. -
Query on Receiver FCC for nested structure
Hi Friends,
I want to configure the Receiver side FCC for the below nested structure.
Can you guide me how can i achicve it? or its not possible for nested structure?
Seg100,Seg200.Seg300 and Seg400 are nested one below the other.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Test xmlns:ns0="http://hello.com">
--<Seg100>
--<field1>0000564.30</field1>
--<field2>KG</field2>
--<Seg200>
---<field3>1070</field3>
---<Seg300>
<field4>5</field4>
<Seg400>
<field4>5</field4>
</Seg400>
---</Seg300>
--</Seg200>
-</Seg100>
</ns0:Test>
Regards
VenkateshHi,
For nested structure we cont do the File content conversion.
so that we need to convert it a flat structure in the mapping level and then we can go for FCC.
Regards,
Prakasu -
Nested structure and FCC problem (Header Problem)
Hi all,
I have a target structure like this:
MT
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
After mapping:
MT
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
I need header like this after FCC:
field1,field2, field6,field7
But Iu2019m getting something like this:
field1,field2,Record (Because of the nested structure, I can't change the structure)
I have used xml.addHeaderLine = 1 it didnu2019t work it gives something like the above structure.
I have also used xml.HeaderLine = field1,field2,field6,field7 and xml.addHeaderLine =3
Nothing is working is there any option.
Thanks,
Srinivas
Edited by: Srinivas Davuluri on Jul 17, 2008 10:13 PMHi,
one option could be
RecordSet.addHeaderLine = 3
Recordset.headerLine = field1<ur seperator>field2<ur seperator> field6<ur seperator> field7
Edited by: Progirl Progirl on Jul 18, 2008 9:50 AM -
File sender adapter: Content conversion for very deep nested structure
Hi all
I have a file which looks like this
HDOCKET 9800000660980000061911062009AA123456bbWM100012349800000619
DDOCKET_TEST001 4012YAG1
WZOA00000000010000000001
WZOA00000000020000000002
WZOB00000000030000000003
IAAXX000001
IAAXX000002
C0000000000000000000100000000000000000001000000000000000000020000000000000000000300000000000000000004
T2
and my structure is
Header - 1
Detail - 0....Unbounded
Bag - 0.....Unbounded (sub node of detail)
Track - 0.....Unbounded (sub node of detail)
Customer - 0.....Unbounded (sub node of detail)
Trailer - 1
and in the file sender adapter i mentioned the following content conversion setting
HEADER,1,DETAIL,*,Bag,*,Track,*,Customer,*,TRAILER,*
But when i go and see in the monitoring i received the following conversion
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_REQ xmlns:ns="http://royalmail.com/dd_c">
<HEADER>
<ID>H</ID>
<INT>DD</INT>
<CAR>9899999660</CAR>
<CUS>9899999619</CUS>
<POST>11062009</POST>
<NUMBER>AA123456bbWM10001234</NUMBER>
<ACC>9899999619</ACC>
</HEADER>
<DETAIL>
<ID>D</ID>
<Bag>DOCKET_TEST001</Bag>
<S>4012</S>
<Code>YAG</Code>
<mat>1</mat>
<count/>
<Mixed />
</DETAIL>
<Bag>
<ID>W</ID>
<Zone>ZOA</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>ZOA</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>ZOA</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
</Bag>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Track>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Tracked>
<Customer>
<ID>C</ID>
<OrigCustomer>00000000000000000001</OrigCustomer>
<Field1>00000000000000000001</Field1>
<Field2>00000000000000000002</Field2>
<Field3>00000000000000000003</Field3>
<Field4>00000000000000000004</Field4>
</Customer>
<TRAILER>
<ID>T</ID>
<Count>2</Count>
</TRAILER>
</ns:MT_REQ>
whereas i wanted it like:
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_REQ xmlns:ns="http://royalmail.com/dd_c">
<HEADER>
<ID>H</ID>
<INT>DD</INT>
<CAR>9899999660</CAR>
<CUS>9899999619</CUS>
<POST>11062009</POST>
<NUMBER>AA123456bbWM10001234</NUMBER>
<ACC>9899999619</ACC>
</HEADER>
<DETAIL>
<ID>D</ID>
<Bag>DD_TEST001</Bag>
<S>4012</S>
<Code>egg</Code>
<mat>1</mat>
<count/>
<Mixed />
<Bag>
<ID>W</ID>
<Zone>zzz</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>zzz</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>zzz</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
</Bag>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Track>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Tracked>
<Customer>
<ID>C</ID>
<OrigCustomer>00000000000000000001</OrigCustomer>
<Field1>00000000000000000001</Field1>
<Field2>00000000000000000002</Field2>
<Field3>00000000000000000003</Field3>
<Field4>00000000000000000004</Field4>
</Customer>
</DETAIL>
<DETAIL>
<ID>D</ID>
<Bag>DD_TEST002</Bag>
<S>4012</S>
<Code>egg</Code>
<mat>1</mat>
<count/>
<Mixed />
<Bag>
<ID>W</ID>
<Zone>zzzzzz</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>ZOA</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
<Bag>
<ID>W</ID>
<Zone>zzz</Zone>
<Item>0000000001</Item>
<Number>0000000001</Number>
</Bag>
</Bag>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Track>
<Track>
<ID>I</ID>
<Item>AAXX000001</Item>
</Tracked>
<Customer>
<ID>C</ID>
<OrigCustomer>00000000000000000001</OrigCustomer>
<Field1>00000000000000000001</Field1>
<Field2>00000000000000000002</Field2>
<Field3>00000000000000000003</Field3>
<Field4>00000000000000000004</Field4>
</Customer>
</DETAIL>
<TRAILER>
<ID>T</ID>
<Count>2</Count>
</TRAILER>
</ns:MT_REQ>
i.e. i need all Bag ,Track and Customer inside detail tag.
could anyone help me in this..i've already searched SDN and got some link as useful but none of them were totally related.
Regards
NainaNaina
Pls. check my forum link, i had the single level hierarchy XML file which I converted into nested structure & then into flat file.
File Conversion in Rec File Adapter with subnodes
This can give you an idea how to go ahead. Let me know in case you need any more info about this. -
Error in configuring File Sender Adapter with File Content Conversion
Hi
i am designing a File to File scenario using file content conversion in which the input is comma separated file and output is a XML document.
mentioned below are the configuration information:
Recordset Name: Substr
Substr.fieldSeparator: ,
Substr.endSeparator: 'nl'
Substr.fieldNames: Name, Password
Substr.keyFieldValue: Name
and the error i can see in adapter framework is:
Sender Adapter v0830 for Party '', Service 'FileContentConversion':
Configured at 14:30:45 2005-04-07
Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
Mandatory parameter 'Substr.fieldNames': no value found
plz help me ASAP.
thanks and regards,
Varun JoshiHi Varun...
Regarding ur error.....the name and password u send in csv is not getting recognised.. so u have to check the data type structure.
there must be a recordset name and subelement must be recordset structure..the data type must be
<datatypename>
<recordsetname>
<recordsetructurename>
<name>
<password>
please try in this format and ur name and password will get recognised -
How to do FCC with SFTP adapter (BIC MD tool)
Dear All,
Hi guys...can anyone tell how to do FCC with SFTP adapter (Seeburger).
Can BIC MD tool do the FCC required. can anyone provide link which tells steps to perform FCC with BIC MD.
we know that we can use the standard module for it. but we are trying to explore this BIC MD and its limitations.
Regards,
SenthilprakashHi,
Im closing this thread as its open for long time now.
well i have even found the solution for the same.
SFTP adapter as such does not have FCC functionality.
we have to use SAP Modules for performing FCC in SFTP adapter.
for complex conversions (more than 3 levels) we can use BIC tool and then deploy the module in our adapter.
Regards,
Senthilprakash. -
Web Dynpro with Adaptive RFC and "complex" ABAP Structures
Hi there,
I'm calling an RFC that returns a table with a "complex" structure, i.e. a structure with nested structures and tables. The issue I am having is that I would like to loop over that table and extract the relevant attributes from each row (i.e. attributes of the structure itself or of the nested structures or attributes of records of the nested tables), I however don't understand how.
My first attempt looks as follows
for(int i = 0; i < wdContext.node<<tab>>().size(); i++) {
IPrivate<<view>>.I<<tab>>Element x =
wdContext.node<<tab>>().get<<tab>>ElementAt(i);
However "x" doesn't seem to have the getter methods for the nested tables in question?
Help would be greatly appreciated.
Regards, Chris.Hi,
If you are using model node binding over adaptive RFC model all nested structures / tables becomes sub-nodes rather then attributes.
VS -
Help!! - File to Idoc Mapping with Nested structure
Scenario:
I have an inbound file that has three nested records.
eg. A00, B00 and C00. C00 is nested structure of B00 and B00 nested structure of A00. All these structure can repeat N number of times in a file.
How do I map this to IDoc structure that have one segment each for the three structures in the file and nested in the same way.
Question: How is the parent child relationship established?
Suppose I have a file
A00 1234 Sam 29
B00 london LE3 XYZ
B00 US 123456
C00 2 XYZ
A00 5678 Joe 22
B00 US 23456
If I make a nested structure and then say in the file conversion properties that A00 go to segA and then B00 go to segB, but then when I come back to A00, how do I move the data to the A00?
Thanks in Advance
RgdsFrom what you have layed out, you can create a data type with 3 children, all 1..unbounded cardinality, each containing their own elements. You say they are nested, but the example you gave isn't nested... it's just A's followed by B's followed by C's. If that is the case, you can then use a data type w/ 3 subelements (A, B & C) and each of those is actually a container with the real attributes of that line in your file. (I can email you a schema quickly if you need it)
If you are saying they can occur like this:
A00 1234 Sam 29
B00 london LE3 XYZ
B00 US 123456
C00 2 XYZ
B00 US 23456
C00 2 XYZ
THEN they are nested - ie B's & C's repeat under any A. Then you must create segment B as a subelement of segment A instead of on the same level, then bury C under B. (I find this easiest w/ a text tool rather than inside XI, as I can cut/paste segments where I want them to belong...)
Good luck with setting up content conversion on that file adapter... We have done this a few times, and it can be quite interesting.
If you have trouble with the schema, you can post your email & I can give you a quick example.
Message was edited by: Amanda Derringer -
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 -
Fill internal table with mutliple entries for nested structure
Dear ABAP Experts,
I have a question related to fill internal tables with nested structures.
I have a structure like this:
BEGIN OF proto,
sicht TYPE ysicht,
version TYPE FAGLFLEXA-RVERS,
BEGIN OF kons,
kon TYPE YKONSEINHEIT,
END OF kons,
jahr TYPE CHAR04,
END OF proto.
Now I need to fill this structure with values (over an internal table), but how can I achieve that I save multiple datas für element "kon" für one single entry of structure "proto"?
An example could be:
sicht = '01'
version = '100'
kon = 1001 (first entry)
kon = 1002 (second entry)
usw... (n entry)
jahr = '2008'
Thanks in advance for every helpful answer.
Regards
ThomasBEGIN OF proto,
sicht TYPE ysicht,
version TYPE FAGLFLEXA-RVERS,
kons TYPE STANDARD TABLE OF YKONSEINHEIT WITH NON-UNIQUE KEY TABLE_LINE,
jahr TYPE CHAR04,
END OF proto.
DATA: ls_proto TYPE proto,
lt_proto TYPE STANDARD TABLE OF proto,
ls_kon
ls_proto-sicht = '01'.
ls_proto-version = '100'
INSERT '1001' INTO TABLE ls_proto-kons.
INSERT '1002' INTO TABLE ls_proto-kons.
ls_proto-jahr = '2008'.
INSERT ls_proto INTO TABLE lt_proto
If you're going to use a more complicated inner table with several components, then you need to define a type for those components.
matt
Maybe you are looking for
-
How to convert UIView object to NSData and vise-versa for saving it in database using sqlite
I am using sqlite for my project which stores all the data including text fields , id , and one UIVIew object in a column having BLOB datatype . Now while retriving the data i use const char *raw = sqlite3_column_blob(selectstmt, 3); int rawLen = sql
-
The attribute is 'Date Key'. Errors in the OLAP storage engine:
I have a Datetime column in my source table 'LastUpdatedDateTime' in this format '2012-08-15 14:58:42.467' and I have converted to integer using (YEAR(LastUpdatedDateTime) * 10000) + (MONTH(LastUpdatedDateTime) * 100) + DAY(LastUpdatedDateTime) in m
-
How to? Suppress Crosstab Total column, based on condition, Please help!
Hi All, Please give an advice on the following: My problem I have an item stock and value by depo by region report, with the following structure: http://img29.imageshack.us/img29/5289/ctab.jpg Row 1 is Items Column 1 is region, has six values (value
-
see, i want to buy a macbook soon. and i need to have wireless internet. but i thought that in order to get wireless, you needed to buy it from a company like verizon, etc. and you would get like a phone bill only for wireless. if i get the airport,
-
Additional PO attachments in 11.5.10.2
Hi, As per our business requirements we need to attach some additional files with the standard PO e-mail notification. This attachment can be at header level or line level. My question is 1. first of all is this possible that notification sends these