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

Pricing requirement routine issue

Former Member
0 Likes
2,358

Hi,

Pricing requirement routine is created to activate/deactivate condition type. Issue is while creating sales order in VA01, for each line item addition or changes, routine is not getting triggered. Only first time routine is getting triggered.

Please let me know any solution for this issue.

Thanks & Regards,

Avi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,055

Hi,

The issue was, when any changes to line item entered, it was not processing re pricing automatically. So in USEREXIT_NEW_PRICING_VBAP, we have to set the value of NEW_PRICING field to either 'B' or 'C', which will take care of re pricing automatically. Now the issue is resolved.

Thanks,

Avi

7 REPLIES 7
Read only

former_member1716
Active Contributor
0 Likes
2,055

Hi Avi,

You have to create a Subroutine and code as per the requirement. Later through configuration assign the subroutine to the condition type, this you can consult the concerned functional Team.

Please get back if you still have issues.

Regards,

Satish

Read only

0 Likes
2,055

Hi Satish,

Thanks for the reply. The configuration you mentioned is already done by functional. Now the issue is when you add line item in VA01 it triggers routine and do the activate/deactivate condition type based on conditions. But if you make any changes to same line item, even though it triggers routine, but condition type is not getting activate/deactivate properly.

Please let me know if any solution for this issue.

Thanks,

Avi

Read only

0 Likes
2,055

Hi Avi,

Condition type activation/deactivation you should not handle it through code. This must be a Config issue, Please check the config once if all are maintained correctly.

Regards,

Satish

Read only

0 Likes
2,055

Hi Satish,

As based on some conditions condition type to be active/inactive. So we created requirement routine. and assigned routine to condition type in V/08. Now the issue is when you add line item in VA01 it triggers routine and do the activate/deactivate condition type based on conditions. But if you make any changes to same line item, even though it triggers routine, but condition type is not getting activate/deactivate properly.

Functional side configurations are fine. Please let me know if you have any alternate to solve this issue.

Thanks,

Avi

Read only

0 Likes
2,055

Hi,

On the second time when your try changing the Line item, did your code got executed successfully?

Read only

0 Likes
2,055

Hi Satish,

Yes. It triggers and executes code successfully. But activate/deactivate function not working properly.

Thanks,

Avi

Read only

Former Member
0 Likes
2,056

Hi,

The issue was, when any changes to line item entered, it was not processing re pricing automatically. So in USEREXIT_NEW_PRICING_VBAP, we have to set the value of NEW_PRICING field to either 'B' or 'C', which will take care of re pricing automatically. Now the issue is resolved.

Thanks,

Avi