‎2009 Feb 11 1:24 PM
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.
‎2009 Feb 11 1:34 PM
Hi Husalban
[BAPI_CONTRACT_CHANGE|http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CHANGE#Function_Module]
Regards,
Sravanthi
‎2009 Feb 11 3:36 PM
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.
‎2009 Feb 11 3:46 PM
[Add conditions in a contract|http://www.sapfans.com/forums/viewtopic.php?f=13&t=312260&p=944456]
‎2009 Feb 11 4:06 PM
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.
‎2009 Feb 11 4:10 PM
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