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

return order item net value calculation based on quantity change

Former Member
0 Likes
1,456

Hi,

we are trying to create return sales order with reference to billing everything is fine except return order create with component partial qty.

If we reduce quantity manually in return sales order after the "create with invoice reference' the net value of the item did not change as per quantity.

Ex:  original invoice component qty 10 and amount $1000

    

create return order component  with qty 4 ( with reference to billing doc) the net value amount of this item remains the same 1000 instead of 4X100 = $400.

we are using custom condition types for bundle.  when we create return order with complete bundle it is working fine, but when we change the qty net value of the item not changing.

tried through configuration but not working due to custom condition types, so now we are looking solution from technical side.

please let me know how can i calculate the item net value technically when i reduce the quantity in return sales order.

Thanks

Siri

Hi Sireesha,

Apologies for the delayed response.If the condition is not getting changed can you please ask your Functional Counterpart the place/menu path?

BR.

7 REPLIES 7
Read only

Former Member
0 Likes
1,190

Hi Siri,

Pricing Requirement Routine might help. An ABAPer can create it in t-code VOFM and then Functional colleagues can configure it for condition types. It might help.

BR.

Read only

0 Likes
1,190

Thanks for your reply.

I am ABAP developer , but i do not have experience in VOFM routines.

How can i change condition type net value when i change the quantity.

can some one please explain.

Thanks

Siri

Read only

0 Likes
1,190

Hi,

VOFM Routines are noting but modifications to SAP codes. They are exits. Generally used in SD module for Pricing, Formula Calculation, Output Control etc.

Steps to create VOFM Pricing Riutineare shown here

http://sapdocs.info/sap/sd-related-topics/routines-in-sd/

Coding Advice -

Once you get the routine created and configured, put a break point and see all the variable present in the global data tab of debugger. You will have structures KOMKBV1 and KOMPBV1 which will have Sales Order Header and Item Values. Now play with these to suit your needs.

BR.

Read only

0 Likes
1,190

Thanks for your reply..

I want to calculate Amount and condition value under 'Conditions tab' for particular condition type.

I can see Requirement/CalType/BasType exist in pricing procedure.

which one should i use to calculate the Amount, condition value and item net value.

Thanks

Siri

Read only

0 Likes
1,190

Hi,

It should be VOFM->Requirements->Pricing.

BR.

Read only

0 Likes
1,190

I am trying to change the condition value through pricing routine , but condition value not changing , please advise.

Thanks

Siri

Read only

0 Likes
1,190

Hi Sireesha,

Apologies for the delayed response.If the condition is not getting changed can you please ask your Functional Counterpart the place/menu path?

BR.