cancel
Showing results for 
Search instead for 
Did you mean: 

Routine in Pricing.

Former Member
0 Kudos

Hi,

I have a requirement , wherein I need to fetch the value from condition pricing procedure to tax procedure in PO.

I have assigned subtotal 1 to a cond type in pricing procedure and created a routine and assigned it against a condition type in tax procedure. Idea is to fetch the value that is stored in subtotal 1 in pricing and populate it against a condition type in tax procedure.

It is not working. Has some one done such kind of routine. Can some one help me in this..?

Regards,

SK

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi SK,

Use reference condition type in tax procedure with condition type and try.

Rajesh

Former Member
0 Kudos

Hi,

You can define requirement subtotal/Base CalcType in VOFM,include the logic if required.Normally for Inida taxation routines 352 to 371 can be used with the necessary includes as per the requirement.

Then try to assign subtotal '5' in the pricing procedure against the condition which you want to pass under PO tax procedure,

Former Member
0 Kudos

Hi Sandeep,

Exactly,,, Thats what I am doing. Subtotal "5" is already being used. We have multiple company codes. Can I use other subtotals.

One more thing. I am unable to find subtotal routines in VOFM. Pls let me know where to check the routines for subtotals.

Regards,

SK

Former Member
0 Kudos

Hi,

Subtotals Controls whether and in which fields condition amounts or subtotals (for example, a customer discount or the cost of a material) are stored.

You can use the same subtotal for diff company codes,it's irrelevance of company codes.For better clarity on subtotals you can refer SAP note 1022966

For your second question,subtoatls are not the routines,these controls which fields to be used like 'KOMP-KZWI5' to store the condition amounts.In VOFM you can define the calculation/base type/condition base routines.

You can check in VOFM>>Menu bar>>Requirements>>Pricing  AND

VOFM>>Menu bar>>Formulaes>>Condition base values

BR,

Sandeep

Former Member
0 Kudos

Hi Sandeep,

Thanks for your reply.

I want to see what code is written for KOMP-KZWI5. Where can I see that ..?

When I use subtotal 5 against a condition type (ZXXX) in my pricing procedure, the value of the said condition gets updated against (JMOP) in tax procedure. I want to see , what is written to make that happen. How can I see that..?

When I see the tax and pricing procedure , only subtotal 5 is working in pricing procedure. Nothing else (alt cond/alt cond base / requirement) has been assigned anywhere. Only subtotal "5" in pricing procedure is working.

Regards,

SK.

Former Member
0 Kudos

Hi S K,

As per my understanding no source code is written for KOMP-KZWI5,if you see the description itself justifes that the value of KZWI5 is carry over to structure KOMP (std SAP).The source code are written for calculation routines.(Need to confirm this)

Can you check if your config is as below? I had achieved the same functionality by making below configuration.

E.G.you want a pricing condition JEXC value to be passed to tax condition JM02,so config should be such a that JEXC should be assigned with subtotal 5 whereas JM02 should be assigned with CalType as 362...this calculation type coding (VOFM) only let allow system to pass the value of condition assigned with subtotal to the respective condition assigned with CalcType.

BR,

Sandeep

Former Member
0 Kudos

Hi S K,

As per my understanding no source code is written for KOMP-KZWI5,if you see the description itself justifes that the value of KZWI5 is carry over to structure KOMP (std SAP).The source code are written for calculation routines.(Need to confirm this)

Can you check if your config is as below? I had achieved the same functionality by making below configuration.

E.G.you want a pricing condition JEXC value to be passed to tax condition JM02,so config should be such a that JEXC should be assigned with subtotal 5 whereas JM02 should be assigned with CalType as 362...this calculation type coding (VOFM) only let allow system to pass the value of condition assigned with subtotal to the respective condition assigned with CalcType.

BR

Sandeep

Former Member
0 Kudos

Hi  Sandeep,

Yes, that is what I need.

Matter of concern is all conditions in pricing  procedure with subtotal "5" are totalled up and appear against condition type JMOP in tax procedure, whereas No alt cal type or alt cond base is assigned to condition type "JMOP".

This is happening only for with subtotal 5. How has this been achieved...? That is why I had asked , how to see code written for KZWI5..

Regards,

Sk.

Former Member
0 Kudos

Hi SK,

there are two options :

1) As per standard configuration in condition type, you can fetch only "condition record". ( can not fetch "condition value". )  This possible by assigning "reference condition type" in master data of condition setting. You can assign cross application condition type.

2) Take help of abaper..create new routine for condition calculation type/base. Apply your own logic in routine to fetch condtion value from pricing condition tab to tax tab.

Hope this will help.

Regds,

Nilesh

Former Member
0 Kudos

Hi Nilesh,

Thanks for your reply.

My requirement is different than what you have suggested. I want to have a manual condition type in pricing procedure. Here I will give some value (manually). I want this value to be fetched and populated against a condition type in tax procedure.

Now suggest me, how to achieve this..?

Regards,

Sk.