cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PRICES_CONDITIONS doesn't delete KONH and KONP

Marcelo_Pollak
Explorer
0 Kudos
1,250

Hi Experts

Has anyone managed to delete KONH and KONP using this BAPI. From what I could see this seems impossible, as the internal table lt_konhdb only receives the UPDKZ 'I' or 'U' and never 'D' (FORM compare_konh never sets it to D).

Or is there a trick?
Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member225253
Participant
0 Kudos

I have done few thing tasks like updating with scales pricing data with Function Module RV_CONDITION_COPY , which FM BAPI_PRICES_CONDITIONS could not upload . I am not sure for your Purpose , but you can try Function Module RV_CONDITION_COPY .

Best Regards .

Marcelo_Pollak
Explorer
0 Kudos

If you upload 650 K entries using this FM, the performance is unacceptable, it takes around 7 hours to complete

former_member225253
Participant
0 Kudos

You Can Execute in Background .Atleast RV_CONDITION_COPY solves the Purpose which BAPI_PRICES_CONDITIONS could not do .

Thanks ,

Devendra Singh

VeselinaPeykova
Active Contributor
0 Kudos

Are you sure that using this BAPI is a good idea in the first place?

In sap note 1135984 - Conditions cannot be created with BAPI_PRICES_CONDITIONS there is a text:

When you use this function module, inconsistencies may occur; you should therefore not use it!

The same note also lists alternatives for updating conditions, maybe you could give them a try.

Marcelo_Pollak
Explorer
0 Kudos

OK, that is true. But it does work to create condition records, as long as no overlapping periods occur.

Anyway thanks for the note