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

BAPI_CUSTOMERCONTRACT_CHANGE

Former Member
0 Likes
701

When a contract is saved in VA43, all materials of it's assortement module, are inserted in that contract. we are using bapi BAPI_CUSTOMERCONTRACT_CHANGE to update contract and add all relevant materials.

we are getting error as 'Posting date is initial'.

Kindly share what all reletant parameters we should pass to header and items to this bapi.

CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'

EXPORTING

salesdocument = wa_vbap-vbeln

contract_header_in = wa_bapisdh1

contract_header_inx = wa_bapisdh1x

TABLES

return = t_return

contract_item_in = t_bapisditmitm_number

contract_item_inx = t_bapisditmitm_numberx.

How can we handle performance when materials associated with assortment module are very high (>10000).

3 REPLIES 3
Read only

madhu_vadlamani
Active Contributor
0 Likes
566

Hi Archana,

Check the data what you are passing in posting date .Are you uploading through report or lsmw.

Regards,

Madhu.

Read only

0 Likes
566

I am uploading thruogh report.

I am passing DOC_DATE in header. in VA43, in Contract we are passing PO Date.

We are not sure, which field is posting date.

Read only

0 Likes
566

Hi Archana,

Pass some date value in that field and check where it is populating.

Regards,

Madhu.