on 01-16-2013 10:52 PM
Hi, Dear Experts!
My Service pack is 09 and Release NW701_09_REL.
I need to implement the Mapping between mt_sender and BAPI_ACC_DOCUMENT_POST.
Sourse:
Tree Occurrences
--------------------------------------
mt_sender 1..1
LINES 1..unbounded
DETAILS 1..1
DATE 1..1
COST_CENTER 0..1
DEBET 1..1
CREDIT 1..1
SUMMA 1..1
TAX_CODE 0..1
DESCRIPTION 1..1
Target:
Tree Occurrences
--------------------------------------
BAPI_ACC_DOCUMENT_POST 1..1
DOCUMENTHEADER 1..1
BUS_ACT 0..1
HEADER_TXT 0..1
COMP_CODE 0..1
DOC_DATE 0..1
PSTNG_DATE 0..1
DOC_TYPE 0..1
ACCOUNTGL 0..1
item 0..unbounded
ITEMNO_ACC 0..1
GL_ACCOUNT 0..1
TAX_CODE 0..1
COST_CENTER 0..1
DE_CRE_IND 0..1
CURRENCYAMOUNT 0..1
item 0..unbounded
ITEMNO_ACC 0..1
CURRENCY 0..1
AMT_DOCCUR 0..1
In my mapping I need to fill only two subnodes item both in structure ACCOUNGL and CURRENCYAMOUNT of BAPI by the following way:
BAPI_ACC_DOCUMENT_POST
DOCUMENTHEADER 1..1
BUS_ACT 0..1 RFBU
HEADER_TXT 0..1 mt_sender->LINES->DETAILS->DESCRIPTION
COMP_CODE 0..1 1000
DOC_DATE 0..1 mt_sender->LINES->DETAILS->DATE
PSTNG_DATE 0..1 mt_sender->LINES->DETAILS->DATE
DOC_TYPE 0..1 SA
ACCOUNTGL 0..1
item 0..unbounded (1)
ITEMNO_ACC 0..1 1
GL_ACCOUNT 0..1 mt_sender->LINES->DETAILS->DEBET
TAX_CODE 0..1 H0
COST_CENTER 0..1 COST_CENTER
DE_CRE_IND 0..1 S
item 0..unbounded (2) <------------------- ADD SECOND ITEM ----
ITEMNO_ACC 0..1 2
GL_ACCOUNT 0..1 mt_sender->LINES->DETAILS->CREDIT
TAX_CODE 0..1
COST_CENTER 0..1
DE_CRE_IND 0..1 H
CURRENCYAMOUNT 0..1
item 0..unbounded (1)
ITEMNO_ACC 0..1 1
CURRENCY 0..1 UAH
AMT_DOCCUR 0..1 mt_sender->LINES->DETAILS->SUMMA
item 0..unbounded (2) <------------- ADD SECOND ITEM ----
ITEMNO_ACC 0..1 2
CURRENCY 0..1 UAH
AMT_DOCCUR 0..1 mt_sender->LINES->DETAILS-> -SUMMA
Please advice me how to add second items to ACCOUNTGL and CURRENCYAMOUNT in order to specify the different relations?
Thanks,
Nani
Hi Nani,
Open the Message Mapping, Right click on "item" (perform for both, ACCOUNTGL and CURRENCYAMOUNT) and select "duplicate subtree". It will just create another "item". Dont need to make any changes to Target Structure (like Message Type/ External Definition). It will meet your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.