Skip to Content
author's profile photo Former Member
Former Member

Pricing procedure calculation type RV64A908 not working as desired

Dear All

I have a requirement in which we need the difference between the 2 condition types ZABC and ZXYZ in 3rd condition type ZDEF.

We have assigned one calculation type

RV64A908 to condition type ZDEF and have written below code :

*populate the ZDEF with difference between ZABC and ZXYZ
IF xkomv-kinak NA 'AKLMXZ'.
loop at xkomv INTO ls_xkomv_zabc
WHERE kposn = komp-KPOSN and
kschl = 'ZABC' and
kinak na 'AKLMXZ'.

LOOP at xkomv INTO ls_xkomv_zxyz
WHERE kposn = komp-kposn
and kschl = 'ZXYZ'
and kinak NA 'AKLMXZ'.

* populate the difference
xkwert = ls_xkomv_zabc-kwert - ls_xkomv_zxyz-kwert .
xkomv-kwert = xkwert.

But the above code is not working and we are not getting the difference values . Kindly advice what variables should be updated so that we will get the difference . Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 02, 2018 at 09:17 AM

    Not sure whether you tried to achieve this with standard pricing procedure configuration or discussed with your SD functional consultant, if you are a technical consultant. It is difficult to suggest without seeing your pricing procedure and condition type configurations. You should have shared the screen shot of these configurations. Let us assume, both ZABC & ZXYZ are set to same Condition Class, Calculation type etc., you also need to set X for ZXYZ and place it next to ZABC in your pricing procedure. By doing so, you would get the difference between these two.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.