cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing check when save the Sales Ordeer VA01/ VA02

Former Member
0 Kudos

Hi Expert,

I want to check the total amount of one condition of the SO when it save.

and display error when the amount exist the limit.

I found an user exit program MV45AFZZ form USEREXIT_SAVE_DOCUMENT_PREPARE.

I want to read the internal table XKOMV for the pricing type KSCHL = 'ZP02'... and sum up the KWERT.

However, the ABAP editor prompt for syntax error

"XKOMV" is not defined in the ABAP dictionary as a table, projection view or database view"...

Is there another table which have same function as XKOMV ?

Please help...

Terry

Edited by: Kin Hang, Terry NGAI on May 21, 2009 3:13 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

Use table : KONV Conditions (Transaction Data)

Thanks

RK

Answers (2)

Answers (2)

former_member183879
Active Contributor
0 Kudos

Hi,

The internal table you have mentioned is right. You may have to check the way it is coded. I think you cannot code directly on XKOMV as it is an internal table. The best person who can answer this qn is a guy who knows ABAP

Former Member
0 Kudos

Hi RK,

I am not familiar with ABAP coding, I use SELECT to read the XKOMV, now I know I should use the command LOOP AT instead of SELECT....

Thank you very much.

Terry

Edited by: Kin Hang, Terry NGAI on May 26, 2009 2:31 PM