Skip to Content

User exit for VA01 to get KNUMH

Sep 25, 2017 at 09:46 AM


avatar image

Hi experts,

I am in need of your help. I am required to get the condition record number after the user clicks the save button in VA01.

I tried to make use of USEREXIT_SAVE_DOCUMENT found in MV45AFZZ. I was able to locate KONDD and inside it exists KNUMH but it has no value yet.

I would greatly appreciate any help given.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

John Bryan Lacaden Sep 26, 2017 at 02:38 AM

Or is there a way to get the KOSRT aside from getting KNUMH?

10 |10000 characters needed characters left characters exceeded
Raymond Giuseppi
Sep 25, 2017 at 11:41 AM

Did you check internal table xkomv.
(or another global defined itab like xko*, x*cond*, ko*, etc.)

It also depends on your exact requirement.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Raymond,

Thank you for your reply. Yes, I've already checked xkomv and the other global itabs. For those who contain KNUMH, the field is blank. I think this won't be filled up unless the SO has been created.


Basically, my requirement is when a user attempts to create a sales order I need to get KNUMH to pass it to the table KONH to get the value of KOSRT.

capture.png (5.5 kB)

Did you already check available value in the "User Exits for Pricing" (SPRO, "Sales and Distribution", "User Exits ", "User Exits for Pricing") where you could save some data to use later in the USER_SAVE_DOCUMENT[_PREPARE] exit?


Hi Raymond,

May I know the name of the user exit? I've already tried USEREXIT_PRICING_CHECK and USEREXIT_PRICING_COPY but when I debug VA01 it doesn't go into these exits.