Hi, Dear Experts!
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