2013 Aug 21 7:08 AM
Dear All,
My requirement is to call single subroutine of Pricing FM - xkomv_bewertenthrough Z report program to calculate net price of a material. For that, I am passing material quantity as 1 to KOMP-MGAME as below:
DATA: c_1 TYPE komp-mgame VALUE 1.
komp-mgame = c_1.
Along with other field-values of KOMP variable and other required variables, I am calling PERFORM xkomv_bewerten from my Z program. All these structures / variables are declared in Std. SAP Top Include "lv61atop". I have included that top-include in my Z program.
In debug, I found this issue:
1. Go to Include "LV61AA74" (Form konditionsbasis_ermitteln) and put a breakpoint at line no. 141 as shown below:
2. Go to VA01. Provide basic details - Order type, sales org, dist channel, division, sold-to, ship-to, material, quantity as 1, and press enter. It will start the debugger and set below values for variables:
3. While from my Z program, if I set KOMP-MGAME = 1, and then call PERFORM xkomv_bewerten, it will set variables as below in debug mode at the same code location:
4. Error is: XKOMV-KAWRT is set to 1.00 (Hex Value 100C)while calling from Z program. It should be set to 10.00 (Hex Value 1000C) as per VA01 runtime values.
Observation / Analysis:
Please suggest if you have any clue about the solution.
Thanks in advance,
Birwa
2013 Aug 22 1:33 PM
See SE80: function group V61A properties:
Note the option highlighted above and set it the same way in your Z-program (SE80-> Goto-> Properties).
regards
Dear All,
My requirement is to call single subroutine of Pricing FM - xkomv_bewertenthrough Z report program to calculate net price of a material. For that, I am passing material quantity as 1 to KOMP-MGAME as below:
DATA: c_1 TYPE komp-mgame VALUE 1.
komp-mgame = c_1.
Along with other field-values of KOMP variable and other required variables, I am calling PERFORM xkomv_bewerten from my Z program. All these structures / variables are declared in Std. SAP Top Include "lv61atop". I have included that top-include in my Z program.
In debug, I found this issue:
1. Go to Include "LV61AA74" (Form konditionsbasis_ermitteln) and put a breakpoint at line no. 141 as shown below:
2. Go to VA01. Provide basic details - Order type, sales org, dist channel, division, sold-to, ship-to, material, quantity as 1, and press enter. It will start the debugger and set below values for variables:
3. While from my Z program, if I set KOMP-MGAME = 1, and then call PERFORM xkomv_bewerten, it will set variables as below in debug mode at the same code location:
4. Error is: XKOMV-KAWRT is set to 1.00 (Hex Value 100C)while calling from Z program. It should be set to 10.00 (Hex Value 1000C) as per VA01 runtime values.
Observation / Analysis:
Please suggest if you have any clue about the solution.
Thanks in advance,
Birwa
2013 Aug 21 9:32 AM
Hi Birwa,
I had faced a similar Issue while trying to load pricing condition values for contracts.
According to my analysis based on the condition type -calculation type, a division by 10 is carried out.(refer to attached screenshot)
Am not sure functionality wise why this happens, but i have only analyzed it technically. Please check for yourselves. hope the screenshot helps.
Regards
Vamsi
2013 Aug 22 6:25 AM
Hi Vamsi,
Thanks for your reply. I have checked the code you attached and tried to put a breakpoint in it to analyze in detail, but VA01 / Pricing FM did not call this functionality at all. Can you please share how this screen shot-code is related to VA01 pricing calculations?
Thanks again,
Birwa
2013 Aug 21 1:15 PM
2013 Aug 22 1:33 PM
See SE80: function group V61A properties:
Note the option highlighted above and set it the same way in your Z-program (SE80-> Goto-> Properties).
regards
2013 Aug 23 7:18 AM
Hey Maciej,
Thanks, it solved my issue. I was stuck at this place since long. Thanks a lot!
Regards,
Birwa
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |