on 09-01-2016 12:26 PM
Hi all,
I am a developer and having an issue where the subtotal value 4 (KOMP-KZWI4) is not getting populated in the requirement routine(916-920) when i check in the debugging mode although it has been configured in the pricing procedure. It contains the value 0 . But the value is getting populated when condition base value routine 913 is getting executed.
Could you please let me know whether there is any issue with the config or do I need to check something else in the code?
Hi Akhsay,
Values of KOMP must have been present at the time of pricing. I just checked in a system; in a requirement routine KOMP-KZWI* values are present. Can you paste the requirement routine code, though I do not think it's relevant to that code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure Kıvanç. Here you go:
sy-subrc = 4. "Set sy-subrc value to disable
CALL METHOD /chc/cl_mm_mlan_read=>get_mlan " Fetch Rx. assort code values by reading mlan records
EXPORTING
iv_matnr = komp-matnr "Material
iv_aland = lc_no "Norway
IMPORTING
es_mlan = ls_mlan_wa " Importing MLAN structure
EXCEPTIONS
no_data_found = 1
OTHERS = 2.
IF sy-subrc EQ 0
AND ls_mlan_wa-/chc/md_artgrp EQ lc_01 AND komp-kzwi4 < komp-kzwi3.
*if Product group is 01 and Subtotal 4 is less then value of znr8 then set sy-subrc = 0 else 4
sy-subrc = 0.
ELSE.
sy-subrc = 4.
ENDIF.
Below is the screenshot while debugging . KZWI4 and KZWI3 come as 0. Also, the KSCHL value looks to be wrong. Do you think that might be the issue ?
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.