cancel
Showing results for 
Search instead for 
Did you mean: 

File to IDOC - Mapping Problem

Former Member
0 Kudos

I am sending a File to an IDOC.

My File has a Header, Details, and a Trailer.

The file contains the Vendor details and based on the Vendornumber I need to create the Target IDOCs.

I have mapped few fields from the Header of the File to the Target IDOC.(Example CreationDate).

But I am able to see the Creation Date in the First IDOC and the remaining IDOCs are not having the elment CreationDate at all.

Any suggestions will be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Naveen,

You have to use the useOneAsMany() node function in the mapping for the creation date target field. A direct map will not work...

Thanks & Regards,

Renjith

see the documentation for useOneAsMany from sap help

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm

also check the weblog by Sravya on how to use the useOneAsMany..

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Message was edited by: Renjith Andrews

Answers (0)