cancel
Showing results for 
Search instead for 
Did you mean: 

Negative Condition Type

former_member301027
Participant
0 Kudos

In my pricing procedure step, there is one condition type with negative value at step 20, and in next step subtotal of step 5 and 10 is coming, just describ e in below form

Step    condition type             value

4         ZABC                        137

5         PR00                        100

10       MWST                      17

20       ZPR1                        -137

30      subtotal of 5-10           117

40      Net Profit                    -20

Net profit is coming with negative value, i want it to be calculate and display in positive value. kindly suggest.

Looking for gurus response.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Imran,

Please try the below steps:

Step    condition type             value

4         ZABC                        137 (Put Sub Total as "D")

5         PR00                        100

10       MWST                      17

20       ZPR1                        -137

30      subtotal of 5-10           117 (Put Sub Total as "E")

40      Net Profit                    20 (Assign Calculation Type as "12")

Please try and let me know.

Regards

former_member301027
Participant
0 Kudos

My friend it not working, correctly,

step 40 Net profit is drived correctly, but just came with negative value, because above ZPR1 is coming with negative value.

I just want that step 40 came with positive value.

former_member186385
Active Contributor
0 Kudos

Hi Imran,

You have to write a small piece of code to make the value to Positive

ask your developer to create a routine such as it will take the value from step 40 and multiple with

-1

and assign this routine to alternate calculation type in the pricing procedure against your step 40

regards,

santosh

Former Member
0 Kudos

HI Imran,

To my knowledge it would work. However, not sure of your condition type settings and the related pricing procedure settings:

Please check again - The logic is :

4         ZABC                        137 (Put Sub Total as "D")  - The VALUE Gets Stored in XWORKD

30      subtotal of 5-10           117 (Put Sub Total as "E") - The VALUE Gets Stored in XWORKE

40      Net Profit                    20 (Assign Calculation Type as "12")

               - Difference between XWORKD and XWORKE

Regards

former_member301027
Participant
0 Kudos

Dear Raj,

thanks both of your response are correct.

Regards,

former_member301027
Participant
0 Kudos

Dear Raj,

Is ther any document or link you or any of my guru share, where I can findout the purpose and practical implementation of al "condition subtotal"  as for above query you have explain it in a excellent way. So that I can follow it for future reference.

Regards,

Former Member
0 Kudos

Hi Imran,

There are so much of info available if you try to google out in your required topic.

Also there are info available as part of our forum too.

The best way is to have practical experience by working on the system.

One sample link which might help you to some extent:

http://www.sap4u.org/media/userfiles/articles/pdf/36.pdf

However, you can always reach me for any specific requirement.

Regards

Answers (1)

Answers (1)

former_member186385
Active Contributor
0 Kudos

Hi,

Do you want the Step 20 to be displayed with Positive value ?

or

Only you want the Step 40 as sum 137+117      ?

could you please specify your exact requirement so that we can guide

regards,

santosh

former_member301027
Participant
0 Kudos

Dear Santosh,

I want the value is coming Net Profit with positive sign, mean last step value 20 is coming with positive sign at step 40.

or as you said,

Only you want the Step 40 as sum 137+117      ?

137 is with minus sign i want -137+117 is came just positive 20.