Skip to Content
0
May 28, 2020 at 03:46 PM

How to identify condition row in PO (ME23N)

218 Views Last edit May 28, 2020 at 03:47 PM 2 rev

Hello guys,

I'm looking for a way to identify a condition row in purchase order. I add via BAPI custom conditions to purchase order. When saving them I use key fields KNUMV, KPOSN, STUNR and ZAEHK from table KONV to identify it. This works fine. But when user deletes a condition row in transaction ME22N, counter ZAEHK will regenerated. This means

Standard condition -> ZAEHK 1

Custom condition 1 -> ZAEHK 2

Custom condition 2 -> ZAEHK 3

Custom condition 3 -> ZAEHK 4.


When user now deletes custom condition 1, custom condition 2 gets ZAEHK 2 and 3 gets 3. That makes it impossible to identify the origin input via BAPI. There is only the value field left to identify it or somebody got an idea?

Regards
Michael