Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

customized field in bapi

Former Member
0 Likes
920

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.

2 REPLIES 2
Read only

Former Member
0 Likes
764

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

Read only

Former Member
0 Likes
764

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.