Skip to Content
0

User exit for VA01 to get KNUMH

Sep 25, 2017 at 09:46 AM

59

avatar image
Former Member

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

avatar image
Former Member Sep 26, 2017 at 02:38 AM
0

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

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

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
Former Member

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.

capture.png

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)
0

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?

0
Former Member
Raymond Giuseppi

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.

0