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

Deleting inactive pricing types

Former Member
0 Likes
520

Hi All,

we have a requirement, where we need to delete the inactive pricing types from the sales order.

we have configured a pricing routine (902) with the pricing condition.

when we create/change a sales order, the control comes to the routine, but the table xkomv[] is not populated with value for the field KINAK. This field determines, whether the pricing type is active or not. if its not blank, then its inactive.

But when the control comes to any of the user exit ( MV45AFZB - check_vbap using us_dialog), the table xkomv[] is populated with the field KINAK.

Now i need to delete those entries which have been marked, and recalculate the pricing conditoon.

Can any one, tell me how to do that? where to implement the logic?

how to invoke the recalualtion of pricing condtion manually?

FInd the code which i have wriiten in pricing routine 902. * this is for ur refrence. this is not working

loop at xkomv where not kinak is initial.

delete xkomv index sy-tabix

endloop

Regards,

Niyaz

Hi All,

we have a requirement, where we need to delete the inactive pricing types from the sales order.

we have configured a pricing routine (902) with the pricing condition.

when we create/change a sales order, the control comes to the routine, but the table xkomv[] is not populated with value for the field KINAK. This field determines, whether the pricing type is active or not. if its not blank, then its inactive.

But when the control comes to any of the user exit ( MV45AFZB - check_vbap using us_dialog), the table xkomv[] is populated with the field KINAK.

Now i need to delete those entries which have been marked, and recalculate the pricing conditoon.

Can any one, tell me how to do that? where to implement the logic?

how to invoke the recalualtion of pricing condtion manually?

FInd the code which i have wriiten in pricing routine 902. * this is for ur refrence. this is not working

loop at xkomv where not kinak is initial.

delete xkomv index sy-tabix

endloop

Regards,

Niyaz

1 REPLY 1
Read only

Former Member
0 Likes
437

Any update on this? very urgent

points for sure