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

Create multiple contract lines with custom Fields

Former Member
0 Likes
532

Hi experts!

Im tring to create new lines for a contract, iam suposed to send 15 items with custom fields.

Right now im using  BAPI_TRADINGCONTRACT_CHANGE with the tkonn number and sending the TPOSN empty, so the BAPI creates a new line on WBHI table.

when i send just 1 item the bapi works perfectly, it post the new line with the standard and the custom fields, but when i send multiple lines on

itemdatain, itemdatainx and extensionin tables all the items get posted with the standard fields but only the first one with the custom fields.

Wich means if i create 15 items, item 1 have standard and custom fields filled but the other 14 positions only have the standard fields filled.

How can i do to make all the lines from extensionin to get posted?

Thanks a lot!!

Regards!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
468

Hi,

Please populate Tposn & Tposn_sub ( only if line has sub lines )  for all lines .

Raj Patel

2 REPLIES 2
Read only

Former Member
0 Likes
469

Hi,

Please populate Tposn & Tposn_sub ( only if line has sub lines )  for all lines .

Raj Patel

Read only

0 Likes
468

Seems to be the only solution.

Thanks a lot!!