‎2010 Nov 29 12:35 PM
Hi,
We have to create a contract by using bapi 'BAPI_CONTRACT_CREATEFROMDATA'. In the contract we have a customized field in additional data B in header. For which there is entry in vbak but not in bape_vbak , bape_vbakx , VBAKKOZ and VBAKKOZX.
Is it necessary to have entry for that field in all these tables.
when I make entry in these tables, I got runtime message "DA_PAREX-VALUES" and "DA_BAPE_VBAK" are not mutually convertible in a" unicode program.
Please help me on this.
‎2010 Nov 29 12:47 PM
Hi
If the field is not available in BAPE_VBAK, BAPE_VBAKX, VBAKKOZ and VBAKKOZX u need to insert it to them if you want to transfer its value via BAPI
Max
‎2010 Nov 29 4:22 PM
Hi,
Many BAPI's has a method to pass any customer information to standard tables that use append structure technology.
in this case, this BAPI has a table parameter called EXTENSIONIN of type BAPIPAREX as you can see in Tx. SE11 this structure has a filed named "Structure".
As you can see in the function module documentation, with this aproach you can pass data to the SD tables VBAK, VBKD, VBAP and VBEP.
So, answering your cuestion, you have to include the particular field named B as you added in VBAK in the structure BAPE_VBAK.
Please check inside the BAPI code, get in SD_SALESDOCUMENT_CREATE FM, form ms_move_extensionin. There is a move-corresponding from BAPE_VBAK to VBAKKOM. Take care about this to avoid any conversion issues.
I hope this may help you.