Application Development 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: 

Unable to create contract through BAPI- BAPI_CONTRACT_CREATE

Former Member
0 Kudos

Hi All,

        When I am trying to create contractin MM -tcode - ME31K- through bapi - 'bapi_contract_create' condition is not getting updated.Contract no is generated through Bapi.  But when I go to change document (me32K) the net price field becomes '0'. While analyzing it is because of condition type which has no value.

3 REPLIES 3

Former Member
0 Kudos

May be you need to pass the value in strcuture ACCOUNT & ACCOUNTX.

you may also use

you can use BAPI_CONTRACT_CREATEFROMDATA



former_member183424
Active Contributor

Former Member
0 Kudos

Hi,

Account and accountx had given. It also results in the same problem.

Checked with the BAPI 'BAPI_CONTRACT_CREATEFROMDATA'. Its header data is very different from the datas which I need to pass.