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_CONTRACT_CHANGE Error Conditions

Former Member
0 Likes
961

Hi all,

I want to modify a contract by adding new lines, but the price I put in the items table is changed by the Info Record.

I am trying to fill the BAPI's tables of conditions in order to put the price I want, but I get errors with KONP table (MEOUT 115).

How do I fill these tables to work properly?

I do the following:


  it_cond_validity-item_no    = '00020'.
  it_cond_validity-valid_from = sy-datum.
  it_cond_validity-valid_to   = '99991231'.

  it_cond_validityx-item_no    = '00020'.
  it_cond_validityx-item_nox   = 'X'.
  it_cond_validityx-valid_from = 'X'.
  it_cond_validityx-valid_to   = 'X'.
___

  it_condition-item_no      =  '00020'.
  it_condition-cond_type    = 'ZS01'.
  it_condition-cond_count   = '01'.
  it_condition-cond_value   = ...
  it_condition-currency     = ...
  it_condition-cond_p_unt   = ...
  it_condition-cond_unit    = ...

  it_conditionx-item_no      =  '00020'.
  it_conditionx-cond_count   = '01'.
  it_conditionx-item_nox     = 'X'.
  it_conditionx-cond_countx  = 'X'.
  it_conditionx-cond_type    = 'X'.
  it_conditionx-cond_value   = 'X'.
  it_conditionx-currency     = 'X'.
  it_conditionx-cond_p_unt   = 'X'.
  it_conditionx-cond_unit    = 'X'.

What I do wrong?

Do I have to inform the field it_condition-change_id with 'I' or another value?

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
740

Hi Husalban

[BAPI_CONTRACT_CHANGE|http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CHANGE#Function_Module]

Regards,

Sravanthi

Read only

0 Likes
740

Thanks for your answer Sravanthi, but in that link is not the information I need.

I know this will change for existing lines in the contract, but the error I get when trying to add new lines.

Read only

former_member156446
Active Contributor
0 Likes
740

[Add conditions in a contract|http://www.sapfans.com/forums/viewtopic.php?f=13&t=312260&p=944456]

Read only

0 Likes
740

I read the thread of the link, but they ultimately end up using BDC to add the conditions.

In my program I have to make modifications to existing lines in the contract as the insertion of new lines.

The modifications are good, but the insertions give me problems. and I can not use BDC because I would have to change a lot the program.

Read only

0 Likes
740

client is god and requirement is the Verdict... you need to full fill the requirement. I am not finding the BAPI in my system in ECC 5.0