Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

exclude pricing condition

Former Member
0 Likes
1,023

Hi all,

i havea requirement like, if the line item has rejected in sales order then the pricing condition value set to 0.00. i tried to modify xkomv structure in userexit_save_document. But no use, i searched OSS note 836243 - got confused to solve the issue.

If anybody has done this before or little more guidance will be helpful.

Regards

Giri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
931

HI,

Table of importance is TVAG (reasons for rejection- config data) and filed is DRAGR could be checked. Just check which structure is being used in your program. Just check the reason for rejection line item wise.

To Reject Sales-Order at Item-level (i.e. one or more Items within a Sales-order)

T. Code: VA02

Key-in your S. Ord. No. and ENTER.

Select the line-item and Click Tab: Reason for Rejection (at item-level).

Put reson for Rejection for particular Item(s) and save.

This will reject particular item(s) and not the complete Sales-Order.

I think weneed to map the pricing condition type

Thanks,

Rajat Kumar Sharma

6 REPLIES 6
Read only

Former Member
0 Likes
932

HI,

Table of importance is TVAG (reasons for rejection- config data) and filed is DRAGR could be checked. Just check which structure is being used in your program. Just check the reason for rejection line item wise.

To Reject Sales-Order at Item-level (i.e. one or more Items within a Sales-order)

T. Code: VA02

Key-in your S. Ord. No. and ENTER.

Select the line-item and Click Tab: Reason for Rejection (at item-level).

Put reson for Rejection for particular Item(s) and save.

This will reject particular item(s) and not the complete Sales-Order.

I think weneed to map the pricing condition type

Thanks,

Rajat Kumar Sharma

Read only

Former Member
0 Likes
931

Hi Giri- Mentioned OSS note is for excluding condition types when you have multiple condition type of the same type. To solve your purpose, you can use the same user exit to change VBAK-NETWR to Zero when VBAP-ABGRU is not initial.

Reg

Shan1242

Read only

0 Likes
931

Hi Shan,

I tried to do the same as u said, even i cleared the xbap-netwr value to 0.00. but still after saving i can see the pricing condition has value on it.

is there any other way?

Regards

Giri

Read only

0 Likes
931

Hi Giri- Chcek the value in XNETWR as well. Use statement Modify XVBAP for changing net value.

Reg

Shan1242

Read only

0 Likes
931

Shan,

there is no field called XNETWR in XVBAP, which structure you refering to?

any help or suggestion will be helpful..

Regards

Giri

Read only

deepak_dhamat
Active Contributor
0 Likes
931

Hi ,

pricing condition Routine can be created using VOFM transaction

where you can check as per your condition and set the amount to 0 .

Do read for VOFM transaction i n SDN for pricing Condition value .

There you can set value of xkwert to 0 on condition .

regards

Deepak.

Edited by: Deepak Dhamat on Oct 5, 2011 6:11 AM