on 04-10-2009 11:38 AM
Hi
I have a flat file like this.
I am not able to create sender and receiver data types. can anyone tell me how to do.
Here For one plant there are many materials.
=====================================================================
Werks MATNR ERSDA ERNAM MTART MATKL MAKTX
====================================================================
0001 CP-12 20020719 PREMKE KMAT CP-12
0001 CP12 20020717 PREMKE HAWA 015 CP12
0001 CPH_3001 20050802 D035495 ROH Aqua
005 T-EC0201 20060327 WILHELMH HAWA 009 Cycle shorts
0005 T-FC0101 20060327 WILHELMH FERT Lady`s 24'' Street Bike
0006 NGL-OS-FILE 20060316 LCHAMDONDOG NLAG 006 File
0007 NGL-OS-FILE 20060316 LCHAMDONDOG NLAG 006 File
0008 NGL-OS-FILE 20060316 LCHAMDONDOG NLAG 006 File
I want XML file should be like this
<MT_Sender>
<record>
<plant>
<werks>0001</werks>
</plant>
<matinfo>
<matnr>cp-12></matnr>
<ersda>20020719</ersda>
.......
.....
</matinfo>
<matinfo>
<matnr>cp-12</matnr>
<ersda>20020717</ersda>
.......
.....
</matinfo>
</record>
<record>
like this..I want to connvert tht into flat file-xml file.
I looked some deep struture blogs..but I couldnot understand.
Reagrds
Vijay
Edited by: vijay reddy on Apr 10, 2009 4:10 PM
Hi,
Use StrictXml2PlainBean adapter module in file adpter
This will provide you more options than standard FCC does.
http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/frameset.htm
Regards,
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
Using FCC it is not posible.You can acheive it using two message mapping.
Steps:
STEP1:
Do the normal content conversion and get each Line as separate Record. say the message type you created is MT_FCC_Outbound
STEP 2:
First Mapping:
Outbound Mesage type : MT_FCC_Outbound
Inbound Mesage type : MT_FCC_Outbound
Here in this mapping you group the records on the basis of werks.
STEP3:
Second mapping:
Outbound Mesage type : MT_FCC_Outbound
Inbound Mesage type : MT_FCC_Inbound
Do the actual maaping
STEP 4:
Interface mapping: Outbound Mesage :
MI_FCC_Outbound (message interface)
Inbound Mesage : MI_FCC_Inbound
first give mapping1 then in second row mapping 2.
Ritu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.