cancel
Showing results for 
Search instead for 
Did you mean: 

Update the record in the Vk32 tcode using BAPI BAPI_PRICES_CONDITIONS

former_member569532
Participant
0 Kudos
426

Hi Experts,

We have to update the existing record in Vk32.If we update in VK32 we can directly update the existing record.We want to do this programmatically.We have tried BAPI BAPI_PRICES_CONDITIONS,it is always creating the new record instead of updating.Please assist to advice on this issue.

Thanks & Regards,

Anusha

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; }

Accepted Solutions (0)

Answers (3)

Answers (3)

Kartik_Dua
Contributor
0 Kudos

Hi Anusha,

Agree with other experts, we should not delete condition records in VK12. What we have done in the past is end-dated existing records (let's say with today's date) and then create new records starting tomorrow. So that way any sales orders using old data won't get impacted and new sales orders created after the creation of new condition records will follow the new design.

Thank you.

Kartik

pataselano
Active Contributor
0 Kudos

BAPI_PRICES_CONDITIONS is always creating the new record.
For change, you delete the old record first, after that creating the new record.

Lakshmipathi
Active Contributor
0 Kudos

SAP's recommended approach is to create a new record instead of changing the existing record as for as pricing is concerned. Even if you do manually, it is always better to update via vk11 or vk31 and not vk12 or vk32. Also, it is not clear on your statement

it is always creating the new record

What do you mean by this? Is it not overwriting the existing condition record ?