Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multi Mapping Problem?

My scenario is File-To-RFC. I am sending One Header Multiple Line items. My source sturcture is as follows:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_FIGL_JVUpload xmlns:ns0="urn:ccc:FIGL">

<VersionRecord>

<RecordType>VER</RecordType>

<VersionKey>PJ2006.00</VersionKey>

</VersionRecord>

<ControlRecord>

<RecordType>CTL</RecordType>

<UserID>aaa</UserID>

<SystemID>bbb</SystemID>

<TimeStamp>1530</TimeStamp>

<Description>FirstHeader</Description>

<Email>Abc@xyz.com</Email>

</ControlRecord>

<THeader>

<HeaderItems>

<RecordType>HDR</RecordType>

<DocumentDate>10/10/2006</DocumentDate>

<PostingDate>10/10/2006</PostingDate>

<PostingPeriod>hh</PostingPeriod>

<DocumentType>ee</DocumentType>

<CompanyCode>OFX</CompanyCode>

<ReferenceDocumentNumber>kkk</ReferenceDocumentNumber>

<Currency>USD</Currency>

<DocumentHeaderText>iii</DocumentHeaderText>

</HeaderItems>

</THeader>

<TLines>

<LineItems>

<RecordType>DTL</RecordType>

<PostingKey>40</PostingKey>

<GLAccount>5002</GLAccount>

<Amount>25000</Amount>

<FMFund>40</FMFund>

<BusinessArea>66</BusinessArea>

<CostCenter>777</CostCenter>

<InternalWorkOrder/>

<WBSElement>888</WBSElement>

<Description>Test One</Description>

</LineItems>

<LineItems>

<RecordType>DTL</RecordType>

<PostingKey>40</PostingKey>

<GLAccount>5002</GLAccount>

<Amount>25000</Amount>

<FMFund>40</FMFund>

<BusinessArea>66</BusinessArea>

<CostCenter>777</CostCenter>

<InternalWorkOrder/>

<WBSElement>888</WBSElement>

<Description>Test Two</Description>

</LineItems>

</TLines>

<SummaryRecord>

<RecordType>END</RecordType>

<TotalDebits>00200.2000</TotalDebits>

<TotalCredits>00200.2000</TotalCredits>

<Balance>0000000.0000</Balance>

<TotalLines>2</TotalLines>

</SummaryRecord>

</ns0:MT_FIGL_JVUpload>

On the Inbound side I am importing RFC. I have given the sender communicaiton channel parameters as:

DocumentName : MT_FIGL

Document Namespace : urn:xxx:FIGL

Recordset Structure : VersionRecord,1,ControlRecord,1,HeaderItems,1,LineItems,*,SummaryRecord,1

Recordset Sequence : Ascending

Key Field Name : RecordType

VersionRecord.fieldNames : RecordType,VersionKey

VersionRecord.fieldFixedLengths : 4,9

VersionRecord.keyFieldValu : VER

VersionRecord.endSeparator : 'nl'

ControlRecord.fieldNames : RecordType,UserID,SystemID,TimeStamp,Description,Email

ControlRecord.fieldFixedLengths : 4,20,3,19,30,150

ControlRecord.keyFieldValue : RecordType,DocumentDate,PostingDate,PostingPeriod,DocumentType,CompanyCode,ReferenceDocumentNumber,Currency,DocumentHeaderText

HeaderItems.fieldFixedLengths : 4,8,8,2,2,4,16,5,25

HeaderItems.keyFieldValue : HDR

LineItems.fieldNames : RecordType,PostingKey,GLAccount,Amount,FMFund,BusinessArea,CostCenter,InternalWorkOrder,WBSElement,Description

LineItems.fieldFixedLengths : 4,2,6,13,8,2,10,10,24,50

LineItems.endSeparator : 'nl'

LineItems.keyFieldValue : DTL

SummaryRecord.fieldNames : RecordType,TotalDebits,TotalCredits,Balance,TotalLines

SummaryRecord.fieldFixedLengths : 4,15,15,18,10

SummaryRecord.keyFieldValue : END

SummaryRecord.endSeparator : 'nl'

It does pick the file but says mapping exception. Let me know what are the changes I have to make.

Former Member
Not what you were looking for? View more on this topic or Ask a question