cancel
Showing results for 
Search instead for 
Did you mean: 

File format

Former Member
0 Kudos

Hello experts...

I'm new to XI development..

I have a target file structure....detail line and total line..like..

in detail line ..i have ..name,subject1,subject2,class.

in total line ..i have ....name,total1,total2,class.

so could i define this in XI as a data type???

Please let me know??

Thanks

SP

Accepted Solutions (0)

Answers (1)

Answers (1)

Homiar
Advisor
Advisor
0 Kudos

Hello SP,

You can definately define your structures in XI as <i>Complex</i> Data Types. You will then create a Message Type pointing to the new Data Type.

Look up the Sample interfaces in XI documentation.

Also, in case you are new to SDN, please remember to assign points to answers/solutions given by other SDN members in response to your questions.

Regards,

Homiar.

Former Member
0 Kudos

Thanks for reply..

I didn't find anything in repository like complex data type.....

can any one bit clarify me regarding this????

thanks,

SP

Homiar
Advisor
Advisor
0 Kudos

SP,

The development Interface Object is Data Type. Right click & create new Data Type. Then in the Category, select as Complex Type.

Let me know if you need more help.

Regards,

Homiar.

Former Member
0 Kudos

Thanks for reply..

My question is like..

do we need to create like segment wise ...just like idoc????

becoz i'm confusing with...the bottom lile called total line..how we define that in data type???

Thnkas

Former Member
0 Kudos

Hi Sp,

you can create two nodes in your data type

1.detail with the sub fields name,subject1,subject2,class.

2.total with the sub fields name,total1,total2,class.

Also choose the occurances of detail and total nodes based on your requirements (0..1, 0..unbounded etc..)

Regards

Anand

Homiar
Advisor
Advisor
0 Kudos

SP,

It really depends on your requirement. If the structure of the Total line is same as Details line, then there is no need to define an additional data record type.

Homiar.

Former Member
0 Kudos

Thanks anad..

I need that only...

but my question is for first node i'm giving as unbounded...becose max records will occur for that node...

but how we define in file adapter???

my question is how adapter will differentiate with last line as a total line???

Thanks..

Homiar
Advisor
Advisor
0 Kudos

SP,

In your File Adapter, for Recordset Structure, you will give :

Detail, *, Total, 1

Homiar.

Former Member
0 Kudos

Hi SP,

As i understand this is your target structure ( structure on receiver file adapter)

You can specify your content conversion on the reciver side to take care of detail node and total node sepertely and create CSV or fixed length file...

Your target structure should be of the format below to do the content conversion...

<root>...

<nameA>

<value1>value</value1>

<value2>value</value2>

<value3>value</value3>

</nameA>

<nameB>

<value4>value</value4>

</nameB>

...

</root>...

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

>>my question is how adapter will differentiate with last line as a total line???

for this you just have to enter the names of your nodes (detail, total) in the adapter configuration. and adapter will take care of the rest.

Regards

Anand