‎2011 Oct 03 5:54 PM
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
‎2011 Oct 03 7:29 PM
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
‎2011 Oct 03 7:29 PM
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
‎2011 Oct 03 7:31 PM
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
‎2011 Oct 04 12:46 AM
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
‎2011 Oct 04 12:58 AM
Hi Giri- Chcek the value in XNETWR as well. Use statement Modify XVBAP for changing net value.
Reg
Shan1242
‎2011 Oct 04 5:59 PM
Shan,
there is no field called XNETWR in XVBAP, which structure you refering to?
any help or suggestion will be helpful..
Regards
Giri
‎2011 Oct 05 5:10 AM
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