cancel
Showing results for 
Search instead for 
Did you mean: 

Adding value to DataType

Former Member
0 Kudos

Hello,

I have a datatype that is papulated from a file.

I want to add a timestamp to one the attributes in the datatype before the mapping.

how can I do it? to write a module in the adapter?

Is there a better way?

Thanks,

M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If u want to add timestamp,any attribute or element to ur datatype before mapping,then u have to use a module at sender adapter side and add it.Module enables to modify the payload that is got from the adapter engine(file) and send it to Integration server.

Regards,

Sudharshan

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Checkout this link for module development....

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/2a/f7ce4016d28031e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/2a/f7ce4016d28031e10000000a1550b0/frameset.htm</a>

cheers,

Sundararamaprasad

Former Member
0 Kudos

Thanks1

Any example of how to write such a module?

Former Member
0 Kudos

Hi,

just read thru this blog.This may help u to configure modules.

<a href="/people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter:///people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter

Regards,

Sudharshan

Former Member
0 Kudos

Hi,

There is a function called date in the graphical mapping......so you pass your datatype value and the time stamp value(either u use date function or a constant) to the concat function and then do the necessary mapping and map it to the target....even if you add the timestamp before mapping you will be making use of the timestam added datatype in the mapping...so instead o adding before the mapping do it while mapping......hope this is of some use to you......

Cheers,

Sundararamaprasad