cancel
Showing results for 
Search instead for 
Did you mean: 

Data type (subelement /atrribute)

Former Member
0 Kudos

Hi all

i am implementing a scenario of IDOc to File

the problem is with data type

At the receiver file system the structure will be : 1 HEADER

*(UNBOUNDED) lineitem.

i created the table strucure of type

BALANCES category Occurrence

item element 0.unbounded

year element 0.1

month element 0.1

credit element 0.1

debit element 0.1

currency element 0.1

(year,month, cred, debit..) are subelement of item , item is subelement of BALANCES

and it is working...

but i need to clarify <b>when to use Attribute and element/subelement</b>, and if i had a table structure

datatype

regards,

ajay pant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Attributes are properties to element in XML. While you are dealing with file adapters, all you need is elements. As an example to attributes usage, refer the weblog

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2002. [original link is broken] [original link is broken] [original link is broken] [original link is broken] This weblog deals with a special attribute <b>hasQuot</b> while using receiver JDBC data types.

Regards,

Jai Shankar

Answers (1)

Answers (1)

Former Member
0 Kudos

Ajay,

To put it in a nut shell, Attributes are used for some actions. Take for example, in a jdbc scenario u need to create an attribute which tells you whether u need to insert or delete or update in a database table.

Award points !

Regards,

B.Anandh